| Index: sky/engine/web/WebElement.cpp
|
| diff --git a/sky/engine/web/WebElement.cpp b/sky/engine/web/WebElement.cpp
|
| index 9c9c65555425a8495fb5bb6dfad8ee5df8fb50ea..78273334611d304d3d1cad8600996730cc90f030 100644
|
| --- a/sky/engine/web/WebElement.cpp
|
| +++ b/sky/engine/web/WebElement.cpp
|
| @@ -48,18 +48,6 @@ WebString WebElement::tagName() const
|
| return constUnwrap<Element>()->tagName();
|
| }
|
|
|
| -bool WebElement::hasHTMLTagName(const WebString& tagName) const
|
| -{
|
| - // How to create class nodeName localName
|
| - // createElement('input') HTMLInputElement INPUT input
|
| - // createElement('INPUT') HTMLInputElement INPUT input
|
| - // createElementNS(xhtmlNS, 'input') HTMLInputElement INPUT input
|
| - // createElementNS(xhtmlNS, 'INPUT') HTMLUnknownElement INPUT INPUT
|
| - const Element* element = constUnwrap<Element>();
|
| - // FIXME: This could just call element->hasLocalName().
|
| - return element->localName() == String(tagName).lower();
|
| -}
|
| -
|
| bool WebElement::hasAttribute(const WebString& attrName) const
|
| {
|
| return constUnwrap<Element>()->hasAttribute(attrName);
|
| @@ -126,22 +114,6 @@ void WebElement::requestFullScreen()
|
| {
|
| }
|
|
|
| -WebImage WebElement::imageContents()
|
| -{
|
| - if (isNull())
|
| - return WebImage();
|
| -
|
| - Image* image = unwrap<Element>()->imageContents();
|
| - if (!image)
|
| - return WebImage();
|
| -
|
| - RefPtr<NativeImageSkia> bitmap = image->nativeImageForCurrentFrame();
|
| - if (!bitmap)
|
| - return WebImage();
|
| -
|
| - return bitmap->bitmap();
|
| -}
|
| -
|
| WebElement::WebElement(const PassRefPtr<Element>& elem)
|
| : WebNode(elem)
|
| {
|
|
|