Title: [209320] trunk/Source/WebCore
Revision
209320
Author
[email protected]
Date
2016-12-05 09:35:44 -0800 (Mon, 05 Dec 2016)

Log Message

[CSS Parser] The page-break-* properties are only keyword props for old parser.
https://bugs.webkit.org/show_bug.cgi?id=165381

Reviewed by Dean Jackson.

* css/parser/CSSParser.cpp:
(WebCore::isKeywordPropertyID):
* css/parser/CSSParserFastPaths.cpp:
(WebCore::CSSParserFastPaths::isKeywordPropertyID):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (209319 => 209320)


--- trunk/Source/WebCore/ChangeLog	2016-12-05 17:28:23 UTC (rev 209319)
+++ trunk/Source/WebCore/ChangeLog	2016-12-05 17:35:44 UTC (rev 209320)
@@ -1,5 +1,17 @@
 2016-12-05  Dave Hyatt  <[email protected]>
 
+        [CSS Parser] The page-break-* properties are only keyword props for old parser.
+        https://bugs.webkit.org/show_bug.cgi?id=165381
+
+        Reviewed by Dean Jackson.
+
+        * css/parser/CSSParser.cpp:
+        (WebCore::isKeywordPropertyID):
+        * css/parser/CSSParserFastPaths.cpp:
+        (WebCore::CSSParserFastPaths::isKeywordPropertyID):
+
+2016-12-05  Dave Hyatt  <[email protected]>
+
         [CSS Parser] Don't use CSS_PARSER_INTEGER unit for resolved integer calcs.
         https://bugs.webkit.org/show_bug.cgi?id=165379
 

Modified: trunk/Source/WebCore/css/parser/CSSParser.cpp (209319 => 209320)


--- trunk/Source/WebCore/css/parser/CSSParser.cpp	2016-12-05 17:28:23 UTC (rev 209319)
+++ trunk/Source/WebCore/css/parser/CSSParser.cpp	2016-12-05 17:35:44 UTC (rev 209320)
@@ -1177,17 +1177,20 @@
 static bool isKeywordPropertyID(CSSPropertyID propertyID)
 {
     switch (propertyID) {
-        case CSSPropertyWebkitColumnBreakAfter:
-        case CSSPropertyWebkitColumnBreakBefore:
-        case CSSPropertyWebkitColumnBreakInside:
+    case CSSPropertyPageBreakAfter:
+    case CSSPropertyPageBreakBefore:
+    case CSSPropertyPageBreakInside:
+    case CSSPropertyWebkitColumnBreakAfter:
+    case CSSPropertyWebkitColumnBreakBefore:
+    case CSSPropertyWebkitColumnBreakInside:
 #if ENABLE(CSS_REGIONS)
-        case CSSPropertyWebkitRegionBreakAfter:
-        case CSSPropertyWebkitRegionBreakBefore:
-        case CSSPropertyWebkitRegionBreakInside:
+    case CSSPropertyWebkitRegionBreakAfter:
+    case CSSPropertyWebkitRegionBreakBefore:
+    case CSSPropertyWebkitRegionBreakInside:
 #endif
-            return true;
-        default:
-            break;
+        return true;
+    default:
+        break;
     }
     
     return CSSParserFastPaths::isKeywordPropertyID(propertyID);

Modified: trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp (209319 => 209320)


--- trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp	2016-12-05 17:28:23 UTC (rev 209319)
+++ trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp	2016-12-05 17:35:44 UTC (rev 209320)
@@ -862,9 +862,6 @@
     case CSSPropertyOverflowWrap:
     case CSSPropertyOverflowX:
     case CSSPropertyOverflowY:
-    case CSSPropertyPageBreakAfter:
-    case CSSPropertyPageBreakBefore:
-    case CSSPropertyPageBreakInside:
     case CSSPropertyPointerEvents:
     case CSSPropertyPosition:
     case CSSPropertyResize:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to