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

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

Issue 2911873002: Generate methods for text-indent properties in ComputedStyleBase. (Closed)
Patch Set: 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 9823d00a0dcc8a64af401490b4aef5d22413a90f..8f066f6e9ce44043eec601546c572c720c882aef 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1719,33 +1719,6 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
SET_VAR(rare_inherited_data_, text_combine_, v);
}
- // text-indent
- static Length InitialTextIndent() { return Length(kFixed); }
- static TextIndentLine InitialTextIndentLine() {
- return TextIndentLine::kFirstLine;
- }
- static TextIndentType InitialTextIndentType() {
- return TextIndentType::kNormal;
- }
- const Length& TextIndent() const {
- return rare_inherited_data_->text_indent_;
- }
- TextIndentLine GetTextIndentLine() const {
- return static_cast<TextIndentLine>(rare_inherited_data_->text_indent_line_);
- }
- TextIndentType GetTextIndentType() const {
- return static_cast<TextIndentType>(rare_inherited_data_->text_indent_type_);
- }
- void SetTextIndent(const Length& v) {
- SET_VAR(rare_inherited_data_, text_indent_, v);
- }
- void SetTextIndentLine(TextIndentLine v) {
- SET_VAR(rare_inherited_data_, text_indent_line_, static_cast<unsigned>(v));
- }
- void SetTextIndentType(TextIndentType v) {
- SET_VAR(rare_inherited_data_, text_indent_type_, static_cast<unsigned>(v));
- }
-
// text-justify
static TextJustify InitialTextJustify() { return kTextJustifyAuto; }
TextJustify GetTextJustify() const {

Powered by Google App Engine
This is Rietveld 408576698