Manage FileReaderLoader through std::unique_ptr
https://bugs.webkit.org/show_bug.cgi?id=123666

Reviewed by Anders Carlsson.

Construct FileReaderLoader objects through std::make_unique and store them in std::unique_ptr.

* fileapi/FileReader.cpp:
(WebCore::FileReader::readInternal):
* fileapi/FileReader.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158496 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use RenderChildIterator in a couple of places.
<https://webkit.org/b/123684>

Added isRendererOfType() for RenderBox and RenderBlock and switch
some loops over to using childrenOfType<>. Also sprinkled const
and references on touched code.

Reviewed by Antti Koivisto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158497 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make remaining StringImpl functions return PassRef.
<https://webkit.org/b/123683>

Okay, this seems to work well! Let's go all in and convert the
remaining StringImpl functions to return PassRef<StringImpl> instead
of PassRefPtr where we know that null is never returned.

Reviewed by Anders Carlsson.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix UnicodeWchar after r157330.
https://bugs.webkit.org/show_bug.cgi?id=123668

Reviewed by Darin Adler.

Source/WebCore:

* editing/TextIterator.cpp:
(WebCore::SearchBuffer::append):
* platform/graphics/wince/FontWinCE.cpp:
(WebCore::generateComponents):
* platform/graphics/wince/GraphicsContextWinCE.cpp:
(WebCore::GraphicsContext::drawText):
* platform/text/wchar/TextBreakIteratorWchar.cpp:
(WebCore::isCharStop):
(WebCore::isLineStop):
(WebCore::isSentenceStop):
(WebCore::WordBreakIterator::next):
(WebCore::WordBreakIterator::previous):

Source/WTF:

* wtf/unicode/wchar/UnicodeWchar.cpp:
(unorm_normalize):
(u_strFoldCase):
(u_strToLower):
(u_strToUpper):
* wtf/unicode/wchar/UnicodeWchar.h:
(u_foldCase):
(u_isprint):
(u_isspace):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Cocoa] Wrappers mishandle NULL values in arrays and dictionaries
https://bugs.webkit.org/show_bug.cgi?id=123671

Reviewed by Darin Adler.

* Shared/Cocoa/WKNSArray.mm:
(-[WKNSArray objectAtIndex:]): Represent a NULL object as NSNull.
* Shared/Cocoa/WKNSDictionary.mm:
(-[WKNSDictionary objectForKey:]): Represent a NULL value as NSNull.
* Shared/ImmutableDictionary.h:
(WebKit::ImmutableDictionary::get): Added this overload that returns whether the key exists.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158500 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add OVERRIDE keyword to WebCoreSupport classes
https://bugs.webkit.org/show_bug.cgi?id=123672

Reviewed by Darin Adler.

Also align the function parameters with the base classes
and remove useless functions.

* WebCoreSupport/ChromeClientWinCE.cpp:
* WebCoreSupport/ChromeClientWinCE.h:
* WebCoreSupport/ContextMenuClientWinCE.cpp:
* WebCoreSupport/ContextMenuClientWinCE.h:
* WebCoreSupport/DragClientWinCE.cpp:
(WebKit::DragClientWinCE::willPerformDragDestinationAction):
(WebKit::DragClientWinCE::willPerformDragSourceAction):
(WebKit::DragClientWinCE::actionMaskForDrag):
(WebKit::DragClientWinCE::startDrag):
* WebCoreSupport/DragClientWinCE.h:
* WebCoreSupport/EditorClientWinCE.h:
* WebCoreSupport/FrameLoaderClientWinCE.cpp:
(WebKit::FrameLoaderClientWinCE::dispatchDecidePolicyForResponse):
(WebKit::FrameLoaderClientWinCE::dispatchDecidePolicyForNewWindowAction):
(WebKit::FrameLoaderClientWinCE::dispatchDecidePolicyForNavigationAction):
(WebKit::FrameLoaderClientWinCE::dispatchWillSubmitForm):
* WebCoreSupport/FrameLoaderClientWinCE.h:
* WebCoreSupport/FrameNetworkingContextWinCE.h:
* WebCoreSupport/InspectorClientWinCE.cpp:
* WebCoreSupport/InspectorClientWinCE.h:
* WebCoreSupport/PlatformStrategiesWinCE.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158501 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Port LoggingWin.cpp to WinCE
https://bugs.webkit.org/show_bug.cgi?id=123678

Reviewed by Darin Adler.

This makes it easier to use a common list of files
for the different Windows ports later.

* PlatformWin.cmake:
* platform/win/LoggingWin.cpp:
(WebCore::logLevelString):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158502 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WINCE] Disable export macros
https://bugs.webkit.org/show_bug.cgi?id=123679

Reviewed by Darin Adler.

Avoid useless exports by turning of the export macros
since the WinCE port works as a static library only.

* Source/cmake/OptionsWinCE.cmake:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix compilation of SynchronousLoaderClient
https://bugs.webkit.org/show_bug.cgi?id=123676

Reviewed by Darin Adler.

Assign a ResourceRequest varibale an empty ResourceRequest instead of 0.
The current solution only works for ports which can create a
ResourceRequest from a pointer, which might not be true for all ports.

* platform/network/SynchronousLoaderClient.cpp:
(WebCore::SynchronousLoaderClient::willSendRequest):


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