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

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

Issue 2825663002: Split initial methods of margin on 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
« 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 3697dea24c80315c5e02409cd77631f0e307aae5..2bcea57bb9ddfbc415bda536b99b32775b54646b 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1091,23 +1091,26 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
}
// Margin properties.
- static Length InitialMargin() { return Length(kFixed); }
// margin-top
+ static Length InitialMarginTop() { return Length(kFixed); }
const Length& MarginTop() const { return surround_->margin_.Top(); }
void SetMarginTop(const Length& v) { SET_VAR(surround_, margin_.top_, v); }
// margin-bottom
+ static Length InitialMarginBottom() { return Length(kFixed); }
const Length& MarginBottom() const { return surround_->margin_.Bottom(); }
void SetMarginBottom(const Length& v) {
SET_VAR(surround_, margin_.bottom_, v);
}
// margin-left
+ static Length InitialMarginLeft() { return Length(kFixed); }
const Length& MarginLeft() const { return surround_->margin_.Left(); }
void SetMarginLeft(const Length& v) { SET_VAR(surround_, margin_.left_, v); }
// margin-right
+ static Length InitialMarginRight() { return Length(kFixed); }
const Length& MarginRight() const { return surround_->margin_.Right(); }
void SetMarginRight(const Length& v) {
SET_VAR(surround_, margin_.right_, 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