Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
| index d24d79670ec318bbe425e2f953f40ce35ecc177f..37b8d5dc105b9ceceb292881c06446bf87cea118 100644 |
| --- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
| +++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
| @@ -50,6 +50,7 @@ |
| #include "core/dom/Node.h" |
| #include "core/dom/shadow/ShadowRoot.h" |
| #include "core/editing/FrameSelection.h" |
| +#include "core/editing/markers/DocumentMarkerController.h" |
| #include "core/frame/FrameHost.h" |
| #include "core/frame/FrameView.h" |
| #include "core/frame/LocalFrame.h" |
| @@ -1740,6 +1741,13 @@ PaintLayerScrollableArea::compositorAnimationTimeline() const { |
| return nullptr; |
| } |
| +void PaintLayerScrollableArea::getTickmarks(Vector<IntRect>& tickmarks) const { |
| + if (LocalFrame* frame = box().frame()) { |
| + tickmarks = frame->document()->markers().renderedRectsForMarkers( |
| + DocumentMarker::TextMatch); |
|
bokan
2016/10/31 15:25:09
Does this make the tickmarks work for root-layer-s
ymalik
2016/11/03 18:49:12
Almost. I am not sure where the tickmarks should b
|
| + } |
| +} |
| + |
| PaintLayerScrollableArea* |
| PaintLayerScrollableArea::ScrollbarManager::scrollableArea() { |
| return toPaintLayerScrollableArea(m_scrollableArea.get()); |