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

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

Issue 2507063010: Moving string normalization out of HarfBuzz (Closed)
Patch Set: Merge w/HEAD Created 4 years, 1 month 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/platform/text/TextRun.h
diff --git a/third_party/WebKit/Source/platform/text/TextRun.h b/third_party/WebKit/Source/platform/text/TextRun.h
index bc0aef1cebd67f623386a6a823b1ee13560ba42f..65bf6dcbef05971a490883f71e49b5b888de0a48 100644
--- a/third_party/WebKit/Source/platform/text/TextRun.h
+++ b/third_party/WebKit/Source/platform/text/TextRun.h
@@ -258,6 +258,11 @@ class PLATFORM_EXPORT TextRun final {
return static_cast<TextJustify>(m_textJustify);
}
+ // Up-converts to UTF-16 as needed and normalizes spaces and Unicode control
+ // characters as per the CSS Text Module Level 3 specification.
+ // https://drafts.csswg.org/css-text-3/#white-space-processing
+ std::unique_ptr<UChar[]> normalizedUTF16(unsigned* resultLength) const;
+
private:
union {
const LChar* characters8;

Powered by Google App Engine
This is Rietveld 408576698