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

Unified Diff: sky/engine/core/rendering/HitTestResult.cpp

Issue 855803002: Remove attrs sky doesn't support. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/rendering/HitTestResult.h ('k') | sky/engine/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/HitTestResult.cpp
diff --git a/sky/engine/core/rendering/HitTestResult.cpp b/sky/engine/core/rendering/HitTestResult.cpp
index 8e30a7f7008d430ffd07abbcb92129e99b4b2a16..c0d0e697a1b9b154b82cd7d07a42c8cff2b63e07 100644
--- a/sky/engine/core/rendering/HitTestResult.cpp
+++ b/sky/engine/core/rendering/HitTestResult.cpp
@@ -174,37 +174,6 @@ String HitTestResult::spellingToolTip(TextDirection& dir) const
return marker->description();
}
-String HitTestResult::title(TextDirection& dir) const
-{
- dir = LTR;
- // Find the title in the nearest enclosing DOM node.
- // For <area> tags in image maps, walk the tree for the <area>, not the <img> using it.
- for (Node* titleNode = m_innerNode.get(); titleNode; titleNode = titleNode->parentNode()) {
- if (titleNode->isElementNode()) {
- String title = toElement(titleNode)->title();
- if (!title.isNull()) {
- if (RenderObject* renderer = titleNode->renderer())
- dir = renderer->style()->direction();
- return title;
- }
- }
- }
- return String();
-}
-
-const AtomicString& HitTestResult::altDisplayString() const
-{
- if (!m_innerNonSharedNode)
- return nullAtom;
-
- if (isHTMLImageElement(*m_innerNonSharedNode)) {
- HTMLImageElement& image = toHTMLImageElement(*m_innerNonSharedNode);
- return image.getAttribute(HTMLNames::altAttr);
- }
-
- return nullAtom;
-}
-
Image* HitTestResult::image() const
{
if (!m_innerNonSharedNode)
« no previous file with comments | « sky/engine/core/rendering/HitTestResult.h ('k') | sky/engine/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698