diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-28 19:20:11 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-28 19:23:18 +0200 |
commit | 7daeddb9e9682137f629353350b946c00b57379a (patch) | |
tree | f483bbfa279d0990fa82bde0e5c5edc6628eb48a /Libraries/LibWeb/CSS/StyleResolver.cpp | |
parent | cc4109c03b5a7da919be7a930c2ff2769568a023 (diff) | |
download | serenity-7daeddb9e9682137f629353350b946c00b57379a.zip |
LibWeb: Move the CSS parser into CSS/Parser/
Diffstat (limited to 'Libraries/LibWeb/CSS/StyleResolver.cpp')
-rw-r--r-- | Libraries/LibWeb/CSS/StyleResolver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/CSS/StyleResolver.cpp b/Libraries/LibWeb/CSS/StyleResolver.cpp index 51746c52b0..9ba4519fb5 100644 --- a/Libraries/LibWeb/CSS/StyleResolver.cpp +++ b/Libraries/LibWeb/CSS/StyleResolver.cpp @@ -25,13 +25,13 @@ */ #include <AK/QuickSort.h> +#include <LibWeb/CSS/Parser/CSSParser.h> #include <LibWeb/CSS/SelectorEngine.h> #include <LibWeb/CSS/StyleResolver.h> #include <LibWeb/CSS/StyleSheet.h> #include <LibWeb/DOM/Document.h> #include <LibWeb/DOM/Element.h> #include <LibWeb/Dump.h> -#include <LibWeb/Parser/CSSParser.h> #include <ctype.h> #include <stdio.h> @@ -344,7 +344,7 @@ static void set_property_expanding_shorthands(StyleProperties& style, CSS::Prope auto right = parse_css_value(context, parts[1]); auto bottom = parse_css_value(context, parts[2]); auto left = parse_css_value(context, parts[3]); - if (top && right && bottom &&left) { + if (top && right && bottom && left) { style.set_property(CSS::PropertyID::BorderTopColor, *top); style.set_property(CSS::PropertyID::BorderRightColor, *right); style.set_property(CSS::PropertyID::BorderBottomColor, *bottom); |