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

Unified Diff: sky/engine/web/WebElement.cpp

Issue 772133003: Mostly merge HTMLElement into Element. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/engine/public/web/WebElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
{
« no previous file with comments | « sky/engine/public/web/WebElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698