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

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

Issue 2913723002: Generate enum/getters/setters/mappings for text-orientation. (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
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 b93502c9ef0a9272bc002d045a8774fa4d8d3c84..f8fd42d8ab341f0495e54c5bbe5cd7eb9a82ad2b 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1688,14 +1688,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
}
// text-orientation (aka -webkit-text-orientation, -epub-text-orientation)
- static TextOrientation InitialTextOrientation() {
- return TextOrientation::kMixed;
- }
- TextOrientation GetTextOrientation() const {
- return static_cast<TextOrientation>(
- rare_inherited_data_->text_orientation_);
- }
- bool SetTextOrientation(TextOrientation);
+ bool SetTextOrientation(ETextOrientation);
// text-shadow
static ShadowList* InitialTextShadow() { return 0; }
@@ -3604,7 +3597,7 @@ inline bool ComputedStyle::IsSharable() const {
}
inline bool ComputedStyle::SetTextOrientation(
- TextOrientation text_orientation) {
+ ETextOrientation text_orientation) {
if (compareEqual(rare_inherited_data_->text_orientation_,
static_cast<unsigned>(text_orientation)))
return false;

Powered by Google App Engine
This is Rietveld 408576698