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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp

Issue 2875933006: [LayoutNG] Misc fixes in ShapingLineBreaker (Closed)
Patch Set: clang build fix 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/HarfBuzzShaper.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
index 8ceb11b94d29ca01b7c18343d4d8d122891d495e..eed0a47fb84b6976b6bf75031df7ddc88eb7cc35 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
+++ b/third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
@@ -713,6 +713,8 @@ PassRefPtr<ShapeResult> HarfBuzzShaper::Shape(const Font* font,
if (start < segment_range.end && end > segment_range.start)
ShapeSegment(&range_data, segment_range, result.Get());
}
+ DCHECK_EQ(start, result->CharacterStartIndex());
+ DCHECK_EQ(end - start, result->NumCharacters());
return result.Release();
}

Powered by Google App Engine
This is Rietveld 408576698