Stop explicitly using PassOwnPtr in WebCore/html
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Sep 2013 21:58:57 +0000 (21:58 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Sep 2013 21:58:57 +0000 (21:58 +0000)
https://bugs.webkit.org/show_bug.cgi?id=121511

Reviewed by Andreas Kling.

Source/WebCore:

* dom/ElementRareData.h:
(WebCore::ElementRareData::setClassList):
* html/ButtonInputType.cpp:
(WebCore::ButtonInputType::create):
* html/ButtonInputType.h:
* html/CheckboxInputType.cpp:
(WebCore::CheckboxInputType::create):
(WebCore::CheckboxInputType::willDispatchClick):
* html/CheckboxInputType.h:
* html/ClassList.cpp:
(WebCore::ClassList::create):
* html/ClassList.h:
* html/ColorInputType.cpp:
(WebCore::ColorInputType::create):
* html/ColorInputType.h:
* html/DateInputType.cpp:
(WebCore::DateInputType::create):
* html/DateInputType.h:
* html/DateTimeInputType.cpp:
(WebCore::DateTimeInputType::create):
* html/DateTimeInputType.h:
* html/DateTimeLocalInputType.cpp:
(WebCore::DateTimeLocalInputType::create):
* html/DateTimeLocalInputType.h:
* html/EmailInputType.cpp:
(WebCore::EmailInputType::create):
* html/EmailInputType.h:
* html/FileInputType.cpp:
(WebCore::FileInputType::create):
* html/FileInputType.h:
* html/FormAssociatedElement.cpp:
(WebCore::FormAttributeTargetObserver::create):
* html/FormController.cpp:
(WebCore::SavedFormState::create):
(WebCore::SavedFormState::deserialize):
(WebCore::FormKeyGenerator::create):
(WebCore::FormController::createSavedFormStateMap):
* html/FormController.h:
(WebCore::FormController::create):
* html/HTMLInputElement.cpp:
(WebCore::ListAttributeTargetObserver::create):
* html/HiddenInputType.cpp:
(WebCore::HiddenInputType::create):
* html/HiddenInputType.h:
* html/ImageInputType.cpp:
(WebCore::ImageInputType::create):
* html/ImageInputType.h:
* html/InputType.cpp:
(WebCore::InputType::create):
(WebCore::InputType::createText):
(WebCore::InputType::willDispatchClick):
* html/InputType.h:
* html/MonthInputType.cpp:
(WebCore::MonthInputType::create):
* html/MonthInputType.h:
* html/NumberInputType.cpp:
(WebCore::NumberInputType::create):
* html/NumberInputType.h:
* html/PasswordInputType.cpp:
(WebCore::PasswordInputType::create):
* html/PasswordInputType.h:
* html/PublicURLManager.h:
(WebCore::PublicURLManager::create):
* html/RadioInputType.cpp:
(WebCore::RadioInputType::create):
(WebCore::RadioInputType::willDispatchClick):
* html/RadioInputType.h:
* html/RangeInputType.cpp:
(WebCore::RangeInputType::create):
* html/RangeInputType.h:
* html/ResetInputType.cpp:
(WebCore::ResetInputType::create):
* html/ResetInputType.h:
* html/SearchInputType.cpp:
(WebCore::SearchInputType::create):
* html/SearchInputType.h:
* html/SubmitInputType.cpp:
(WebCore::SubmitInputType::create):
* html/SubmitInputType.h:
* html/TelephoneInputType.cpp:
(WebCore::TelephoneInputType::create):
* html/TelephoneInputType.h:
* html/TextInputType.cpp:
(WebCore::TextInputType::create):
* html/TextInputType.h:
* html/TimeInputType.cpp:
(WebCore::TimeInputType::create):
* html/TimeInputType.h:
* html/URLInputType.cpp:
(WebCore::URLInputType::create):
* html/URLInputType.h:
* html/ValidationMessage.cpp:
(WebCore::ValidationMessage::create):
* html/ValidationMessage.h:
* html/ValidityState.h:
(WebCore::ValidityState::create):
* html/WeekInputType.cpp:
(WebCore::WeekInputType::create):
* html/WeekInputType.h:
* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::createCompositingBuffer):
* html/canvas/CanvasRenderingContext2D.h:
(WebCore::CanvasRenderingContext2D::create):
* html/canvas/EXTDrawBuffers.cpp:
(WebCore::EXTDrawBuffers::create):
* html/canvas/EXTDrawBuffers.h:
* html/canvas/EXTTextureFilterAnisotropic.cpp:
(WebCore::EXTTextureFilterAnisotropic::create):
* html/canvas/EXTTextureFilterAnisotropic.h:
* html/canvas/OESElementIndexUint.cpp:
(WebCore::OESElementIndexUint::create):
* html/canvas/OESElementIndexUint.h:
* html/canvas/OESStandardDerivatives.cpp:
(WebCore::OESStandardDerivatives::create):
* html/canvas/OESStandardDerivatives.h:
* html/canvas/OESTextureFloat.cpp:
(WebCore::OESTextureFloat::create):
* html/canvas/OESTextureFloat.h:
* html/canvas/OESTextureHalfFloat.cpp:
(WebCore::OESTextureHalfFloat::create):
* html/canvas/OESTextureHalfFloat.h:
* html/canvas/OESVertexArrayObject.cpp:
(WebCore::OESVertexArrayObject::create):
* html/canvas/OESVertexArrayObject.h:
* html/canvas/WebGLCompressedTextureATC.cpp:
(WebCore::WebGLCompressedTextureATC::create):
* html/canvas/WebGLCompressedTextureATC.h:
* html/canvas/WebGLCompressedTexturePVRTC.cpp:
(WebCore::WebGLCompressedTexturePVRTC::create):
* html/canvas/WebGLCompressedTexturePVRTC.h:
* html/canvas/WebGLCompressedTextureS3TC.cpp:
(WebCore::WebGLCompressedTextureS3TC::create):
* html/canvas/WebGLCompressedTextureS3TC.h:
* html/canvas/WebGLDebugRendererInfo.cpp:
(WebCore::WebGLDebugRendererInfo::create):
* html/canvas/WebGLDebugRendererInfo.h:
* html/canvas/WebGLDebugShaders.cpp:
(WebCore::WebGLDebugShaders::create):
* html/canvas/WebGLDebugShaders.h:
* html/canvas/WebGLDepthTexture.cpp:
(WebCore::WebGLDepthTexture::create):
* html/canvas/WebGLDepthTexture.h:
* html/canvas/WebGLLoseContext.cpp:
(WebCore::WebGLLoseContext::create):
* html/canvas/WebGLLoseContext.h:
* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::create):
* html/canvas/WebGLRenderingContext.h:
* html/parser/BackgroundHTMLParser.cpp:
(WebCore::BackgroundHTMLParser::BackgroundHTMLParser):
(WebCore::BackgroundHTMLParser::resumeFrom):
* html/parser/BackgroundHTMLParser.h:
(WebCore::BackgroundHTMLParser::create):
* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::didReceiveParsedChunkFromBackgroundParser):
(WebCore::HTMLDocumentParser::validateSpeculations):
(WebCore::HTMLDocumentParser::discardSpeculationsAndResumeFrom):
(WebCore::HTMLDocumentParser::processParsedChunkFromBackgroundParser):
* html/parser/HTMLDocumentParser.h:
* html/parser/HTMLElementStack.cpp:
(WebCore::HTMLElementStack::ElementRecord::ElementRecord):
* html/parser/HTMLElementStack.h:
(WebCore::HTMLElementStack::ElementRecord::releaseNext):
(WebCore::HTMLElementStack::ElementRecord::setNext):
* html/parser/HTMLMetaCharsetParser.h:
(WebCore::HTMLMetaCharsetParser::create):
* html/parser/HTMLParserScheduler.h:
(WebCore::HTMLParserScheduler::create):
* html/parser/HTMLParserThread.h:
(WebCore::HTMLParserThread::create):
* html/parser/HTMLPreloadScanner.cpp:
(WebCore::TokenPreloadScanner::StartTagScanner::createPreloadRequest):
* html/parser/HTMLResourcePreloader.cpp:
(WebCore::HTMLResourcePreloader::preload):
* html/parser/HTMLResourcePreloader.h:
(WebCore::PreloadRequest::create):
* html/parser/HTMLScriptRunner.h:
(WebCore::HTMLScriptRunner::create):
* html/parser/HTMLToken.h:
(WebCore::HTMLToken::releaseDoctypeData):
* html/parser/HTMLTokenizer.h:
(WebCore::HTMLTokenizer::create):
* html/parser/HTMLTreeBuilder.h:
(WebCore::HTMLTreeBuilder::create):
* html/parser/XSSAuditor.cpp:
(WebCore::XSSAuditor::filterToken):
* html/parser/XSSAuditor.h:
* html/parser/XSSAuditorDelegate.h:
(WebCore::XSSInfo::create):
* html/track/WebVTTParser.h:
(WebCore::WebVTTParser::create):
* html/track/WebVTTTokenizer.h:
(WebCore::WebVTTTokenizer::create):

Source/WTF:

Make operator= work work for different types of OwnPtrs.

* wtf/OwnPtr.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@156004 268f45cc-cd09-0410-ab3c-d52691b4dbfc

115 files changed:
Source/WTF/ChangeLog
Source/WTF/wtf/OwnPtr.h
Source/WebCore/ChangeLog
Source/WebCore/dom/ElementRareData.h
Source/WebCore/html/ButtonInputType.cpp
Source/WebCore/html/ButtonInputType.h
Source/WebCore/html/CheckboxInputType.cpp
Source/WebCore/html/CheckboxInputType.h
Source/WebCore/html/ClassList.cpp
Source/WebCore/html/ClassList.h
Source/WebCore/html/ColorInputType.cpp
Source/WebCore/html/ColorInputType.h
Source/WebCore/html/DateInputType.cpp
Source/WebCore/html/DateInputType.h
Source/WebCore/html/DateTimeInputType.cpp
Source/WebCore/html/DateTimeInputType.h
Source/WebCore/html/DateTimeLocalInputType.cpp
Source/WebCore/html/DateTimeLocalInputType.h
Source/WebCore/html/EmailInputType.cpp
Source/WebCore/html/EmailInputType.h
Source/WebCore/html/FileInputType.cpp
Source/WebCore/html/FileInputType.h
Source/WebCore/html/FormAssociatedElement.cpp
Source/WebCore/html/FormController.cpp
Source/WebCore/html/FormController.h
Source/WebCore/html/HTMLInputElement.cpp
Source/WebCore/html/HiddenInputType.cpp
Source/WebCore/html/HiddenInputType.h
Source/WebCore/html/ImageInputType.cpp
Source/WebCore/html/ImageInputType.h
Source/WebCore/html/InputType.cpp
Source/WebCore/html/InputType.h
Source/WebCore/html/MonthInputType.cpp
Source/WebCore/html/MonthInputType.h
Source/WebCore/html/NumberInputType.cpp
Source/WebCore/html/NumberInputType.h
Source/WebCore/html/PasswordInputType.cpp
Source/WebCore/html/PasswordInputType.h
Source/WebCore/html/PublicURLManager.h
Source/WebCore/html/RadioInputType.cpp
Source/WebCore/html/RadioInputType.h
Source/WebCore/html/RangeInputType.cpp
Source/WebCore/html/RangeInputType.h
Source/WebCore/html/ResetInputType.cpp
Source/WebCore/html/ResetInputType.h
Source/WebCore/html/SearchInputType.cpp
Source/WebCore/html/SearchInputType.h
Source/WebCore/html/SubmitInputType.cpp
Source/WebCore/html/SubmitInputType.h
Source/WebCore/html/TelephoneInputType.cpp
Source/WebCore/html/TelephoneInputType.h
Source/WebCore/html/TextInputType.cpp
Source/WebCore/html/TextInputType.h
Source/WebCore/html/TimeInputType.cpp
Source/WebCore/html/TimeInputType.h
Source/WebCore/html/URLInputType.cpp
Source/WebCore/html/URLInputType.h
Source/WebCore/html/ValidationMessage.cpp
Source/WebCore/html/ValidationMessage.h
Source/WebCore/html/ValidityState.h
Source/WebCore/html/WeekInputType.cpp
Source/WebCore/html/WeekInputType.h
Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp
Source/WebCore/html/canvas/CanvasRenderingContext2D.h
Source/WebCore/html/canvas/EXTDrawBuffers.cpp
Source/WebCore/html/canvas/EXTDrawBuffers.h
Source/WebCore/html/canvas/EXTTextureFilterAnisotropic.cpp
Source/WebCore/html/canvas/EXTTextureFilterAnisotropic.h
Source/WebCore/html/canvas/OESElementIndexUint.cpp
Source/WebCore/html/canvas/OESElementIndexUint.h
Source/WebCore/html/canvas/OESStandardDerivatives.cpp
Source/WebCore/html/canvas/OESStandardDerivatives.h
Source/WebCore/html/canvas/OESTextureFloat.cpp
Source/WebCore/html/canvas/OESTextureFloat.h
Source/WebCore/html/canvas/OESTextureHalfFloat.cpp
Source/WebCore/html/canvas/OESTextureHalfFloat.h
Source/WebCore/html/canvas/OESVertexArrayObject.cpp
Source/WebCore/html/canvas/OESVertexArrayObject.h
Source/WebCore/html/canvas/WebGLCompressedTextureATC.cpp
Source/WebCore/html/canvas/WebGLCompressedTextureATC.h
Source/WebCore/html/canvas/WebGLCompressedTexturePVRTC.cpp
Source/WebCore/html/canvas/WebGLCompressedTexturePVRTC.h
Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.cpp
Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.h
Source/WebCore/html/canvas/WebGLDebugRendererInfo.cpp
Source/WebCore/html/canvas/WebGLDebugRendererInfo.h
Source/WebCore/html/canvas/WebGLDebugShaders.cpp
Source/WebCore/html/canvas/WebGLDebugShaders.h
Source/WebCore/html/canvas/WebGLDepthTexture.cpp
Source/WebCore/html/canvas/WebGLDepthTexture.h
Source/WebCore/html/canvas/WebGLLoseContext.cpp
Source/WebCore/html/canvas/WebGLLoseContext.h
Source/WebCore/html/canvas/WebGLRenderingContext.cpp
Source/WebCore/html/canvas/WebGLRenderingContext.h
Source/WebCore/html/parser/BackgroundHTMLParser.cpp
Source/WebCore/html/parser/BackgroundHTMLParser.h
Source/WebCore/html/parser/HTMLDocumentParser.cpp
Source/WebCore/html/parser/HTMLDocumentParser.h
Source/WebCore/html/parser/HTMLElementStack.cpp
Source/WebCore/html/parser/HTMLElementStack.h
Source/WebCore/html/parser/HTMLMetaCharsetParser.h
Source/WebCore/html/parser/HTMLParserScheduler.h
Source/WebCore/html/parser/HTMLParserThread.h
Source/WebCore/html/parser/HTMLPreloadScanner.cpp
Source/WebCore/html/parser/HTMLResourcePreloader.cpp
Source/WebCore/html/parser/HTMLResourcePreloader.h
Source/WebCore/html/parser/HTMLScriptRunner.h
Source/WebCore/html/parser/HTMLToken.h
Source/WebCore/html/parser/HTMLTokenizer.h
Source/WebCore/html/parser/HTMLTreeBuilder.h
Source/WebCore/html/parser/XSSAuditor.cpp
Source/WebCore/html/parser/XSSAuditor.h
Source/WebCore/html/parser/XSSAuditorDelegate.h
Source/WebCore/html/track/WebVTTParser.h
Source/WebCore/html/track/WebVTTTokenizer.h

