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

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: 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 c544728907199ece1367b6ba13a3ea1f8dc966eb..740e926963ef27c1a5f8a4af0e73a914d99a6f45 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();
@@ -3009,6 +3034,10 @@ void Document::disableEval(const String& errorMessage)
frame()->script().disableEval(errorMessage);
}
+ElementDataCache* Document::elementDataCache() const
+{
+ return m_elementDataCache.get();
+}
void Document::didLoadAllImports()
{
@@ -3328,6 +3357,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();
@@ -3403,6 +3438,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)
@@ -4435,6 +4480,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);
@@ -4506,6 +4556,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())
@@ -5574,6 +5629,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())

Powered by Google App Engine
This is Rietveld 408576698