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

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

Issue 2786883002: Generate subgroup StyleSurroundData in ComputedStyle. (Closed)
Patch Set: Rebase Created 3 years, 8 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 0b147d6ef6e0220dd2e0d17720f31245bc398219..bd3fea5a90992b5a8bee0e59a911f7c1e7aaadfa 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -52,7 +52,6 @@
#include "core/style/StyleRareNonInheritedData.h"
#include "core/style/StyleReflection.h"
#include "core/style/StyleSelfAlignmentData.h"
-#include "core/style/StyleSurroundData.h"
#include "core/style/StyleTransformData.h"
#include "core/style/StyleVisualData.h"
#include "core/style/StyleWillChangeData.h"
@@ -118,7 +117,6 @@ using std::max;
class FilterOperations;
class AppliedTextDecoration;
-class BorderData;
struct BorderEdge;
class CSSAnimationData;
class CSSTransitionData;
@@ -188,7 +186,6 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
DataRef<StyleBoxData> m_box;
DataRef<StyleVisualData> m_visual;
DataRef<StyleBackgroundData> m_background;
- DataRef<StyleSurroundData> m_surround;
DataRef<StyleRareNonInheritedData> m_rareNonInheritedData;
// inherited attributes
@@ -643,22 +640,6 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
// Offset properties.
static Length initialOffset() { return Length(); }
- // left
- const Length& left() const { return m_surround->m_left; }
- void setLeft(const Length& v) { SET_VAR(m_surround, m_left, v); }
-
- // right
- const Length& right() const { return m_surround->m_right; }
- void setRight(const Length& v) { SET_VAR(m_surround, m_right, v); }
-
- // top
- const Length& top() const { return m_surround->m_top; }
- void setTop(const Length& v) { SET_VAR(m_surround, m_top, v); }
-
- // bottom
- const Length& bottom() const { return m_surround->m_bottom; }
- void setBottom(const Length& v) { SET_VAR(m_surround, m_bottom, v); }
-
// box-shadow (aka -webkit-box-shadow)
static ShadowList* initialBoxShadow() { return 0; }
ShadowList* boxShadow() const {

Powered by Google App Engine
This is Rietveld 408576698