index 6e517140409e5e9750f1b1d035225f5889d01ca2..91612a48ad5f392feacb6d8fa72abdc4c7679231 100644 (file)
@@ -1,3 +1,14 @@
+2013-09-17  Anders Carlsson  <andersca@apple.com>
+
+        Stop explicitly using PassOwnPtr in WebCore/html
+        https://bugs.webkit.org/show_bug.cgi?id=121511
+
+        Reviewed by Andreas Kling.
+
+        Make operator= work work for different types of OwnPtrs.
+
+        * wtf/OwnPtr.h:
+
 2013-09-17  Sam Weinig  <sam@webkit.org>
 
         Add make_unique and start using it
index 20bfa6c270b7623f46b15f9b0c11946e4a788491..96bce9d0a25253284dcb9b04491328746c522280 100644 (file)
@@ -149,7 +149,6 @@ namespace WTF {
         return *this;
     }
 
-#if COMPILER_SUPPORTS(CXX_RVALUE_REFERENCES)
     template<typename T> inline OwnPtr<T>::OwnPtr(OwnPtr<T>&& o)
         : m_ptr(o.leakPtr())
     {
@@ -160,22 +159,21 @@ namespace WTF {
     {
     }
 
-    template<typename T> inline OwnPtr<T>& OwnPtr<T>::operator=(OwnPtr<T>&& o)
+    template<typename T> inline auto OwnPtr<T>::operator=(OwnPtr&& o) -> OwnPtr&
     {
         ASSERT(!o || o != m_ptr);
-        auto ptr = std::move(o);
+        OwnPtr ptr = std::move(o);
         swap(ptr);
         return *this;
     }
 
-    template<typename T> template<typename U> inline OwnPtr<T>& OwnPtr<T>::operator=(OwnPtr<U>&& o)
+    template<typename T> template<typename U> inline auto OwnPtr<T>::operator=(OwnPtr<U>&& o) -> OwnPtr&
     {
         ASSERT(!o || o != m_ptr);
-        auto ptr = std::move(o);
+        OwnPtr ptr = std::move(o);
         swap(ptr);
         return *this;
     }
-#endif
 
     template<typename T> inline void swap(OwnPtr<T>& a, OwnPtr<T>& b)
     {
index a23a086b16b0ddc0e93bae88f813a33cb27ba72a..747215d246991a3105e62112562d9080dceae2e7 100644 (file)
@@ -1,3 +1,204 @@
+2013-09-17  Anders Carlsson  <andersca@apple.com>
+
+        Stop explicitly using PassOwnPtr in WebCore/html
+        https://bugs.webkit.org/show_bug.cgi?id=121511
+
+        Reviewed by Andreas Kling.
+
+        * dom/ElementRareData.h:
+        (WebCore::ElementRareData::setClassList):
+        * html/ButtonInputType.cpp:
+        (WebCore::ButtonInputType::create):
+        * html/ButtonInputType.h:
+        * html/CheckboxInputType.cpp:
+        (WebCore::CheckboxInputType::create):
+        (WebCore::CheckboxInputType::willDispatchClick):
+        * html/CheckboxInputType.h:
+        * html/ClassList.cpp:
+        (WebCore::ClassList::create):
+        * html/ClassList.h:
+        * html/ColorInputType.cpp:
+        (WebCore::ColorInputType::create):
+        * html/ColorInputType.h:
+        * html/DateInputType.cpp:
+        (WebCore::DateInputType::create):
+        * html/DateInputType.h:
+        * html/DateTimeInputType.cpp:
+        (WebCore::DateTimeInputType::create):
+        * html/DateTimeInputType.h:
+        * html/DateTimeLocalInputType.cpp:
+        (WebCore::DateTimeLocalInputType::create):
+        * html/DateTimeLocalInputType.h:
+        * html/EmailInputType.cpp:
+        (WebCore::EmailInputType::create):
+        * html/EmailInputType.h:
+        * html/FileInputType.cpp:
+        (WebCore::FileInputType::create):
+        * html/FileInputType.h:
+        * html/FormAssociatedElement.cpp:
+        (WebCore::FormAttributeTargetObserver::create):
+        * html/FormController.cpp:
+        (WebCore::SavedFormState::create):
+        (WebCore::SavedFormState::deserialize):
+        (WebCore::FormKeyGenerator::create):
+        (WebCore::FormController::createSavedFormStateMap):
+        * html/FormController.h:
+        (WebCore::FormController::create):
+        * html/HTMLInputElement.cpp:
+        (WebCore::ListAttributeTargetObserver::create):
+        * html/HiddenInputType.cpp:
+        (WebCore::HiddenInputType::create):
+        * html/HiddenInputType.h:
+        * html/ImageInputType.cpp:
+        (WebCore::ImageInputType::create):
+        * html/ImageInputType.h:
+        * html/InputType.cpp:
+        (WebCore::InputType::create):
+        (WebCore::InputType::createText):
+        (WebCore::InputType::willDispatchClick):
+        * html/InputType.h:
+        * html/MonthInputType.cpp:
+        (WebCore::MonthInputType::create):
+        * html/MonthInputType.h:
+        * html/NumberInputType.cpp:
+        (WebCore::NumberInputType::create):
+        * html/NumberInputType.h:
+        * html/PasswordInputType.cpp:
+        (WebCore::PasswordInputType::create):
+        * html/PasswordInputType.h:
+        * html/PublicURLManager.h:
+        (WebCore::PublicURLManager::create):
+        * html/RadioInputType.cpp:
+        (WebCore::RadioInputType::create):
+        (WebCore::RadioInputType::willDispatchClick):
+        * html/RadioInputType.h:
+        * html/RangeInputType.cpp:
+        (WebCore::RangeInputType::create):
+        * html/RangeInputType.h:
+        * html/ResetInputType.cpp:
+        (WebCore::ResetInputType::create):
+        * html/ResetInputType.h:
+        * html/SearchInputType.cpp:
+        (WebCore::SearchInputType::create):
+        * html/SearchInputType.h:
+        * html/SubmitInputType.cpp:
+        (WebCore::SubmitInputType::create):
+        * html/SubmitInputType.h:
+        * html/TelephoneInputType.cpp:
+        (WebCore::TelephoneInputType::create):
+        * html/TelephoneInputType.h:
+        * html/TextInputType.cpp:
+        (WebCore::TextInputType::create):
+        * html/TextInputType.h:
+        * html/TimeInputType.cpp:
+        (WebCore::TimeInputType::create):
+        * html/TimeInputType.h:
+        * html/URLInputType.cpp:
+        (WebCore::URLInputType::create):
+        * html/URLInputType.h:
+        * html/ValidationMessage.cpp:
+        (WebCore::ValidationMessage::create):
+        * html/ValidationMessage.h:
+        * html/ValidityState.h:
+        (WebCore::ValidityState::create):
+        * html/WeekInputType.cpp:
+        (WebCore::WeekInputType::create):
+        * html/WeekInputType.h:
+        * html/canvas/CanvasRenderingContext2D.cpp:
+        (WebCore::CanvasRenderingContext2D::createCompositingBuffer):
+        * html/canvas/CanvasRenderingContext2D.h:
+        (WebCore::CanvasRenderingContext2D::create):
+        * html/canvas/EXTDrawBuffers.cpp:
+        (WebCore::EXTDrawBuffers::create):
+        * html/canvas/EXTDrawBuffers.h:
+        * html/canvas/EXTTextureFilterAnisotropic.cpp:
+        (WebCore::EXTTextureFilterAnisotropic::create):
+        * html/canvas/EXTTextureFilterAnisotropic.h:
+        * html/canvas/OESElementIndexUint.cpp:
+        (WebCore::OESElementIndexUint::create):
+        * html/canvas/OESElementIndexUint.h:
+        * html/canvas/OESStandardDerivatives.cpp:
+        (WebCore::OESStandardDerivatives::create):
+        * html/canvas/OESStandardDerivatives.h:
+        * html/canvas/OESTextureFloat.cpp:
+        (WebCore::OESTextureFloat::create):
+        * html/canvas/OESTextureFloat.h:
+        * html/canvas/OESTextureHalfFloat.cpp:
+        (WebCore::OESTextureHalfFloat::create):
+        * html/canvas/OESTextureHalfFloat.h:
+        * html/canvas/OESVertexArrayObject.cpp:
+        (WebCore::OESVertexArrayObject::create):
+        * html/canvas/OESVertexArrayObject.h:
+        * html/canvas/WebGLCompressedTextureATC.cpp:
+        (WebCore::WebGLCompressedTextureATC::create):
+        * html/canvas/WebGLCompressedTextureATC.h:
+        * html/canvas/WebGLCompressedTexturePVRTC.cpp:
+        (WebCore::WebGLCompressedTexturePVRTC::create):
+        * html/canvas/WebGLCompressedTexturePVRTC.h:
+        * html/canvas/WebGLCompressedTextureS3TC.cpp:
+        (WebCore::WebGLCompressedTextureS3TC::create):
+        * html/canvas/WebGLCompressedTextureS3TC.h:
+        * html/canvas/WebGLDebugRendererInfo.cpp:
+        (WebCore::WebGLDebugRendererInfo::create):
+        * html/canvas/WebGLDebugRendererInfo.h:
+        * html/canvas/WebGLDebugShaders.cpp:
+        (WebCore::WebGLDebugShaders::create):
+        * html/canvas/WebGLDebugShaders.h:
+        * html/canvas/WebGLDepthTexture.cpp:
+        (WebCore::WebGLDepthTexture::create):
+        * html/canvas/WebGLDepthTexture.h:
+        * html/canvas/WebGLLoseContext.cpp:
+        (WebCore::WebGLLoseContext::create):
+        * html/canvas/WebGLLoseContext.h:
+        * html/canvas/WebGLRenderingContext.cpp:
+        (WebCore::WebGLRenderingContext::create):
+        * html/canvas/WebGLRenderingContext.h:
+        * html/parser/BackgroundHTMLParser.cpp:
+        (WebCore::BackgroundHTMLParser::BackgroundHTMLParser):
+        (WebCore::BackgroundHTMLParser::resumeFrom):
+        * html/parser/BackgroundHTMLParser.h:
+        (WebCore::BackgroundHTMLParser::create):
+        * html/parser/HTMLDocumentParser.cpp:
+        (WebCore::HTMLDocumentParser::didReceiveParsedChunkFromBackgroundParser):
+        (WebCore::HTMLDocumentParser::validateSpeculations):
+        (WebCore::HTMLDocumentParser::discardSpeculationsAndResumeFrom):
+        (WebCore::HTMLDocumentParser::processParsedChunkFromBackgroundParser):
+        * html/parser/HTMLDocumentParser.h:
+        * html/parser/HTMLElementStack.cpp:
+        (WebCore::HTMLElementStack::ElementRecord::ElementRecord):
+        * html/parser/HTMLElementStack.h:
+        (WebCore::HTMLElementStack::ElementRecord::releaseNext):
+        (WebCore::HTMLElementStack::ElementRecord::setNext):
+        * html/parser/HTMLMetaCharsetParser.h:
+        (WebCore::HTMLMetaCharsetParser::create):
+        * html/parser/HTMLParserScheduler.h:
+        (WebCore::HTMLParserScheduler::create):
+        * html/parser/HTMLParserThread.h:
+        (WebCore::HTMLParserThread::create):
+        * html/parser/HTMLPreloadScanner.cpp:
+        (WebCore::TokenPreloadScanner::StartTagScanner::createPreloadRequest):
+        * html/parser/HTMLResourcePreloader.cpp:
+        (WebCore::HTMLResourcePreloader::preload):
+        * html/parser/HTMLResourcePreloader.h:
+        (WebCore::PreloadRequest::create):
+        * html/parser/HTMLScriptRunner.h:
+        (WebCore::HTMLScriptRunner::create):
+        * html/parser/HTMLToken.h:
+        (WebCore::HTMLToken::releaseDoctypeData):
+        * html/parser/HTMLTokenizer.h:
+        (WebCore::HTMLTokenizer::create):
+        * html/parser/HTMLTreeBuilder.h:
+        (WebCore::HTMLTreeBuilder::create):
+        * html/parser/XSSAuditor.cpp:
+        (WebCore::XSSAuditor::filterToken):
+        * html/parser/XSSAuditor.h:
+        * html/parser/XSSAuditorDelegate.h:
+        (WebCore::XSSInfo::create):
+        * html/track/WebVTTParser.h:
+        (WebCore::WebVTTParser::create):
+        * html/track/WebVTTTokenizer.h:
+        (WebCore::WebVTTTokenizer::create):
+
 2013-09-17  Enrica Casucci  <enrica@apple.com>
 
         Upstream changes to WebHTMLConverter to support HTML
index 7e0161d52d8514b4adb2597cdf5e22a7429fe517..b556867a22c023dc41080956335a8f082127a3d6 100644 (file)
@@ -104,7 +104,7 @@ public:
     void setComputedStyle(PassRefPtr<RenderStyle> computedStyle) { m_computedStyle = computedStyle; }
 
     ClassList* classList() const { return m_classList.get(); }
-    void setClassList(PassOwnPtr<ClassList> classList) { m_classList = classList; }
+    void setClassList(OwnPtr<ClassList> classList) { m_classList = std::move(classList); }
     void clearClassListValueForQuirksMode()
     {
         if (!m_classList)
index 1bea6013f20aa38237f31153ef68f82821b36887..9ce280c8524b9abcad9c5d33b3ca2729fa13fd5b 100644 (file)
@@ -36,7 +36,7 @@
 
 namespace WebCore {
 
-PassOwnPtr<InputType> ButtonInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> ButtonInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new ButtonInputType(element));
 }
index b8b45dbe0aeea429f2731ab3528c5fe68c0e6482..b4e9480596fd309358f92f93d879fab1135735aa 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 class ButtonInputType : public BaseButtonInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     ButtonInputType(HTMLInputElement& element) : BaseButtonInputType(element) { }
index e233a8f9c80f3af06a0ee816be3db03a5eddbf66..8c8cfa227e1f5c034826cdd754197ad78188271d 100644 (file)
@@ -40,7 +40,7 @@
 
 namespace WebCore {
 
-PassOwnPtr<InputType> CheckboxInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> CheckboxInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new CheckboxInputType(element));
 }
@@ -68,7 +68,7 @@ void CheckboxInputType::handleKeyupEvent(KeyboardEvent* event)
     dispatchSimulatedClickIfActive(event);
 }
 
-PassOwnPtr<ClickHandlingState> CheckboxInputType::willDispatchClick()
+OwnPtr<ClickHandlingState> CheckboxInputType::willDispatchClick()
 {
     // An event handler can use preventDefault or "return false" to reverse the checking we do here.
     // The ClickHandlingState object contains what we need to undo what we did here in didDispatchClick.
index d77bfa68de19ad50d3bfd0b47682875ffd6e127b..7ecbd08bc64fc3f03f815337654e24a563fd0468 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 class CheckboxInputType : public BaseCheckableInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     CheckboxInputType(HTMLInputElement& element) : BaseCheckableInputType(element) { }
@@ -45,7 +45,7 @@ private:
     virtual bool valueMissing(const String&) const OVERRIDE;
     virtual String valueMissingText() const OVERRIDE;
     virtual void handleKeyupEvent(KeyboardEvent*) OVERRIDE;
-    virtual PassOwnPtr<ClickHandlingState> willDispatchClick() OVERRIDE;
+    virtual OwnPtr<ClickHandlingState> willDispatchClick() OVERRIDE;
     virtual void didDispatchClick(Event*, const ClickHandlingState&) OVERRIDE;
     virtual bool isCheckbox() const OVERRIDE;
     virtual bool supportsIndeterminateAppearance() const OVERRIDE;
index 2502320a37e070f78e09d1e30e9fee30cbfb81fe..cb71a5633ca17bb624c9238340600cb88e7bce35 100644 (file)
@@ -32,7 +32,7 @@
 
 namespace WebCore {
 
-PassOwnPtr<ClassList> ClassList::create(Element* element)
+OwnPtr<ClassList> ClassList::create(Element* element)
 {
     return adoptPtr(new ClassList(element));
 }
index c6efe74cd6ad0334a20c41b35560bfb8f3ff1381..b85062e9cce102f5869fac276fe9de6346f02451 100644 (file)
@@ -35,7 +35,7 @@ class Element;
 
 class ClassList : public DOMTokenList {
 public:
-    static PassOwnPtr<ClassList> create(Element*);
+    static OwnPtr<ClassList> create(Element*);
 
     virtual void ref() OVERRIDE FINAL;
     virtual void deref() OVERRIDE FINAL;
index 244623358d6e74131f6d3f61acc7d53c2d8afd31..c325fc85ef11102fc632ead3f8ae7efb1c9ea6ba 100644 (file)
@@ -66,7 +66,7 @@ static bool isValidColorString(const String& value)
     return color.isValid() && !color.hasAlpha();
 }
 
-PassOwnPtr<InputType> ColorInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> ColorInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new ColorInputType(element));
 }
index 66f400eac8fe795d654b44a3017da666f4f74eb7..00a3f5b251597ded36942c696f294886938d4ee7 100644 (file)
@@ -39,7 +39,7 @@ namespace WebCore {
 
 class ColorInputType : public BaseClickableWithKeyInputType, public ColorChooserClient {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
     virtual ~ColorInputType();
 
     // ColorChooserClient implementation.
index 5a2eae01e396f5088340d0e246a71e4f3b1eb853..12fa04093961815d9abe9596ed9512f2e42093d1 100644 (file)
@@ -51,7 +51,7 @@ inline DateInputType::DateInputType(HTMLInputElement& element)
 {
 }
 
-PassOwnPtr<InputType> DateInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> DateInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new DateInputType(element));
 }
index a9d05169238e84de8853370257c670fb73c66595..4a0c23d19e11fe3defed80d8e07d7bcf0e319f2c 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
 
 class DateInputType : public BaseChooserOnlyDateAndTimeInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit DateInputType(HTMLInputElement&);
index 09cde5835b3380a3d42b708d01c9e5658ffe7e0f..11f7e9eab81da9fcab97b9dd5529d8cf95899eba 100644 (file)
@@ -47,7 +47,7 @@ static const int dateTimeDefaultStep = 60;
 static const int dateTimeDefaultStepBase = 0;
 static const int dateTimeStepScaleFactor = 1000;
 
-PassOwnPtr<InputType> DateTimeInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> DateTimeInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new DateTimeInputType(element));
 }
