[Windows] Build correction after r150837

New 'forms' sub-folder of html needs to be included in
copy operations.

* WebCore.vcproj/copyForwardingHeaders.cmd: copy html/forms.
* WebCore.vcxproj/WebCoreTestSupport.vcxproj.filters: Use correct
'obj32' folder for build output.
* WebCore.vcxproj/copyForwardingHeaders.cmd: copy html/forms.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed GTK gardening, managing media layout tests failures on GTK WK2.

* platform/gtk-wk2/TestExpectations:
* platform/gtk/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150911 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove the size of DataVector in HTMLToken
https://bugs.webkit.org/show_bug.cgi?id=116931

Reviewed by Sam Weinig.

Merge https://chromium.googlesource.com/chromium/blink/+/7977721e62c471bfa17b84d82cd5d8243a4eb9a9.

Shink HTMLToken by 1.5 kB

HTMLToken has an inline vector for buffering characters during tokenization. We
originally picked the inline capacity of this buffer somewhat arbitrarily. This
CL tunes the number based on a somewhat non-scientific browse of a number of
popular web sites.

I (abarth) instrumented content_shell to log the length of each complete DataVector. I
then browsed around a variety of web sites to collect data. The 99% percentile
of DataVector lengths was just shy of 250 characters. I rounded that up to 256
because powers of two are pretty. That means we'll malloc an external buffer
less than 1% of the time, which seems fine.

* html/parser/HTMLToken.h:
(HTMLToken):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Use StringBuilder instead of + operator to build strings in AboutData
https://bugs.webkit.org/show_bug.cgi?id=116954

Patch by Rob Buis <rbuis@rim.com> on 2013-05-29
Reviewed by Carlos Garcia Campos.

PR 206152
Internally reviewed by Konrad Piascik

* WebKitSupport/AboutData.cpp:
(BlackBerry::WebKit::configPage):
(BlackBerry::WebKit::dumpJSCTypeCountSetToTableHTML):
(BlackBerry::WebKit::mallocStats):
(BlackBerry::WebKit::memoryPage):
(BlackBerry::WebKit::memoryPeaksToHtmlTable):
(BlackBerry::WebKit::memoryLivePage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150913 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Notify client of selection deletion
https://bugs.webkit.org/show_bug.cgi?id=116843

Patch by Nima Ghanavatian <nghanavatian@blackberry.com> on 2013-05-29
Reviewed by Rob Buis.

Internally reviewed by Mike Fenton.

PR342106
Our change guard was preventing caret change notification to be sent to IMF.
This put us out of state when a selection was deleted because it is not a simple
single character deletion. Ensure that selection deletions always send a caret
update.

* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::deleteSelection):
(BlackBerry::WebKit::InputHandler::deleteTextRelativeToCursor):
(BlackBerry::WebKit::InputHandler::deleteText):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150914 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] about:memory should use malloc_stats instead of mallinfo
https://bugs.webkit.org/show_bug.cgi?id=96420

Reviewed by Rob Buis.

PR 206297
Use mallopt to get malloc_stats.

* WebKitSupport/AboutData.cpp:
(BlackBerry::WebKit::mallocStats):
(BlackBerry::WebKit::memoryPage):
(BlackBerry::WebKit::MemoryTracker::updateMemoryPeaks):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150915 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Handle Host-Only cookies
https://bugs.webkit.org/show_bug.cgi?id=116969

PR 338809
Patch by Otto Derek Cheung <otcheung@rim.com> on 2013-05-29
Reviewed by Rob Buis.
Internally Reviewed by Joe Mason.

Adding support for host-only cookies (cookies with no
specified domains). These cookies should only be returned
when the host matches the cookie domain exactly.

Tested using Opera and Browser cookie test suite. Tested
that host cookies are being stored in it's own map using
Web Inspector.

* platform/blackberry/CookieManager.cpp:
(WebCore::CookieManager::getRawCookies):
(WebCore::CookieManager::checkAndTreatCookie):
(WebCore::CookieManager::findOrCreateCookieMap):
* platform/blackberry/CookieParser.cpp:
(WebCore::CookieParser::CookieParser):
(WebCore::CookieParser::parseOneCookie):
* platform/blackberry/ParsedCookie.h:
(WebCore::ParsedCookie::isHostOnly):
(ParsedCookie):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150916 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Shapes] Fix style issues in BasicShapes
https://bugs.webkit.org/show_bug.cgi?id=116734

