Index: Source/core/dom/Node.cpp |
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp |
index b46b56702d5e64161d98f1c21b3b79e0571a3ea7..fef54e2a56978454ae3c735280176f305b3a4677 100644 |
--- a/Source/core/dom/Node.cpp |
+++ b/Source/core/dom/Node.cpp |
@@ -71,6 +71,7 @@ |
#include "core/dom/shadow/InsertionPoint.h" |
#include "core/dom/shadow/ShadowRoot.h" |
#include "core/editing/htmlediting.h" |
+#include "core/html/HTMLAnchorElement.h" |
#include "core/html/HTMLFrameOwnerElement.h" |
#include "core/html/HTMLStyleElement.h" |
#include "core/html/RadioNodeList.h" |
@@ -83,6 +84,7 @@ |
#include "core/platform/Partitions.h" |
#include "core/rendering/FlowThreadController.h" |
#include "core/rendering/RenderBox.h" |
+#include "core/svg/graphics/SVGImage.h" |
#include "wtf/HashSet.h" |
#include "wtf/PassOwnPtr.h" |
#include "wtf/RefCountedLeakCounter.h" |
@@ -782,6 +784,11 @@ void Node::recalcDistribution() |
clearChildNeedsDistributionRecalc(); |
} |
+void Node::setIsLink(bool isLink) |
+{ |
+ setFlag(isLink && !SVGImage::isInSVGImage(toElement(this)), IsLinkFlag); |
+} |
+ |
void Node::markAncestorsWithChildNeedsDistributionRecalc() |
{ |
for (Node* node = this; node && !node->childNeedsDistributionRecalc(); node = node->parentOrShadowHostNode()) |