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

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

Issue 2815033002: Split initial methods of left/right/top/bottom on ComputedStyle. (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1253de4ff87bc35d97e11ae3af313f75d501084b..62d155bafe5933742dd5d33d20cd5dba215d6df1 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -596,21 +596,23 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
}
// Offset properties.
- static Length InitialOffset() { return Length(); }
-
// left
+ static Length InitialLeft() { return Length(); }
const Length& Left() const { return surround_->left_; }
void SetLeft(const Length& v) { SET_VAR(surround_, left_, v); }
// right
+ static Length InitialRight() { return Length(); }
const Length& Right() const { return surround_->right_; }
void SetRight(const Length& v) { SET_VAR(surround_, right_, v); }
// top
+ static Length InitialTop() { return Length(); }
const Length& Top() const { return surround_->top_; }
void SetTop(const Length& v) { SET_VAR(surround_, top_, v); }
// bottom
+ static Length InitialBottom() { return Length(); }
const Length& Bottom() const { return surround_->bottom_; }
void SetBottom(const Length& v) { SET_VAR(surround_, bottom_, v); }
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698