index 2e8d3e03ce99531140b94ccdc140c134e7ed9340..20f4ddf91d0b7bef5a9110700dd2a62ca704c922 100644 (file)
@@ -39,7 +39,7 @@ namespace WebCore {
 
 class DateTimeInputType : public BaseChooserOnlyDateAndTimeInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit DateTimeInputType(HTMLInputElement& element) : BaseDateTimeInputType(element) { }
index 55a0b51abd265a1ee56c9523a9770646f7c35e3f..55d4d09306329d87d527d726180a62b3875e9279 100644 (file)
@@ -46,7 +46,7 @@ static const int dateTimeLocalDefaultStep = 60;
 static const int dateTimeLocalDefaultStepBase = 0;
 static const int dateTimeLocalStepScaleFactor = 1000;
 
-PassOwnPtr<InputType> DateTimeLocalInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> DateTimeLocalInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new DateTimeLocalInputType(element));
 }
index 161487363362da43aa1c279ba97a17545a8f2bcb..69f2bba63927a893415ad6c0dc3142d3464e31dd 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
 
 class DateTimeLocalInputType : public BaseChooserOnlyDateAndTimeInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit DateTimeLocalInputType(HTMLInputElement& element) : BaseDateTimeLocalInputType(element) { }
index d7c964c5745e3d7d91a22b7ceeda225bbb680f79..27de8d45f6d8f00ab6856eb6d5ca34fc601eecd8 100644 (file)
@@ -53,7 +53,7 @@ static bool isValidEmailAddress(const String& address)
     return !matchOffset && matchLength == addressLength;
 }
 
-PassOwnPtr<InputType> EmailInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> EmailInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new EmailInputType(element));
 }
index 5f147fa276ccff3ded8999c0e499c09c051e3ad2..e0d213186d99b8e05c41ebedb082207f0bb4dbf9 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 class EmailInputType : public BaseTextInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit EmailInputType(HTMLInputElement& element) : BaseTextInputType(element) { }
index e0148311bb6e4dd9964e5cb62322c4ad4b7efe9d..35a8741ef2fb0e4d0b20e02e6bfd68afd82d0e0e 100644 (file)
@@ -85,7 +85,7 @@ const AtomicString& UploadButtonElement::shadowPseudoId() const
     return pseudoId;
 }
 
-PassOwnPtr<InputType> FileInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> FileInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new FileInputType(element));
 }
