Commit f343e23a authored by akling@apple.com's avatar akling@apple.com

HTMLAppletElement: Use child iterator to walk <param> children.

<https://webkit.org/b/120361>

Reviewed by Antti Koivisto.

Take Antti's fancy new child iterator for a quick spin.

* html/HTMLAppletElement.cpp:
(WebCore::HTMLAppletElement::updateWidget):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154685 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5d00ef30
2013-08-27 Andreas Kling <akling@apple.com>
HTMLAppletElement: Use child iterator to walk <param> children.
<https://webkit.org/b/120361>
Reviewed by Antti Koivisto.
Take Antti's fancy new child iterator for a quick spin.
* html/HTMLAppletElement.cpp:
(WebCore::HTMLAppletElement::updateWidget):
2013-08-27 Andre Moreira Magalhaes <andre.magalhaes@collabora.co.uk>
[gstreamer] Make sure gstreamer source element is thread-safe
......@@ -24,7 +24,7 @@
#include "config.h"
#include "HTMLAppletElement.h"
#include "Attribute.h"
#include "ChildIterator.h"
#include "Frame.h"
#include "FrameLoader.h"
#include "HTMLDocument.h"
......@@ -147,11 +147,8 @@ void HTMLAppletElement::updateWidget(PluginCreationOption pluginCreationOption)
paramValues.append(mayScript.string());
}
for (Node* child = firstChild(); child; child = child->nextSibling()) {
if (!child->hasTagName(paramTag))
continue;
HTMLParamElement* param = static_cast<HTMLParamElement*>(child);
auto paramChildren = childrenOfType<HTMLParamElement>(this);
for (auto param = paramChildren.begin(), end = paramChildren.end(); param != end; ++param) {
if (param->name().isEmpty())
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment