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

Unified Diff: Source/platform/graphics/TextRun.h

Issue 54743004: Rendering text-justify:distribute for 8 bit characters. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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: Source/platform/graphics/TextRun.h
diff --git a/Source/platform/graphics/TextRun.h b/Source/platform/graphics/TextRun.h
index 81657d3b12a370d2e24657a3e2bc5bcf73d9f91c..a3029a9db195c6ad9906b57d8937afeb64122866 100644
--- a/Source/platform/graphics/TextRun.h
+++ b/Source/platform/graphics/TextRun.h
@@ -196,6 +196,8 @@ public:
float xPos() const { return m_xpos; }
void setXPos(float xPos) { m_xpos = xPos; }
float expansion() const { return m_expansion; }
+ bool isDistributeJustification() const { return m_distributeJustification; }
+ void setDistributeJustification(bool distributeJustification) { m_distributeJustification = distributeJustification; }
bool allowsLeadingExpansion() const { return m_expansionBehavior & AllowLeadingExpansion; }
bool allowsTrailingExpansion() const { return m_expansionBehavior & AllowTrailingExpansion; }
TextDirection direction() const { return static_cast<TextDirection>(m_direction); }
@@ -245,6 +247,7 @@ private:
float m_horizontalGlyphStretch;
float m_expansion;
+ bool m_distributeJustification;
leviw_travelin_and_unemployed 2013/11/01 20:39:14 Pack this along with the other bits below, otherwi
dw.im 2013/11/02 03:13:01 will do like this. + unsigned m_distributeJustific
dw.im 2013/11/04 02:11:09 Done.. as bool m_distributeJustification : 1;
ExpansionBehavior m_expansionBehavior : 2;
unsigned m_is8Bit : 1;
unsigned m_allowTabs : 1;

Powered by Google App Engine
This is Rietveld 408576698