index 999639953fc4f7bb86490f6b7b98a7a10331c596..154082b4084c239554b0f4e6c36ce42e1b630e54 100644 (file)
@@ -44,7 +44,7 @@ class FileList;
 
 class FileInputType : public BaseClickableWithKeyInputType, private FileChooserClient, private FileIconLoaderClient {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
     virtual ~FileInputType();
 
     static Vector<FileChooserFileInfo> filesFromFormControlState(const FormControlState&);
index c7de1ea0445cf5ef7be6eefd1d411b272bcc71e2..1f3c637ea3804d48399e3954beac782fe2a037a5 100644 (file)
@@ -42,7 +42,7 @@ using namespace HTMLNames;
 class FormAttributeTargetObserver : IdTargetObserver {
     WTF_MAKE_FAST_ALLOCATED;
 public:
-    static PassOwnPtr<FormAttributeTargetObserver> create(const AtomicString& id, FormAssociatedElement*);
+    static OwnPtr<FormAttributeTargetObserver> create(const AtomicString& id, FormAssociatedElement*);
     virtual void idTargetChanged() OVERRIDE;
 
 private:
@@ -273,7 +273,7 @@ bool FormAssociatedElement::isFormControlElementWithState() const
     return false;
 }
 
-PassOwnPtr<FormAttributeTargetObserver> FormAttributeTargetObserver::create(const AtomicString& id, FormAssociatedElement* element)
+OwnPtr<FormAttributeTargetObserver> FormAttributeTargetObserver::create(const AtomicString& id, FormAssociatedElement* element)
 {
     return adoptPtr(new FormAttributeTargetObserver(id, element));
 }
index b913c3c52453f55e0aab107a4fedf82d3ac83e6e..24a37380c599c5de22d6937594b443650e3216a9 100644 (file)
@@ -175,8 +175,8 @@ class SavedFormState {
     WTF_MAKE_FAST_ALLOCATED;
 
 public:
-    static PassOwnPtr<SavedFormState> create();
-    static PassOwnPtr<SavedFormState> deserialize(const Vector<String>&, size_t& index);
+    static OwnPtr<SavedFormState> create();
+    static OwnPtr<SavedFormState> deserialize(const Vector<String>&, size_t& index);
     void serializeTo(Vector<String>&) const;
     bool isEmpty() const { return m_stateForNewFormElements.isEmpty(); }
     void appendControlState(const AtomicString& name, const AtomicString& type, const FormControlState&);
@@ -192,7 +192,7 @@ private:
     size_t m_controlStateCount;
 };
 
-PassOwnPtr<SavedFormState> SavedFormState::create()
+OwnPtr<SavedFormState> SavedFormState::create()
 {
     return adoptPtr(new SavedFormState);
 }
@@ -202,7 +202,7 @@ static bool isNotFormControlTypeCharacter(UChar ch)
     return ch != '-' && (ch > 'z' || ch < 'a');
 }
 
-PassOwnPtr<SavedFormState> SavedFormState::deserialize(const Vector<String>& stateVector, size_t& index)
+OwnPtr<SavedFormState> SavedFormState::deserialize(const Vector<String>& stateVector, size_t& index)
 {
     if (index >= stateVector.size())
         return nullptr;
@@ -291,7 +291,7 @@ class FormKeyGenerator {
     WTF_MAKE_FAST_ALLOCATED;
 
 public:
-    static PassOwnPtr<FormKeyGenerator> create() { return adoptPtr(new FormKeyGenerator); }
+    static OwnPtr<FormKeyGenerator> create() { return adoptPtr(new FormKeyGenerator); }
     AtomicString formKey(const HTMLFormControlElementWithState&);
     void willDeleteForm(HTMLFormElement*);
 
@@ -390,7 +390,7 @@ static String formStateSignature()
     return signature;
 }
 
-PassOwnPtr<FormController::SavedFormStateMap> FormController::createSavedFormStateMap(const FormElementListHashSet& controlList)
+OwnPtr<FormController::SavedFormStateMap> FormController::createSavedFormStateMap(const FormElementListHashSet& controlList)
 {
     OwnPtr<FormKeyGenerator> keyGenerator = FormKeyGenerator::create();
     OwnPtr<SavedFormStateMap> stateMap = adoptPtr(new SavedFormStateMap);
index 51be3ed83e8878c37dca4cfc7d87d6d47ca40d6b..2ce94dc3484a9fe11e7d8a7fc717e079d8641d24 100644 (file)
@@ -74,7 +74,7 @@ inline void FormControlState::append(const String& value)
 class FormController {
     WTF_MAKE_FAST_ALLOCATED;
 public:
-    static PassOwnPtr<FormController> create()
+    static OwnPtr<FormController> create()
     {
         return adoptPtr(new FormController);
     }
@@ -99,7 +99,7 @@ private:
     typedef HashMap<RefPtr<AtomicStringImpl>, OwnPtr<SavedFormState> > SavedFormStateMap;
 
     FormController();
-    static PassOwnPtr<SavedFormStateMap> createSavedFormStateMap(const FormElementListHashSet&);
+    static OwnPtr<SavedFormStateMap> createSavedFormStateMap(const FormElementListHashSet&);
     FormControlState takeStateForFormElement(const HTMLFormControlElementWithState&);
     static void formStatesFromStateVector(const Vector<String>&, SavedFormStateMap&);
 
index a91f77a362b2fd49eb61b2171e05d5f3c04f685a..e67232a55d7236ba682fe52b4e39659857879910 100644 (file)
@@ -92,7 +92,7 @@ using namespace HTMLNames;
 class ListAttributeTargetObserver : IdTargetObserver {
     WTF_MAKE_FAST_ALLOCATED;
 public:
-    static PassOwnPtr<ListAttributeTargetObserver> create(const AtomicString& id, HTMLInputElement*);
+    static OwnPtr<ListAttributeTargetObserver> create(const AtomicString& id, HTMLInputElement*);
     virtual void idTargetChanged() OVERRIDE;
 
 private:
@@ -1904,7 +1904,7 @@ void HTMLInputElement::setWidth(unsigned width)
 }
 
 #if ENABLE(DATALIST_ELEMENT)
-PassOwnPtr<ListAttributeTargetObserver> ListAttributeTargetObserver::create(const AtomicString& id, HTMLInputElement* element)
+OwnPtr<ListAttributeTargetObserver> ListAttributeTargetObserver::create(const AtomicString& id, HTMLInputElement* element)
 {
     return adoptPtr(new ListAttributeTargetObserver(id, element));
 }
index 54690e57c75cb6ef05b9eeacbac51dd11972ff7b..e34601666859e21a96d6a6b92a3c5ef739df4e34 100644 (file)
@@ -43,7 +43,7 @@ namespace WebCore {
 
 using namespace HTMLNames;
 
-PassOwnPtr<InputType> HiddenInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> HiddenInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new HiddenInputType(element));
 }
index 447a949893107698b9a6aff1d0bc5a4a65c921a6..f5091ccb73253877a347e661e9dd0ba43ffa765b 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 class HiddenInputType : public InputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit HiddenInputType(HTMLInputElement& element) : InputType(element) { }
index 2a3d814e68bcfb86a863a6f8aa173f1a6e552332..b19cd0af6f554602ff26701ca107bc2caa188b94 100644 (file)
@@ -44,7 +44,7 @@ inline ImageInputType::ImageInputType(HTMLInputElement& element)
 {
 }
 
-PassOwnPtr<InputType> ImageInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> ImageInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new ImageInputType(element));
 }
index c6023380d608e4fdecacb45fecdc9dd772403a89..f3b50c485f451090dab47cf86553c39655e103e9 100644 (file)
@@ -40,7 +40,7 @@ namespace WebCore {
 
 class ImageInputType : public BaseButtonInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit ImageInputType(HTMLInputElement&);
index 75e4276a7e97c8bd56eeb340d8788ca6fa088381..386868a20c955b6d1ed0288b58a9adf36bb39e1a 100644 (file)
@@ -84,7 +84,7 @@ namespace WebCore {
 using namespace HTMLNames;
 using namespace std;
 
-typedef PassOwnPtr<InputType> (*InputTypeFactoryFunction)(HTMLInputElement&);
+typedef OwnPtr<InputType> (*InputTypeFactoryFunction)(HTMLInputElement&);
 typedef HashMap<AtomicString, InputTypeFactoryFunction, CaseFoldingHash> InputTypeFactoryMap;
 
 static OwnPtr<InputTypeFactoryMap> createInputTypeFactoryMap()
@@ -140,16 +140,16 @@ static OwnPtr<InputTypeFactoryMap> createInputTypeFactoryMap()
     return map;
 }
 
-PassOwnPtr<InputType> InputType::create(HTMLInputElement& element, const AtomicString& typeName)
+OwnPtr<InputType> InputType::create(HTMLInputElement& element, const AtomicString& typeName)
 {
     static const InputTypeFactoryMap* factoryMap = createInputTypeFactoryMap().leakPtr();
-    PassOwnPtr<InputType> (*factory)(HTMLInputElement&) = typeName.isEmpty() ? 0 : factoryMap->get(typeName);
+    OwnPtr<InputType> (*factory)(HTMLInputElement&) = typeName.isEmpty() ? 0 : factoryMap->get(typeName);
     if (!factory)
         factory = TextInputType::create;
     return factory(element);
 }
 
-PassOwnPtr<InputType> InputType::createText(HTMLInputElement& element)
+OwnPtr<InputType> InputType::createText(HTMLInputElement& element)
 {
     return TextInputType::create(element);
 }
@@ -682,7 +682,7 @@ bool InputType::canSetValue(const String&)
     return true;
 }
 
-PassOwnPtr<ClickHandlingState> InputType::willDispatchClick()
+OwnPtr<ClickHandlingState> InputType::willDispatchClick()
 {
     return nullptr;
 }
index 246e8ef4181680fd50d1d33706ad4da434fe30b6..16de2bf134c6b380d0a7c63a27eccc4b12d04afe 100644 (file)
@@ -82,8 +82,8 @@ class InputType {
     WTF_MAKE_FAST_ALLOCATED;
 
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&, const AtomicString&);
-    static PassOwnPtr<InputType> createText(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&, const AtomicString&);
+    static OwnPtr<InputType> createText(HTMLInputElement&);
     virtual ~InputType();
 
     static bool themeSupportsDataListUI(InputType*);
@@ -186,7 +186,7 @@ public:
 
     virtual void handleClickEvent(MouseEvent*);
     virtual void handleMouseDownEvent(MouseEvent*);
-    virtual PassOwnPtr<ClickHandlingState> willDispatchClick();
+    virtual OwnPtr<ClickHandlingState> willDispatchClick();
     virtual void didDispatchClick(Event*, const ClickHandlingState&);
     virtual void handleDOMActivateEvent(Event*);
     virtual void handleKeydownEvent(KeyboardEvent*);
index b6c605d83e6e4b159cf24c41ee887202b5ad8375..48ead1fe8e2414b6551f47b33f59cb74cbb515d1 100644 (file)
@@ -49,7 +49,7 @@ static const int monthDefaultStep = 1;
 static const int monthDefaultStepBase = 0;
 static const int monthStepScaleFactor = 1;
 
-PassOwnPtr<InputType> MonthInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> MonthInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new MonthInputType(element));
 }
index e57b16d6c3a16ca682eac1ec7fd52f370ab8e5bd..9b54e0b604a1d23f38e630ace306132d1bcd3ed5 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
 
 class MonthInputType : public BaseChooserOnlyDateAndTimeInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit MonthInputType(HTMLInputElement& element) : BaseMonthInputType(element) { }
index 76b5a1cdc87fb5958e3a7c49778db24b3cf720c1..6f55dfb9c024396ed829000324ef2c9ff4abaa38 100644 (file)
@@ -94,7 +94,7 @@ static RealNumberRenderSize calculateRenderSize(const Decimal& value)
     return RealNumberRenderSize(sizeOfSign + sizeOfZero , numberOfZeroAfterDecimalPoint + sizeOfDigits);
 }
 
-PassOwnPtr<InputType> NumberInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> NumberInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new NumberInputType(element));
 }
index 974d297ca4a2f40afad8e8877f7cfb74db5b04c8..f99a66f77b49a7135dbaab8b72e919e7a7e4ddf9 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 class NumberInputType : public TextFieldInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     NumberInputType(HTMLInputElement& element) : TextFieldInputType(element) { }
index 6637a25e5a101410b0b338cab02aa756080d8a6b..fb57a3a7f627fa753ddfa069e1bc9bcf81e55414 100644 (file)
@@ -40,7 +40,7 @@
 
 namespace WebCore {
 
-PassOwnPtr<InputType> PasswordInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> PasswordInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new PasswordInputType(element));
 }
