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

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 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..4857250c5290aba686022f84c18baf0b522f5483 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 &&
@@ -256,7 +258,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 +314,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 +1769,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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698