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

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

Issue 2365263002: Added isComputedStyle::isDisplayTableType() and made it static (Closed)
Patch Set: Created 4 years, 3 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
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 fca60578af7bb40c36feca861b0921ec36f826e8..41cce8b39562275ee51fa60ed2735da35cb0a21a 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -715,7 +715,7 @@ bool ComputedStyle::diffNeedsFullLayoutAndPaintInvalidation(const ComputedStyle&
|| m_nonInheritedData.m_originalDisplay != other.m_nonInheritedData.m_originalDisplay)
return true;
- if (m_nonInheritedData.m_effectiveDisplay >= FIRST_TABLE_DISPLAY && m_nonInheritedData.m_effectiveDisplay <= LAST_TABLE_DISPLAY) {
+ if (isDisplayTableType(display())) {
if (m_inheritedData.m_borderCollapse != other.m_inheritedData.m_borderCollapse
|| m_inheritedData.m_emptyCells != other.m_inheritedData.m_emptyCells
|| m_inheritedData.m_captionSide != other.m_inheritedData.m_captionSide

Powered by Google App Engine
This is Rietveld 408576698