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

Unified Diff: third_party/WebKit/Source/web/WebDocument.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/web/WebDocument.cpp
diff --git a/third_party/WebKit/Source/web/WebDocument.cpp b/third_party/WebKit/Source/web/WebDocument.cpp
index e1a0c2397a7da8759fc28f843d8cd20fb4c1fd1e..f7eb3888e77dfc0e9ef70314e820d1b322edfc59 100644
--- a/third_party/WebKit/Source/web/WebDocument.cpp
+++ b/third_party/WebKit/Source/web/WebDocument.cpp
@@ -181,7 +181,7 @@ WebElementCollection WebDocument::all()
void WebDocument::forms(WebVector<WebFormElement>& results) const
{
- RefPtrWillBeRawPtr<HTMLCollection> forms = const_cast<Document*>(constUnwrap<Document>())->forms();
+ RawPtr<HTMLCollection> forms = const_cast<Document*>(constUnwrap<Document>())->forms();
size_t sourceLength = forms->length();
Vector<WebFormElement> temp;
temp.reserveCapacity(sourceLength);
@@ -211,16 +211,16 @@ WebElement WebDocument::focusedElement() const
void WebDocument::insertStyleSheet(const WebString& sourceCode)
{
- RefPtrWillBeRawPtr<Document> document = unwrap<Document>();
+ RawPtr<Document> document = unwrap<Document>();
ASSERT(document);
- RefPtrWillBeRawPtr<StyleSheetContents> parsedSheet = StyleSheetContents::create(CSSParserContext(*document, 0));
+ RawPtr<StyleSheetContents> parsedSheet = StyleSheetContents::create(CSSParserContext(*document, 0));
parsedSheet->parseString(sourceCode);
document->styleEngine().injectAuthorSheet(parsedSheet);
}
void WebDocument::watchCSSSelectors(const WebVector<WebString>& webSelectors)
{
- RefPtrWillBeRawPtr<Document> document = unwrap<Document>();
+ RawPtr<Document> document = unwrap<Document>();
CSSSelectorWatch* watch = CSSSelectorWatch::fromIfExists(*document);
if (!watch && webSelectors.isEmpty())
return;
@@ -328,20 +328,20 @@ WebDistillabilityFeatures WebDocument::distillabilityFeatures()
return DocumentStatisticsCollector::collectStatistics(*unwrap<Document>());
}
-WebDocument::WebDocument(const PassRefPtrWillBeRawPtr<Document>& elem)
+WebDocument::WebDocument(const RawPtr<Document>& elem)
: WebNode(elem)
{
}
DEFINE_WEB_NODE_TYPE_CASTS(WebDocument, constUnwrap<Node>()->isDocumentNode());
-WebDocument& WebDocument::operator=(const PassRefPtrWillBeRawPtr<Document>& elem)
+WebDocument& WebDocument::operator=(const RawPtr<Document>& elem)
{
m_private = elem;
return *this;
}
-WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const
+WebDocument::operator RawPtr<Document>() const
{
return toDocument(m_private.get());
}
« no previous file with comments | « third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp ('k') | third_party/WebKit/Source/web/WebElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698