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

Unified Diff: Source/web/WebHelperPluginImpl.cpp

Issue 137433008: Have HTMLCollection::item() return an Element as per specification (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 10 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/web/WebDocument.cpp ('k') | Source/web/WebNodeCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebHelperPluginImpl.cpp
diff --git a/Source/web/WebHelperPluginImpl.cpp b/Source/web/WebHelperPluginImpl.cpp
index 9bbf17968ff4fe052a976d2508af312f476f1194..8d5474a01bb39380e9c85652eabae5885a0971f2 100644
--- a/Source/web/WebHelperPluginImpl.cpp
+++ b/Source/web/WebHelperPluginImpl.cpp
@@ -184,9 +184,9 @@ WebPlugin* WebHelperPluginImpl::getPlugin()
ASSERT(objectElements && objectElements->length() == 1);
if (!objectElements || objectElements->length() < 1)
return 0;
- Node* node = objectElements->item(0);
- ASSERT(node->hasTagName(WebCore::HTMLNames::objectTag));
- WebCore::Widget* widget = toHTMLPlugInElement(node)->pluginWidget();
+ Element* element = objectElements->item(0);
+ ASSERT(element->hasTagName(WebCore::HTMLNames::objectTag));
+ WebCore::Widget* widget = toHTMLPlugInElement(element)->pluginWidget();
if (!widget)
return 0;
WebPlugin* plugin = toWebPluginContainerImpl(widget)->plugin();
« no previous file with comments | « Source/web/WebDocument.cpp ('k') | Source/web/WebNodeCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698