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

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

Issue 2555423002: Move white-space to be generated in ComputedStyleBase. (Closed)
Patch Set: Created 4 years 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/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index 83931c9d5b6a47d5a9e9f38182809e39d9812006..ecd181f0094347a3fb6440422c66ad2fd4698623 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -237,8 +237,6 @@ void ComputedStyle::propagateIndependentInheritedProperties(
ComputedStyleBase::propagateIndependentInheritedProperties(parentStyle);
if (m_nonInheritedData.m_isPointerEventsInherited)
setPointerEvents(parentStyle.pointerEvents());
- if (m_nonInheritedData.m_isWhiteSpaceInherited)
- setWhiteSpace(parentStyle.whiteSpace());
}
StyleSelfAlignmentData resolvedSelfAlignment(
@@ -424,8 +422,6 @@ void ComputedStyle::copyNonInheritedFromCached(const ComputedStyle& other) {
// that share this style.
m_nonInheritedData.m_isPointerEventsInherited =
other.m_nonInheritedData.m_isPointerEventsInherited;
- m_nonInheritedData.m_isWhiteSpaceInherited =
- other.m_nonInheritedData.m_isWhiteSpaceInherited;
if (m_svgStyle != other.m_svgStyle)
m_svgStyle.access()->copyNonInheritedFromCached(other.m_svgStyle.get());
@@ -823,7 +819,7 @@ bool ComputedStyle::diffNeedsFullLayoutAndPaintInvalidation(
m_inheritedData.m_textAlign != other.m_inheritedData.m_textAlign ||
textTransform() != other.textTransform() ||
m_inheritedData.m_direction != other.m_inheritedData.m_direction ||
- m_inheritedData.m_whiteSpace != other.m_inheritedData.m_whiteSpace ||
+ whiteSpace() != other.whiteSpace() ||
m_inheritedData.m_writingMode != other.m_inheritedData.m_writingMode)
return true;

Powered by Google App Engine
This is Rietveld 408576698