| OLD | NEW |
| 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 25 matching lines...) Expand all Loading... |
| 36 : m_inlineTextBox(inlineTextBox) {} | 36 : m_inlineTextBox(inlineTextBox) {} |
| 37 | 37 |
| 38 void paint(const PaintInfo&, const LayoutPoint&); | 38 void paint(const PaintInfo&, const LayoutPoint&); |
| 39 void paintDocumentMarkers(const PaintInfo&, | 39 void paintDocumentMarkers(const PaintInfo&, |
| 40 const LayoutPoint& boxOrigin, | 40 const LayoutPoint& boxOrigin, |
| 41 const ComputedStyle&, | 41 const ComputedStyle&, |
| 42 const Font&, | 42 const Font&, |
| 43 DocumentMarkerPaintPhase); | 43 DocumentMarkerPaintPhase); |
| 44 void paintDocumentMarker(GraphicsContext&, | 44 void paintDocumentMarker(GraphicsContext&, |
| 45 const LayoutPoint& boxOrigin, | 45 const LayoutPoint& boxOrigin, |
| 46 DocumentMarker*, | 46 const DocumentMarker&, |
| 47 const ComputedStyle&, | 47 const ComputedStyle&, |
| 48 const Font&, | 48 const Font&, |
| 49 bool grammar); | 49 bool grammar); |
| 50 void paintTextMatchMarkerForeground(const PaintInfo&, | 50 void paintTextMatchMarkerForeground(const PaintInfo&, |
| 51 const LayoutPoint& boxOrigin, | 51 const LayoutPoint& boxOrigin, |
| 52 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 DocumentMarker*, | 57 const DocumentMarker&, |
| 58 const ComputedStyle&, | 58 const ComputedStyle&, |
| 59 const Font&); | 59 const Font&); |
| 60 | 60 |
| 61 static void removeFromTextBlobCache(const InlineTextBox&); | 61 static void removeFromTextBlobCache(const InlineTextBox&); |
| 62 static bool paintsMarkerHighlights(const LayoutObject&); | 62 static bool paintsMarkerHighlights(const LayoutObject&); |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 enum class PaintOptions { Normal, CombinedText }; | 65 enum class PaintOptions { Normal, CombinedText }; |
| 66 | 66 |
| 67 void paintCompositionBackgrounds(GraphicsContext&, | 67 void paintCompositionBackgrounds(GraphicsContext&, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 95 bool shouldPaintTextBox(const PaintInfo&); | 95 bool shouldPaintTextBox(const PaintInfo&); |
| 96 void expandToIncludeNewlineForSelection(LayoutRect&); | 96 void expandToIncludeNewlineForSelection(LayoutRect&); |
| 97 LayoutObject& inlineLayoutObject() const; | 97 LayoutObject& inlineLayoutObject() const; |
| 98 | 98 |
| 99 const InlineTextBox& m_inlineTextBox; | 99 const InlineTextBox& m_inlineTextBox; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace blink | 102 } // namespace blink |
| 103 | 103 |
| 104 #endif // InlineTextBoxPainter_h | 104 #endif // InlineTextBoxPainter_h |
| OLD | NEW |