[Chromium] Remove idbFactory from WebKitPlatformSupport
https://bugs.webkit.org/show_bug.cgi?id=106457

Reviewed by Adam Barth.

Now that https://codereview.chromium.org/12181010/ has landed, the
idbFactory method is no longer needed. (Embedders must now call
the new setIDBFactory method upon initialization.) Part of a
larger refactoring series; see tracking bug 82948.

* public/platform/WebKitPlatformSupport.h:
(WebKit):
* src/IDBFactoryBackendProxy.cpp:
(WebKit::IDBFactoryBackendProxy::IDBFactoryBackendProxy):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141896 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Continue making XSSAuditor thread safe: Remove dependency on parser's sourceForToken and TextResourceDecoder
https://bugs.webkit.org/show_bug.cgi?id=108698

Reviewed by Adam Barth.

We'd like to be able to call filterToken() from the BackgroundHTMLParser where there is no HTMLDocumentParser. So we are removing the dependencies of
filterToken() on the HTMLDocumentParser. This patch brings us one step closer to removing the m_parser member from XSSAuditor by passing in the
TextResourceDecoder and HTMLSourceTracker to filterToken. To keep the number of parameters from blowing up, this introduces a FilterTokenRequest struct
to hold its arguments. We expect to add one more member to this struct.

No new tests because no new functionality.

* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::pumpTokenizer):
* html/parser/HTMLDocumentParser.h:
* html/parser/XSSAuditor.cpp:
(WebCore::XSSAuditor::filterToken):
(WebCore::XSSAuditor::filterStartToken):
(WebCore::XSSAuditor::filterCharacterToken):
(WebCore::XSSAuditor::filterScriptToken):
(WebCore::XSSAuditor::filterObjectToken):
(WebCore::XSSAuditor::filterParamToken):
(WebCore::XSSAuditor::filterEmbedToken):
(WebCore::XSSAuditor::filterAppletToken):
(WebCore::XSSAuditor::filterIframeToken):
(WebCore::XSSAuditor::filterMetaToken):
(WebCore::XSSAuditor::filterBaseToken):
(WebCore::XSSAuditor::filterFormToken):
(WebCore::XSSAuditor::eraseDangerousAttributesIfInjected):
(WebCore::XSSAuditor::eraseAttributeIfInjected):
(WebCore::XSSAuditor::decodedSnippetForName):
(WebCore::XSSAuditor::decodedSnippetForAttribute):
(WebCore::XSSAuditor::decodedSnippetForJavaScript):
* html/parser/XSSAuditor.h:
(WebCore):
(WebCore::FilterTokenRequest::FilterTokenRequest):
(FilterTokenRequest):
(XSSAuditor):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141897 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] remove methods from the WebTestRunner interface that are only used by WebTestProxyBase
https://bugs.webkit.org/show_bug.cgi?id=108926

Reviewed by Adam Barth.

* DumpRenderTree/chromium/TestRunner/public/WebTestRunner.h:
(WebKit):
(WebTestRunner):
* DumpRenderTree/chromium/TestRunner/src/TestRunner.h:
(TestRunner):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141899 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r141896.
http://trac.webkit.org/changeset/141896
https://bugs.webkit.org/show_bug.cgi?id=108956

