OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NGTextFragmentPainter_h |
| 6 #define NGTextFragmentPainter_h |
| 7 |
| 8 #include "core/style/ComputedStyleConstants.h" |
| 9 #include "platform/geometry/LayoutRect.h" |
| 10 #include "platform/wtf/Allocator.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 struct PaintInfo; |
| 15 |
| 16 class LayoutPoint; |
| 17 class Document; |
| 18 class NGPhysicalTextFragment; |
| 19 |
| 20 class NGTextFragmentPainter { |
| 21 STACK_ALLOCATED(); |
| 22 |
| 23 public: |
| 24 NGTextFragmentPainter(const NGPhysicalTextFragment* text_fragment) |
| 25 : text_fragment_(text_fragment) {} |
| 26 |
| 27 void Paint(const Document&, const PaintInfo&, const LayoutPoint&); |
| 28 |
| 29 private: |
| 30 const NGPhysicalTextFragment* text_fragment_; |
| 31 }; |
| 32 |
| 33 } // namespace blink |
| 34 |
| 35 #endif // NGTextFragmentPainter_h |
OLD | NEW |