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

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

Issue 2299213003: Fix the inconsistent problem while the content of textNodes is changed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 1. change 'FingerPrint' to 'Fingerprint' 2. remove const from BlockSet 3. change 'textAutosizingNew… 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
Index: third_party/WebKit/Source/core/style/StyleInheritedData.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleInheritedData.cpp b/third_party/WebKit/Source/core/style/StyleInheritedData.cpp
index 9d10ce7235464ad3077497c4fb2f461764050f6c..7c4ffcb0d50fb9273dffa635a652c16a5a4864a1 100644
--- a/third_party/WebKit/Source/core/style/StyleInheritedData.cpp
+++ b/third_party/WebKit/Source/core/style/StyleInheritedData.cpp
@@ -32,7 +32,8 @@ StyleInheritedData::StyleInheritedData()
line_height(ComputedStyle::initialLineHeight()),
color(ComputedStyle::initialColor()),
visitedLinkColor(ComputedStyle::initialColor()),
- textAutosizingMultiplier(1) {}
+ textAutosizingMultiplier(1),
+ textAutosizingFingerprint(0) {}
StyleInheritedData::~StyleInheritedData() {}
@@ -44,14 +45,16 @@ StyleInheritedData::StyleInheritedData(const StyleInheritedData& o)
font(o.font),
color(o.color),
visitedLinkColor(o.visitedLinkColor),
- textAutosizingMultiplier(o.textAutosizingMultiplier) {}
+ textAutosizingMultiplier(o.textAutosizingMultiplier),
+ textAutosizingFingerprint(o.textAutosizingFingerprint) {}
bool StyleInheritedData::operator==(const StyleInheritedData& o) const {
return line_height == o.line_height && font == o.font && color == o.color &&
visitedLinkColor == o.visitedLinkColor &&
horizontal_border_spacing == o.horizontal_border_spacing &&
textAutosizingMultiplier == o.textAutosizingMultiplier &&
- vertical_border_spacing == o.vertical_border_spacing;
+ vertical_border_spacing == o.vertical_border_spacing &&
+ textAutosizingFingerprint == o.textAutosizingFingerprint;
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698