Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 1548523002: Use Document, rather than document element, for implicit root. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@intersection-observer
Patch Set: Nits, comments, rebaseline Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 0b9901e0462d4bc16e50dac344155b883aa12076..652c7083354b8742e31f17c2ec36f0a5e908576a 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -54,7 +54,6 @@
#include "core/dom/ClientRectList.h"
#include "core/dom/DatasetDOMStringMap.h"
#include "core/dom/ElementDataCache.h"
-#include "core/dom/ElementIntersectionObserverData.h"
#include "core/dom/ElementRareData.h"
#include "core/dom/ElementTraversal.h"
#include "core/dom/ExceptionCode.h"
@@ -65,6 +64,7 @@
#include "core/dom/MutationRecord.h"
#include "core/dom/NamedNodeMap.h"
#include "core/dom/NodeComputedStyle.h"
+#include "core/dom/NodeIntersectionObserverData.h"
#include "core/dom/PresentationAttributeStyle.h"
#include "core/dom/PseudoElement.h"
#include "core/dom/ScriptableDocumentParser.h"
@@ -2596,14 +2596,14 @@ Node* Element::insertAdjacent(const String& where, Node* newChild, ExceptionStat
return nullptr;
}
-ElementIntersectionObserverData* Element::intersectionObserverData() const
+NodeIntersectionObserverData* Element::intersectionObserverData() const
{
if (elementRareData())
return elementRareData()->intersectionObserverData();
return nullptr;
}
-ElementIntersectionObserverData& Element::ensureIntersectionObserverData()
+NodeIntersectionObserverData& Element::ensureIntersectionObserverData()
{
return ensureElementRareData().ensureIntersectionObserverData();
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.h ('k') | third_party/WebKit/Source/core/dom/ElementIntersectionObserverData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698