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

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

Issue 2705143002: Split StyleSurroundData::offset into separate members. (Closed)
Patch Set: Fix typo Created 3 years, 9 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/StyleSurroundData.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleSurroundData.cpp b/third_party/WebKit/Source/core/style/StyleSurroundData.cpp
index 8d25587de7faa4035eb153d38b76f310596afe65..5bdc2afc3861e94360383522c395ebf2328b52e8 100644
--- a/third_party/WebKit/Source/core/style/StyleSurroundData.cpp
+++ b/third_party/WebKit/Source/core/style/StyleSurroundData.cpp
@@ -27,13 +27,17 @@ StyleSurroundData::StyleSurroundData() : margin(Fixed), padding(Fixed) {}
StyleSurroundData::StyleSurroundData(const StyleSurroundData& o)
: RefCounted<StyleSurroundData>(),
- offset(o.offset),
+ m_left(o.m_left),
+ m_right(o.m_right),
+ m_top(o.m_top),
+ m_bottom(o.m_bottom),
margin(o.margin),
padding(o.padding),
border(o.border) {}
bool StyleSurroundData::operator==(const StyleSurroundData& o) const {
- return offset == o.offset && margin == o.margin && padding == o.padding &&
+ return m_left == o.m_left && m_right == o.m_right && m_top == o.m_top &&
+ m_bottom == o.m_bottom && margin == o.margin && padding == o.padding &&
border == o.border;
}
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleSurroundData.h ('k') | third_party/WebKit/Source/platform/LengthBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698