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

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

Issue 2100013002: Implement the new text-size-adjust CSS property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update virtual expectation, minor cleanup. Created 4 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 8c75e18187bde16ebd69f20fe887d36019399b9f..846794602022d074be64f05839655c084cc3ca2f 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -763,6 +763,8 @@ public:
EBreak breakBefore() const { return static_cast<EBreak>(noninherited_flags.breakBefore); }
EBreak breakInside() const { return static_cast<EBreak>(noninherited_flags.breakInside); }
+ TextSizeAdjust getTextSizeAdjust() const { return rareInheritedData->m_textSizeAdjust; }
+
// CSS3 Getter Methods
int outlineOffset() const
@@ -1318,6 +1320,8 @@ public:
void setBreakBefore(EBreak b) { ASSERT(b <= BreakValueLastAllowedForBreakAfterAndBefore); noninherited_flags.breakBefore = b; }
void setBreakInside(EBreak b) { ASSERT(b <= BreakValueLastAllowedForBreakInside); noninherited_flags.breakInside = b; }
+ void setTextSizeAdjust(TextSizeAdjust sizeAdjust) { SET_VAR(rareInheritedData, m_textSizeAdjust, sizeAdjust); }
+
// CSS3 Setters
void setOutlineOffset(int v) { SET_VAR(m_background, m_outline.m_offset, v); }
void setTextShadow(PassRefPtr<ShadowList>);
@@ -1848,6 +1852,8 @@ public:
static TabSize initialTabSize() { return TabSize(8); }
+ static TextSizeAdjust initialTextSizeAdjust() { return TextSizeAdjust::adjustAuto(); }
+
static WrapFlow initialWrapFlow() { return WrapFlowAuto; }
static WrapThrough initialWrapThrough() { return WrapThroughWrap; }

Powered by Google App Engine
This is Rietveld 408576698