| Index: third_party/WebKit/Source/core/dom/Element.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
|
| index 2641196365dc0a6bc82318e49ddac52a4689f373..146186174cfed06c4d6ce9d8755825523e920ec6 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -105,6 +105,7 @@
|
| #include "core/html/HTMLTableRowsCollection.h"
|
| #include "core/html/HTMLTemplateElement.h"
|
| #include "core/html/parser/HTMLParserIdioms.h"
|
| +#include "core/input/EventHandler.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| #include "core/layout/LayoutTextFragment.h"
|
| #include "core/layout/LayoutView.h"
|
| @@ -1509,6 +1510,9 @@ void Element::removedFrom(ContainerNode* insertionPoint)
|
| if (data->intersectionObserverData())
|
| data->intersectionObserverData()->deactivateAllIntersectionObservers(*this);
|
| }
|
| +
|
| + if (document().frame())
|
| + document().frame()->eventHandler().elementRemoved(this);
|
| }
|
|
|
| void Element::attach(const AttachContext& context)
|
| @@ -2640,6 +2644,28 @@ void Element::insertAdjacentHTML(const String& where, const String& markup, Exce
|
| insertAdjacent(where, fragment.get(), exceptionState);
|
| }
|
|
|
| +void Element::setPointerCapture(int pointerId, ExceptionState& exceptionState)
|
| +{
|
| + if (document().frame()) {
|
| + if (!document().frame()->eventHandler().isPointerEventActive(pointerId))
|
| + exceptionState.throwDOMException(InvalidPointerId, "InvalidPointerId");
|
| + else if (!inDocument())
|
| + exceptionState.throwDOMException(InvalidStateError, "InvalidStateError");
|
| + else
|
| + document().frame()->eventHandler().setPointerCapture(pointerId, this);
|
| + }
|
| +}
|
| +
|
| +void Element::releasePointerCapture(int pointerId, ExceptionState& exceptionState)
|
| +{
|
| + if (document().frame()) {
|
| + if (!document().frame()->eventHandler().isPointerEventActive(pointerId))
|
| + exceptionState.throwDOMException(InvalidPointerId, "InvalidPointerId");
|
| + else
|
| + document().frame()->eventHandler().releasePointerCapture(pointerId, this);
|
| + }
|
| +}
|
| +
|
| String Element::innerText()
|
| {
|
| // We need to update layout, since plainText uses line boxes in the layout tree.
|
|
|