Title: [227178] branches/safari-605-branch/Source/WebCore
Revision
227178
Author
[email protected]
Date
2018-01-18 19:45:22 -0800 (Thu, 18 Jan 2018)

Log Message

Cherry-pick r227147. rdar://problem/36429159

Modified Paths

Diff

Modified: branches/safari-605-branch/Source/WebCore/ChangeLog (227177 => 227178)


--- branches/safari-605-branch/Source/WebCore/ChangeLog	2018-01-19 03:21:21 UTC (rev 227177)
+++ branches/safari-605-branch/Source/WebCore/ChangeLog	2018-01-19 03:45:22 UTC (rev 227178)
@@ -1,3 +1,21 @@
+2018-01-18  Jason Marcell  <[email protected]>
+
+        Cherry-pick r227147. rdar://problem/36429159
+
+    2018-01-18  Antti Koivisto  <[email protected]>
+
+            REGRESSION(r225650): The scores of MotionMark tests Multiply and Leaves dropped by 8%
+            https://bugs.webkit.org/show_bug.cgi?id=181460
+            <rdar://problem/36379776>
+
+            Reviewed by Ryosuke Niwa.
+
+            * css/parser/CSSParser.cpp:
+            (WebCore::CSSParserContext::CSSParserContext):
+
+            Don't do the expensive security origin test if the supplied sheet base URL is null. This
+            is true for rules coming from the same document.
+
 2018-01-17  Jason Marcell  <[email protected]>
 
         Cherry-pick r227121. rdar://problem/36609529

Modified: branches/safari-605-branch/Source/WebCore/css/parser/CSSParser.cpp (227177 => 227178)


--- branches/safari-605-branch/Source/WebCore/css/parser/CSSParser.cpp	2018-01-19 03:21:21 UTC (rev 227177)
+++ branches/safari-605-branch/Source/WebCore/css/parser/CSSParser.cpp	2018-01-19 03:45:22 UTC (rev 227178)
@@ -78,8 +78,9 @@
     , mode(document.inQuirksMode() ? HTMLQuirksMode : HTMLStandardMode)
     , isHTMLDocument(document.isHTMLDocument())
     , cssGridLayoutEnabled(document.isCSSGridLayoutEnabled())
-    , hasDocumentSecurityOrigin(document.securityOrigin().canRequest(baseURL))
+    , hasDocumentSecurityOrigin(sheetBaseURL.isNull() || document.securityOrigin().canRequest(baseURL))
 {
+    
     needsSiteSpecificQuirks = document.settings().needsSiteSpecificQuirks();
     enforcesCSSMIMETypeInNoQuirksMode = document.settings().enforceCSSMIMETypeInNoQuirksMode();
     useLegacyBackgroundSizeShorthandBehavior = document.settings().useLegacyBackgroundSizeShorthandBehavior();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to