crashes indexdb security tests (Requested by gavinp on
#webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-02-05

* public/platform/WebKitPlatformSupport.h:
(WebKit):
(WebKitPlatformSupport):
(WebKit::WebKitPlatformSupport::idbFactory):
* src/IDBFactoryBackendProxy.cpp:
(WebKit::IDBFactoryBackendProxy::IDBFactoryBackendProxy):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141900 268f45cc-cd09-0410-ab3c-d52691b4dbfc
TextAutosizing: adjust the maximum difference between cluster text width and its descendant
width.
https://bugs.webkit.org/show_bug.cgi?id=108411

Source/WebCore:

Currently, if a render object is more than 200 CSS units shorter than its parent cluster, it
becomes a separate autosizing cluster (see https://bugs.webkit.org/show_bug.cgi?id=105188).
This doesn't work well for layouts when narrow nodes are related, like nested comments:
deeper comments are all shorter than the parent cluster and become autosized differently. To
avoid that the difference that makes a shorter descendant a new autosizing cluster is
adjusted each time the width difference is not greater than 50 CSS units from the previous
one. This allows nested comments, for example, to remain a part of the parent cluster and be
autosized with the same multiplier.

Patch by Anton Vayvod <avayvod@chromium.org> on 2013-02-05
Reviewed by Kenneth Rohde Christiansen.

Tests:
        fast/text-autosizing/nested-child.html

* rendering/TextAutosizer.cpp:
(WebCore::TextAutosizingClusterInfo::TextAutosizingClusterInfo):

    Added a new field to store the current maximum width difference for the cluster.

(WebCore::TextAutosizer::isAutosizingCluster):

    Uses the new field to determine if the current node is a separate cluster,
    updates the maximum allowed width difference between the cluster and its descendant.

(WebCore::TextAutosizer::processContainer):
(WebCore::TextAutosizer::clusterShouldBeAutosized):
(WebCore::TextAutosizer::measureDescendantTextWidth):

    Non-const reference passed to the methods above.

* rendering/TextAutosizer.h: updated method parameters.

LayoutTests:

Patch by Anton Vayvod <avayvod@chromium.org> on 2013-02-05
Reviewed by Kenneth Rohde Christiansen.

Tests that certain width difference doesn't make descendants separate clusters.

* fast/text-autosizing/nested-child-expected.html: Added.
* fast/text-autosizing/nested-child.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141901 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Windows] Unreviewed VS2010 Build Correction after r141651

* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj: Add missing
StructureRareData.h and StructureRareData.cpp files.
* JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters: Ditto.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141902 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[BlackBerry] Scrolling performance drops doing page load
https://bugs.webkit.org/show_bug.cgi?id=108949

Patch by Andrew Lo <anlo@rim.com> on 2013-02-05
Reviewed by Yong Li.
Internally reviewed by Jakob Petsovits.

Internal PR 291390.
The intention of this code was to not update non-visible tiles during page load.

Before this patch, the code would update tiles that have already been rendered
during page load.

* Api/BackingStore.cpp:
(BlackBerry::WebKit::BackingStorePrivate::updateTilesForScrollOrNotRenderedRegion):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141903 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Make overlay layers slow-scrolling
https://bugs.webkit.org/show_bug.cgi?id=108957

Patch by Sami Kyostila <skyostil@chromium.org> on 2013-02-05
Reviewed by James Robinson.

Since overlay layers get inserted on top of everything else, we must
mark them slow-scrolling to prevent all scroll input events to the rest
of the page from getting blocked. This is also more correct because
generally the overlay contents need to be repainted whenever the scroll
offset changes, and with this patch the painting happens in sync with
page scrolling.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141904 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Call XSSAuditor's didBlockScript() for the threaded HTML parser
https://bugs.webkit.org/show_bug.cgi?id=108726

Reviewed by Adam Barth.

Source/WebCore:

This patch causes us to call didBlockScript() on the main thread if the CompactHTML token has XSSInfo.
To do so, we:
1. Rename DidBlockScriptRequest to XSSInfo.
2. Add an OwnPtr<XSSInfo> field to CompactHTMLToken.
3. Add an isSafeToSendToAnotherThread() method to String and KURL.

We don't yet populate didBlockScriptRequest on the background thread, but this should just work once we do.

No new tests because no new functionality.

* html/parser/BackgroundHTMLParser.cpp:
(WebCore::BackgroundHTMLParser::pumpTokenizer): Update comment for rename.
* html/parser/CompactHTMLToken.cpp:
(SameSizeAsCompactHTMLToken):
(WebCore::CompactHTMLToken::CompactHTMLToken): Add a copy constructor used by Vector.
(WebCore::CompactHTMLToken::isSafeToSendToAnotherThread): Include new m_xssInfo field in safety check.
(WebCore):
(WebCore::CompactHTMLToken::xssInfo): Added.
(WebCore::CompactHTMLToken::setXSSInfo): Added.
* html/parser/CompactHTMLToken.h: Add an OwnPtr<XSSInfo> field to CompactHTMLToken.
(WebCore):
(CompactHTMLToken):
(WTF): Add VectorTraits necessary for copying Vector fields objects that contain an OwnPtr.
* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::processParsedChunkFromBackgroundParser): Add new didBlockScript() call.
(WebCore::HTMLDocumentParser::pumpTokenizer):
* html/parser/XSSAuditor.cpp: Renaming.
(WebCore::XSSAuditor::filterToken):
* html/parser/XSSAuditor.h: Renaming.
(WebCore):
(XSSAuditor):
* html/parser/XSSAuditorDelegate.cpp:
(WebCore::XSSInfo::isSafeToSendToAnotherThread):
(WebCore):
(WebCore::XSSAuditorDelegate::didBlockScript):
* html/parser/XSSAuditorDelegate.h:
(WebCore::XSSInfo::create):
(XSSInfo):
(WebCore::XSSInfo::XSSInfo):
(XSSAuditorDelegate):
* platform/KURL.cpp:
(WebCore::KURL::isSafeToSendToAnotherThread): Added.
(WebCore):
* platform/KURL.h:
(KURL):
* platform/KURLGoogle.cpp:
(WebCore):
(WebCore::KURLGooglePrivate::isSafeToSendToAnotherThread): Added.
* platform/KURLGooglePrivate.h:
(KURLGooglePrivate):
* platform/KURLWTFURLImpl.h:
(WebCore::KURLWTFURLImpl::isSafeToSendToAnotherThread): Added.

