#include "core/CSSPropertyNames.h"
#include "core/HTMLNames.h"
#include "core/dom/Attribute.h"
+#include "core/dom/ElementTraversal.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/html/HTMLImageLoader.h"
#include "core/html/HTMLObjectElement.h"
#include "core/rendering/RenderEmbeddedObject.h"
#include "core/rendering/RenderWidget.h"
-namespace WebCore {
+namespace blink {
using namespace HTMLNames;
if (renderer() && isImageType()) {
if (!m_imageLoader)
m_imageLoader = HTMLImageLoader::create(this);
- m_imageLoader->updateFromElementIgnoringPreviousError();
+ m_imageLoader->updateFromElement(ImageLoader::UpdateIgnorePreviousError);
}
} else {
HTMLPlugInElement::parseAttribute(name, value);
void HTMLEmbedElement::parametersForPlugin(Vector<String>& paramNames, Vector<String>& paramValues)
{
- if (!hasAttributes())
- return;
-
AttributeCollection attributes = this->attributes();
- AttributeCollection::const_iterator end = attributes.end();
- for (AttributeCollection::const_iterator it = attributes.begin(); it != end; ++it) {
+ AttributeCollection::iterator end = attributes.end();
+ for (AttributeCollection::iterator it = attributes.begin(); it != end; ++it) {
paramNames.append(it->localName().string());
paramValues.append(it->value().string());
}
return srcAttr;
}
-const AtomicString HTMLEmbedElement::imageSourceURL() const
-{
- return getAttribute(srcAttr);
-}
-
bool HTMLEmbedElement::isInteractiveContent() const
{
return true;