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

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

Issue 2825653002: Split initial methods of padding 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..7480fd4538036df93dec189ce8518e38385600cc 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1292,27 +1292,30 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
}
// Padding properties.
- static Length InitialPadding() { return Length(kFixed); }
// padding-bottom
+ static Length InitialPaddingBottom() { return Length(kFixed); }
const Length& PaddingBottom() const { return surround_->padding_.Bottom(); }
void SetPaddingBottom(const Length& v) {
SET_VAR(surround_, padding_.bottom_, v);
}
// padding-left
+ static Length InitialPaddingLeft() { return Length(kFixed); }
const Length& PaddingLeft() const { return surround_->padding_.Left(); }
void SetPaddingLeft(const Length& v) {
SET_VAR(surround_, padding_.left_, v);
}
// padding-right
+ static Length InitialPaddingRight() { return Length(kFixed); }
const Length& PaddingRight() const { return surround_->padding_.Right(); }
void SetPaddingRight(const Length& v) {
SET_VAR(surround_, padding_.right_, v);
}
// padding-top
+ static Length InitialPaddingTop() { return Length(kFixed); }
const Length& PaddingTop() const { return surround_->padding_.Top(); }
void SetPaddingTop(const Length& v) { SET_VAR(surround_, padding_.top_, 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