Index: third_party/WebKit/Source/core/paint/InlineTextBoxPainter.h |
diff --git a/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.h b/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.h |
index a75e4f69f986b4ce081251980fcffd92fdf09c7a..15a43e2c2f6ddbf72d5e5058de56c9547abd092a 100644 |
--- a/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.h |
+++ b/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.h |
@@ -25,15 +25,18 @@ class InlineTextBox; |
class LayoutPoint; |
class LayoutTextCombine; |
+enum class DocumentMarkerPaintPhase { Foreground, Background }; |
+ |
class InlineTextBoxPainter { |
STACK_ALLOCATED(); |
public: |
InlineTextBoxPainter(const InlineTextBox& inlineTextBox) : m_inlineTextBox(inlineTextBox) { } |
void paint(const PaintInfo&, const LayoutPoint&); |
- void paintDocumentMarkers(GraphicsContext&, const LayoutPoint& boxOrigin, const ComputedStyle&, const Font&, bool background); |
+ void paintDocumentMarkers(const PaintInfo&, const LayoutPoint& boxOrigin, const ComputedStyle&, const Font&, DocumentMarkerPaintPhase); |
void paintDocumentMarker(GraphicsContext&, const LayoutPoint& boxOrigin, DocumentMarker*, const ComputedStyle&, const Font&, bool grammar); |
- void paintTextMatchMarker(GraphicsContext&, const LayoutPoint& boxOrigin, DocumentMarker*, const ComputedStyle&, const Font&); |
+ void paintTextMatchMarkerForeground(const PaintInfo&, const LayoutPoint& boxOrigin, DocumentMarker*, const ComputedStyle&, const Font&); |
+ void paintTextMatchMarkerBackground(const PaintInfo&, const LayoutPoint& boxOrigin, DocumentMarker*, const ComputedStyle&, const Font&); |
static void removeFromTextBlobCache(const InlineTextBox&); |