Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Unified Diff: third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp

Issue 2106073005: Add fast-path for propagated variable changes (WIP) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@+pointer_events_fastpath_5
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleRareInheritedData.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp b/third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp
index 0c272d7016e815f950bc14716460eca8196e8540..41dc4e3a326c07d7626310b14c942917ff1d19e1 100644
--- a/third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp
+++ b/third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp
@@ -174,6 +174,11 @@ StyleRareInheritedData::StyleRareInheritedData(const StyleRareInheritedData& o)
StyleRareInheritedData::~StyleRareInheritedData() {}
bool StyleRareInheritedData::operator==(const StyleRareInheritedData& o) const {
+ return compareEqualVariables(o) && compareEqualNonVariables(o);
+}
+
+bool StyleRareInheritedData::compareEqualNonVariables(
+ const StyleRareInheritedData& o) const {
return m_textStrokeColor == o.m_textStrokeColor &&
textStrokeWidth == o.textStrokeWidth &&
m_textFillColor == o.m_textFillColor &&
@@ -227,10 +232,14 @@ bool StyleRareInheritedData::operator==(const StyleRareInheritedData& o) const {
m_rubyPosition == o.m_rubyPosition &&
dataEquivalent(listStyleImage.get(), o.listStyleImage.get()) &&
dataEquivalent(appliedTextDecorations, o.appliedTextDecorations) &&
- dataEquivalent(variables, o.variables) &&
m_textSizeAdjust == o.m_textSizeAdjust;
}
+bool StyleRareInheritedData::compareEqualVariables(
+ const StyleRareInheritedData& o) const {
+ return dataEquivalent(variables, o.variables);
+}
+
bool StyleRareInheritedData::shadowDataEquivalent(
const StyleRareInheritedData& o) const {
return dataEquivalent(textShadow.get(), o.textShadow.get());
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleRareInheritedData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698