Index: third_party/WebKit/Source/core/frame/FrameView.cpp |
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp |
index ac0dea61f5fd09dba165e76d92681dff8b919eb6..d76f3d35f5f0cf25bfe34d152b31467f3dc5d676 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp |
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp |
@@ -2683,11 +2683,12 @@ void FrameView::InvalidatePaintForTickmarks() { |
} |
void FrameView::GetTickmarks(Vector<IntRect>& tickmarks) const { |
- if (!tickmarks_.IsEmpty()) |
+ if (!tickmarks_.IsEmpty()) { |
yosin_UTC9
2017/05/19 06:15:59
nit: Could you use early-return style?
if (!tickm
|
tickmarks = tickmarks_; |
- else |
- tickmarks = GetFrame().GetDocument()->Markers().RenderedRectsForMarkers( |
- DocumentMarker::kTextMatch); |
+ } else { |
+ tickmarks = |
+ GetFrame().GetDocument()->Markers().RenderedRectsForTextMatchMarkers(); |
+ } |
} |
void FrameView::SetInputEventsTransformForEmulation( |