Title: [208125] trunk/Source/WebCore
Revision
208125
Author
[email protected]
Date
2016-10-30 06:42:39 -0700 (Sun, 30 Oct 2016)

Log Message

[CSS Parser] Support unprefixed image-sets
https://bugs.webkit.org/show_bug.cgi?id=164198

Reviewed by Dean Jackson.

* css/CSSValueKeywords.in:
* css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::consumeImage):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (208124 => 208125)


--- trunk/Source/WebCore/ChangeLog	2016-10-30 10:03:20 UTC (rev 208124)
+++ trunk/Source/WebCore/ChangeLog	2016-10-30 13:42:39 UTC (rev 208125)
@@ -1,3 +1,14 @@
+2016-10-29  Dave Hyatt  <[email protected]>
+
+        [CSS Parser] Support unprefixed image-sets
+        https://bugs.webkit.org/show_bug.cgi?id=164198
+
+        Reviewed by Dean Jackson.
+
+        * css/CSSValueKeywords.in:
+        * css/parser/CSSPropertyParserHelpers.cpp:
+        (WebCore::CSSPropertyParserHelpers::consumeImage):
+
 2016-10-30  Yusuke Suzuki  <[email protected]>
 
         [DOM] Introduce WebCore::jsDynamicDowncast

Modified: trunk/Source/WebCore/css/CSSValueKeywords.in (208124 => 208125)


--- trunk/Source/WebCore/css/CSSValueKeywords.in	2016-10-30 10:03:20 UTC (rev 208124)
+++ trunk/Source/WebCore/css/CSSValueKeywords.in	2016-10-30 13:42:39 UTC (rev 208125)
@@ -1150,6 +1150,7 @@
 scale-down
 
 // background-image, etc.
+image-set
 linear-gradient
 radial-gradient
 repeating-linear-gradient

Modified: trunk/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp (208124 => 208125)


--- trunk/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp	2016-10-30 10:03:20 UTC (rev 208124)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp	2016-10-30 13:42:39 UTC (rev 208125)
@@ -1158,7 +1158,7 @@
         return CSSImageValue::create(completeURL(context, uri));
     if (range.peek().type() == FunctionToken) {
         CSSValueID id = range.peek().functionId();
-        if (id == CSSValueWebkitImageSet)
+        if (id == CSSValueWebkitImageSet || id == CSSValueImageSet)
             return consumeImageSet(range, context);
         if (generatedImage == ConsumeGeneratedImage::Allow && isGeneratedImage(id))
             return consumeGeneratedImage(range, context);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to