index 30d77f023ddcfcc1f09d242b1a1fd05d724e9fa1..eaf148efe6dc71cf129516170e69fc4d39816c30 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 class PasswordInputType : public BaseTextInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     PasswordInputType(HTMLInputElement& element) : BaseTextInputType(element) { }
index e17e46a8d6baf7db6ca45df7825b01785b2b6d4f..08718d60efab707be9e9ba4a21d8aad3fadd62c9 100644 (file)
@@ -49,7 +49,7 @@ class ScriptExecutionContext;
 class PublicURLManager {
     WTF_MAKE_FAST_ALLOCATED;
 public:
-    static PassOwnPtr<PublicURLManager> create() { return adoptPtr(new PublicURLManager); }
+    static OwnPtr<PublicURLManager> create() { return adoptPtr(new PublicURLManager); }
     void contextDestroyed()
     {
         HashSet<String>::iterator blobURLsEnd = m_blobURLs.end();
index 005be663fdbcab06cde2b767af54e301285ef4f5..2b8e9412ef7d567ada6a16ebb8bf50a9da5f9dfb 100644 (file)
@@ -39,7 +39,7 @@ namespace WebCore {
 
 using namespace HTMLNames;
 
-PassOwnPtr<InputType> RadioInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> RadioInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new RadioInputType(element));
 }
@@ -145,7 +145,7 @@ bool RadioInputType::shouldSendChangeEventAfterCheckedChanged()
     return element().checked();
 }
 
-PassOwnPtr<ClickHandlingState> RadioInputType::willDispatchClick()
+OwnPtr<ClickHandlingState> RadioInputType::willDispatchClick()
 {
     // An event handler can use preventDefault or "return false" to reverse the selection we do here.
     // The ClickHandlingState object contains what we need to undo what we did here in didDispatchClick.
index a5fe323864304ae71bbf245632f3dde7ad6b8291..05ca102f4e1282e2c376c16854d98d2db169e8e3 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 class RadioInputType : public BaseCheckableInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit RadioInputType(HTMLInputElement& element) : BaseCheckableInputType(element) { }
@@ -49,7 +49,7 @@ private:
     virtual void handleKeyupEvent(KeyboardEvent*) OVERRIDE;
     virtual bool isKeyboardFocusable(KeyboardEvent*) const OVERRIDE;
     virtual bool shouldSendChangeEventAfterCheckedChanged() OVERRIDE;
-    virtual PassOwnPtr<ClickHandlingState> willDispatchClick() OVERRIDE;
+    virtual OwnPtr<ClickHandlingState> willDispatchClick() OVERRIDE;
     virtual void didDispatchClick(Event*, const ClickHandlingState&) OVERRIDE;
     virtual bool isRadioButton() const OVERRIDE;
     virtual bool supportsIndeterminateAppearance() const OVERRIDE;
index a7dae72992eb64ae741ec9ff0398bc91b6c45b5f..b015c28e157f3ea651ac300b6a18c85ffb218094 100644 (file)
@@ -78,7 +78,7 @@ static Decimal ensureMaximum(const Decimal& proposedValue, const Decimal& minimu
     return proposedValue >= minimum ? proposedValue : std::max(minimum, fallbackValue);
 }
 
-PassOwnPtr<InputType> RangeInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> RangeInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new RangeInputType(element));
 }
index 8327fb27214a997bfb9522ba539bff8e88e5fcf4..fcc611be247923a9952994cfae2742ef38bc4e37 100644 (file)
@@ -39,7 +39,7 @@ class SliderThumbElement;
 
 class RangeInputType : public InputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit RangeInputType(HTMLInputElement&);
index ffd8cc33f6885d4ce8b90528918eb3607c81d192..1056f1cb610f157d3ef294c10e284113e57b00f5 100644 (file)
@@ -41,7 +41,7 @@
 
 namespace WebCore {
 
-PassOwnPtr<InputType> ResetInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> ResetInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new ResetInputType(element));
 }
index 6df05ee76892593121f6bc55f191e32e7ea9f06f..45a89ab33b291632377c99545e9c695e90161c05 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 class ResetInputType : public BaseButtonInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit ResetInputType(HTMLInputElement& element) : BaseButtonInputType(element) { }
index 6e916b68c7a34fc9f465043b60d6b3f84a37bb0c..988fbcc39144379981f32c6ed154d195c17c49ba 100644 (file)
@@ -52,7 +52,7 @@ inline SearchInputType::SearchInputType(HTMLInputElement& element)
 {
 }
 
-PassOwnPtr<InputType> SearchInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> SearchInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new SearchInputType(element));
 }
index abf3048be44a748ca9ec7ad68f04af32127ab285..9d195046db75478798a35a4907646999ae921e03 100644 (file)
@@ -41,7 +41,7 @@ class SearchFieldResultsButtonElement;
 
 class SearchInputType : public BaseTextInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
     void stopSearchEventTimer();
 
index 100a0b3997c3abecd7a69eda37c2022472c2b9e0..66a2a4fbc5c7d5489d417957eba989a94b571f07 100644 (file)
@@ -42,7 +42,7 @@
 
 namespace WebCore {
 
-PassOwnPtr<InputType> SubmitInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> SubmitInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new SubmitInputType(element));
 }
index ac23bea1a342e3dc2938ed912e2ef85bfe6bc1e7..d9d87a17542a933d0cc0e48830bcf3f2af70a7de 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 class SubmitInputType : public BaseButtonInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit SubmitInputType(HTMLInputElement& element) : BaseButtonInputType(element) { }
index 960c2d9758b69fde0405ce5d7509bccce6267739..2d87d2f8d7a0b817514c3825585e0324a64f95e0 100644 (file)
@@ -37,7 +37,7 @@
 
 namespace WebCore {
 
-PassOwnPtr<InputType> TelephoneInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> TelephoneInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new TelephoneInputType(element));
 }
index 6d4dd2e43b5d1172e0477fd9a3760291c60ad949..aa4aa527a693da50bb3764ab2bb4ff9701217e9d 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 class TelephoneInputType : public BaseTextInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit TelephoneInputType(HTMLInputElement& element) : BaseTextInputType(element) { }
index 2461400605ec69789638c93eac7ecef31a24e4bb..c5f3a8fad51132ffed1e75599cecf8388d2219d5 100644 (file)
@@ -39,7 +39,7 @@ namespace WebCore {
 
 using namespace HTMLNames;
 
-PassOwnPtr<InputType> TextInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> TextInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new TextInputType(element));
 }
index 1f0d7ce69d025cf6512883ea242af3880bdaac95..ba24ca92262da6bc0efb3eae98dcd6ad7d822fd4 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 class TextInputType : public BaseTextInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit TextInputType(HTMLInputElement& element) : BaseTextInputType(element) { }
index 482d63da6340afd0b71a49be90417f392843402d..e77393499833a3905eb766b5c3ab0ef5373073a9 100644 (file)
@@ -54,7 +54,7 @@ TimeInputType::TimeInputType(HTMLInputElement& element)
 {
 }
 
-PassOwnPtr<InputType> TimeInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> TimeInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new TimeInputType(element));
 }
index 126a2ae400e00133a966ecd7cb9e9d48cea99396..1958d7798dee29f787d2ffda26d06485de6cf8f6 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
 
 class TimeInputType : public BaseChooserOnlyDateAndTimeInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit TimeInputType(HTMLInputElement&);
index 507e1a593fd1db9f84e289fb7644554c4306e604..eb5a97bd33ca958f8d43b96a88032c67bf8833a1 100644 (file)
@@ -39,7 +39,7 @@
 
 namespace WebCore {
 
-PassOwnPtr<InputType> URLInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> URLInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new URLInputType(element));
 }
index e3ef6b8c2500bd2d6a56f72aa2dfdb6b2b89f9c8..b7ab674a449484dd16fd48329cca05910aa7c45d 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 class URLInputType : public BaseTextInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit URLInputType(HTMLInputElement& element) : BaseTextInputType(element) { }
index 74462e9f45924402ba69cfccb44357e972a77e7e..b38c74c580b5ba99267456cb8b5a9400170c53e0 100644 (file)
@@ -68,7 +68,7 @@ ValidationMessage::~ValidationMessage()
     deleteBubbleTree();
 }
 
-PassOwnPtr<ValidationMessage> ValidationMessage::create(HTMLFormControlElement* element)
+OwnPtr<ValidationMessage> ValidationMessage::create(HTMLFormControlElement* element)
 {
     return adoptPtr(new ValidationMessage(element));
 }
