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

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

Issue 301523002: Oilpan: convert remaining dom + page Element refs to transition types. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/DocumentMarkerControllerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index e424d1f1399550161bff37c2e8d6f5504fa2ad30..3be47bcc6aab0a58a267eb058e360b16d090442c 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -364,7 +364,7 @@ private:
virtual void performTask(ExecutionContext* context) OVERRIDE
{
Document* document = toDocument(context);
- if (RefPtr<Element> element = document->autofocusElement()) {
+ if (RefPtrWillBeRawPtr<Element> element = document->autofocusElement()) {
document->setAutofocusElement(0);
element->focus();
}
@@ -961,7 +961,7 @@ PassRefPtr<Node> Document::importNode(Node* importedNode, bool deep, ExceptionSt
exceptionState.throwDOMException(NamespaceError, "The imported node has an invalid namespace.");
return nullptr;
}
- RefPtr<Element> newElement = createElement(oldElement->tagQName(), false);
+ RefPtrWillBeRawPtr<Element> newElement = createElement(oldElement->tagQName(), false);
newElement->cloneDataFromElement(*oldElement);
@@ -3467,7 +3467,7 @@ void Document::setHoverNode(PassRefPtr<Node> newHoverNode)
m_hoverNode = newHoverNode;
}
-void Document::setActiveHoverElement(PassRefPtr<Element> newActiveElement)
+void Document::setActiveHoverElement(PassRefPtrWillBeRawPtr<Element> newActiveElement)
{
if (!newActiveElement) {
m_activeHoverElement.clear();
@@ -3538,11 +3538,11 @@ void Document::setAnnotatedRegions(const Vector<AnnotatedRegionValue>& regions)
setAnnotatedRegionsDirty(false);
}
-bool Document::setFocusedElement(PassRefPtr<Element> prpNewFocusedElement, FocusType type)
+bool Document::setFocusedElement(PassRefPtrWillBeRawPtr<Element> prpNewFocusedElement, FocusType type)
{
m_clearFocusedElementTimer.stop();
- RefPtr<Element> newFocusedElement = prpNewFocusedElement;
+ RefPtrWillBeRawPtr<Element> newFocusedElement = prpNewFocusedElement;
// Make sure newFocusedNode is actually in this document
if (newFocusedElement && (newFocusedElement->document() != this))
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/DocumentMarkerControllerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698