Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index 5f5f33c6201388bee6bb7d74ce9f494e201309b5..b7153afcc221b88b753e29ffc429e331a90d7b89 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -1942,8 +1942,8 @@ void Document::updateLayout() |
return; |
} |
- if (Element* oe = ownerElement()) |
- oe->document().updateLayout(); |
+ if (HTMLFrameOwnerElement* owner = ownerElement()) |
+ owner->document().updateLayout(); |
updateRenderTreeIfNeeded(); |
@@ -4501,7 +4501,7 @@ Document& Document::topDocument() const |
// FIXME: Not clear what topDocument() should do in the OOPI case--should it return the topmost |
// available Document, or something else? |
Document* doc = const_cast<Document*>(this); |
- for (Element* element = doc->ownerElement(); element; element = doc->ownerElement()) |
+ for (HTMLFrameOwnerElement* element = doc->ownerElement(); element; element = doc->ownerElement()) |
doc = &element->document(); |
ASSERT(doc); |