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

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

Issue 2454913003: MainFrame scrollbars should work with RFV instead of FV (Closed)
Patch Set: Fix VisualViewportTest Created 4 years, 1 month 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.h
diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h
index b08bd52fb252eb55382aae8efc88b3b61a95dc95..ebbacda6a7f5ef04575adffdd804a566c0d85eb6 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -399,10 +399,7 @@ class CORE_EXPORT FrameView final
// Sets the tickmarks for the FrameView, overriding the default behavior
// which is to display the tickmarks corresponding to find results.
// If |m_tickmarks| is empty, the default behavior is restored.
- void setTickmarks(const Vector<IntRect>& tickmarks) {
- m_tickmarks = tickmarks;
- invalidatePaintForTickmarks();
- }
+ void setTickmarks(const Vector<IntRect>&);
void invalidatePaintForTickmarks();
@@ -465,6 +462,8 @@ class CORE_EXPORT FrameView final
}
LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner; }
+ void updateScrollbars() override;
+
void positionScrollbarLayers();
// Functions for setting and retrieving the scrolling mode in each axis
@@ -758,11 +757,7 @@ class CORE_EXPORT FrameView final
bool& newHasVerticalScrollbar,
const IntSize& docSize,
ComputeScrollbarExistenceOption = FirstPass) const;
- void updateScrollbarGeometry();
- // Called to update the scrollbars to accurately reflect the state of the
- // view.
- void updateScrollbars();
void updateScrollbarsIfNeeded();
void didChangeScrollbarsHidden() override;
@@ -797,6 +792,11 @@ class CORE_EXPORT FrameView final
// setHas*Scrollbar functions above.
Scrollbar* createScrollbar(ScrollbarOrientation) override;
+ // Updates the scrollbar geometry given the size of the frame view rect.
+ void updateScrollbarGeometry(IntSize viewSize);
+
+ ScrollableArea* scrollableArea() const;
+
protected:
void destroyScrollbar(ScrollbarOrientation) override;
};
@@ -874,10 +874,6 @@ class CORE_EXPORT FrameView final
static bool computeCompositedSelection(LocalFrame&, CompositedSelection&);
void updateCompositedSelectionIfNeeded();
- // Returns true if the FrameView's own scrollbars overlay its content when
- // visible.
- bool hasOverlayScrollbars() const;
-
// Returns true if the frame should use custom scrollbars. If true, one of
// either |customScrollbarElement| or |customScrollbarFrame| will be set to
// the element or frame which owns the scrollbar with the other set to null.

Powered by Google App Engine
This is Rietveld 408576698