| Index: Source/core/dom/ElementTraversal.h
|
| diff --git a/Source/core/dom/ElementTraversal.h b/Source/core/dom/ElementTraversal.h
|
| index e8241820b5e4abd39d4ff5530eba1fc289616f5b..8921ea6084fa0e31c15b39417c664db3a9ba4d36 100644
|
| --- a/Source/core/dom/ElementTraversal.h
|
| +++ b/Source/core/dom/ElementTraversal.h
|
| @@ -44,6 +44,8 @@ public:
|
| static ElementType* firstAncestor(const Node& current);
|
| static ElementType* firstAncestorOrSelf(Node& current) { return firstAncestorOrSelfTemplate(current); }
|
| static ElementType* firstAncestorOrSelf(Element& current) { return firstAncestorOrSelfTemplate(current); }
|
| + static const ElementType* firstAncestorOrSelf(const Node& current) { return firstAncestorOrSelfTemplate(const_cast<Node&>(current)); }
|
| + static const ElementType* firstAncestorOrSelf(const Element& current) { return firstAncestorOrSelfTemplate(const_cast<Element&>(current)); }
|
|
|
| // First or last ElementType descendant of the node.
|
| // For Elements firstWithin() is always the same as firstChild().
|
|
|