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

Unified Diff: Source/platform/text/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: use const parameter Created 6 years, 8 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
« no previous file with comments | « Source/platform/fonts/mac/ComplexTextController.cpp ('k') | Source/platform/text/TextRun.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/text/TextRun.h
diff --git a/Source/platform/text/TextRun.h b/Source/platform/text/TextRun.h
index df59f33ee7415fee5fc21c29a24ed394db43f3e8..8eca85b91dd6c042813ef9143334cc5f5d78d688 100644
--- a/Source/platform/text/TextRun.h
+++ b/Source/platform/text/TextRun.h
@@ -77,6 +77,7 @@ public:
, m_applyRunRounding((roundingHacks & RunRounding) && s_allowsRoundingHacks)
, m_applyWordRounding((roundingHacks & WordRounding) && s_allowsRoundingHacks)
, m_disableSpacing(false)
+ , m_distributeJustification(false)
, m_tabSize(0)
{
m_data.characters8 = c;
@@ -97,6 +98,7 @@ public:
, m_applyRunRounding((roundingHacks & RunRounding) && s_allowsRoundingHacks)
, m_applyWordRounding((roundingHacks & WordRounding) && s_allowsRoundingHacks)
, m_disableSpacing(false)
+ , m_distributeJustification(false)
, m_tabSize(0)
{
m_data.characters16 = c;
@@ -116,6 +118,7 @@ public:
, m_applyRunRounding((roundingHacks & RunRounding) && s_allowsRoundingHacks)
, m_applyWordRounding((roundingHacks & WordRounding) && s_allowsRoundingHacks)
, m_disableSpacing(false)
+ , m_distributeJustification(false)
, m_tabSize(0)
{
if (!m_charactersLength) {
@@ -144,6 +147,7 @@ public:
, m_applyRunRounding((roundingHacks & RunRounding) && s_allowsRoundingHacks)
, m_applyWordRounding((roundingHacks & WordRounding) && s_allowsRoundingHacks)
, m_disableSpacing(false)
+ , m_distributeJustification(false)
, m_tabSize(0)
{
if (!m_charactersLength) {
@@ -198,6 +202,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); }
@@ -256,6 +262,7 @@ private:
unsigned m_applyRunRounding : 1;
unsigned m_applyWordRounding : 1;
unsigned m_disableSpacing : 1;
+ unsigned m_distributeJustification : 1;
unsigned m_tabSize;
RefPtr<RenderingContext> m_renderingContext;
};
« no previous file with comments | « Source/platform/fonts/mac/ComplexTextController.cpp ('k') | Source/platform/text/TextRun.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698