| 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 881fc63a18c90cfccaaa2c020bb0e1a33395b7f5..188d946d60596715872a0499f770a7bab79cb750 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -117,6 +117,7 @@
|
| #include "core/layout/api/LayoutBoxItem.h"
|
| #include "core/layout/api/LayoutViewItem.h"
|
| #include "core/loader/DocumentLoader.h"
|
| +#include "core/observer/ResizeObservation.h"
|
| #include "core/page/ChromeClient.h"
|
| #include "core/page/FocusController.h"
|
| #include "core/page/Page.h"
|
| @@ -1638,6 +1639,8 @@ void Element::detachLayoutTree(const AttachContext& context)
|
| if (svgFilterNeedsLayerUpdate())
|
| document().unscheduleSVGFilterLayerUpdateHack(*this);
|
|
|
| + setNeedsResizeObserverUpdate();
|
| +
|
| DCHECK(needsAttach());
|
| }
|
|
|
| @@ -2693,6 +2696,14 @@ HeapHashMap<Member<ResizeObserver>, Member<ResizeObservation>>& Element::ensureR
|
| return ensureElementRareData().ensureResizeObserverData();
|
| }
|
|
|
| +void Element::setNeedsResizeObserverUpdate()
|
| +{
|
| + if (auto* data = resizeObserverData()) {
|
| + for (auto& observation : data->values())
|
| + observation->elementSizeChanged();
|
| + }
|
| +}
|
| +
|
| // Step 1 of http://domparsing.spec.whatwg.org/#insertadjacenthtml()
|
| static Element* contextElementForInsertion(const String& where, Element* element, ExceptionState& exceptionState)
|
| {
|
|
|