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 6e51714..91612a4 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 20bfa6c..96bce9d 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 a23a086..747215d 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 7e0161d..b556867 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 1bea601..9ce280c 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 b8b45db..b4e9480 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 e233a8f..8c8cfa2 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 d77bfa6..7ecbd08 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 2502320..cb71a56 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 c6efe74..b85062e 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 2446233..c325fc8 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 66f400e..00a3f5b 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 5a2eae0..12fa040 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 a9d0516..4a0c23d 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 09cde58..11f7e9e 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 2e8d3e0..20f4ddf 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 55a0b51..55d4d09 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 1614873..69f2bba 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 d7c964c..27de8d4 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 5f147fa..e0d2131 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 e014831..35a8741 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 9996399..154082b 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 c7de1ea..1f3c637 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 b913c3c..24a3738 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 51be3ed..2ce94dc 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 a91f77a..e67232a 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 54690e5..e346016 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 447a949..f5091cc 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 2a3d814..b19cd0a 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 c602338..f3b50c4 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 75e4276..386868a 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 246e8ef..16de2bf 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 b6c605d..48ead1f 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 e57b16d..9b54e0b 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 76b5a1c..6f55dfb 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 974d297..f99a66f 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 6637a25..fb57a3a 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 30d77f0..eaf148e 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 e17e46a..08718d6 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 005be66..2b8e941 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 a5fe323..05ca102 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 a7dae72..b015c28 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 8327fb2..fcc611b 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 ffd8cc3..1056f1c 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 6df05ee..45a89ab 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 6e916b6..988fbcc 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 abf3048..9d19504 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 100a0b3..66a2a4f 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 ac23bea..d9d87a1 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 960c2d9..2d87d2f 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 6d4dd2e..aa4aa52 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 2461400..c5f3a8f 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 1f0d7ce..ba24ca9 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 482d63d..e773934 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 126a2ae..1958d77 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 507e1a5..eb5a97b 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 e3ef6b8..b7ab674 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 74462e9..b38c74c 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 0b8168d..e9aab43 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 452739a..0c2aa68 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 4aed0fb..519df5a 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 3517484..cae79e9 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 56ff03b..e3c2f5e 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 e122f5e..d167a7d 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 3b2a00e..1a2bbf1 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 581ee74..b134728 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 26538e9..8ae2494 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 bf0d37c..4965c06 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 f9df0bc..6602415 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 c2d4287..7f5c863 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 a91c193..0f2c876 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 af2ea14..0b6b51f 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 3ba150b..223136c 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 21da31c..8ed0087 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 0bdf016..fd2e25b 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 4097819..246defa 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 d9a3956..687c558 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 265ed55..58cc0a1 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 d558636..71881ba 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 e05f481..167b382 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 d45920e..d05d417 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 d7e4e2e..b0c9406 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 b6088eb..bcf1a32 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 9361099..202f828 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 f5715b6..2fe5f17 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 b96c02b..b08ba84 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 b6c0e3f..0c02826 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 2068c6d..bab1bf7 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 46644f5..71a8da7 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 bac6aab..d022637 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 5b96bd7..9f4e0b0 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 a326e08..abc400e 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 a046049..0a6edb9 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 5693415..658728b 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 7a593d9..42cc011 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 c5e9a76..fa32031 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 14a5fee..15bb882 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 5a68c35..81138d3 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 0c741a4..ac7695e 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 b862f7b..6d81572 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 436ea79..4a2c461 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 c215cb0..511263c 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 f301c1d..e3aefa6 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 5496a93..41ee201 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 2fea1a0..363341a 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 aec78cd..ef93395 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 a566936..2630cd3 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 e403e7f..0363e3a 100644 (file)
@@ -226,7 +226,7 @@ public:
         m_doctypeData->m_systemIdentifier.append(character);
     }
 
-    PassOwnPtr<DoctypeData> releaseDoctypeData()
+    OwnPtr<DoctypeData> releaseDoctypeData()
     {
         return m_doctypeData.release();
     }
index 8a43d60..ec85bd0 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 f9b5288..1bca302 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 862467b..d3fe31b 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 07e8465..0690be9 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 9ad2e5e..1d8c7d8 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 5b88883..c09bb43 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 c8ff923..79ee06b 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;