Title: [226721] trunk/Source/WebCore
Revision
226721
Author
[email protected]
Date
2018-01-10 10:19:37 -0800 (Wed, 10 Jan 2018)

Log Message

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 sheet base URL and document URL are identical.
This is true for inline style and inline stylesheets.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (226720 => 226721)


--- trunk/Source/WebCore/ChangeLog	2018-01-10 17:51:45 UTC (rev 226720)
+++ trunk/Source/WebCore/ChangeLog	2018-01-10 18:19:37 UTC (rev 226721)
@@ -1,5 +1,19 @@
 2018-01-10  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 sheet base URL and document URL are identical.
+        This is true for inline style and inline stylesheets.
+
+2018-01-10  Antti Koivisto  <[email protected]>
+
         Try to fix windows build.
 
         * css/RuleFeature.cpp:

Modified: trunk/Source/WebCore/css/parser/CSSParser.cpp (226720 => 226721)


--- trunk/Source/WebCore/css/parser/CSSParser.cpp	2018-01-10 17:51:45 UTC (rev 226720)
+++ trunk/Source/WebCore/css/parser/CSSParser.cpp	2018-01-10 18:19:37 UTC (rev 226721)
@@ -78,7 +78,7 @@
     , mode(document.inQuirksMode() ? HTMLQuirksMode : HTMLStandardMode)
     , isHTMLDocument(document.isHTMLDocument())
     , cssGridLayoutEnabled(document.isCSSGridLayoutEnabled())
-    , hasDocumentSecurityOrigin(document.securityOrigin().canRequest(baseURL))
+    , hasDocumentSecurityOrigin(document.baseURL() == baseURL || document.securityOrigin().canRequest(baseURL))
 {
     needsSiteSpecificQuirks = document.settings().needsSiteSpecificQuirks();
     enforcesCSSMIMETypeInNoQuirksMode = document.settings().enforceCSSMIMETypeInNoQuirksMode();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to