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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2677843002: Change ComputedStyle::setUnique to take bool parameter. (Closed)
Patch Set: Created 3 years, 10 months 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/layout/TextAutosizer.cpp ('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/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 88dd1e295373d6973753301a4e4af167bc12d840..86012dc6f0f45101afe7a6832ac023d687035eb8 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -2548,7 +2548,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
bool emptyState() const { return m_nonInheritedData.m_emptyState; }
void setEmptyState(bool b) {
- setUnique();
+ setUnique(true);
m_nonInheritedData.m_emptyState = b;
}
@@ -2621,7 +2621,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
// A unique style is one that has matches something that makes it impossible
// to share.
bool unique() const { return m_nonInheritedData.m_unique; }
- void setUnique() { m_nonInheritedData.m_unique = true; }
+ void setUnique(bool v) { m_nonInheritedData.m_unique = v; }
float textAutosizingMultiplier() const {
return m_styleInheritedData->textAutosizingMultiplier;
« no previous file with comments | « third_party/WebKit/Source/core/layout/TextAutosizer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698