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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp

Issue 2780313002: [WIP] Refactor DocumentMarker (Closed)
Patch Set: Move accessor methods into derived classes Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
index 86a826fdc8007568e39871931decc93f8fbbb308..b078f678a5dc467f4e18463d2456cc499f82781d 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
@@ -521,20 +521,22 @@ void InlineTextBox::paintDocumentMarker(GraphicsContext& pt,
font, grammar);
}
-void InlineTextBox::paintTextMatchMarkerForeground(const PaintInfo& paintInfo,
- const LayoutPoint& boxOrigin,
- const DocumentMarker& marker,
- const ComputedStyle& style,
- const Font& font) const {
+void InlineTextBox::paintTextMatchMarkerForeground(
+ const PaintInfo& paintInfo,
+ const LayoutPoint& boxOrigin,
+ const TextMatchMarker& marker,
+ const ComputedStyle& style,
+ const Font& font) const {
InlineTextBoxPainter(*this).paintTextMatchMarkerForeground(
paintInfo, boxOrigin, marker, style, font);
}
-void InlineTextBox::paintTextMatchMarkerBackground(const PaintInfo& paintInfo,
- const LayoutPoint& boxOrigin,
- const DocumentMarker& marker,
- const ComputedStyle& style,
- const Font& font) const {
+void InlineTextBox::paintTextMatchMarkerBackground(
+ const PaintInfo& paintInfo,
+ const LayoutPoint& boxOrigin,
+ const TextMatchMarker& marker,
+ const ComputedStyle& style,
+ const Font& font) const {
InlineTextBoxPainter(*this).paintTextMatchMarkerBackground(
paintInfo, boxOrigin, marker, style, font);
}

Powered by Google App Engine
This is Rietveld 408576698