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

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

Issue 2015003002: Disallow local/remote checks on subclasses of Frame, FrameOwner and DOMWindow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/frame/LocalFrame.h
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.h b/third_party/WebKit/Source/core/frame/LocalFrame.h
index 13138662ecb92f2fdfaaf9a595154ed9b1ea2586..e18294569b14e6f9e24df0ee01eaabd6a661e314 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h
@@ -90,7 +90,6 @@ public:
// Frame overrides:
~LocalFrame() override;
DECLARE_VIRTUAL_TRACE();
- bool isLocalFrame() const override { return true; }
DOMWindow* domWindow() const override;
WindowProxy* windowProxy(DOMWrapperWorld&) override;
void navigate(Document& originDocument, const KURL&, bool replaceCurrentItem, UserGestureStatus) override;
@@ -189,6 +188,10 @@ private:
// Internal Frame helper overrides:
WindowProxyManager* getWindowProxyManager() const override;
+ // Intentionally private to prevent redundant checks when the type is
+ // already LocalFrame.
+ bool isLocalFrame() const override { return true; }
+ using Frame::isRemoteFrame;
esprehn 2016/05/26 20:36:45 ditto?
dcheng 2016/05/26 20:45:32 Done.
String localLayerTreeAsText(unsigned flags) const;

Powered by Google App Engine
This is Rietveld 408576698