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

Unified Diff: sky/engine/core/frame/FrameView.h

Issue 737523002: Sky: Move iframe geometry updates to FrameView::updateLayout instead of (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: . Created 6 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
« no previous file with comments | « no previous file | sky/engine/core/frame/FrameView.cpp » ('j') | sky/engine/core/frame/FrameView.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/frame/FrameView.h
diff --git a/sky/engine/core/frame/FrameView.h b/sky/engine/core/frame/FrameView.h
index c619f967c8a30c1485355cffd03589b1f500aa0d..91308009ea8759ec5d079aeb8b5254f8cbc08836 100644
--- a/sky/engine/core/frame/FrameView.h
+++ b/sky/engine/core/frame/FrameView.h
@@ -26,6 +26,7 @@
#define FrameView_h
#include "core/rendering/PaintPhase.h"
+#include "core/rendering/RenderIFrame.h"
#include "platform/HostWindow.h"
#include "platform/RuntimeEnabledFeatures.h"
#include "platform/Widget.h"
@@ -208,6 +209,10 @@ public:
bool paintsEntireContents() const { return false; }
bool clipsPaintInvalidations() const { return true; }
+ void addIFrame(RenderIFrame* iframe);
+ void removeIFrame(RenderIFrame* iframe);
+ void updateIFramesAfterLayout();
+
protected:
bool isVerticalDocument() const;
bool isFlippedDocument() const;
@@ -304,6 +309,8 @@ private:
bool m_layoutSizeFixedToFrameSize;
Vector<IntRect> m_tickmarks;
+
+ WTF::HashSet<RenderIFrame*> m_iframes;
};
DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFrameView());
« no previous file with comments | « no previous file | sky/engine/core/frame/FrameView.cpp » ('j') | sky/engine/core/frame/FrameView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698