Source/WTF:

This patch adds isSafeToSendToAnotherThread() methods to CString, String, ParsedURL and URLString.
These methods check to ensure there are 0 or 1 references.

* wtf/text/CString.cpp:
(WTF::CString::isSafeToSendToAnotherThread): Added.
(WTF):
* wtf/text/CString.h:
(CString):
* wtf/text/WTFString.cpp:
(WTF::String::isSafeToSendToAnotherThread): Added.
(WTF):
* wtf/text/WTFString.h:
(String):
* wtf/url/api/ParsedURL.h:
(WTF::ParsedURL::isSafeToSendToAnotherThread): Added.
* wtf/url/api/URLString.h:
(WTF::URLString::isSafeToSendToAnotherThread): Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add a performance test for arabic line breaking
https://bugs.webkit.org/show_bug.cgi?id=108948

Reviewed by Eric Seidel.

Adding a perfomance test based to exercise the complex
font path used in rendering arabic script.

* Layout/ArabicLineLayout.html: Added.
* Skipped: New test skipped by default as per Ryosuke's request.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[HarfBuzz][Cairo] harfBuzzGetGlyph is slow and hot
https://bugs.webkit.org/show_bug.cgi?id=108941

Reviewed by Kenneth Rohde Christiansen.

The text to glyph conversion using Cairo is slow
due to expensive text codec conversion to UTF-8.
Additionally, the glyph lookup itself is expensive.

Inspired by the approach taken in HarfBuzzFaceSkia.cpp
I suggest to implement a similar caching mechanism to
accelerate this conversion.

Arabic line breaking test, under review in
bug 108948 shows about 58% improvement on my system
with this patch.

* platform/graphics/harfbuzz/HarfBuzzFaceCairo.cpp:
(WebCore::HarfBuzzFontData::HarfBuzzFontData):
    New container structure that keeps pointers
    to the cairo scaled font as well as the glyph cache.
(HarfBuzzFontData):
(WebCore):
(WebCore::harfBuzzGetGlyph): Using the new container structure for accessing the cache.
(WebCore::harfBuzzGetGlyphHorizontalAdvance): Using the new container structure for accessing the scaled font.
(WebCore::harfBuzzGetGlyphExtents): Ditto.
(WebCore::destroyHarfBuzzFontData): Destroying the container that held the pointers.
(WebCore::HarfBuzzFace::createFont):
    Initializing the container structure with the pointers
    to the cache that is held in HarfBuzzFace and the cairo scaled font.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141908 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, rolling out r141905.
http://trac.webkit.org/changeset/141905
https://bugs.webkit.org/show_bug.cgi?id=108963