Patch by Bem Jones-Bey <bjonesbe@adobe.com> on 2013-05-29
Reviewed by Alexandru Chiculita.

Fix indentation in BasicShapes.cpp, and change enums to respect the
style rules CamelCase instead of HAVING_UNDERSCORES.

No new tests, only style changes.

* css/BasicShapeFunctions.cpp:
(WebCore::valueForBasicShape):
(WebCore::basicShapeForValue):
* css/CSSBasicShapes.cpp:
(WebCore::buildRectangleString):
(WebCore::CSSBasicShapeRectangle::equals):
(WebCore::CSSBasicShapeCircle::equals):
(WebCore::CSSBasicShapeEllipse::equals):
(WebCore::CSSBasicShapePolygon::equals):
(WebCore::CSSBasicShapeInsetRectangle::equals):
* css/CSSBasicShapes.h:
(WebCore::CSSBasicShapeRectangle::type):
(WebCore::CSSBasicShapeInsetRectangle::type):
(WebCore::CSSBasicShapeCircle::type):
(WebCore::CSSBasicShapeEllipse::type):
(WebCore::CSSBasicShapePolygon::type):
* rendering/ExclusionShape.cpp:
(WebCore::ExclusionShape::createExclusionShape):
* rendering/ExclusionShapeInsideInfo.cpp:
(WebCore::ExclusionShapeInsideInfo::isEnabledFor):
* rendering/ExclusionShapeOutsideInfo.cpp:
(WebCore::ExclusionShapeOutsideInfo::isEnabledFor):
* rendering/style/BasicShapes.cpp:
(WebCore::BasicShape::canBlend):
(WebCore::BasicShapeRectangle::path):
(WebCore::BasicShapeCircle::path):
(WebCore::BasicShapeEllipse::path):
(WebCore::BasicShapeInsetRectangle::path):
* rendering/style/BasicShapes.h:
(WebCore::BasicShapeRectangle::type):
(WebCore::BasicShapeCircle::type):
(WebCore::BasicShapeEllipse::type):
(WebCore::BasicShapePolygon::type):
(WebCore::BasicShapeInsetRectangle::type):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150917 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Adding myself as a committer.

Signed-off-by: Adenilson Cavalcanti <cavalcantii@gmail.com>

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Windows] Correct copy command (form versus forms)

* WebCore.vcproj/copyForwardingHeaders.cmd:
* WebCore.vcxproj/copyForwardingHeaders.cmd:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add Andrew Lo to contributors.json
https://bugs.webkit.org/show_bug.cgi?id=116981

Reviewed by Rob Buis.

Adding Andrew Lo to contributors.json.

* Scripts/webkitpy/common/config/contributors.json:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150920 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix more CMake GTK+ build issues after r150336

.:

* Source/cmake/OptionsGTK.cmake: Actually set the new output name variable
and be sure to set WTF_USE_EGL when EGL is enabled.

Source/WebKit2:

* CMakeLists.txt: We need to allow for setting the WebProcess output name, since
WebKitGTK+ expects it to be called WebKitWebProcess.
* PlatformGTK.cmake: No longer set WebProcess_EXECUTABLE_NAME as it's been replaced
by WebKit2_WebProcess_OUTPUT_NAME.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150921 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Optimize RenderText::offsetNext for 8 bit strings
https://bugs.webkit.org/show_bug.cgi?id=116877

Reviewed by Darin Adler.

Source/WebCore:

Previously, this function was always upconverting strings to 16 bits in
order to create a cursorMovementIterator. This patch adds a fast path
for ASCII and Latin-1 strings, which don't need this complicated cursor
movement logic.

I ran into this code because nextOffset showed up as a memory pig on a
memory profile of Mobile Gmail.

Test: editing/selection/move-by-character-brute-force.html

* rendering/RenderText.cpp:
(WebCore::RenderText::previousOffset):
(WebCore::RenderText::nextOffset):

