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

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

Issue 2702853002: [LayoutNG] Shape items with context (Closed)
Patch Set: Add null check Created 3 years, 10 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/ShapeResultBuffer.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.h b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.h
index 6dcb22d7321d233e8e0e0a7334cc6f66f2c34146..6079827a3ff9b0119ee61fe25564c426fe896a2d 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.h
@@ -51,14 +51,20 @@ class PLATFORM_EXPORT ShapeResultBuffer {
Vector<CharacterRange> individualCharacterRanges(TextDirection,
float totalWidth) const;
- static CharacterRange getCharacterRange(
+ static CharacterRange getCharacterRange(RefPtr<const ShapeResult>,
+ TextDirection,
+ float totalWidth,
+ unsigned from,
+ unsigned to);
+
+ private:
+ static CharacterRange getCharacterRangeInternal(
const Vector<RefPtr<const ShapeResult>, 64>&,
TextDirection,
float totalWidth,
unsigned from,
unsigned to);
- private:
float fillFastHorizontalGlyphBuffer(GlyphBuffer*, const TextRun&) const;
template <TextDirection>

Powered by Google App Engine
This is Rietveld 408576698