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

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

Issue 2497963002: Add support for multiple text decorations with same line positioning (Closed)
Patch Set: Update slimming paint expectations Created 4 years, 1 month 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef InlineTextBoxPainter_h 5 #ifndef InlineTextBoxPainter_h
6 #define InlineTextBoxPainter_h 6 #define InlineTextBoxPainter_h
7 7
8 #include "core/style/ComputedStyleConstants.h" 8 #include "core/style/ComputedStyleConstants.h"
9 #include "platform/geometry/LayoutRect.h" 9 #include "platform/geometry/LayoutRect.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 struct PaintInfo; 14 struct PaintInfo;
15 15
16 class AppliedTextDecoration;
16 class Color; 17 class Color;
17 class CompositionUnderline; 18 class CompositionUnderline;
18 class ComputedStyle; 19 class ComputedStyle;
19 class DocumentMarker; 20 class DocumentMarker;
20 class Font; 21 class Font;
21 class GraphicsContext; 22 class GraphicsContext;
22 class InlineTextBox; 23 class InlineTextBox;
23 class LayoutObject; 24 class LayoutObject;
24 class LayoutPoint; 25 class LayoutPoint;
25 class LayoutTextCombine; 26 class LayoutTextCombine;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 Color backgroundColor, 75 Color backgroundColor,
75 int startPos, 76 int startPos,
76 int endPos); 77 int endPos);
77 template <PaintOptions> 78 template <PaintOptions>
78 void paintSelection(GraphicsContext&, 79 void paintSelection(GraphicsContext&,
79 const LayoutRect& boxRect, 80 const LayoutRect& boxRect,
80 const ComputedStyle&, 81 const ComputedStyle&,
81 const Font&, 82 const Font&,
82 Color textColor, 83 Color textColor,
83 LayoutTextCombine* = nullptr); 84 LayoutTextCombine* = nullptr);
84 void paintDecoration(const PaintInfo&, 85 void paintDecorations(const PaintInfo&,
85 const LayoutPoint& boxOrigin, 86 const LayoutPoint& boxOrigin,
86 TextDecoration); 87 const Vector<AppliedTextDecoration>&);
87 void paintCompositionUnderline(GraphicsContext&, 88 void paintCompositionUnderline(GraphicsContext&,
88 const LayoutPoint& boxOrigin, 89 const LayoutPoint& boxOrigin,
89 const CompositionUnderline&); 90 const CompositionUnderline&);
90 unsigned underlinePaintStart(const CompositionUnderline&); 91 unsigned underlinePaintStart(const CompositionUnderline&);
91 unsigned underlinePaintEnd(const CompositionUnderline&); 92 unsigned underlinePaintEnd(const CompositionUnderline&);
92 bool shouldPaintTextBox(const PaintInfo&); 93 bool shouldPaintTextBox(const PaintInfo&);
93 void expandToIncludeNewlineForSelection(LayoutRect&); 94 void expandToIncludeNewlineForSelection(LayoutRect&);
94 LayoutObject& inlineLayoutObject() const; 95 LayoutObject& inlineLayoutObject() const;
95 96
96 const InlineTextBox& m_inlineTextBox; 97 const InlineTextBox& m_inlineTextBox;
97 }; 98 };
98 99
99 } // namespace blink 100 } // namespace blink
100 101
101 #endif // InlineTextBoxPainter_h 102 #endif // InlineTextBoxPainter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698