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

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

Issue 622653002: Force ComplexPath if any part of the node requires it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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/text/TextRun.h
diff --git a/Source/platform/text/TextRun.h b/Source/platform/text/TextRun.h
index daab5b44944d42a558f3a52e62451d87884a75cc..4bac69429a4074df44ba494e1c26f6bd3871edf7 100644
--- a/Source/platform/text/TextRun.h
+++ b/Source/platform/text/TextRun.h
@@ -66,6 +66,7 @@ public:
, m_direction(direction)
, m_directionalOverride(directionalOverride)
, m_characterScanForCodePath(characterScanForCodePath)
+ , m_useComplexCodePath(false)
, m_disableSpacing(false)
, m_tabSize(0)
, m_normalizeSpace(false)
@@ -85,6 +86,7 @@ public:
, m_direction(direction)
, m_directionalOverride(directionalOverride)
, m_characterScanForCodePath(characterScanForCodePath)
+ , m_useComplexCodePath(false)
, m_disableSpacing(false)
, m_tabSize(0)
, m_normalizeSpace(false)
@@ -103,6 +105,7 @@ public:
, m_direction(direction)
, m_directionalOverride(directionalOverride)
, m_characterScanForCodePath(characterScanForCodePath)
+ , m_useComplexCodePath(false)
, m_disableSpacing(false)
, m_tabSize(0)
, m_normalizeSpace(normalizeSpace)
@@ -130,6 +133,7 @@ public:
, m_direction(direction)
, m_directionalOverride(directionalOverride)
, m_characterScanForCodePath(characterScanForCodePath)
+ , m_useComplexCodePath(false)
, m_disableSpacing(false)
, m_tabSize(0)
, m_normalizeSpace(normalizeSpace)
@@ -196,12 +200,14 @@ public:
bool ltr() const { return m_direction == LTR; }
bool directionalOverride() const { return m_directionalOverride; }
bool characterScanForCodePath() const { return m_characterScanForCodePath; }
+ bool useComplexCodePath() const { return m_useComplexCodePath; }
bool spacingDisabled() const { return m_disableSpacing; }
void disableSpacing() { m_disableSpacing = true; }
void setDirection(TextDirection direction) { m_direction = direction; }
void setDirectionalOverride(bool override) { m_directionalOverride = override; }
void setCharacterScanForCodePath(bool scan) { m_characterScanForCodePath = scan; }
+ void setUseComplexCodePath(bool useComplex) { m_useComplexCodePath = useComplex; }
class RenderingContext : public RefCounted<RenderingContext> {
public:
@@ -236,6 +242,7 @@ private:
unsigned m_direction : 1;
unsigned m_directionalOverride : 1; // Was this direction set by an override character.
unsigned m_characterScanForCodePath : 1;
+ unsigned m_useComplexCodePath : 1;
unsigned m_disableSpacing : 1;
unsigned m_tabSize;
bool m_normalizeSpace;

Powered by Google App Engine
This is Rietveld 408576698