"Broke mac build" (Requested by tonyg-cr on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2013-02-05

Source/WebCore:

* html/parser/BackgroundHTMLParser.cpp:
(WebCore::BackgroundHTMLParser::pumpTokenizer):
* html/parser/CompactHTMLToken.cpp:
(SameSizeAsCompactHTMLToken):
(WebCore::isStringSafeToSendToAnotherThread):
(WebCore::CompactHTMLToken::isSafeToSendToAnotherThread):
* html/parser/CompactHTMLToken.h:
(WebCore):
(CompactHTMLToken):
* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::processParsedChunkFromBackgroundParser):
(WebCore::HTMLDocumentParser::pumpTokenizer):
* html/parser/XSSAuditor.cpp:
(WebCore::XSSAuditor::filterToken):
* html/parser/XSSAuditor.h:
(WebCore):
(XSSAuditor):
* html/parser/XSSAuditorDelegate.cpp:
(WebCore::XSSAuditorDelegate::didBlockScript):
* html/parser/XSSAuditorDelegate.h:
(WebCore::DidBlockScriptRequest::create):
(WebCore::DidBlockScriptRequest::DidBlockScriptRequest):
(XSSAuditorDelegate):
* platform/KURL.cpp:
* platform/KURL.h:
(KURL):
* platform/KURLGoogle.cpp:
(WebCore::KURLGooglePrivate::reportMemoryUsage):
* platform/KURLGooglePrivate.h:
(KURLGooglePrivate):
* platform/KURLWTFURLImpl.h:
(WebCore::KURLWTFURLImpl::reportMemoryUsage):

Source/WTF:

* wtf/text/CString.cpp:
* wtf/text/CString.h:
* wtf/text/WTFString.cpp:
* wtf/text/WTFString.h:
(String):
* wtf/url/api/ParsedURL.h:
(ParsedURL):
* wtf/url/api/URLString.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141909 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Adds the WebGL Conformance Tests buffers folder
https://bugs.webkit.org/show_bug.cgi?id=108902

Reviewed by Kenneth Russell.

* webgl/conformance/buffers/buffer-bind-test-expected.txt: Added.
* webgl/conformance/buffers/buffer-bind-test.html: Added.
* webgl/conformance/buffers/buffer-data-array-buffer-expected.txt: Added.
* webgl/conformance/buffers/buffer-data-array-buffer.html: Added.
* webgl/conformance/buffers/element-array-buffer-delete-recreate-expected.txt: Added.
* webgl/conformance/buffers/element-array-buffer-delete-recreate.html: Added.
* webgl/conformance/buffers/index-validation-copies-indices-expected.txt: Added.
* webgl/conformance/buffers/index-validation-copies-indices.html: Added.
* webgl/conformance/buffers/index-validation-crash-with-buffer-sub-data-expected.txt: Added.
* webgl/conformance/buffers/index-validation-crash-with-buffer-sub-data.html: Added.
* webgl/conformance/buffers/index-validation-expected.txt: Added.
* webgl/conformance/buffers/index-validation-large-buffer-expected.txt: Added.
* webgl/conformance/buffers/index-validation-large-buffer.html: Added.
* webgl/conformance/buffers/index-validation-verifies-too-many-indices-expected.txt: Added.
* webgl/conformance/buffers/index-validation-verifies-too-many-indices.html: Added.
* webgl/conformance/buffers/index-validation-with-resized-buffer-expected.txt: Added.
* webgl/conformance/buffers/index-validation-with-resized-buffer.html: Added.
* webgl/conformance/buffers/index-validation.html: Added.
* webgl/resources/webgl_test_files/conformance/buffers/00_test_list.txt: Added.
* webgl/resources/webgl_test_files/conformance/buffers/buffer-bind-test.html: Added.
* webgl/resources/webgl_test_files/conformance/buffers/buffer-data-array-buffer.html: Added.
* webgl/resources/webgl_test_files/conformance/buffers/element-array-buffer-delete-recreate.html: Added.
* webgl/resources/webgl_test_files/conformance/buffers/index-validation-copies-indices.html: Added.
* webgl/resources/webgl_test_files/conformance/buffers/index-validation-crash-with-buffer-sub-data.html: Added.
* webgl/resources/webgl_test_files/conformance/buffers/index-validation-large-buffer.html: Added.
* webgl/resources/webgl_test_files/conformance/buffers/index-validation-verifies-too-many-indices.html: Added.
* webgl/resources/webgl_test_files/conformance/buffers/index-validation-with-resized-buffer.html: Added.
* webgl/resources/webgl_test_files/conformance/buffers/index-validation.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Adds the WebGL Conformance Tests misc folder.
https://bugs.webkit.org/show_bug.cgi?id=108905

Reviewed by Kenneth Russell.

