Index: third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp |
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp b/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp |
index 8e54e3136ffbf7f2a92207ef35be3c183e98a22c..3defaf5d34cb8192754a53731e0589d5766952f6 100644 |
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp |
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp |
@@ -29,7 +29,7 @@ |
#include "core/animation/AnimationTimeline.h" |
#include "core/dom/NodeTraversal.h" |
-#include "core/dom/shadow/ComposedTreeTraversal.h" |
+#include "core/dom/shadow/FlatTreeTraversal.h" |
#include "core/frame/FrameView.h" |
#include "core/frame/LocalFrame.h" |
#include "core/frame/Settings.h" |
@@ -110,7 +110,7 @@ bool SVGImage::currentFrameHasSingleSecurityOrigin() const |
// Don't allow foreignObject elements or images that are not known to be |
// single-origin since these can leak cross-origin information. |
- for (Node* node = rootElement; node; node = ComposedTreeTraversal::next(*node)) { |
+ for (Node* node = rootElement; node; node = FlatTreeTraversal::next(*node)) { |
if (isSVGForeignObjectElement(*node)) |
return false; |
if (isSVGImageElement(*node)) { |