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

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

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT Created 5 years, 1 month 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/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 6522841dce523e01a939a8c3b70c455b9598fa32..f00195794779377fdc3fcab387d21d1389698235 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -658,6 +658,11 @@ void Document::setDoctype(PassRefPtrWillBeRawPtr<DocumentType> docType)
styleEngine().clearResolver();
}
+DocumentType* Document::doctype() const
+{
+ return m_docType.get();
+}
+
DOMImplementation& Document::implementation()
{
if (!m_implementation)
@@ -665,6 +670,11 @@ DOMImplementation& Document::implementation()
return *m_implementation;
}
+Element* Document::documentElement() const
+{
+ return m_documentElement.get();
+}
+
bool Document::hasAppCacheManifest() const
{
return isHTMLHtmlElement(documentElement()) && documentElement()->hasAttribute(manifestAttr);
@@ -781,6 +791,11 @@ ScriptValue Document::registerElement(ScriptState* scriptState, const AtomicStri
return constructorBuilder.bindingsReturnValue();
}
+CustomElementRegistrationContext* Document::registrationContext() const
+{
+ return m_registrationContext.get();
+}
+
CustomElementMicrotaskRunQueue* Document::customElementMicrotaskRunQueue()
{
if (!m_customElementMicrotaskRunQueue)
@@ -1319,6 +1334,11 @@ void Document::setTitleElement(Element* titleElement)
updateTitle(toSVGTitleElement(m_titleElement)->textContent());
}
+Element* Document::titleElement() const
+{
+ return m_titleElement.get();
+}
+
void Document::removeTitle(Element* titleElement)
{
if (m_titleElement != titleElement)
@@ -1982,6 +2002,11 @@ void Document::clearFocusedElementSoon()
m_clearFocusedElementTimer.startOneShot(0, BLINK_FROM_HERE);
}
+Element* Document::focusedElement() const
+{
+ return m_focusedElement.get();
+}
+
void Document::clearFocusedElementTimerFired(Timer<Document>*)
{
updateLayoutTreeIfNeeded();
@@ -3019,6 +3044,10 @@ void Document::disableEval(const String& errorMessage)
frame()->script().disableEval(errorMessage);
}
+ElementDataCache* Document::elementDataCache() const
+{
+ return m_elementDataCache.get();
+}
void Document::didLoadAllImports()
{
@@ -3338,6 +3367,12 @@ StyleSheetList* Document::styleSheets()
return m_styleSheetList.get();
}
+StyleEngine& Document::styleEngine()
+{
+ ASSERT(m_styleEngine.get());
+ return *m_styleEngine.get();
+}
+
String Document::preferredStylesheetSet() const
{
return m_styleEngine->preferredStylesheetSetName();
@@ -3413,6 +3448,16 @@ void Document::setActiveHoverElement(PassRefPtrWillBeRawPtr<Element> newActiveEl
m_activeHoverElement = newActiveElement;
}
+Element* Document::activeHoverElement() const
+{
+ return m_activeHoverElement.get();
+}
+
+Node* Document::hoverNode() const
+{
+ return m_hoverNode.get();
+}
+
void Document::removeFocusedElementOfSubtree(Node* node, bool amongChildrenOnly)
{
if (!m_focusedElement)
@@ -4445,6 +4490,11 @@ KURL Document::openSearchDescriptionURL()
return KURL();
}
+HTMLScriptElement* Document::currentScript() const
+{
+ return !m_currentScriptStack.isEmpty() ? m_currentScriptStack.last().get() : nullptr;
+}
+
void Document::pushCurrentScript(PassRefPtrWillBeRawPtr<HTMLScriptElement> newCurrentScript)
{
ASSERT(newCurrentScript);
@@ -4516,6 +4566,11 @@ WeakPtrWillBeRawPtr<Document> Document::contextDocument()
return nullptr;
}
+ScriptRunner* Document::scriptRunner() const
+{
+ return m_scriptRunner.get();
+}
+
PassRefPtrWillBeRawPtr<Attr> Document::createAttribute(const AtomicString& name, ExceptionState& exceptionState)
{
if (isHTMLDocument() && name != name.lower())
@@ -5584,6 +5639,11 @@ void Document::setAutofocusElement(Element* element)
m_taskRunner->postTask(BLINK_FROM_HERE, AutofocusTask::create());
}
+Element* Document::autofocusElement() const
+{
+ return m_autofocusElement.get();
+}
+
Element* Document::activeElement() const
{
if (Element* element = adjustedFocusedElement())
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/DocumentOrderedMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698