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

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

Issue 490473003: Defer call to updateWidgetPositions() outside of RenderLayerScrollableArea. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove release-assert Created 6 years, 4 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: Source/core/frame/FrameView.h
diff --git a/Source/core/frame/FrameView.h b/Source/core/frame/FrameView.h
index eb1b5f54e4283f94d42fa6f735bd6d138299f41a..560178282fcfede54dc503882602f429de1d8aff 100644
--- a/Source/core/frame/FrameView.h
+++ b/Source/core/frame/FrameView.h
@@ -102,6 +102,8 @@ public:
bool needsLayout() const;
void setNeedsLayout();
+ void setNeedsUpdateWidgetPositions() { m_needsUpdateWidgetPositions = true; }
+
// Methods for getting/setting the size Blink should use to layout the contents.
IntSize layoutSize(IncludeScrollbarsInRect = ExcludeScrollbars) const;
void setLayoutSize(const IntSize&);
@@ -369,6 +371,8 @@ private:
virtual IntPoint convertToContainingView(const IntPoint&) const OVERRIDE;
virtual IntPoint convertFromContainingView(const IntPoint&) const OVERRIDE;
+ void updateWidgetPositionsIfNeeded();
+
void sendResizeEventIfNeeded();
void updateScrollableAreaSet();
@@ -498,6 +502,8 @@ private:
Timer<FrameView> m_didScrollTimer;
Vector<IntRect> m_tickmarks;
+
+ bool m_needsUpdateWidgetPositions;
};
inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count)

Powered by Google App Engine
This is Rietveld 408576698