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

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

Issue 2841353002: Split initial methods of (/max/min)(width/height) on ComputedStyle. (Closed)
Patch Set: gco rename-style-box && gut 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 221444d69c8ce5ad0b0c6ca7ba2efdf2f60a16a8..0f7c517faeeaefa11de677b00050ac85c2086760 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1013,31 +1013,34 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
}
// Width/height properties.
- static Length InitialSize() { return Length(); }
- static Length InitialMaxSize() { return Length(kMaxSizeNone); }
- static Length InitialMinSize() { return Length(); }
// width
+ static Length InitialWidth() { return Length(); }
const Length& Width() const { return box_data_->Width(); }
void SetWidth(const Length& v) { SET_VAR(box_data_, width_, v); }
// height
+ static Length InitialHeight() { return Length(); }
const Length& Height() const { return box_data_->Height(); }
void SetHeight(const Length& v) { SET_VAR(box_data_, height_, v); }
// max-width
+ static Length InitialMaxWidth() { return Length(kMaxSizeNone); }
const Length& MaxWidth() const { return box_data_->MaxWidth(); }
void SetMaxWidth(const Length& v) { SET_VAR(box_data_, max_width_, v); }
// max-height
+ static Length InitialMaxHeight() { return Length(kMaxSizeNone); }
const Length& MaxHeight() const { return box_data_->MaxHeight(); }
void SetMaxHeight(const Length& v) { SET_VAR(box_data_, max_height_, v); }
// min-width
+ static Length InitialMinWidth() { return Length(); }
const Length& MinWidth() const { return box_data_->MinWidth(); }
void SetMinWidth(const Length& v) { SET_VAR(box_data_, min_width_, v); }
// min-height
+ static Length InitialMinHeight() { return Length(); }
const Length& MinHeight() const { return box_data_->MinHeight(); }
void SetMinHeight(const Length& v) { SET_VAR(box_data_, min_height_, v); }
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/style/StyleBoxData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698