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

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

Issue 2950743002: Revert of Generate enum/getters/setters/mappings for flex-direction (Closed)
Patch Set: Created 3 years, 6 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 0a47536b1f24e4481fee6db3925bfbcd5ce24701..5984e27ec4e7fb927ddc9b6f0afdccaa995c0178 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -739,6 +739,17 @@
length);
}
+ // flex-direction (aka -webkit-flex-direction)
+ static EFlexDirection InitialFlexDirection() { return EFlexDirection::kRow; }
+ EFlexDirection FlexDirection() const {
+ return static_cast<EFlexDirection>(
+ rare_non_inherited_data_->flexible_box_data_->flex_direction_);
+ }
+ void SetFlexDirection(EFlexDirection direction) {
+ SET_NESTED_VAR(rare_non_inherited_data_, flexible_box_data_,
+ flex_direction_, static_cast<unsigned>(direction));
+ }
+
// flex-grow (aka -webkit-flex-grow)
static float InitialFlexGrow() { return 0; }
float FlexGrow() const {
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | third_party/WebKit/Source/core/style/ComputedStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698