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

Unified Diff: Source/core/dom/Document.cpp

Issue 476223003: Use tighter typing for Document::ownerElement() return value (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/accessibility/AXNodeObject.cpp ('k') | Source/core/html/HTMLBodyElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/core/accessibility/AXNodeObject.cpp ('k') | Source/core/html/HTMLBodyElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698