* webgl/conformance/misc/bad-arguments-test-expected.txt: Added.
* webgl/conformance/misc/bad-arguments-test.html: Added.
* webgl/conformance/misc/boolean-argument-conversion-expected.txt: Added.
* webgl/conformance/misc/boolean-argument-conversion.html: Added.
* webgl/conformance/misc/delayed-drawing-expected.txt: Added.
* webgl/conformance/misc/delayed-drawing.html: Added.
* webgl/conformance/misc/error-reporting-expected.txt: Added.
* webgl/conformance/misc/error-reporting.html: Added.
* webgl/conformance/misc/functions-returning-strings-expected.txt: Added.
* webgl/conformance/misc/functions-returning-strings.html: Added.
* webgl/conformance/misc/instanceof-test-expected.txt: Added.
* webgl/conformance/misc/instanceof-test.html: Added.
* webgl/conformance/misc/invalid-passed-params-expected.txt: Added.
* webgl/conformance/misc/invalid-passed-params.html: Added.
* webgl/conformance/misc/is-object-expected.txt: Added.
* webgl/conformance/misc/is-object.html: Added.
* webgl/conformance/misc/null-object-behaviour-expected.txt: Added.
* webgl/conformance/misc/null-object-behaviour.html: Added.
* webgl/conformance/misc/object-deletion-behaviour-expected.txt: Added.
* webgl/conformance/misc/object-deletion-behaviour.html: Added.
* webgl/conformance/misc/shader-precision-format-expected.txt: Added.
* webgl/conformance/misc/shader-precision-format.html: Added.
* webgl/conformance/misc/type-conversion-test-expected.txt: Added.
* webgl/conformance/misc/type-conversion-test.html: Added.
* webgl/conformance/misc/uninitialized-test-expected.txt: Added.
* webgl/conformance/misc/uninitialized-test.html: Added.
* webgl/conformance/misc/webgl-specific-expected.txt: Added.
* webgl/conformance/misc/webgl-specific.html: Added.
* webgl/resources/webgl_test_files/conformance/misc/00_test_list.txt: Added.
* webgl/resources/webgl_test_files/conformance/misc/bad-arguments-test.html: Added.
* webgl/resources/webgl_test_files/conformance/misc/boolean-argument-conversion.html: Added.
* webgl/resources/webgl_test_files/conformance/misc/delayed-drawing.html: Added.
* webgl/resources/webgl_test_files/conformance/misc/error-reporting.html: Added.
* webgl/resources/webgl_test_files/conformance/misc/functions-returning-strings.html: Added.
* webgl/resources/webgl_test_files/conformance/misc/instanceof-test.html: Added.
* webgl/resources/webgl_test_files/conformance/misc/invalid-passed-params.html: Added.
* webgl/resources/webgl_test_files/conformance/misc/is-object.html: Added.
* webgl/resources/webgl_test_files/conformance/misc/null-object-behaviour.html: Added.
* webgl/resources/webgl_test_files/conformance/misc/object-deletion-behaviour.html: Added.
* webgl/resources/webgl_test_files/conformance/misc/shader-precision-format.html: Added.
* webgl/resources/webgl_test_files/conformance/misc/type-conversion-test.html: Added.
* webgl/resources/webgl_test_files/conformance/misc/uninitialized-test.html: Added.
* webgl/resources/webgl_test_files/conformance/misc/webgl-specific.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141911 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Adds the WebGL Conformance Tests typedarrays folder.
https://bugs.webkit.org/show_bug.cgi?id=108907

Reviewed by Kenneth Russell.

* webgl/conformance/typedarrays/array-buffer-crash-expected.txt: Added.
* webgl/conformance/typedarrays/array-buffer-crash.html: Added.
* webgl/conformance/typedarrays/array-buffer-view-crash-expected.txt: Added.
* webgl/conformance/typedarrays/array-buffer-view-crash.html: Added.
* webgl/conformance/typedarrays/array-unit-tests-expected.txt: Added.
* webgl/conformance/typedarrays/array-unit-tests.html: Added.
* webgl/conformance/typedarrays/data-view-crash-expected.txt: Added.
* webgl/conformance/typedarrays/data-view-crash.html: Added.
* webgl/conformance/typedarrays/data-view-test-expected.txt: Added.
* webgl/conformance/typedarrays/data-view-test.html: Added.
* webgl/resources/webgl_test_files/conformance/typedarrays/00_test_list.txt: Added.
* webgl/resources/webgl_test_files/conformance/typedarrays/array-buffer-crash.html: Added.
* webgl/resources/webgl_test_files/conformance/typedarrays/array-buffer-view-crash.html: Added.
* webgl/resources/webgl_test_files/conformance/typedarrays/array-unit-tests.html: Added.
* webgl/resources/webgl_test_files/conformance/typedarrays/data-view-crash.html: Added.
* webgl/resources/webgl_test_files/conformance/typedarrays/data-view-test.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. VS2010 solution touch-ups.
Make common.props use a platform dependent preprocessor definition (WIN32 or X64).
Add a few base properties.
Create a temporary auto-version script for use by the VS2010 solution. Will be removed later.
https://bugs.webkit.org/show_bug.cgi?id=106949.

