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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.h

Issue 2875933006: [LayoutNG] Misc fixes in ShapingLineBreaker (Closed)
Patch Set: eae review + RTL snapping fixes Created 3 years, 7 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/platform/fonts/shaping/ShapeResult.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.h b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.h
index b6923ef937d9907360a26a68e6d34b09bb4c0b3f..2aa13672ba40c7806033a42eed70efd225d9cf06 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.h
@@ -68,6 +68,9 @@ class PLATFORM_EXPORT ShapeResult : public RefCounted<ShapeResult> {
LayoutUnit SnappedWidth() const { return LayoutUnit::FromFloatCeil(width_); }
const FloatRect& Bounds() const { return glyph_bounding_box_; }
unsigned NumCharacters() const { return num_characters_; }
+ // The character start/end index of a range shape result.
+ unsigned StartIndexForResult() const;
+ unsigned EndIndexForResult() const;
void FallbackFonts(HashSet<const SimpleFontData*>*) const;
TextDirection Direction() const {
return static_cast<TextDirection>(direction_);

Powered by Google App Engine
This is Rietveld 408576698