Title: [209142] trunk/Source/WebCore
Revision
209142
Author
[email protected]
Date
2016-11-30 11:39:12 -0800 (Wed, 30 Nov 2016)

Log Message

[CSS Parser] Make sure -webkit-background-size coalesces identical values.
https://bugs.webkit.org/show_bug.cgi?id=165207

Reviewed by Dean Jackson.

* css/parser/CSSPropertyParser.cpp:
(WebCore::consumeBackgroundSize):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (209141 => 209142)


--- trunk/Source/WebCore/ChangeLog	2016-11-30 19:20:32 UTC (rev 209141)
+++ trunk/Source/WebCore/ChangeLog	2016-11-30 19:39:12 UTC (rev 209142)
@@ -1,3 +1,13 @@
+2016-11-30  Dave Hyatt  <[email protected]>
+
+        [CSS Parser] Make sure -webkit-background-size coalesces identical values.
+        https://bugs.webkit.org/show_bug.cgi?id=165207
+
+        Reviewed by Dean Jackson.
+
+        * css/parser/CSSPropertyParser.cpp:
+        (WebCore::consumeBackgroundSize):
+
 2016-11-30  Eric Carlson  <[email protected]>
 
         [MediaStream] Sync video preview layer and parent layer sizes

Modified: trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp (209141 => 209142)


--- trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp	2016-11-30 19:20:32 UTC (rev 209141)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp	2016-11-30 19:39:12 UTC (rev 209142)
@@ -2724,7 +2724,7 @@
     }
     if (!vertical)
         return horizontal;
-    return createPrimitiveValuePair(horizontal.releaseNonNull(), vertical.releaseNonNull(), Pair::IdenticalValueEncoding::DoNotCoalesce);
+    return createPrimitiveValuePair(horizontal.releaseNonNull(), vertical.releaseNonNull(), property == CSSPropertyWebkitBackgroundSize ? Pair::IdenticalValueEncoding::Coalesce : Pair::IdenticalValueEncoding::DoNotCoalesce);
 }
 
 #if ENABLE(CSS_GRID_LAYOUT)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to