LayoutTests:

Test that caret movement works correctly for many code points.

* editing/selection/move-by-character-brute-force-expected.txt: Added.
* editing/selection/move-by-character-brute-force.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150922 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Add more cellular technologies into the NetworkInfo enum
https://bugs.webkit.org/show_bug.cgi?id=116982

PR 340189
Patch by Otto Derek Cheung <otcheung@rim.com> on 2013-05-29
Reviewed by Rob Buis.

Provide more specific bandwidth speeds on different network
services our devices provide.

* WebCoreSupport/NetworkInfoClientBlackBerry.cpp:
(WebCore):
(WebCore::NetworkInfoClientBlackBerry::bandwidth):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Cleanup AudioSourceNode.idl from WebKit build.
https://bugs.webkit.org/show_bug.cgi?id=116905.

Patch by Praveen R Jadhav <praveen.j@samsung.com> on 2013-05-29
Reviewed by Darin Adler.

AudioSourceNode.idl is not part of WebAudio Specifications anymore.
AudioNode is inherited directly in all the audio source nodes.

Source/WebCore:

No new tests. Current test cases will cover all the scenarios.

* CMakeLists.txt:
* DerivedSources.make:
* DerivedSources.pri:
* GNUmakefile.list.am:
* Modules/webaudio/AudioBufferSourceNode.h:
* Modules/webaudio/AudioBufferSourceNode.idl:
* Modules/webaudio/AudioScheduledSourceNode.cpp:
(WebCore::AudioScheduledSourceNode::AudioScheduledSourceNode):
* Modules/webaudio/AudioScheduledSourceNode.h:
* Modules/webaudio/AudioSourceNode.h: Removed.
* Modules/webaudio/AudioSourceNode.idl: Removed.
* Modules/webaudio/MediaElementAudioSourceNode.cpp:
(WebCore::MediaElementAudioSourceNode::MediaElementAudioSourceNode):
* Modules/webaudio/MediaElementAudioSourceNode.h:
(MediaElementAudioSourceNode):
* Modules/webaudio/MediaElementAudioSourceNode.idl:
* Modules/webaudio/MediaStreamAudioDestinationNode.idl:
* Modules/webaudio/MediaStreamAudioSourceNode.cpp:
(WebCore::MediaStreamAudioSourceNode::MediaStreamAudioSourceNode):
* Modules/webaudio/MediaStreamAudioSourceNode.h:
(MediaStreamAudioSourceNode):
* Modules/webaudio/MediaStreamAudioSourceNode.idl:
* Modules/webaudio/OscillatorNode.h:
* Modules/webaudio/OscillatorNode.idl:
* Target.pri:
* WebCore.xcodeproj/project.pbxproj:

Tools:

* Scripts/webkitperl/filter-build-webkit_unittest/shouldIgnoreLine_unittests.pl:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150924 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Return earlier if there's no session storage namespace
https://bugs.webkit.org/show_bug.cgi?id=116984
<rdar://problem/13976781>

Reviewed by Tim Horton.

If we can't find a session storage namespace, return before creating an entry in the m_storageAreasByConnection
hash map since then we'll crash trying to remove it later.

* UIProcess/Storage/StorageManager.cpp:
(WebKit::StorageManager::createSessionStorageMap):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150925 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove custom binding for Clipboard setDragImage function
https://bugs.webkit.org/show_bug.cgi?id=116422

Reviewed by Sam Weinig.

* bindings/js/JSClipboardCustom.cpp: Removed setDragImage binding.

* dom/Clipboard.cpp:
(WebCore::Clipboard::canSetDragImage): Added a condition that this is a drag
and drop clipboard. That used to be checked in the setDragImage binding.
(WebCore::Clipboard::setDragImage): Added a version that takes an Element
and calls through to the existing functions (in the legacy code path), or handles
both the Element and HTMLImageElement not-in-document cases (in the new code path).

* dom/Clipboard.h: Updated for changes above.

* dom/Clipboard.idl: Removed [Custom] from setDragImage.

* page/EventHandler.cpp:
(WebCore::EventHandler::handleDrag): Call the new setDragImage instead of the
old setDragImageElement.


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