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

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

Issue 2846153002: Generate getters/setters for (/min/max)(width/height). (Closed)
Patch Set: Rebase Created 3 years, 7 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 e81d8705174f165d651d260be4a120351d78e466..a7af98ab1d02eb7ffc692ca12966bd4336aed3d7 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1007,38 +1007,6 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
lengths);
}
- // Width/height properties.
-
- // 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_->max_width_; }
- 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_->max_height_; }
- 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_->min_width_; }
- 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_->min_height_; }
- void SetMinHeight(const Length& v) { SET_VAR(box_data_, min_height_, v); }
-
// image-orientation
static RespectImageOrientationEnum InitialRespectImageOrientation() {
return kDoNotRespectImageOrientation;
« 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