Title: [290943] branches/safari-613-branch/Source/WebCore
- Revision
- 290943
- Author
- [email protected]
- Date
- 2022-03-07 14:10:43 -0800 (Mon, 07 Mar 2022)
Log Message
Cherry-pick r290560. rdar://problem/89526227
Use hasAttributeWithoutSynchronisation for checking inert attribute in Adjuster::adjust
https://bugs.webkit.org/show_bug.cgi?id=237248
Reviewed by Dean Jackson.
hasAttributeWithoutSynchronisation should be slightly faster than hasAttribute.
* style/StyleAdjuster.cpp:
(WebCore::Style::Adjuster::adjust const):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-613-branch/Source/WebCore/ChangeLog (290942 => 290943)
--- branches/safari-613-branch/Source/WebCore/ChangeLog 2022-03-07 22:10:40 UTC (rev 290942)
+++ branches/safari-613-branch/Source/WebCore/ChangeLog 2022-03-07 22:10:43 UTC (rev 290943)
@@ -1,5 +1,34 @@
2022-03-07 Russell Epstein <[email protected]>
+ Cherry-pick r290560. rdar://problem/89526227
+
+ Use hasAttributeWithoutSynchronisation for checking inert attribute in Adjuster::adjust
+ https://bugs.webkit.org/show_bug.cgi?id=237248
+
+ Reviewed by Dean Jackson.
+
+ hasAttributeWithoutSynchronisation should be slightly faster than hasAttribute.
+
+ * style/StyleAdjuster.cpp:
+ (WebCore::Style::Adjuster::adjust const):
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2022-02-27 Tim Nguyen <[email protected]>
+
+ Use hasAttributeWithoutSynchronisation for checking inert attribute in Adjuster::adjust
+ https://bugs.webkit.org/show_bug.cgi?id=237248
+
+ Reviewed by Dean Jackson.
+
+ hasAttributeWithoutSynchronisation should be slightly faster than hasAttribute.
+
+ * style/StyleAdjuster.cpp:
+ (WebCore::Style::Adjuster::adjust const):
+
+2022-03-07 Russell Epstein <[email protected]>
+
Cherry-pick r290559. rdar://problem/89510628
Optimize StyleSharingResolver inert checks
Modified: branches/safari-613-branch/Source/WebCore/style/StyleAdjuster.cpp (290942 => 290943)
--- branches/safari-613-branch/Source/WebCore/style/StyleAdjuster.cpp 2022-03-07 22:10:40 UTC (rev 290942)
+++ branches/safari-613-branch/Source/WebCore/style/StyleAdjuster.cpp 2022-03-07 22:10:43 UTC (rev 290943)
@@ -528,7 +528,7 @@
// Counterparts in Element::addToTopLayer/removeFromTopLayer & SharingResolver::canShareStyleWithElement need to match!
auto hasInertAttribute = [this] (const Element* element) -> bool {
- return m_document.settings().inertAttributeEnabled() && is<HTMLElement>(element) && element->hasAttribute(HTMLNames::inertAttr);
+ return m_document.settings().inertAttributeEnabled() && is<HTMLElement>(element) && element->hasAttributeWithoutSynchronization(HTMLNames::inertAttr);
};
auto isInertSubtreeRoot = [this, hasInertAttribute] (const Element* element) -> bool {
if (m_document.activeModalDialog() && element == m_document.documentElement())
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes