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

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

Issue 2763893002: [WIP] Clean up DocumentMarkerController API (Closed)
Patch Set: Move CompositionMarkerList::at() into previous CL 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/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 120181338512305eb563d722589a583e2c7f7dfa..bc804350a23278030fd9beecd77dfa23d7d88494 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -2588,11 +2588,12 @@ void FrameView::invalidatePaintForTickmarks() {
}
void FrameView::getTickmarks(Vector<IntRect>& tickmarks) const {
- if (!m_tickmarks.isEmpty())
+ if (!m_tickmarks.isEmpty()) {
tickmarks = m_tickmarks;
- else
- tickmarks = frame().document()->markers().renderedRectsForMarkers(
- DocumentMarker::TextMatch);
+ } else {
+ tickmarks =
+ frame().document()->markers().renderedRectsForTextMatchMarkers();
+ }
}
void FrameView::setInputEventsTransformForEmulation(const IntSize& offset,

Powered by Google App Engine
This is Rietveld 408576698