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

Unified Diff: third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.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: pure virtual 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/html/HTMLFrameOwnerElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h
index 26ec6013afad28090c721987c83f2423b51a1f0e..7f2cd10e6f77e92ac4e506e1c89740b9eb1a7b6e 100644
--- a/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h
@@ -74,8 +74,6 @@ public:
};
// FrameOwner overrides:
- bool isLocal() const override { return true; }
- bool isRemote() const override { return false; }
void setContentFrame(Frame&) override;
void clearContentFrame() override;
void dispatchLoad() override;
@@ -95,6 +93,11 @@ protected:
bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool replaceCurrentItem);
private:
+ // Intentionally private to prevent redundant checks when the type is
+ // already HTMLFrameOwnerElement.
+ bool isLocal() const override { return true; }
+ bool isRemote() const override { return false; }
+
bool isKeyboardFocusable() const override;
bool isFrameOwnerElement() const final { return true; }

Powered by Google App Engine
This is Rietveld 408576698