OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2007 Apple Inc. All rights reserved. |
5 * Copyright (C) 2014 Google, Inc. | 5 * Copyright (C) 2014 Google, Inc. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 #include "HTMLNames.h" | 27 #include "HTMLNames.h" |
28 #include "SVGNames.h" | 28 #include "SVGNames.h" |
29 #include "bindings/v8/ScriptEventListener.h" | 29 #include "bindings/v8/ScriptEventListener.h" |
30 #include "core/css/CSSHelper.h" | 30 #include "core/css/CSSHelper.h" |
31 #include "core/dom/Document.h" | 31 #include "core/dom/Document.h" |
32 #include "core/dom/ElementTraversal.h" | 32 #include "core/dom/ElementTraversal.h" |
33 #include "core/dom/StaticNodeList.h" | 33 #include "core/dom/StaticNodeList.h" |
34 #include "core/editing/FrameSelection.h" | 34 #include "core/editing/FrameSelection.h" |
35 #include "core/events/EventListener.h" | 35 #include "core/events/EventListener.h" |
36 #include "core/events/ThreadLocalEventNames.h" | |
37 #include "core/frame/LocalFrame.h" | 36 #include "core/frame/LocalFrame.h" |
38 #include "core/page/FrameTree.h" | 37 #include "core/page/FrameTree.h" |
39 #include "core/frame/FrameView.h" | 38 #include "core/frame/FrameView.h" |
40 #include "core/frame/UseCounter.h" | 39 #include "core/frame/UseCounter.h" |
41 #include "core/rendering/RenderObject.h" | 40 #include "core/rendering/RenderObject.h" |
42 #include "core/rendering/RenderPart.h" | 41 #include "core/rendering/RenderPart.h" |
43 #include "core/rendering/svg/RenderSVGModelObject.h" | 42 #include "core/rendering/svg/RenderSVGModelObject.h" |
44 #include "core/rendering/svg/RenderSVGResource.h" | 43 #include "core/rendering/svg/RenderSVGResource.h" |
45 #include "core/rendering/svg/RenderSVGRoot.h" | 44 #include "core/rendering/svg/RenderSVGRoot.h" |
46 #include "core/rendering/svg/RenderSVGViewportContainer.h" | 45 #include "core/rendering/svg/RenderSVGViewportContainer.h" |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 // Fall back to traversing our subtree. Duplicate ids are allowed, the first
found will | 824 // Fall back to traversing our subtree. Duplicate ids are allowed, the first
found will |
826 // be returned. | 825 // be returned. |
827 for (Element* element = ElementTraversal::firstWithin(*this); element; eleme
nt = ElementTraversal::next(*element, this)) { | 826 for (Element* element = ElementTraversal::firstWithin(*this); element; eleme
nt = ElementTraversal::next(*element, this)) { |
828 if (element->getIdAttribute() == id) | 827 if (element->getIdAttribute() == id) |
829 return element; | 828 return element; |
830 } | 829 } |
831 return 0; | 830 return 0; |
832 } | 831 } |
833 | 832 |
834 } | 833 } |
OLD | NEW |