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

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

Issue 2707083002: Remove the text blob cache (Closed)
Patch Set: 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 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"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const LayoutPoint& boxOrigin, 51 const LayoutPoint& boxOrigin,
52 const DocumentMarker&, 52 const DocumentMarker&,
53 const ComputedStyle&, 53 const ComputedStyle&,
54 const Font&); 54 const Font&);
55 void paintTextMatchMarkerBackground(const PaintInfo&, 55 void paintTextMatchMarkerBackground(const PaintInfo&,
56 const LayoutPoint& boxOrigin, 56 const LayoutPoint& boxOrigin,
57 const DocumentMarker&, 57 const DocumentMarker&,
58 const ComputedStyle&, 58 const ComputedStyle&,
59 const Font&); 59 const Font&);
60 60
61 static void removeFromTextBlobCache(const InlineTextBox&);
62 static bool paintsMarkerHighlights(const LayoutObject&); 61 static bool paintsMarkerHighlights(const LayoutObject&);
63 62
64 private: 63 private:
65 enum class PaintOptions { Normal, CombinedText }; 64 enum class PaintOptions { Normal, CombinedText };
66 65
67 void paintCompositionBackgrounds(GraphicsContext&, 66 void paintCompositionBackgrounds(GraphicsContext&,
68 const LayoutPoint& boxOrigin, 67 const LayoutPoint& boxOrigin,
69 const ComputedStyle&, 68 const ComputedStyle&,
70 const Font&, 69 const Font&,
71 bool useCustomUnderlines); 70 bool useCustomUnderlines);
(...skipping 23 matching lines...) Expand all
95 bool shouldPaintTextBox(const PaintInfo&); 94 bool shouldPaintTextBox(const PaintInfo&);
96 void expandToIncludeNewlineForSelection(LayoutRect&); 95 void expandToIncludeNewlineForSelection(LayoutRect&);
97 LayoutObject& inlineLayoutObject() const; 96 LayoutObject& inlineLayoutObject() const;
98 97
99 const InlineTextBox& m_inlineTextBox; 98 const InlineTextBox& m_inlineTextBox;
100 }; 99 };
101 100
102 } // namespace blink 101 } // namespace blink
103 102
104 #endif // InlineTextBoxPainter_h 103 #endif // InlineTextBoxPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698