| Index: Source/platform/text/TextRun.h
|
| diff --git a/Source/platform/text/TextRun.h b/Source/platform/text/TextRun.h
|
| index 4bac69429a4074df44ba494e1c26f6bd3871edf7..b1b13e0be8e77fee33539369b99d6a569d8611bb 100644
|
| --- a/Source/platform/text/TextRun.h
|
| +++ b/Source/platform/text/TextRun.h
|
| @@ -27,11 +27,14 @@
|
| #include "platform/PlatformExport.h"
|
| #include "platform/fonts/Glyph.h"
|
| #include "platform/geometry/FloatRect.h"
|
| +#include "platform/heap/Heap.h"
|
| #include "platform/text/TextDirection.h"
|
| #include "platform/text/TextPath.h"
|
| #include "wtf/RefCounted.h"
|
| #include "wtf/text/WTFString.h"
|
|
|
| +class SkTextBlob;
|
| +
|
| namespace blink {
|
|
|
| class FloatPoint;
|
| @@ -257,10 +260,13 @@ inline void TextRun::setTabSize(bool allow, unsigned size)
|
|
|
| // Container for parameters needed to paint TextRun.
|
| struct TextRunPaintInfo {
|
| + STACK_ALLOCATED();
|
| +public:
|
| explicit TextRunPaintInfo(const TextRun& r)
|
| : run(r)
|
| , from(0)
|
| , to(r.length())
|
| + , cachedTextBlob(nullptr)
|
| {
|
| }
|
|
|
| @@ -268,6 +274,7 @@ struct TextRunPaintInfo {
|
| int from;
|
| int to;
|
| FloatRect bounds;
|
| + RefPtr<const SkTextBlob>* cachedTextBlob;
|
| };
|
|
|
| }
|
|
|