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

Unified Diff: third_party/WebKit/Source/core/dom/ElementRareData.h

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/ElementRareData.h
diff --git a/third_party/WebKit/Source/core/dom/ElementRareData.h b/third_party/WebKit/Source/core/dom/ElementRareData.h
index e66e9f458c0991ba1add974a550675d28917e971..e3b7468a002c407766e29724a4f015febf32fd15 100644
--- a/third_party/WebKit/Source/core/dom/ElementRareData.h
+++ b/third_party/WebKit/Source/core/dom/ElementRareData.h
@@ -26,8 +26,8 @@
#include "core/dom/Attr.h"
#include "core/dom/CompositorProxiedPropertySet.h"
#include "core/dom/DatasetDOMStringMap.h"
-#include "core/dom/ElementIntersectionObserverData.h"
#include "core/dom/NamedNodeMap.h"
+#include "core/dom/NodeIntersectionObserverData.h"
#include "core/dom/NodeRareData.h"
#include "core/dom/PseudoElement.h"
#include "core/dom/custom/CustomElementDefinition.h"
@@ -125,11 +125,11 @@ public:
AttrNodeList* attrNodeList() { return m_attrNodeList.get(); }
void removeAttrNodeList() { m_attrNodeList.clear(); }
- ElementIntersectionObserverData* intersectionObserverData() const { return m_intersectionObserverData.get(); }
- ElementIntersectionObserverData& ensureIntersectionObserverData()
+ NodeIntersectionObserverData* intersectionObserverData() const { return m_intersectionObserverData.get(); }
+ NodeIntersectionObserverData& ensureIntersectionObserverData()
{
if (!m_intersectionObserverData)
- m_intersectionObserverData = new ElementIntersectionObserverData();
+ m_intersectionObserverData = new NodeIntersectionObserverData();
return *m_intersectionObserverData;
}
@@ -153,7 +153,7 @@ private:
OwnPtr<CompositorProxiedPropertySet> m_proxiedProperties;
PersistentWillBeMember<ElementAnimations> m_elementAnimations;
- PersistentWillBeMember<ElementIntersectionObserverData> m_intersectionObserverData;
+ PersistentWillBeMember<NodeIntersectionObserverData> m_intersectionObserverData;
RefPtr<ComputedStyle> m_computedStyle;
RefPtrWillBeMember<CustomElementDefinition> m_customElementDefinition;

Powered by Google App Engine
This is Rietveld 408576698