* win/tools/scripts/auto-version2010.sh: Added.
* win/tools/vsprops/common.props:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141913 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Objective-C API: testapi.mm should use ARC
https://bugs.webkit.org/show_bug.cgi?id=107838

Reviewed by Oliver Hunt.

In ToT testapi.mm uses the Obj-C garbage collector, which hides a lot of our object lifetime bugs.
We should enable ARC, since that is what most of our clients will be using. We use Xcode project
settings to make sure we don't try to compile ARC on 32-bit.

* API/tests/testapi.mm:
(+[TestObject testObject]):
(testObjectiveCAPI):
* JavaScriptCore.xcodeproj/project.pbxproj:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141914 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed. Copy some resource files for VS2010 solution.
https://bugs.webkit.org/show_bug.cgi?id=106989.

* WebKit.resources/WebKit.rc: Added.
* WebKit.resources/deleteButton.png: Added.
* WebKit.resources/deleteButtonPressed.png: Added.
* WebKit.resources/fsVideoAudioVolumeHigh.png: Added.
* WebKit.resources/fsVideoAudioVolumeLow.png: Added.
* WebKit.resources/fsVideoExitFullscreen.png: Added.
* WebKit.resources/fsVideoPause.png: Added.
* WebKit.resources/fsVideoPlay.png: Added.
* WebKit.resources/missingImage.png: Added.
* WebKit.resources/nullplugin.png: Added.
* WebKit.resources/panEastCursor.png: Added.
* WebKit.resources/panIcon.png: Added.
* WebKit.resources/panNorthCursor.png: Added.
* WebKit.resources/panNorthEastCursor.png: Added.
* WebKit.resources/panNorthWestCursor.png: Added.
* WebKit.resources/panSouthCursor.png: Added.
* WebKit.resources/panSouthEastCursor.png: Added.
* WebKit.resources/panSouthWestCursor.png: Added.
* WebKit.resources/panWestCursor.png: Added.
* WebKit.resources/searchCancel.png: Added.
* WebKit.resources/searchCancelPressed.png: Added.
* WebKit.resources/searchMagnifier.png: Added.
* WebKit.resources/searchMagnifierResults.png: Added.
* WebKit.resources/textAreaResizeCorner.png: Added.
* WebKit.resources/verticalTextCursor.png: Added.
* WebKit.resources/zoomInCursor.png: Added.
* WebKit.resources/zoomOutCursor.png: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141915 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Structure::m_outOfLineCapacity is unnecessary
https://bugs.webkit.org/show_bug.cgi?id=108206

Reviewed by Darin Adler.

Simplifying the utility functions that we use since we don't need a 
bunch of fancy templates for this one specific call site.

Source/JavaScriptCore: 

* runtime/Structure.h:
(JSC::Structure::outOfLineCapacity):

Source/WTF: 

* wtf/MathExtras.h:
(WTF::roundUpToPowerOfTwo):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141916 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF: Make StringBuilder::toAtomicString() consistent with StringBuilder::toString() for strings of length zero
https://bugs.webkit.org/show_bug.cgi?id=108894

Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-02-05
Reviewed by Andreas Kling.

* wtf/text/StringBuilder.h:
(WTF::StringBuilder::toAtomicString): The function was returning the nullAtom for strings of length zero.
This is inconsistent with StringBuilder::toString() which always return an empty string.

This patch unifies the behavior.

Tools: Make StringBuilder::toAtomicString() consistent with StringBuilder::toString() for strings of null length
https://bugs.webkit.org/show_bug.cgi?id=108894

Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-02-05
Reviewed by Andreas Kling.

* TestWebKitAPI/Tests/WTF/StringBuilder.cpp:
Extend the tests to check toAtomicString() on an empty builder.


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