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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2886893008: [DMC #8] Rename DocumentMarkerController::RenderedRectsForMarkers() (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698