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

Side by Side Diff: third_party/WebKit/Source/core/paint/NGTextFragmentPainter.h

Issue 2842983002: [LayoutNG] Paint inlines from the fragment tree
Patch Set: Rebase w/HEAD 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698