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

Unified Diff: sky/engine/core/dom/Node.cpp

Issue 1215103007: Remove remaining HTML elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/dom/Element.cpp ('k') | sky/engine/core/dom/StyleEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Node.cpp
diff --git a/sky/engine/core/dom/Node.cpp b/sky/engine/core/dom/Node.cpp
index 39716f10d2aa67303f9227244e8442d974019166..ad9cf12a6fda3b3b1781de8402fe7a6a5e613988 100644
--- a/sky/engine/core/dom/Node.cpp
+++ b/sky/engine/core/dom/Node.cpp
@@ -61,8 +61,6 @@
#include "sky/engine/core/events/UIEvent.h"
#include "sky/engine/core/frame/LocalFrame.h"
#include "sky/engine/core/frame/Settings.h"
-#include "sky/engine/core/html/HTMLAnchorElement.h"
-#include "sky/engine/core/html/HTMLStyleElement.h"
#include "sky/engine/core/page/EventHandler.h"
#include "sky/engine/core/page/Page.h"
#include "sky/engine/core/rendering/RenderBox.h"
@@ -1225,17 +1223,6 @@ static void showSubTreeAcrossFrame(const Node* node, const Node* markedNode, con
Element* Node::enclosingLinkEventParentOrSelf()
{
- for (Node* node = this; node; node = NodeRenderingTraversal::parent(node)) {
- // For imagemaps, the enclosing link node is the associated area element not the image itself.
- // So we don't let images be the enclosingLinkNode, even though isLink sometimes returns true
- // for them.
- if (node->isLink() && !isHTMLImageElement(*node)) {
- // Casting to Element is safe because only HTMLAnchorElement, HTMLImageElement and
- // SVGAElement can return true for isLink().
- return toElement(node);
- }
- }
-
return 0;
}
« no previous file with comments | « sky/engine/core/dom/Element.cpp ('k') | sky/engine/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698