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

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

Issue 2669433002: Moved table-layout property to be generated in ComputedStyleBase. (Closed)
Patch Set: Rebase correctly Created 3 years, 11 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.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 268ca8b66dae17b068b988dbe16943eed50c3223..e7b80e0d73fb3b23ac670d60f3f11ebc25d6907f 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -198,6 +198,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
// inherit
struct InheritedData {
bool operator==(const InheritedData& other) const {
+ // Generated properties are compared in ComputedStyleBase
return (m_hasSimpleUnderline == other.m_hasSimpleUnderline) &&
(m_cursorStyle == other.m_cursorStyle) &&
(m_insideLink == other.m_insideLink);
@@ -220,6 +221,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
// Compare computed styles, differences in inherited bits or other flags
// should not cause an inequality.
bool operator==(const NonInheritedData& other) const {
+ // Generated properties are compared in ComputedStyleBase
return m_effectiveDisplay == other.m_effectiveDisplay &&
m_originalDisplay == other.m_originalDisplay &&
m_overflowAnchor == other.m_overflowAnchor &&
@@ -227,7 +229,6 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
m_overflowY == other.m_overflowY &&
m_verticalAlign == other.m_verticalAlign &&
m_position == other.m_position &&
- m_tableLayout == other.m_tableLayout &&
// hasViewportUnits
m_breakBefore == other.m_breakBefore &&
m_breakAfter == other.m_breakAfter &&
@@ -256,7 +257,6 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
unsigned m_overflowY : 3; // EOverflow
unsigned m_verticalAlign : 4; // EVerticalAlign
unsigned m_position : 3; // EPosition
- unsigned m_tableLayout : 1; // ETableLayout
// This is set if we used viewport units when resolving a length.
// It is mutable so we can pass around const ComputedStyles to resolve
@@ -313,8 +313,6 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
m_nonInheritedData.m_verticalAlign =
static_cast<unsigned>(initialVerticalAlign());
m_nonInheritedData.m_position = initialPosition();
- m_nonInheritedData.m_tableLayout =
- static_cast<unsigned>(initialTableLayout());
m_nonInheritedData.m_breakBefore = initialBreakBefore();
m_nonInheritedData.m_breakAfter = initialBreakAfter();
m_nonInheritedData.m_breakInside = initialBreakInside();
@@ -1770,14 +1768,6 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
void setPageSizeType(PageSizeType t) {
SET_VAR(m_rareNonInheritedData, m_pageSizeType, t);
}
- // table-layout
- static ETableLayout initialTableLayout() { return ETableLayout::kAuto; }
- ETableLayout tableLayout() const {
- return static_cast<ETableLayout>(m_nonInheritedData.m_tableLayout);
- }
- void setTableLayout(ETableLayout v) {
- m_nonInheritedData.m_tableLayout = static_cast<unsigned>(v);
- }
// Text decoration properties.
// text-decoration-line

Powered by Google App Engine
This is Rietveld 408576698