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

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

Issue 2599483002: Extract helper function. (Closed)
Patch Set: Created 4 years 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 0ee295408a9de83270e158fd5f60593ac4f59631..be759d6db51d4ff540d7c81636431a0c29f3b7b9 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
@@ -484,7 +484,7 @@ void InlineTextBox::selectionStartEnd(int& sPos, int& ePos) const {
void InlineTextBox::paintDocumentMarker(GraphicsContext& pt,
const LayoutPoint& boxOrigin,
- DocumentMarker* marker,
+ const DocumentMarker& marker,
const ComputedStyle& style,
const Font& font,
bool grammar) const {
@@ -494,7 +494,7 @@ void InlineTextBox::paintDocumentMarker(GraphicsContext& pt,
void InlineTextBox::paintTextMatchMarkerForeground(const PaintInfo& paintInfo,
const LayoutPoint& boxOrigin,
- DocumentMarker* marker,
+ const DocumentMarker& marker,
const ComputedStyle& style,
const Font& font) const {
InlineTextBoxPainter(*this).paintTextMatchMarkerForeground(
@@ -503,7 +503,7 @@ void InlineTextBox::paintTextMatchMarkerForeground(const PaintInfo& paintInfo,
void InlineTextBox::paintTextMatchMarkerBackground(const PaintInfo& paintInfo,
const LayoutPoint& boxOrigin,
- DocumentMarker* marker,
+ const DocumentMarker& marker,
const ComputedStyle& style,
const Font& font) const {
InlineTextBoxPainter(*this).paintTextMatchMarkerBackground(

Powered by Google App Engine
This is Rietveld 408576698