| 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);
|
| }
|
|
|