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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2454913003: MainFrame scrollbars should work with RFV instead of FV (Closed)
Patch Set: add test + rebase Created 4 years, 2 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/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());

Powered by Google App Engine
This is Rietveld 408576698