index 0b8168de1dd9b9c707a0d18c259bf19d3fd66580..e9aab43ec83bcf183146a608a3ca45e9b4fc8ce0 100644 (file)
@@ -49,7 +49,7 @@ class ValidationMessageClient;
 class ValidationMessage {
     WTF_MAKE_NONCOPYABLE(ValidationMessage); WTF_MAKE_FAST_ALLOCATED;
 public:
-    static PassOwnPtr<ValidationMessage> create(HTMLFormControlElement*);
+    static OwnPtr<ValidationMessage> create(HTMLFormControlElement*);
     ~ValidationMessage();
     void updateValidationMessage(const String&);
     void requestToHideMessage();
index 452739a77378b9388e8e5bfbbdf697f086a7eb70..0c2aa68e4a9ea67c2f2a1b9c897334b6009d7879 100644 (file)
@@ -33,7 +33,7 @@ namespace WebCore {
 class ValidityState : public ScriptWrappable {
     WTF_MAKE_NONCOPYABLE(ValidityState); WTF_MAKE_FAST_ALLOCATED;
 public:
-    static PassOwnPtr<ValidityState> create(FormAssociatedElement* control)
+    static OwnPtr<ValidityState> create(FormAssociatedElement* control)
     {
         return adoptPtr(new ValidityState(control));
     }
index 4aed0fb6e21c9b8cd600eb06e1b9faaafe678896..519df5a445138296f269ba6f125db5fbbf806494 100644 (file)
@@ -46,7 +46,7 @@ static const int weekDefaultStepBase = -259200000; // The first day of 1970-W01.
 static const int weekDefaultStep = 1;
 static const int weekStepScaleFactor = 604800000;
 
-PassOwnPtr<InputType> WeekInputType::create(HTMLInputElement& element)
+OwnPtr<InputType> WeekInputType::create(HTMLInputElement& element)
 {
     return adoptPtr(new WeekInputType(element));
 }
index 3517484e172be7a2e74422d997ccef55f25adfd3..cae79e91bb9a07ba64d403a44e66f9e8159e2b24 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
 
 class WeekInputType : public BaseChooserOnlyDateAndTimeInputType {
 public:
-    static PassOwnPtr<InputType> create(HTMLInputElement&);
+    static OwnPtr<InputType> create(HTMLInputElement&);
 
 private:
     explicit WeekInputType(HTMLInputElement& element) : BaseChooserOnlyDateAndTimeInputType(element) { }
index 56ff03b7eca9ccab9d6a80f1807134386006a541..e3c2f5e4217d426bd8c87ee720401af3f2737799 100755 (executable)
@@ -1549,7 +1549,7 @@ template<class T> IntRect CanvasRenderingContext2D::calculateCompositingBufferRe
     return bufferRect;
 }
 
-PassOwnPtr<ImageBuffer> CanvasRenderingContext2D::createCompositingBuffer(const IntRect& bufferRect)
+OwnPtr<ImageBuffer> CanvasRenderingContext2D::createCompositingBuffer(const IntRect& bufferRect)
 {
     RenderingMode renderMode = isAccelerated() ? Accelerated : Unaccelerated;
     return ImageBuffer::create(bufferRect.size(), 1, ColorSpaceDeviceRGB, renderMode);
index e122f5e48ab982272df141334fb93880f455ddb5..d167a7d871130970e2e9ef361d5b401d5db4decd 100644 (file)
@@ -61,7 +61,7 @@ typedef int ExceptionCode;
 
 class CanvasRenderingContext2D : public CanvasRenderingContext, public CanvasPathMethods {
 public:
-    static PassOwnPtr<CanvasRenderingContext2D> create(HTMLCanvasElement* canvas, bool usesCSSCompatibilityParseMode, bool usesDashboardCompatibilityMode)
+    static OwnPtr<CanvasRenderingContext2D> create(HTMLCanvasElement* canvas, bool usesCSSCompatibilityParseMode, bool usesDashboardCompatibilityMode)
     {
         return adoptPtr(new CanvasRenderingContext2D(canvas, usesCSSCompatibilityParseMode, usesDashboardCompatibilityMode));
     }
@@ -312,7 +312,7 @@ private:
     bool rectContainsCanvas(const FloatRect&) const;
 
     template<class T> IntRect calculateCompositingBufferRect(const T&, IntSize*);
-    PassOwnPtr<ImageBuffer> createCompositingBuffer(const IntRect&);
+    OwnPtr<ImageBuffer> createCompositingBuffer(const IntRect&);
     void compositeBuffer(ImageBuffer*, const IntRect&, CompositeOperator);
 
     void inflateStrokeRect(FloatRect&) const;
index 3b2a00e36c1a747c0c09dec557409706b270ea8c..1a2bbf1a925687cdcac1bdb9f983cb63522df550 100644 (file)
@@ -47,7 +47,7 @@ WebGLExtension::ExtensionName EXTDrawBuffers::getName() const
     return WebGLExtension::EXTDrawBuffersName;
 }
 
-PassOwnPtr<EXTDrawBuffers> EXTDrawBuffers::create(WebGLRenderingContext* context)
+OwnPtr<EXTDrawBuffers> EXTDrawBuffers::create(WebGLRenderingContext* context)
 {
     return adoptPtr(new EXTDrawBuffers(context));
 }
index 581ee7483467f65b3030150b4762061565838890..b134728ad1c6e4a522e421fcabfd3366ed59ef2b 100644 (file)
@@ -33,7 +33,7 @@ namespace WebCore {
 
 class EXTDrawBuffers : public WebGLExtension {
 public:
-    static PassOwnPtr<EXTDrawBuffers> create(WebGLRenderingContext*);
+    static OwnPtr<EXTDrawBuffers> create(WebGLRenderingContext*);
 
     static bool supported(WebGLRenderingContext*);
 
index 26538e94e681d170aeb5ab88cd99dfed86dfbfdf..8ae24945678e19ebbda56ee6eaf700cebe9b9621 100644 (file)
@@ -45,7 +45,7 @@ WebGLExtension::ExtensionName EXTTextureFilterAnisotropic::getName() const
     return EXTTextureFilterAnisotropicName;
 }
 
-PassOwnPtr<EXTTextureFilterAnisotropic> EXTTextureFilterAnisotropic::create(WebGLRenderingContext* context)
+OwnPtr<EXTTextureFilterAnisotropic> EXTTextureFilterAnisotropic::create(WebGLRenderingContext* context)
 {
     return adoptPtr(new EXTTextureFilterAnisotropic(context));
 }
index bf0d37c9cff811ac7c89a6bc725f4f11eb53dff0..4965c0667c2a6cd16eec66edd6e789f3eef3cb1e 100644 (file)
@@ -33,7 +33,7 @@ namespace WebCore {
 
 class EXTTextureFilterAnisotropic : public WebGLExtension {
 public:
-    static PassOwnPtr<EXTTextureFilterAnisotropic> create(WebGLRenderingContext*);
+    static OwnPtr<EXTTextureFilterAnisotropic> create(WebGLRenderingContext*);
 
     virtual ~EXTTextureFilterAnisotropic();
     virtual ExtensionName getName() const;
index f9df0bc15c391617cd90b7f24d75841ce1221988..66024153afc742aa64ad8bdd4d9748bcc1708333 100644 (file)
@@ -45,7 +45,7 @@ WebGLExtension::ExtensionName OESElementIndexUint::getName() const
     return OESElementIndexUintName;
 }
 
-PassOwnPtr<OESElementIndexUint> OESElementIndexUint::create(WebGLRenderingContext* context)
+OwnPtr<OESElementIndexUint> OESElementIndexUint::create(WebGLRenderingContext* context)
 {
     return adoptPtr(new OESElementIndexUint(context));
 }
index c2d42873a2054d05883a7393811683f918eeebc4..7f5c8635a11df9afa53c88cce9bf7918054a4db0 100644 (file)
@@ -33,7 +33,7 @@ namespace WebCore {
 
 class OESElementIndexUint : public WebGLExtension {
 public:
-    static PassOwnPtr<OESElementIndexUint> create(WebGLRenderingContext*);
+    static OwnPtr<OESElementIndexUint> create(WebGLRenderingContext*);
 
     virtual ~OESElementIndexUint();
     virtual ExtensionName getName() const;
index a91c193d5b12eb3f669be599a933a3d5a66933ad..0f2c876c75aeb411ddef767e21a449265660df6b 100644 (file)
@@ -45,7 +45,7 @@ WebGLExtension::ExtensionName OESStandardDerivatives::getName() const
     return OESStandardDerivativesName;
 }
 
-PassOwnPtr<OESStandardDerivatives> OESStandardDerivatives::create(WebGLRenderingContext* context)
+OwnPtr<OESStandardDerivatives> OESStandardDerivatives::create(WebGLRenderingContext* context)
 {
     return adoptPtr(new OESStandardDerivatives(context));
 }
index af2ea14b97db5868ab061d6b41317b404fbd3e6a..0b6b51fcf00c2ea96351c56cf8d8c00e554cd57c 100644 (file)
@@ -33,7 +33,7 @@ namespace WebCore {
 
 class OESStandardDerivatives : public WebGLExtension {
 public:
-    static PassOwnPtr<OESStandardDerivatives> create(WebGLRenderingContext*);
+    static OwnPtr<OESStandardDerivatives> create(WebGLRenderingContext*);
 
     virtual ~OESStandardDerivatives();
     virtual ExtensionName getName() const;
index 3ba150b07d6529246059de9b07f8350eca54d8e7..223136c427c90dcbaf790a7a36ea34f1075861a9 100644 (file)
@@ -45,7 +45,7 @@ WebGLExtension::ExtensionName OESTextureFloat::getName() const
     return OESTextureFloatName;
 }
 
-PassOwnPtr<OESTextureFloat> OESTextureFloat::create(WebGLRenderingContext* context)
+OwnPtr<OESTextureFloat> OESTextureFloat::create(WebGLRenderingContext* context)
 {
     return adoptPtr(new OESTextureFloat(context));
 }
index 21da31c08f10c27b89797ce19f57509893114870..8ed00877a1836fa240485c55e49da504c513aae9 100644 (file)
@@ -33,7 +33,7 @@ namespace WebCore {
 
 class OESTextureFloat : public WebGLExtension {
 public:
-    static PassOwnPtr<OESTextureFloat> create(WebGLRenderingContext*);
+    static OwnPtr<OESTextureFloat> create(WebGLRenderingContext*);
 
     virtual ~OESTextureFloat();
     virtual ExtensionName getName() const;
index 0bdf016f9c10b91dec9726034c578451a6ee3838..fd2e25bd2ff297090b62d6b813074580c86c22ed 100644 (file)
@@ -45,7 +45,7 @@ WebGLExtension::ExtensionName OESTextureHalfFloat::getName() const
     return OESTextureHalfFloatName;
 }
 
-PassOwnPtr<OESTextureHalfFloat> OESTextureHalfFloat::create(WebGLRenderingContext* context)
+OwnPtr<OESTextureHalfFloat> OESTextureHalfFloat::create(WebGLRenderingContext* context)
 {
     return adoptPtr(new OESTextureHalfFloat(context));
 }
index 40978199058ad927ad0b82beb01cd523d0736907..246defadc38cf49097faaf357ac2ab11dd2fa65b 100644 (file)
@@ -33,7 +33,7 @@ namespace WebCore {
 
 class OESTextureHalfFloat : public WebGLExtension {
 public:
-    static PassOwnPtr<OESTextureHalfFloat> create(WebGLRenderingContext*);
+    static OwnPtr<OESTextureHalfFloat> create(WebGLRenderingContext*);
 
     virtual ~OESTextureHalfFloat();
     virtual ExtensionName getName() const;
index d9a39560da4e7036c20fd551cafe536d89acf426..687c558569416d694857743509fc7c56f614e3ba 100644 (file)
@@ -49,7 +49,7 @@ WebGLExtension::ExtensionName OESVertexArrayObject::getName() const
     return OESVertexArrayObjectName;
 }
 
-PassOwnPtr<OESVertexArrayObject> OESVertexArrayObject::create(WebGLRenderingContext* context)
+OwnPtr<OESVertexArrayObject> OESVertexArrayObject::create(WebGLRenderingContext* context)
 {
     return adoptPtr(new OESVertexArrayObject(context));
 }
index 265ed55c869c13f6fc7a5a49a3ff6aa5b8edbdfe..58cc0a12fe26dd7b995784224be93c326c953e4d 100644 (file)
@@ -39,7 +39,7 @@ typedef int ExceptionCode;
 
 class OESVertexArrayObject : public WebGLExtension {
 public:
-    static PassOwnPtr<OESVertexArrayObject> create(WebGLRenderingContext*);
+    static OwnPtr<OESVertexArrayObject> create(WebGLRenderingContext*);
 
     virtual ~OESVertexArrayObject();
     virtual ExtensionName getName() const;
index d55863604e3f6013b2eb3a9469dd7297bf81f14d..71881ba0992089cb40a65d8abea157732ef02908 100644 (file)
@@ -50,7 +50,7 @@ WebGLExtension::ExtensionName WebGLCompressedTextureATC::getName() const
     return WebGLCompressedTextureATCName;
 }
 
-PassOwnPtr<WebGLCompressedTextureATC> WebGLCompressedTextureATC::create(WebGLRenderingContext* context)
+OwnPtr<WebGLCompressedTextureATC> WebGLCompressedTextureATC::create(WebGLRenderingContext* context)
 {
     return adoptPtr(new WebGLCompressedTextureATC(context));
 }
index e05f48147cd8be9e1c578dd1f6e03913959bfeb6..167b382c480d244373f12f9c972b66a2441759ad 100644 (file)
@@ -35,7 +35,7 @@ class WebGLTexture;
 
 class WebGLCompressedTextureATC : public WebGLExtension {
 public:
-    static PassOwnPtr<WebGLCompressedTextureATC> create(WebGLRenderingContext*);
+    static OwnPtr<WebGLCompressedTextureATC> create(WebGLRenderingContext*);
 
     static bool supported(WebGLRenderingContext*);
 
index d45920e7f1585817fc7dbccc6b7428849aeed594..d05d4178b56d2f821c3b281ecddb391c188c2ba4 100644 (file)
@@ -52,7 +52,7 @@ WebGLExtension::ExtensionName WebGLCompressedTexturePVRTC::getName() const
     return WebGLCompressedTexturePVRTCName;
 }
 
-PassOwnPtr<WebGLCompressedTexturePVRTC> WebGLCompressedTexturePVRTC::create(WebGLRenderingContext* context)
+OwnPtr<WebGLCompressedTexturePVRTC> WebGLCompressedTexturePVRTC::create(WebGLRenderingContext* context)
 {
     return adoptPtr(new WebGLCompressedTexturePVRTC(context));
 }
index d7e4e2eda6ac700309ffbe1d48cb89f46e6444bf..b0c94062cca6c7be319d00f49e17b3a603af3d62 100644 (file)
@@ -33,7 +33,7 @@ namespace WebCore {
 
 class WebGLCompressedTexturePVRTC : public WebGLExtension {
 public:
-    static PassOwnPtr<WebGLCompressedTexturePVRTC> create(WebGLRenderingContext*);
+    static OwnPtr<WebGLCompressedTexturePVRTC> create(WebGLRenderingContext*);
 
     static bool supported(WebGLRenderingContext*);
 
index b6088eb361c3849bd35445d296df611df9f4eab8..bcf1a3267861be02d326fe1235f3bcec761b2875 100644 (file)
@@ -52,7 +52,7 @@ WebGLExtension::ExtensionName WebGLCompressedTextureS3TC::getName() const
     return WebGLCompressedTextureS3TCName;
 }
 
-PassOwnPtr<WebGLCompressedTextureS3TC> WebGLCompressedTextureS3TC::create(WebGLRenderingContext* context)
+OwnPtr<WebGLCompressedTextureS3TC> WebGLCompressedTextureS3TC::create(WebGLRenderingContext* context)
 {
     return adoptPtr(new WebGLCompressedTextureS3TC(context));
 }
index 93610995116a5d7910970fc85c00637de8371f7e..202f828e3574f46ed266d708bbe4eb6fa1e07a64 100644 (file)
@@ -35,7 +35,7 @@ class WebGLTexture;
 
 class WebGLCompressedTextureS3TC : public WebGLExtension {
 public:
-    static PassOwnPtr<WebGLCompressedTextureS3TC> create(WebGLRenderingContext*);
+    static OwnPtr<WebGLCompressedTextureS3TC> create(WebGLRenderingContext*);
 
     static bool supported(WebGLRenderingContext*);
 
index f5715b68127030a9af81fc9cefe85f3ecda0cac0..2fe5f171d6a61230aa1a6c6805953046ee017247 100644 (file)
@@ -47,7 +47,7 @@ WebGLExtension::ExtensionName WebGLDebugRendererInfo::getName() const
     return WebGLDebugRendererInfoName;
 }
 
-PassOwnPtr<WebGLDebugRendererInfo> WebGLDebugRendererInfo::create(WebGLRenderingContext* context)
+OwnPtr<WebGLDebugRendererInfo> WebGLDebugRendererInfo::create(WebGLRenderingContext* context)
 {
     return adoptPtr(new WebGLDebugRendererInfo(context));
 }
index b96c02b74306df515af98e1e04d5f0976ef1d2a4..b08ba8467ca3fa540627d79aa4d505ef5253967e 100644 (file)
@@ -38,7 +38,7 @@ public:
         UNMASKED_RENDERER_WEBGL = 0x9246
     };
 
-    static PassOwnPtr<WebGLDebugRendererInfo> create(WebGLRenderingContext*);
+    static OwnPtr<WebGLDebugRendererInfo> create(WebGLRenderingContext*);
 
     virtual ~WebGLDebugRendererInfo();
     virtual ExtensionName getName() const;
index b6c0e3f079937ef42de2b8a0d22ed487196eb8f0..0c028265cea9b2bebeb1910a80de9f11184c0b44 100644 (file)
@@ -49,7 +49,7 @@ WebGLExtension::ExtensionName WebGLDebugShaders::getName() const
     return WebGLDebugShadersName;
 }
 
-PassOwnPtr<WebGLDebugShaders> WebGLDebugShaders::create(WebGLRenderingContext* context)
+OwnPtr<WebGLDebugShaders> WebGLDebugShaders::create(WebGLRenderingContext* context)
 {
     return adoptPtr(new WebGLDebugShaders(context));
 }
index 2068c6dfd514c0ab73da9cfb0b2fdb0eddbf292f..bab1bf70a77ac39d385da6634230f95f0be9dfe9 100644 (file)
@@ -37,7 +37,7 @@ typedef int ExceptionCode;
 
 class WebGLDebugShaders : public WebGLExtension {
 public:
-    static PassOwnPtr<WebGLDebugShaders> create(WebGLRenderingContext*);
+    static OwnPtr<WebGLDebugShaders> create(WebGLRenderingContext*);
 
     virtual ~WebGLDebugShaders();
     virtual ExtensionName getName() const;
index 46644f5b889c1d6138bd709ac1c7acd079d68577..71a8da7d424274986575a20e7b75eac671956d3b 100644 (file)
@@ -47,7 +47,7 @@ WebGLExtension::ExtensionName WebGLDepthTexture::getName() const
     return WebGLDepthTextureName;
 }
 
-PassOwnPtr<WebGLDepthTexture> WebGLDepthTexture::create(WebGLRenderingContext* context)
+OwnPtr<WebGLDepthTexture> WebGLDepthTexture::create(WebGLRenderingContext* context)
 {
     return adoptPtr(new WebGLDepthTexture(context));
 }
index bac6aabff4dfe094ce6b511783b97b4cfa92454c..d0226371ae10b0a3d94b0c7ac854125e14ee18c9 100644 (file)
@@ -33,7 +33,7 @@ namespace WebCore {
 
 class WebGLDepthTexture : public WebGLExtension {
 public:
-    static PassOwnPtr<WebGLDepthTexture> create(WebGLRenderingContext*);
+    static OwnPtr<WebGLDepthTexture> create(WebGLRenderingContext*);
 
     static bool supported(GraphicsContext3D*);
 
index 5b96bd7cf81e4601310cf15371d97c682cd3c97e..9f4e0b01e98badf01af01a221712cc5ca74a44e9 100644 (file)
@@ -47,7 +47,7 @@ WebGLExtension::ExtensionName WebGLLoseContext::getName() const
     return WebGLLoseContextName;
 }
 
-PassOwnPtr<WebGLLoseContext> WebGLLoseContext::create(WebGLRenderingContext* context)
+OwnPtr<WebGLLoseContext> WebGLLoseContext::create(WebGLRenderingContext* context)
 {
     return adoptPtr(new WebGLLoseContext(context));
 }
index a326e0852ceb7e23acb59fc9998555deee96396d..abc400e043fd2b9cfda93379e81c0f949ccb6421 100644 (file)
@@ -35,7 +35,7 @@ class WebGLRenderingContext;
 
 class WebGLLoseContext : public WebGLExtension {
 public:
-    static PassOwnPtr<WebGLLoseContext> create(WebGLRenderingContext*);
+    static OwnPtr<WebGLLoseContext> create(WebGLRenderingContext*);
 
     virtual ~WebGLLoseContext();
     virtual ExtensionName getName() const;
index a0460492dcb889a9fa220e7457b4876b9f0603c8..0a6edb96e00fb8471c207af24b33eca430ec3299 100644 (file)
@@ -404,7 +404,7 @@ private:
     WebGLRenderingContext* m_context;
 };
 
-PassOwnPtr<WebGLRenderingContext> WebGLRenderingContext::create(HTMLCanvasElement* canvas, WebGLContextAttributes* attrs)
+OwnPtr<WebGLRenderingContext> WebGLRenderingContext::create(HTMLCanvasElement* canvas, WebGLContextAttributes* attrs)
 {
     Document& document = canvas->document();
     Frame* frame = document.frame();
index 5693415f8d9c7a2f4df5b11dc9bf1ca2106ceb51..658728bd092e69d5b2c4d425aeccef66fb9ffc9e 100644 (file)
@@ -81,7 +81,7 @@ typedef int ExceptionCode;
 
 class WebGLRenderingContext : public CanvasRenderingContext, public ActiveDOMObject {
 public:
-    static PassOwnPtr<WebGLRenderingContext> create(HTMLCanvasElement*, WebGLContextAttributes*);
+    static OwnPtr<WebGLRenderingContext> create(HTMLCanvasElement*, WebGLContextAttributes*);
     virtual ~WebGLRenderingContext();
 
     virtual bool is3d() const { return true; }
index 7a593d99eae85c2899c7ca7cad5b0a6fb78a59b5..42cc011075a25ed3a9b3acac93599a3ad1a06bc7 100644 (file)
@@ -74,7 +74,7 @@ static void checkThatPreloadsAreSafeToSendToAnotherThread(const PreloadRequestSt
 
 #endif
 
-BackgroundHTMLParser::BackgroundHTMLParser(PassRefPtr<WeakReference<BackgroundHTMLParser> > reference, PassOwnPtr<Configuration> config)
+BackgroundHTMLParser::BackgroundHTMLParser(PassRefPtr<WeakReference<BackgroundHTMLParser> > reference, OwnPtr<Configuration> config)
     : m_weakFactory(reference, this)
     , m_token(adoptPtr(new HTMLToken))
     , m_tokenizer(HTMLTokenizer::create(config->options))
@@ -94,7 +94,7 @@ void BackgroundHTMLParser::append(const String& input)
     pumpTokenizer();
 }
 
-void BackgroundHTMLParser::resumeFrom(PassOwnPtr<Checkpoint> checkpoint)
+void BackgroundHTMLParser::resumeFrom(OwnPtr<Checkpoint> checkpoint)
 {
     m_parser = checkpoint->parser;
     m_token = checkpoint->token.release();
index c5e9a76be468e1996861d2718434e6a2eaeeff67..fa320313673f645fa6cf33395d36599ec19a3854 100644 (file)
@@ -55,7 +55,7 @@ public:
         OwnPtr<TokenPreloadScanner> preloadScanner;
     };
 
-    static void create(PassRefPtr<WeakReference<BackgroundHTMLParser> > reference, PassOwnPtr<Configuration> config)
+    static void create(PassRefPtr<WeakReference<BackgroundHTMLParser> > reference, OwnPtr<Configuration> config)
     {
         new BackgroundHTMLParser(reference, config);
         // Caller must free by calling stop().
@@ -72,7 +72,7 @@ public:
     };
 
     void append(const String&);
-    void resumeFrom(PassOwnPtr<Checkpoint>);
+    void resumeFrom(OwnPtr<Checkpoint>);
     void startedChunkWithCheckpoint(HTMLInputCheckpoint);
     void finish();
     void stop();
@@ -80,7 +80,7 @@ public:
     void forcePlaintextForTextDocument();
 
 private:
-    BackgroundHTMLParser(PassRefPtr<WeakReference<BackgroundHTMLParser> >, PassOwnPtr<Configuration>);
+    BackgroundHTMLParser(PassRefPtr<WeakReference<BackgroundHTMLParser> >, OwnPtr<Configuration>);
 
     void markEndOfFile();
     void pumpTokenizer();
index 14a5feea638b577866a86ce172cf4c0089b25bda..15bb882e45b10de584eca82b6f1eefa4e4927c32 100644 (file)
@@ -311,7 +311,7 @@ bool HTMLDocumentParser::canTakeNextToken(SynchronousMode mode, PumpSession& ses
 
 #if ENABLE(THREADED_HTML_PARSER)
 
-void HTMLDocumentParser::didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk> chunk)
+void HTMLDocumentParser::didReceiveParsedChunkFromBackgroundParser(OwnPtr<ParsedChunk> chunk)
 {
     if (isWaitingForScripts() || !m_speculations.isEmpty()) {
         m_preloader->takeAndPreload(chunk->preloads);
@@ -332,7 +332,7 @@ void HTMLDocumentParser::didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<Pa
     InspectorInstrumentation::didWriteHTML(cookie, lineNumber().zeroBasedInt());
 }
 
-void HTMLDocumentParser::validateSpeculations(PassOwnPtr<ParsedChunk> chunk)
+void HTMLDocumentParser::validateSpeculations(OwnPtr<ParsedChunk> chunk)
 {
     ASSERT(chunk);
     if (isWaitingForScripts()) {
@@ -371,7 +371,7 @@ void HTMLDocumentParser::validateSpeculations(PassOwnPtr<ParsedChunk> chunk)
     discardSpeculationsAndResumeFrom(chunk, token.release(), tokenizer.release());
 }
 
-void HTMLDocumentParser::discardSpeculationsAndResumeFrom(PassOwnPtr<ParsedChunk> lastChunkBeforeScript, PassOwnPtr<HTMLToken> token, PassOwnPtr<HTMLTokenizer> tokenizer)
+void HTMLDocumentParser::discardSpeculationsAndResumeFrom(OwnPtr<ParsedChunk> lastChunkBeforeScript, OwnPtr<HTMLToken> token, OwnPtr<HTMLTokenizer> tokenizer)
 {
     m_weakFactory.revokeAll();
     m_speculations.clear();
@@ -390,7 +390,7 @@ void HTMLDocumentParser::discardSpeculationsAndResumeFrom(PassOwnPtr<ParsedChunk
     HTMLParserThread::shared()->postTask(bind(&BackgroundHTMLParser::resumeFrom, m_backgroundParser, checkpoint.release()));
 }
 
-void HTMLDocumentParser::processParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk> popChunk)
+void HTMLDocumentParser::processParsedChunkFromBackgroundParser(OwnPtr<ParsedChunk> popChunk)
 {
     // ASSERT that this object is both attached to the Document and protected.
     ASSERT(refCount() >= 2);
index 5a68c35de4e8ae9fa8f2ffb678d26f2fab0fadc6..81138d304352f9d200fd2514be5cb61f4f366c12 100644 (file)
@@ -95,7 +95,7 @@ public:
         HTMLInputCheckpoint inputCheckpoint;
         TokenPreloadScannerCheckpoint preloadScannerCheckpoint;
     };
-    void didReceiveParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>);
+    void didReceiveParsedChunkFromBackgroundParser(OwnPtr<ParsedChunk>);
 #endif
 
 protected:
@@ -142,9 +142,9 @@ private:
 #if ENABLE(THREADED_HTML_PARSER)
     void startBackgroundParser();
     void stopBackgroundParser();
-    void validateSpeculations(PassOwnPtr<ParsedChunk> lastChunk);
-    void discardSpeculationsAndResumeFrom(PassOwnPtr<ParsedChunk> lastChunk, PassOwnPtr<HTMLToken>, PassOwnPtr<HTMLTokenizer>);
-    void processParsedChunkFromBackgroundParser(PassOwnPtr<ParsedChunk>);
+    void validateSpeculations(OwnPtr<ParsedChunk> lastChunk);
+    void discardSpeculationsAndResumeFrom(OwnPtr<ParsedChunk> lastChunk, OwnPtr<HTMLToken>, OwnPtr<HTMLTokenizer>);
+    void processParsedChunkFromBackgroundParser(OwnPtr<ParsedChunk>);
     void pumpPendingSpeculations();
 #endif
 
index 0c741a4ef265f664cfd742ab3cace658a3145f58..ac7695e7c8a110b190e948d83a1840b7c827def1 100644 (file)
@@ -130,9 +130,9 @@ inline bool isSelectScopeMarker(HTMLStackItem* item)
 
 }
 
-HTMLElementStack::ElementRecord::ElementRecord(PassRefPtr<HTMLStackItem> item, PassOwnPtr<ElementRecord> next)
+HTMLElementStack::ElementRecord::ElementRecord(PassRefPtr<HTMLStackItem> item, OwnPtr<ElementRecord> next)
     : m_item(item)
-    , m_next(next)
+    , m_next(std::move(next))
 {
     ASSERT(m_item);
 }
index b862f7b724c6dd83cb13ea422b32675ca59e05bf..6d8157260d72264ee265afd16eed64d55cae814a 100644 (file)
@@ -66,10 +66,10 @@ public:
     private:
         friend class HTMLElementStack;
 
-        ElementRecord(PassRefPtr<HTMLStackItem>, PassOwnPtr<ElementRecord>);
+        ElementRecord(PassRefPtr<HTMLStackItem>, OwnPtr<ElementRecord>);
 
-        PassOwnPtr<ElementRecord> releaseNext() { return m_next.release(); }
-        void setNext(PassOwnPtr<ElementRecord> next) { m_next = next; }
+        OwnPtr<ElementRecord> releaseNext() { return m_next.release(); }
+        void setNext(OwnPtr<ElementRecord> next) { m_next = std::move(next); }
 
         RefPtr<HTMLStackItem> m_item;
         OwnPtr<ElementRecord> m_next;
index 436ea7926719cb5682ae98f07573fe78ceb45c5f..4a2c46199e271a91728d29a29905d9bb3e475fd7 100644 (file)
@@ -39,7 +39,7 @@ class TextCodec;
 class HTMLMetaCharsetParser {
     WTF_MAKE_NONCOPYABLE(HTMLMetaCharsetParser); WTF_MAKE_FAST_ALLOCATED;
 public:
-    static PassOwnPtr<HTMLMetaCharsetParser> create() { return adoptPtr(new HTMLMetaCharsetParser()); }
+    static OwnPtr<HTMLMetaCharsetParser> create() { return adoptPtr(new HTMLMetaCharsetParser()); }
 
     ~HTMLMetaCharsetParser();
 
index c215cb08ea5dbed0a0b6c1de27a823ea67985943..511263cdb9be0766b23e0ee708a7ccf500c6af1d 100644 (file)
@@ -60,7 +60,7 @@ public:
 class HTMLParserScheduler {
     WTF_MAKE_NONCOPYABLE(HTMLParserScheduler); WTF_MAKE_FAST_ALLOCATED;
 public:
-    static PassOwnPtr<HTMLParserScheduler> create(HTMLDocumentParser* parser)
+    static OwnPtr<HTMLParserScheduler> create(HTMLDocumentParser* parser)
     {
         return adoptPtr(new HTMLParserScheduler(parser));
     }
index f301c1d7936ad81026f754d9479cc7667c2dcffb..e3aefa61d56b616741bbf7120c4437c3878584c4 100644 (file)
@@ -46,7 +46,7 @@ typedef Function<void()> Closure;
 
 class HTMLParserThread {
 public:
-    static PassOwnPtr<HTMLParserThread> create()
+    static OwnPtr<HTMLParserThread> create()
     {
         return adoptPtr(new HTMLParserThread());
     }
index 5496a936bd38f27bfb99946de7d1595c282ab6e7..41ee20161be76da69d8ab096d2b1f59f1f667386 100644 (file)
@@ -142,7 +142,7 @@ public:
     }
 #endif
 
-    PassOwnPtr<PreloadRequest> createPreloadRequest(const KURL& predictedBaseURL)
+    OwnPtr<PreloadRequest> createPreloadRequest(const KURL& predictedBaseURL)
     {
         if (!shouldPreload())
             return nullptr;
index 2fea1a0df7a3aae1f3e9b402e6a36e80a845d81a..363341aa003bbe65906b1576ee4914bbe07bd737 100644 (file)
@@ -78,7 +78,7 @@ static bool mediaAttributeMatches(Frame* frame, RenderStyle* renderStyle, const
     return mediaQueryEvaluator.eval(mediaQueries.get());
 }
 
-void HTMLResourcePreloader::preload(PassOwnPtr<PreloadRequest> preload)
+void HTMLResourcePreloader::preload(OwnPtr<PreloadRequest> preload)
 {
     ASSERT(m_document->frame());
     ASSERT(m_document->renderView());
index aec78cd72d1d33dceb00a450d8968951c7f8f8c9..ef93395b1306b8be92d6441b1d9c52ce9eac563f 100644 (file)
@@ -33,12 +33,12 @@ namespace WebCore {
 
 class PreloadRequest {
 public:
-    static PassOwnPtr<PreloadRequest> create(const String& initiator, const String& resourceURL, const KURL& baseURL, CachedResource::Type resourceType, const String& mediaAttribute)
+    static OwnPtr<PreloadRequest> create(const String& initiator, const String& resourceURL, const KURL& baseURL, CachedResource::Type resourceType, const String& mediaAttribute)
     {
         return adoptPtr(new PreloadRequest(initiator, resourceURL, baseURL, resourceType, mediaAttribute));
     }
 
-    static PassOwnPtr<PreloadRequest> create(const String& initiator, const String& resourceURL, const KURL& baseURL, CachedResource::Type resourceType)
+    static OwnPtr<PreloadRequest> create(const String& initiator, const String& resourceURL, const KURL& baseURL, CachedResource::Type resourceType)
     {
         return adoptPtr(new PreloadRequest(initiator, resourceURL, baseURL, resourceType, String()));
     }
@@ -87,7 +87,7 @@ public:
     }
 
     void takeAndPreload(PreloadRequestStream&);
-    void preload(PassOwnPtr<PreloadRequest>);
+    void preload(OwnPtr<PreloadRequest>);
 
     WeakPtr<HTMLResourcePreloader> createWeakPtr() { return m_weakFactory.createWeakPtr(); }
 
index a5669368afdc35f9e88d34c801afdc7bca15bd6c..2630cd3896fcfaeda4567f423be6423a31f509d8 100644 (file)
@@ -44,7 +44,7 @@ class ScriptSourceCode;
 class HTMLScriptRunner {
     WTF_MAKE_NONCOPYABLE(HTMLScriptRunner); WTF_MAKE_FAST_ALLOCATED;
 public:
-    static PassOwnPtr<HTMLScriptRunner> create(Document* document, HTMLScriptRunnerHost* host)
+    static OwnPtr<HTMLScriptRunner> create(Document* document, HTMLScriptRunnerHost* host)
     {
         return adoptPtr(new HTMLScriptRunner(document, host));
     }
index e403e7f295213b289dcd2c11c9f926838a779e7f..0363e3a61043cd01e7a3c641fefd2687ea182a67 100644 (file)
@@ -226,7 +226,7 @@ public:
         m_doctypeData->m_systemIdentifier.append(character);
     }
 
-    PassOwnPtr<DoctypeData> releaseDoctypeData()
+    OwnPtr<DoctypeData> releaseDoctypeData()
     {
         return m_doctypeData.release();
     }
index 8a43d60680894a517ab9945489d08b27ed884202..ec85bd039e312caa4b968e071b365906dc8e0ec5 100644 (file)
@@ -38,7 +38,7 @@ class HTMLTokenizer {
     WTF_MAKE_NONCOPYABLE(HTMLTokenizer);
     WTF_MAKE_FAST_ALLOCATED;
 public:
-    static PassOwnPtr<HTMLTokenizer> create(const HTMLParserOptions& options) { return adoptPtr(new HTMLTokenizer(options)); }
+    static OwnPtr<HTMLTokenizer> create(const HTMLParserOptions& options) { return adoptPtr(new HTMLTokenizer(options)); }
     ~HTMLTokenizer();
 
     void reset();
index f9b528883d10d293fee200fb4032834a2d647ed3..1bca3028b5ed0b31bc43c1f7f8f946c39967db9b 100644 (file)
@@ -57,11 +57,11 @@ class HTMLDocumentParser;
 class HTMLTreeBuilder {
     WTF_MAKE_NONCOPYABLE(HTMLTreeBuilder); WTF_MAKE_FAST_ALLOCATED;
 public:
-    static PassOwnPtr<HTMLTreeBuilder> create(HTMLDocumentParser* parser, HTMLDocument* document, ParserContentPolicy parserContentPolicy, bool reportErrors, const HTMLParserOptions& options)
+    static OwnPtr<HTMLTreeBuilder> create(HTMLDocumentParser* parser, HTMLDocument* document, ParserContentPolicy parserContentPolicy, bool reportErrors, const HTMLParserOptions& options)
     {
         return adoptPtr(new HTMLTreeBuilder(parser, document, parserContentPolicy, reportErrors, options));
     }
-    static PassOwnPtr<HTMLTreeBuilder> create(HTMLDocumentParser* parser, DocumentFragment* fragment, Element* contextElement, ParserContentPolicy parserContentPolicy, const HTMLParserOptions& options)
+    static OwnPtr<HTMLTreeBuilder> create(HTMLDocumentParser* parser, DocumentFragment* fragment, Element* contextElement, ParserContentPolicy parserContentPolicy, const HTMLParserOptions& options)
     {
         return adoptPtr(new HTMLTreeBuilder(parser, fragment, contextElement, parserContentPolicy, options));
     }
index 862467b51b87edf416ed69a86b91259fa9113243..d3fe31bb4a3be29bf9aaea6926c940b71f257ee2 100644 (file)
@@ -320,7 +320,7 @@ void XSSAuditor::init(Document* document, XSSAuditorDelegate* auditorDelegate)
     }
 }
 
-PassOwnPtr<XSSInfo> XSSAuditor::filterToken(const FilterTokenRequest& request)
+OwnPtr<XSSInfo> XSSAuditor::filterToken(const FilterTokenRequest& request)
 {
     ASSERT(m_state == Initialized);
     if (!m_isEnabled || m_xssProtection == ContentSecurityPolicy::AllowReflectedXSS)
index 07e84659d72546b134f532d336a2a0675759d90d..0690be928b372382c7738674b112217f5e061a85 100644 (file)
@@ -61,7 +61,7 @@ public:
     void init(Document*, XSSAuditorDelegate*);
     void initForFragment();
 
-    PassOwnPtr<XSSInfo> filterToken(const FilterTokenRequest&);
+    OwnPtr<XSSInfo> filterToken(const FilterTokenRequest&);
     bool isSafeToSendToAnotherThread() const;
 
 private:
index 9ad2e5ef49e77522d8383b754df9a4ee23a94328..1d8c7d880ed4b2f841fc82752a14a7d877173593 100644 (file)
@@ -39,7 +39,7 @@ class FormData;
 
 class XSSInfo {
 public:
-    static PassOwnPtr<XSSInfo> create(bool didBlockEntirePage, bool didSendXSSProtectionHeader, bool didSendCSPHeader)
+    static OwnPtr<XSSInfo> create(bool didBlockEntirePage, bool didSendXSSProtectionHeader, bool didSendCSPHeader)
     {
         return adoptPtr(new XSSInfo(didBlockEntirePage, didSendXSSProtectionHeader, didSendCSPHeader));
     }
index 5b88883a819c50838eb1358bb096126a610cb5da..c09bb432d2a3dd763fd313a1d3e56a5aa917eba5 100644 (file)
@@ -108,7 +108,7 @@ public:
         BadCue
     };
 
-    static PassOwnPtr<WebVTTParser> create(WebVTTParserClient* client, ScriptExecutionContext* context)
+    static OwnPtr<WebVTTParser> create(WebVTTParserClient* client, ScriptExecutionContext* context)
     {
         return adoptPtr(new WebVTTParser(client, context));
     }
index c8ff9235fe56572e32f28f55a1ce7f212ac81c27..79ee06b26ec4214781822bd18adbada28a150cd6 100644 (file)
@@ -58,7 +58,7 @@ class WebVTTTokenizer {
     WTF_MAKE_NONCOPYABLE(WebVTTTokenizer);
     WTF_MAKE_FAST_ALLOCATED;
 public:
-    static PassOwnPtr<WebVTTTokenizer> create() { return adoptPtr(new WebVTTTokenizer); }
+    static OwnPtr<WebVTTTokenizer> create() { return adoptPtr(new WebVTTTokenizer); }
 
     typedef WebVTTTokenizerState State;