| Index: Source/core/dom/Node.cpp
|
| diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
|
| index bc6900f3b2bfd62596c331038bbfb130bd165245..3de73937e73238930c1439bd6ac4f3a3695d82ba 100644
|
| --- a/Source/core/dom/Node.cpp
|
| +++ b/Source/core/dom/Node.cpp
|
| @@ -1763,9 +1763,9 @@ void Node::showTreeForThisAcrossFrame() const
|
|
|
| // --------
|
|
|
| -Element* Node::enclosingLinkEventParentOrSelf()
|
| +Element* Node::enclosingLinkEventParentOrSelf() const
|
| {
|
| - for (Node* node = this; node; node = ComposedTreeTraversal::parent(*node)) {
|
| + for (Node* node = const_cast<Node*>(this); node; node = ComposedTreeTraversal::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.
|
|
|