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

Unified Diff: Source/core/html/HTMLBodyElement.cpp

Issue 197873022: Drop Element::isHTMLFrameElementBase() virtual function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take tkent's feedback into consideration Created 6 years, 9 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
« no previous file with comments | « Source/core/editing/FrameSelection.cpp ('k') | Source/core/html/HTMLFrameElementBase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLBodyElement.cpp
diff --git a/Source/core/html/HTMLBodyElement.cpp b/Source/core/html/HTMLBodyElement.cpp
index 10882eac5d59c043e360ac1d768b6a558226c640..a2acd1aae8d5e7cbf074a85c9510b91ad9761b94 100644
--- a/Source/core/html/HTMLBodyElement.cpp
+++ b/Source/core/html/HTMLBodyElement.cpp
@@ -161,12 +161,12 @@ Node::InsertionNotificationRequest HTMLBodyElement::insertedInto(ContainerNode*
// and marginheight attribute can magically appear on the <body> of all documents
// embedded through <iframe> or <frame>.
Element* ownerElement = document().ownerElement();
- if (ownerElement && ownerElement->isFrameElementBase()) {
- HTMLFrameElementBase* ownerFrameElement = toHTMLFrameElementBase(ownerElement);
- int marginWidth = ownerFrameElement->marginWidth();
+ if (isHTMLFrameElementBase(ownerElement)) {
+ HTMLFrameElementBase& ownerFrameElement = toHTMLFrameElementBase(*ownerElement);
+ int marginWidth = ownerFrameElement.marginWidth();
if (marginWidth != -1)
setIntegralAttribute(marginwidthAttr, marginWidth);
- int marginHeight = ownerFrameElement->marginHeight();
+ int marginHeight = ownerFrameElement.marginHeight();
if (marginHeight != -1)
setIntegralAttribute(marginheightAttr, marginHeight);
}
« no previous file with comments | « Source/core/editing/FrameSelection.cpp ('k') | Source/core/html/HTMLFrameElementBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698