WebKit-https.git
9 years ago2010-11-30 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Tue, 30 Nov 2010 19:23:38 +0000 (19:23 +0000)]
2010-11-30  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Tony Chang.

        Rebaseline server: baseline display tweaks
        https://bugs.webkit.org/show_bug.cgi?id=50207

        Determine which baselines were used when running the tests and higlight
        them in the UI. Sort platform names alphabetically.

        Also makes the server URL be launched in the user's browser
        automatically.

        * Scripts/webkitpy/tool/commands/data/rebaselineserver/main.css:
        * Scripts/webkitpy/tool/commands/data/rebaselineserver/main.js:
        * Scripts/webkitpy/tool/commands/data/rebaselineserver/util.js:
        * Scripts/webkitpy/tool/commands/rebaselineserver.py:
        * Scripts/webkitpy/tool/commands/rebaselineserver_unittest.py:

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

9 years ago2010-11-30 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Tue, 30 Nov 2010 19:16:56 +0000 (19:16 +0000)]
2010-11-30  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: implement "Revert to this revision" in resources panel.
        https://bugs.webkit.org/show_bug.cgi?id=50107

        * inspector/Inspector.idl:
        * inspector/InspectorCSSAgent.cpp:
        (WebCore::InspectorCSSAgent::setStyleSheetText2):
        * inspector/InspectorCSSAgent.h:
        * inspector/InspectorStyleSheet.cpp:
        (WebCore::InspectorStyleSheet::reparseStyleSheet):
        * inspector/front-end/CSSStyleModel.js:
        (WebInspector.CSSStyleModel.prototype._styleSheetChanged.callback):
        (WebInspector.CSSStyleModel.prototype._styleSheetChanged):
        (WebInspector.CSSStyleModel.prototype._onRevert):
        * inspector/front-end/Resource.js:
        (WebInspector.Resource.prototype.get contentTimestamp):
        (WebInspector.Resource.prototype.setInitialContent):
        (WebInspector.Resource.prototype.isLocallyModified):
        (WebInspector.Resource.prototype.setContent.else.finished):
        (WebInspector.Resource.prototype.setContent):
        (WebInspector.Resource.prototype.revertToThis.callback):
        (WebInspector.Resource.prototype.revertToThis):
        (WebInspector.Resource.prototype.get baseRevision):
        (WebInspector.Resource.prototype._innerRequestContent):
        * inspector/front-end/ResourcesPanel.js:
        (WebInspector.ResourcesPanel.prototype._showResourceView):
        (WebInspector.FrameResourceTreeElement.prototype._contentChanged):
        (WebInspector.ResourceRevisionTreeElement):
        (WebInspector.ResourceRevisionTreeElement.prototype.onattach):
        (WebInspector.ResourceRevisionTreeElement.prototype._ondragstart):
        (WebInspector.ResourceRevisionTreeElement.prototype._handleContextMenuEvent):
        * inspector/front-end/ScriptsPanel.js:
        (WebInspector.ScriptsPanel.prototype.editScriptSource.mycallback):
        (WebInspector.ScriptsPanel.prototype.editScriptSource):
        * inspector/front-end/SourceView.js:
        (WebInspector.SourceView.prototype._editLine):
        (WebInspector.SourceView.prototype._editLineComplete):
        (WebInspector.SourceView.prototype._revertEditLine):

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

9 years agoWebKit2: Injected bundle support for <rdar://problem/8710645> WebKitTestRunner needs...
mitz@apple.com [Tue, 30 Nov 2010 19:14:56 +0000 (19:14 +0000)]
WebKit2: Injected bundle support for <rdar://problem/8710645> WebKitTestRunner needs layoutTestController.findString
https://bugs.webkit.org/show_bug.cgi?id=50238

Reviewed by Anders Carlsson.

* Shared/API/c/WKFindOptions.h: Added. Moved the definition of WKFindOptions here from WKPage.h.
* Shared/API/c/WKSharedAPICast.h:
(WebKit::toFindOptions): Moved from WKAPICast.h.
* UIProcess/API/C/WKAPICast.h:
* UIProcess/API/C/WKPage.h:
* WebKit2.xcodeproj/project.pbxproj: Added WKFindOptions.h.
* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageFindString): Added.
* WebProcess/InjectedBundle/API/c/WKBundlePage.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::findStringFromInjectedBundle): Added.
* WebProcess/WebPage/WebPage.h:

WebKitTools: <rdar://problem/8710645> WebKitTestRunner needs layoutTestController.findString
https://bugs.webkit.org/show_bug.cgi?id=50238

Reviewed by Anders Carlsson.

* WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
(WTR::LayoutTestController::findString): Added.
* WebKitTestRunner/InjectedBundle/LayoutTestController.h:

LayoutTests: <rdar://problem/8710645> WebKitTestRunner needs layoutTestController.findString
https://bugs.webkit.org/show_bug.cgi?id=50238

Reviewed by Anders Carlsson.

* platform/mac-wk2/Skipped: Removed editing/text-iterator/findString.html.

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

9 years agoClean up WebCore.vcproj's bindings filter
aroben@apple.com [Tue, 30 Nov 2010 19:02:32 +0000 (19:02 +0000)]
Clean up WebCore.vcproj's bindings filter

I added files that we compile (via an all-in-one file) but weren't in
the .vcproj, removed files that no longer exist, and added the scripts
we use.

Fixes <http://webkit.org/b/50248> WebCore.vcproj's bindings filter is
out-of-date

Reviewed by Darin Adler.

* WebCore.vcproj/WebCore.vcproj:

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

9 years agoMove JSIDB* files to the DerivedSources filter
aroben@apple.com [Tue, 30 Nov 2010 18:35:32 +0000 (18:35 +0000)]
Move JSIDB* files to the DerivedSources filter

This correctly reflects their location on disk. (They were formerly
listed under bindings/js.)

* WebCore.vcproj/WebCore.vcproj:

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

9 years ago2010-11-30 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Tue, 30 Nov 2010 18:31:16 +0000 (18:31 +0000)]
2010-11-30  Xiaomei Ji  <xji@chromium.org>

        Reviewed by David Hyatt.

        Remove clampNegativeToZero in adjustScrollPositionWithinRange.
        https://bugs.webkit.org/show_bug.cgi?id=50203

        * platform/ScrollView.cpp:
        (WebCore::ScrollView::adjustScrollPositionWithinRange):
2010-11-30  Xiaomei Ji  <xji@chromium.org>

        Reviewed by David Hyatt.

        Unskip fast/dom/horizontal-scrollbar-in-rtl.html and fast/dom/horizontal-scrollbar-when-dir-change.html in Chromium and Win7.
        Rebaseline after r72852.
        https://bugs.webkit.org/show_bug.cgi?id=50203

        * platform/chromium/test_expectations.txt:
        * platform/win/Skipped:
        * platform/win/fast/dom/horizontal-scrollbar-in-rtl-expected.txt: Added.
        * platform/win/fast/dom/horizontal-scrollbar-when-dir-change-expected.txt: Added.

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

9 years agoTry to fix timing-out tests on WebKit2 by skipping an earlier test
aroben@apple.com [Tue, 30 Nov 2010 18:20:53 +0000 (18:20 +0000)]
Try to fix timing-out tests on WebKit2 by skipping an earlier test

I'll file a bug if this fixes the problem.

* platform/mac-wk2/Skipped:

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

9 years agoRemove duplicate files from WebCore.vcproj
aroben@apple.com [Tue, 30 Nov 2010 18:20:47 +0000 (18:20 +0000)]
Remove duplicate files from WebCore.vcproj

Rubber-stamped by Steve Falkenburg.

* WebCore.vcproj/WebCore.vcproj:

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

9 years agoLet VS do its thang with WebCore.vcproj
aroben@apple.com [Tue, 30 Nov 2010 18:20:12 +0000 (18:20 +0000)]
Let VS do its thang with WebCore.vcproj

I just removed and readded AnimationBase.cpp.

Rubber-stamped by Steve Falkenburg.

* WebCore.vcproj/WebCore.vcproj:

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

9 years ago2010-11-30 Mario Sanchez Prada <msanchez@igalia.com>
mario@webkit.org [Tue, 30 Nov 2010 18:17:19 +0000 (18:17 +0000)]
2010-11-30  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Chris Fleizach.

        ASSERT failing for combo boxes when selection changes
        https://bugs.webkit.org/show_bug.cgi?id=50062

        * fast/forms/select-option-accesskey-crash-expected.txt: Added.
        * fast/forms/select-option-accesskey-crash.html: Added
2010-11-30  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Chris Fleizach.

        ASSERT failing for combo boxes when selection changes
        https://bugs.webkit.org/show_bug.cgi?id=50062

        Don't call listBoxOnChange for elements using menu lists.

        Test: fast/forms/select-option-accesskey-crash.html

        * dom/SelectElement.cpp:
        (WebCore::SelectElement::accessKeySetSelectedIndex): Extra check
        to decide whether to call menuListOnChange() or listBoxOnChange()
        instead of always calling listBoxOnChange().

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

9 years ago2010-11-30 Andreas Kling <kling@webkit.org>
andreas.kling@nokia.com [Tue, 30 Nov 2010 18:13:59 +0000 (18:13 +0000)]
2010-11-30  Andreas Kling  <kling@webkit.org>

        Reviewed by Dirk Schulze.

        GraphicsContext: Remove "current path" and have strokePath, fillPath and clipPath take a Path argument.
        https://bugs.webkit.org/show_bug.cgi?id=48516

        No new tests, this is refactoring only.

        fillPath() -> fillPath(const Path&)
        strokePath() -> strokePath(const Path&)
        clipPath(WindRule) -> clipPath(const Path&, WindRule)

        drawPath() was only used by CG, so made it PLATFORM(CG) specific.

        The Qt, CG and Cairo implementations are best-effort.
        For the rest, I've put beginPath/addPath and FIXMEs in the three affected methods.

        * WebCore.exp.in:
        * html/canvas/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::fill):
        (WebCore::CanvasRenderingContext2D::stroke):
        * inspector/InspectorController.cpp:
        (WebCore::drawOutlinedQuad):
        * mathml/RenderMathMLRoot.cpp:
        (WebCore::RenderMathMLRoot::paint):
        * mathml/RenderMathMLSquareRoot.cpp:
        (WebCore::RenderMathMLSquareRoot::paint):
        * platform/graphics/GraphicsContext.h:
        * platform/graphics/GraphicsContextPrivate.h:
        * platform/graphics/cairo/GraphicsContextCairo.cpp:
        (WebCore::GraphicsContext::fillPath):
        (WebCore::GraphicsContext::strokePath):
        (WebCore::GraphicsContext::clipPath):
        * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
        * platform/graphics/cg/GraphicsContextCG.cpp:
        (WebCore::GraphicsContext::drawEllipse):
        (WebCore::addConvexPolygonToPath):
        (WebCore::GraphicsContext::drawConvexPolygon):
        (WebCore::GraphicsContext::clipConvexPolygon):
        (WebCore::GraphicsContext::drawPath):
        (WebCore::GraphicsContext::fillPath):
        (WebCore::GraphicsContext::strokePath):
        (WebCore::GraphicsContext::fillRoundedRect):
        (WebCore::GraphicsContext::clipPath):
        * platform/graphics/haiku/GraphicsContextHaiku.cpp:
        (WebCore::GraphicsContext::strokePath):
        (WebCore::GraphicsContext::fillPath):
        * platform/graphics/openvg/GraphicsContextOpenVG.cpp:
        (WebCore::GraphicsContext::fillPath):
        (WebCore::GraphicsContext::strokePath):
        (WebCore::GraphicsContext::clipPath):
        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::GraphicsContext::restorePlatformState):
        (WebCore::GraphicsContext::fillPath):
        (WebCore::GraphicsContext::strokePath):
        (WebCore::GraphicsContext::clipPath):
        (WebCore::GraphicsContext::strokeRect):
        (WebCore::GraphicsContext::translate):
        (WebCore::GraphicsContext::rotate):
        (WebCore::GraphicsContext::scale):
        (WebCore::GraphicsContext::concatCTM):
        * platform/graphics/skia/GraphicsContextSkia.cpp:
        (WebCore::GraphicsContext::clipPath):
        (WebCore::GraphicsContext::fillPath):
        (WebCore::GraphicsContext::strokePath):
        * platform/graphics/wince/GraphicsContextWinCE.cpp:
        (WebCore::GraphicsContext::fillPath):
        (WebCore::GraphicsContext::strokePath):
        (WebCore::GraphicsContext::clipPath):
        * platform/graphics/wx/GraphicsContextWx.cpp:
        (WebCore::GraphicsContext::clipPath):
        (WebCore::GraphicsContext::fillPath):
        (WebCore::GraphicsContext::strokePath):
        * rendering/RenderBoxModelObject.cpp:
        (WebCore::RenderBoxModelObject::paintBorder):
        (WebCore::RenderBoxModelObject::paintBoxShadow):
        * rendering/RenderEmbeddedObject.cpp:
        (WebCore::RenderEmbeddedObject::paintReplaced):
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::drawBoxSideFromPath):
        * rendering/RenderSVGResource.h:
        (WebCore::RenderSVGResource::postApplyResource):
        * rendering/RenderSVGResourceClipper.cpp:
        (WebCore::RenderSVGResourceClipper::pathOnlyClipping):
        * rendering/RenderSVGResourceFilter.cpp:
        (WebCore::RenderSVGResourceFilter::postApplyResource):
        * rendering/RenderSVGResourceFilter.h:
        * rendering/RenderSVGResourceGradient.cpp:
        (WebCore::RenderSVGResourceGradient::applyResource):
        * rendering/RenderSVGResourceGradient.h:
        * rendering/RenderSVGResourcePattern.cpp:
        (WebCore::RenderSVGResourcePattern::postApplyResource):
        * rendering/RenderSVGResourcePattern.h:
        * rendering/RenderSVGResourceSolidColor.cpp:
        (WebCore::RenderSVGResourceSolidColor::postApplyResource):
        * rendering/RenderSVGResourceSolidColor.h:
        * rendering/SVGRenderSupport.cpp:
        (WebCore::SVGRenderSupport::finishRenderSVGContent):
        * rendering/svg/RenderSVGPath.cpp:
        (WebCore::RenderSVGPath::fillAndStrokePath):
        * rendering/svg/SVGInlineTextBox.cpp:
        (WebCore::SVGInlineTextBox::releasePaintingResource):
        (WebCore::SVGInlineTextBox::restoreGraphicsContextAfterTextPainting):
        (WebCore::SVGInlineTextBox::paintDecorationWithStyle):
        * rendering/svg/SVGInlineTextBox.h:
        * svg/SVGFont.cpp:
        (WebCore::Font::drawTextUsingSVGFont):
2010-11-30  Andreas Kling  <kling@webkit.org>

        Reviewed by Dirk Schulze.

        GraphicsContext: Remove "current path" and have strokePath, fillPath and clipPath take a Path argument
        https://bugs.webkit.org/show_bug.cgi?id=48516

        * UIProcess/FindIndicator.cpp:
        (WebKit::FindIndicator::draw):

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

9 years ago2010-11-30 Satish Sampath <satish@chromium.org>
satish@chromium.org [Tue, 30 Nov 2010 18:00:50 +0000 (18:00 +0000)]
2010-11-30  Satish Sampath  <satish@chromium.org>

        Unreviewed, updating a speech input pixel test expectations with new baselines.

        * platform/chromium-linux/fast/speech/input-appearance-speechbutton-expected.checksum:
        * platform/chromium-linux/fast/speech/input-appearance-speechbutton-expected.png:
        * platform/chromium-linux/fast/speech/input-appearance-speechbutton-expected.txt:
        * platform/chromium-mac/fast/speech/input-appearance-speechbutton-expected.checksum:
        * platform/chromium-mac/fast/speech/input-appearance-speechbutton-expected.png:
        * platform/chromium-mac/fast/speech/input-appearance-speechbutton-expected.txt:
        * platform/chromium-win/fast/speech/input-appearance-speechbutton-expected.checksum:
        * platform/chromium-win/fast/speech/input-appearance-speechbutton-expected.png:
        * platform/chromium-win/fast/speech/input-appearance-speechbutton-expected.txt:
        * platform/chromium/test_expectations.txt:

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

9 years ago Reviewed by Darin Adler and Geoff Garen.
ap@apple.com [Tue, 30 Nov 2010 17:54:26 +0000 (17:54 +0000)]
    Reviewed by Darin Adler and Geoff Garen.

        https://bugs.webkit.org/show_bug.cgi?id=44152
        <rdar://problem/8324423> CSSOM should match DOM in discarding wrapper-less parents.

        We have existing behaviors where parent objects in detached subtrees are not preserved:
        - if a root of a node tree doesn't have a wrapper, it's immediately destroyed, making
        its children parentNode attribute null;
        - relationship between a <style> or <link> node and its stylesheet is immediately broken
        when the node is removed from document (in this case, regardless of wrapper existence).

        Both match Firefox. For consistency, CSSOM should do the same. In fact, it already partially
        does - CSSRule.parentRule gets zeroed out when the parent rule is destroyed.

        Tests: fast/dom/StyleSheet/detached-parent-rule-without-wrapper.html
               fast/dom/StyleSheet/detached-stylesheet-without-wrapper.html

        * css/StyleSheet.cpp: (WebCore::StyleSheet::~StyleSheet): Clear out child rule parent.

        * svg/SVGFontFaceElement.cpp: (WebCore::SVGFontFaceElement::insertedIntoDocument): Keep
        the new assertion from firing. This function was adding a rule to style sheet, without
        telling the rule about it.

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

9 years ago2010-11-30 Steve Falkenburg <sfalken@apple.com>
sfalken@apple.com [Tue, 30 Nov 2010 17:53:14 +0000 (17:53 +0000)]
2010-11-30  Steve Falkenburg  <sfalken@apple.com>

        Reviewed by Adam Roben.

        All projects on Windows should use cmd files for build events
        https://bugs.webkit.org/show_bug.cgi?id=50213

        * WebKit.vcproj/InterfacesCommon.vsprops:
        * WebKit.vcproj/InterfacesPostBuild.cmd: Added.
        * WebKit.vcproj/InterfacesPreBuild.cmd: Added.
        * WebKit.vcproj/WebKitGUIDCommon.vsprops:
        * WebKit.vcproj/WebKitGUIDPostBuild.cmd: Added.
        * WebKit.vcproj/WebKitGUIDPreBuild.cmd: Added.
        * WebKit.vcproj/WebKitLibCommon.vsprops:
        * WebKit.vcproj/WebKitLibPostBuild.cmd: Added.
        * WebKit.vcproj/WebKitLibPreBuild.cmd: Added.
2010-11-30  Steve Falkenburg  <sfalken@apple.com>

        Reviewed by Adam Roben.

        All projects on Windows should use cmd files for build events
        https://bugs.webkit.org/show_bug.cgi?id=50213

        * WebCore.vcproj/QTMovieWinCommon.vsprops:
        * WebCore.vcproj/QTMovieWinPostBuild.cmd: Added.
        * WebCore.vcproj/QTMovieWinPreBuild.cmd: Added.
        * WebCore.vcproj/WebCoreCommon.vsprops:
        * WebCore.vcproj/WebCorePostBuild.cmd: Added.
        * WebCore.vcproj/WebCorePreBuild.cmd: Added.
2010-11-30  Steve Falkenburg  <sfalken@apple.com>

        Reviewed by Adam Roben.

        All projects on Windows should use cmd files for build events
        https://bugs.webkit.org/show_bug.cgi?id=50213

        * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePluginCommon.vsprops:
        * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePluginPostBuild.cmd: Added.
        * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePluginPreBuild.cmd: Added.
        * DumpRenderTree/win/DumpRenderTreeCommon.vsprops:
        * DumpRenderTree/win/DumpRenderTreePostBuild.cmd: Added.
        * DumpRenderTree/win/DumpRenderTreePreBuild.cmd: Added.
        * DumpRenderTree/win/ImageDiffCommon.vsprops:
        * DumpRenderTree/win/ImageDiffPostBuild.cmd: Added.
        * DumpRenderTree/win/ImageDiffPreBuild.cmd: Added.
        * MiniBrowser/Configurations/MiniBrowserCFLite.vsprops:
        * MiniBrowser/Configurations/MiniBrowserCommon.vsprops:
        * MiniBrowser/Configurations/MiniBrowserCoreFoundation.vsprops:
        * MiniBrowser/MiniBrowserPostBuild.cmd: Added.
        * MiniBrowser/MiniBrowserPreBuild.cmd: Added.
        * TestWebKitAPI/Configurations/TestWebKitAPICommon.vsprops:
        * TestWebKitAPI/win/TestWebKitAPIPostBuild.cmd: Added.
        * TestWebKitAPI/win/TestWebKitAPIPreBuild.cmd: Added.
        * WebKitAPITest/WebKitAPITestCommon.vsprops:
        * WebKitAPITest/WebKitAPITestPostBuild.cmd: Added.
        * WebKitAPITest/WebKitAPITestPreBuild.cmd: Added.
        * WebKitTestRunner/Configurations/InjectedBundleCommon.vsprops:
        * WebKitTestRunner/Configurations/WebKitTestRunnerCommon.vsprops:
        * WebKitTestRunner/win/InjectedBundlePostBuild.cmd: Added.
        * WebKitTestRunner/win/InjectedBundlePreBuild.cmd: Added.
        * WebKitTestRunner/win/WebKitTestRunnerPostBuild.cmd: Added.
        * WebKitTestRunner/win/WebKitTestRunnerPreBuild.cmd: Added.
        * WinLauncher/WinLauncherCommon.vsprops:
        * WinLauncher/WinLauncherPostBuild.cmd: Added.
        * WinLauncher/WinLauncherPreBuild.cmd: Added.
2010-11-30  Steve Falkenburg  <sfalken@apple.com>

        Reviewed by Adam Roben.

        All projects on Windows should use cmd files for build events
        https://bugs.webkit.org/show_bug.cgi?id=50213

        * win/WebKit2Common.vsprops:
        * win/WebKit2WebProcessCommon.vsprops:
        * win/WebKit2WebProcessPostBuild.cmd: Added.
        * win/WebKit2WebProcessPreBuild.cmd: Added.
        * win/WebKitPostBuild.cmd: Added.
        * win/WebKitPreBuild.cmd: Added.
        * win/WebKitPreLink.cmd: Added.

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

9 years ago2010-11-30 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Tue, 30 Nov 2010 17:48:01 +0000 (17:48 +0000)]
2010-11-30  Ojan Vafai  <ojan@chromium.org>

        [chromium] Rebaselines. Details below.

        * platform/chromium-linux/fast/overflow/overflow-update-transform-expected.checksum: Added.
        * platform/chromium-linux/fast/overflow/overflow-update-transform-expected.png: Added.
        Just scrollbar pixel differences.

        * platform/chromium-linux/svg/W3C-SVG-1.1/animate-elem-30-t-expected.checksum:
        * platform/chromium-linux/svg/W3C-SVG-1.1/animate-elem-30-t-expected.png:
        * platform/chromium-linux/svg/carto.net/selectionlist-expected.checksum:
        * platform/chromium-linux/svg/carto.net/selectionlist-expected.png:
        * platform/chromium-linux/svg/custom/image-small-width-height-expected.checksum:
        * platform/chromium-linux/svg/custom/image-small-width-height-expected.png:
        https://bugs.webkit.org/show_bug.cgi?id=50206

        * platform/chromium-mac/fast/block/basic/truncation-rtl-expected.checksum:
        * platform/chromium-mac/fast/block/basic/truncation-rtl-expected.png:
        * platform/chromium-mac/fast/block/basic/truncation-rtl-expected.txt: Added.
        Completes http://trac.webkit.org/changeset/72875/

        * platform/chromium-win/fast/overflow/overflow-update-transform-expected.checksum: Added.
        * platform/chromium-win/fast/overflow/overflow-update-transform-expected.png: Added.
        Just scrollbar pixel differences.

        * platform/chromium-win/svg/W3C-SVG-1.1/animate-elem-30-t-expected.checksum:
        * platform/chromium-win/svg/W3C-SVG-1.1/animate-elem-30-t-expected.png:
        * platform/chromium-win/svg/carto.net/selectionlist-expected.checksum:
        * platform/chromium-win/svg/carto.net/selectionlist-expected.png:
        * platform/chromium-win/svg/custom/image-small-width-height-expected.checksum:
        * platform/chromium-win/svg/custom/image-small-width-height-expected.png:
        https://bugs.webkit.org/show_bug.cgi?id=50206

        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-30 Vitaly Repeshko <vitalyr@chromium.org>
vitalyr@chromium.org [Tue, 30 Nov 2010 17:18:18 +0000 (17:18 +0000)]
2010-11-30  Vitaly Repeshko  <vitalyr@chromium.org>

        Unreviewed.

        [chromium] Updating test expectations.

        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
andreas.kling@nokia.com [Tue, 30 Nov 2010 16:58:26 +0000 (16:58 +0000)]
2010-11-30  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Reviewed by Andreas Kling.

        [Qt] Early return if setResizesToContentsUsingLayoutSize() is called with already-set size

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::setResizesToContentsUsingLayoutSize):

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

9 years ago2010-11-30 Sheriff Bot <webkit.review.bot@gmail.com>
apavlov@chromium.org [Tue, 30 Nov 2010 16:47:06 +0000 (16:47 +0000)]
2010-11-30  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r72914.
        http://trac.webkit.org/changeset/72914
        https://bugs.webkit.org/show_bug.cgi?id=50241

        "pfeldman has a revision management patch both for CSS and JS"
        (Requested by apavlov on #webkit).

        * English.lproj/localizedStrings.js:
        * inspector/InspectorStyleSheet.cpp:
        (WebCore::InspectorStyleSheet::reparseStyleSheet):
        * inspector/front-end/CSSStyleModel.js:
        (WebInspector.CSSStyleModel.prototype._styleSheetChanged.callback):
        (WebInspector.CSSStyleModel.prototype._styleSheetChanged):
        (WebInspector.CSSStyleSheet.prototype.getText):
        (WebInspector.CSSStyleSheet.prototype.setText):
        * inspector/front-end/ResourcesPanel.js:
        (WebInspector.ResourceRevisionTreeElement.prototype.onattach):
        (WebInspector.ResourceRevisionTreeElement.prototype._ondragstart):

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

9 years ago2010-11-30 Helder Correia <helder@sencha.com>
commit-queue@webkit.org [Tue, 30 Nov 2010 16:29:30 +0000 (16:29 +0000)]
2010-11-30  Helder Correia  <helder@sencha.com>

        Reviewed by Kenneth Rohde Christiansen.

        New fast canvas test to ensure correct behavior of canvas with
        drawImage + shadow after scaling
        https://bugs.webkit.org/show_bug.cgi?id=50202

        The shadow offsets of the drawn images must not be affected by the
        scaling transformation.

        * fast/canvas/canvas-scale-drawImage-shadow-expected.txt: Added.
        * fast/canvas/canvas-scale-drawImage-shadow.html: Added.
        * fast/canvas/script-tests/canvas-scale-drawImage-shadow.js: Added.

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

9 years ago2010-11-30 Patrick Gansterer <paroga@webkit.org>
paroga@webkit.org [Tue, 30 Nov 2010 16:26:39 +0000 (16:26 +0000)]
2010-11-30  Patrick Gansterer  <paroga@webkit.org>

        Reviewed by Adam Roben.

        [WINCE] Add WebView
        https://bugs.webkit.org/show_bug.cgi?id=50216

        * WebView.cpp: Added.
        * WebView.h: Added.

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

9 years ago2010-11-25 Satish Sampath <satish@chromium.org>
satish@chromium.org [Tue, 30 Nov 2010 15:33:11 +0000 (15:33 +0000)]
2010-11-25  Satish Sampath  <satish@chromium.org>

        Reviewed by Kent Tamura.

        Fix rendering of speech button when setting the attribute dynamically.
        https://bugs.webkit.org/show_bug.cgi?id=50077

        * fast/speech/input-appearance-speechbutton.html:
2010-11-25  Satish Sampath  <satish@chromium.org>

        Reviewed by Kent Tamura.

        Fix rendering of speech button when setting the attribute dynamically.
        https://bugs.webkit.org/show_bug.cgi?id=50077

        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::parseMappedAttribute):
        * rendering/RenderTextControlSingleLine.cpp:
        (WebCore::RenderTextControlSingleLine::speechAttributeChanged):
        * rendering/RenderTextControlSingleLine.h:

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

9 years ago2010-11-30 Alexander Pavlov <apavlov@chromium.org>
apavlov@chromium.org [Tue, 30 Nov 2010 15:28:53 +0000 (15:28 +0000)]
2010-11-30  Alexander Pavlov  <apavlov@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: Enable switching between revisions of stylesheets
        https://bugs.webkit.org/show_bug.cgi?id=50227

        Drive-by fix: styleSheetChanged() call needed after a stylesheet reparsing on setStyleSheetText2().

        * English.lproj/localizedStrings.js:
        * inspector/InspectorStyleSheet.cpp:
        (WebCore::InspectorStyleSheet::reparseStyleSheet):
        * inspector/front-end/CSSStyleModel.js:
        (WebInspector.CSSStyleModel.prototype.setStyleSheetText):
        (WebInspector.CSSStyleModel.prototype._styleSheetChanged.callback):
        (WebInspector.CSSStyleModel.prototype._styleSheetChanged):
        (WebInspector.CSSStyleSheet.prototype.getText):
        * inspector/front-end/ResourcesPanel.js:
        (WebInspector.ResourceRevisionTreeElement.prototype.onattach):
        (WebInspector.ResourceRevisionTreeElement.prototype._ondragstart):
        (WebInspector.ResourceRevisionTreeElement.prototype._handleContextMenuEvent):

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

9 years agoFix recently-added bug numbers
aroben@apple.com [Tue, 30 Nov 2010 15:25:59 +0000 (15:25 +0000)]
Fix recently-added bug numbers

* platform/gtk/Skipped:
* platform/qt/Skipped:
* platform/win/Skipped:

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

9 years ago2010-11-30 John Knottenbelt <jknotten@chromium.org>
commit-queue@webkit.org [Tue, 30 Nov 2010 15:14:29 +0000 (15:14 +0000)]
2010-11-30  John Knottenbelt  <jknotten@chromium.org>

        Reviewed by David Levin.

        V8 binding for DOMTimeStamp should be Number, not Date
        https://bugs.webkit.org/show_bug.cgi?id=49963

        * fast/dom/domtimestamp-is-number-expected.txt: Added.
        * fast/dom/domtimestamp-is-number.html: Added.
        * fast/dom/script-tests/domtimestamp-is-number.js: Added.
        (do_check):
2010-11-30  John Knottenbelt  <jknotten@chromium.org>

        Reviewed by David Levin.

        V8 binding for DOMTimeStamp should be Number, not Date
        https://bugs.webkit.org/show_bug.cgi?id=49963

        Test: fast/dom/domtimestamp-is-number.html

        * bindings/scripts/CodeGeneratorV8.pm:

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

9 years agoUpdate mac-wk2 Skipped file and add some bug numbers to other Skipped files
aroben@apple.com [Tue, 30 Nov 2010 15:06:20 +0000 (15:06 +0000)]
Update mac-wk2 Skipped file and add some bug numbers to other Skipped files

* platform/mac-wk2/Skipped: Added current failures.

* platform/gtk/Skipped:
* platform/qt/Skipped:
* platform/win/Skipped:
Added bug numbers for implementing layoutTestController.findString.

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

9 years ago2010-11-30 Thiago Macieira <thiago.macieira@nokia.com>
andreas.kling@nokia.com [Tue, 30 Nov 2010 14:35:02 +0000 (14:35 +0000)]
2010-11-30  Thiago Macieira  <thiago.macieira@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] QWebFrame::load(QNetworkRequest) should respect the CustomVerbAttribute

        For CustomOperation requests, pass the CustomVerbAttribute on to
        the WebCore::ResourceRequest.

        * Api/qwebframe.cpp:
        (QWebFrame::load):

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

9 years ago2010-11-30 Carlos Garcia Campos <cgarcia@igalia.com>
mrobinson@webkit.org [Tue, 30 Nov 2010 14:30:23 +0000 (14:30 +0000)]
2010-11-30  Carlos Garcia Campos  <cgarcia@igalia.com>

        Reviewed by Martin Robinson.

        [GTK] Test fast/events/mouseover-mouseout2.html crashes
        https://bugs.webkit.org/show_bug.cgi?id=50214

        * WebCoreSupport/ChromeClientGtk.cpp:
        (WebKit::ChromeClient::mouseDidMoveOverElement):
        * webkit/webkitwebview.cpp:
        (webkit_web_view_query_tooltip):

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

9 years ago2010-11-30 Patrick Gansterer <paroga@webkit.org>
paroga@webkit.org [Tue, 30 Nov 2010 13:54:36 +0000 (13:54 +0000)]
2010-11-30  Patrick Gansterer  <paroga@webkit.org>

        Reviewed by Andreas Kling.

        [CMake] Use preprocessor argument in GENERATE_DOM_NAMES
        https://bugs.webkit.org/show_bug.cgi?id=49886

        * cmake/WebKitMacros.cmake:

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

9 years ago[Qt] Leak with GraphicsContext::takeOwnershipOfPlatformContext()
reni@webkit.org [Tue, 30 Nov 2010 13:40:11 +0000 (13:40 +0000)]
[Qt] Leak with GraphicsContext::takeOwnershipOfPlatformContext()
https://bugs.webkit.org/show_bug.cgi?id=49916

Reviewed by Andreas Kling.

Change the order of calling QPainter::device() and QPainter::end(), so device() will return with a valid device.
No new test is needed.

* platform/graphics/qt/GraphicsContextQt.cpp:
(WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):

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

9 years ago2010-11-30 Patrick Gansterer <paroga@webkit.org>
paroga@webkit.org [Tue, 30 Nov 2010 13:19:24 +0000 (13:19 +0000)]
2010-11-30  Patrick Gansterer  <paroga@webkit.org>

        Reviewed by Andreas Kling.

        Move generator logic into WebCore CMakeLists.txt file
        https://bugs.webkit.org/show_bug.cgi?id=49885

        * cmake/WebKitMacros.cmake:
2010-11-30  Patrick Gansterer  <paroga@webkit.org>

        Reviewed by Andreas Kling.

        Move generator logic into main CMakeLists.txt file
        https://bugs.webkit.org/show_bug.cgi?id=49885

        Also make the generator calls more portable.

        * CMakeLists.txt:

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

9 years ago2010-11-30 Mario Sanchez Prada <msanchez@igalia.com>
mario@webkit.org [Tue, 30 Nov 2010 12:34:07 +0000 (12:34 +0000)]
2010-11-30  Mario Sanchez Prada  <msanchez@igalia.com>

        Unreviewed, rolling out r72902.
        http://trac.webkit.org/changeset/72902
        https://bugs.webkit.org/show_bug.cgi?id=50062

        This change is causing layout test failures on the Tests bots
        for the mac platform.

        * accessibility/select-menulist-crash-expected.txt: Removed.
        * accessibility/select-menulist-crash.html: Removed.
2010-11-30  Mario Sanchez Prada  <msanchez@igalia.com>

        Unreviewed, rolling out r72902.
        http://trac.webkit.org/changeset/72902
        https://bugs.webkit.org/show_bug.cgi?id=50062

        This change is causing layout test failures on the Tests bots
        for the mac platform.

        * dom/SelectElement.cpp:
        (WebCore::SelectElement::accessKeySetSelectedIndex):

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

9 years ago2010-11-30 Sheriff Bot <webkit.review.bot@gmail.com>
commit-queue@webkit.org [Tue, 30 Nov 2010 11:27:40 +0000 (11:27 +0000)]
2010-11-30  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r72764.
        http://trac.webkit.org/changeset/72764
        https://bugs.webkit.org/show_bug.cgi?id=50215

        This change is causing assertion failures on the debug bots.
        (Requested by mrobinson on #webkit).

        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
        (webkit_accessible_get_name):
        (webkit_accessible_detach):
2010-11-30  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r72764.
        http://trac.webkit.org/changeset/72764
        https://bugs.webkit.org/show_bug.cgi?id=50215

        This change is causing assertion failures on the debug bots.
        (Requested by mrobinson on #webkit).

        * WebCoreSupport/FrameLoaderClientGtk.cpp:
        (WebKit::notifyStatus):
        * tests/testatk.c:
        (main):

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

9 years ago2010-11-30 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Tue, 30 Nov 2010 11:12:01 +0000 (11:12 +0000)]
2010-11-30  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: make copy(node) work in console.
        https://bugs.webkit.org/show_bug.cgi?id=50180

        * inspector/front-end/InjectedScript.js:
        (injectedScriptConstructor.):

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

9 years ago2010-11-30 Mario Sanchez Prada <msanchez@igalia.com>
mario@webkit.org [Tue, 30 Nov 2010 10:55:35 +0000 (10:55 +0000)]
2010-11-30  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Darin Adler.

        ASSERT failing for combo boxes when selection changes
        https://bugs.webkit.org/show_bug.cgi?id=50062

        * accessibility/select-menulist-crash-expected.txt: Added.
        * accessibility/select-menulist-crash.html: Added.
2010-11-30  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Darin Adler.

        ASSERT failing for combo boxes when selection changes
        https://bugs.webkit.org/show_bug.cgi?id=50062

        Don't call listBoxOnChange for elements using menu lists.

        Test: accessibility/select-menulist-crash.html

        * dom/SelectElement.cpp:
        (WebCore::SelectElement::accessKeySetSelectedIndex): Extra check
        to decide whether to call menuListOnChange() or listBoxOnChange()
        instead of always calling listBoxOnChange().

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

9 years ago2010-11-30 Jochen Eisinger <jochen@chromium.org>
jochen@chromium.org [Tue, 30 Nov 2010 10:36:18 +0000 (10:36 +0000)]
2010-11-30  Jochen Eisinger  <jochen@chromium.org>

        Reviewed by Darin Fisher.

        [chromium] pass webframe to web frame client's cookieJar
        https://bugs.webkit.org/show_bug.cgi?id=50148

        * public/WebFrameClient.h:
        (WebKit::WebFrameClient::cookieJar):
        * src/ChromiumBridge.cpp:
        (WebCore::getCookieJar):

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

9 years ago2010-11-30 Helder Correia <helder@sencha.com>
commit-queue@webkit.org [Tue, 30 Nov 2010 10:20:10 +0000 (10:20 +0000)]
2010-11-30  Helder Correia  <helder@sencha.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Path stroke shadow has incorrect behavior when using ctx.scale(x,y)
        https://bugs.webkit.org/show_bug.cgi?id=50198

        New fast canvas test to ensure correct behavior of path stroke shadow
        when using scaling.

        * fast/canvas/canvas-scale-strokePath-shadow-expected.txt: Added.
        * fast/canvas/canvas-scale-strokePath-shadow.html: Added.
        * fast/canvas/script-tests/canvas-scale-strokePath-shadow.js: Added.
2010-11-30  Helder Correia  <helder@sencha.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Path stroke shadow has incorrect behavior when using ctx.scale(x,y)
        https://bugs.webkit.org/show_bug.cgi?id=50198

        Handle the special case when scaling is used and translate the shadow
        offset accordingly. The correct behavior is ensured in ContextShadow
        already, the issue only happens when using a non-blur shadow.

        Test: fast/canvas/canvas-scale-strokePath-shadow.html

        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::GraphicsContext::strokePath):

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

9 years ago2010-11-30 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Tue, 30 Nov 2010 10:11:10 +0000 (10:11 +0000)]
2010-11-30  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed.

        Update mac-leopard pixel baseline to pass with tolerance 0.
        Update svg/dom/SVGTransformList-basics.xhtml mac baseline, after my last SVGList commit.

        * platform/mac-leopard/svg/batik/text/smallFonts-expected.checksum:
        * platform/mac-leopard/svg/batik/text/smallFonts-expected.png:
        * platform/mac-leopard/svg/batik/text/smallFonts-expected.txt:
        * platform/mac/svg/dom/SVGTransformList-basics-expected.checksum:
        * platform/mac/svg/dom/SVGTransformList-basics-expected.png:

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

9 years ago2010-11-30 Helder Correia <helder@sencha.com>
commit-queue@webkit.org [Tue, 30 Nov 2010 10:03:25 +0000 (10:03 +0000)]
2010-11-30  Helder Correia  <helder@sencha.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Path filling should keep shadow offset after context scaling
        https://bugs.webkit.org/show_bug.cgi?id=50194

        New fast canvas test to ensure correct behavior of path fill shadow
        when using scaling.

        * fast/canvas/canvas-scale-fillPath-shadow-expected.txt: Added.
        * fast/canvas/canvas-scale-fillPath-shadow.html: Added.
        * fast/canvas/script-tests/canvas-scale-fillPath-shadow.js: Added.
2010-11-30  Helder Correia  <helder@sencha.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Path filling should keep shadow offset after context scaling
        https://bugs.webkit.org/show_bug.cgi?id=50194

        Handle the special case when scaling is used and translate the shadow
        offset accordingly. The correct behavior is ensured in ContextShadow
        already, the issue only happens when using a non-blur shadow.

        Test: fast/canvas/canvas-scale-fillPath-shadow.html

        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::GraphicsContext::fillPath):

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

9 years ago2010-11-29 Xan Lopez <xlopez@igalia.com>
jochen@chromium.org [Tue, 30 Nov 2010 09:58:05 +0000 (09:58 +0000)]
2010-11-29  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Martin Robinson.

        * configure.ac: bump version for 1.3.7 release.

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

9 years ago[Qt] Fix bugs when building WebKit with Qt 4.7.1
ossy@webkit.org [Tue, 30 Nov 2010 08:56:46 +0000 (08:56 +0000)]
[Qt] Fix bugs when building WebKit with Qt 4.7.1
https://bugs.webkit.org/show_bug.cgi?id=46248

Reviewed by Andreas Kling.

Migrate to Qt 4.7.1, add failing tests to the Skipped list,
remove passing tests from Skipped list, update expected files.

* platform/qt/Skipped:
* platform/qt/css1/basic/class_as_selector-expected.txt:
* platform/qt/css1/basic/comments-expected.txt:
* platform/qt/css1/basic/containment-expected.txt:
* platform/qt/css1/basic/contextual_selectors-expected.txt:
* platform/qt/css1/basic/grouping-expected.txt:
* platform/qt/css1/basic/id_as_selector-expected.txt:
* platform/qt/css1/basic/inheritance-expected.txt:
* platform/qt/css1/box_properties/border-expected.txt:
* platform/qt/css1/box_properties/border_bottom-expected.txt:
* platform/qt/css1/box_properties/border_bottom_inline-expected.txt:
* platform/qt/css1/box_properties/border_bottom_width-expected.txt:
* platform/qt/css1/box_properties/border_bottom_width_inline-expected.txt:
* platform/qt/css1/box_properties/border_color-expected.txt:
* platform/qt/css1/box_properties/border_color_inline-expected.txt:
* platform/qt/css1/box_properties/border_inline-expected.txt:
* platform/qt/css1/box_properties/border_left-expected.txt:
* platform/qt/css1/box_properties/border_left_inline-expected.txt:
* platform/qt/css1/box_properties/border_left_width-expected.txt:
* platform/qt/css1/box_properties/border_left_width_inline-expected.txt:
* platform/qt/css1/box_properties/border_right-expected.txt:
* platform/qt/css1/box_properties/border_right_inline-expected.txt:
* platform/qt/css1/box_properties/border_right_width-expected.txt:
* platform/qt/css1/box_properties/border_right_width_inline-expected.txt:
* platform/qt/css1/box_properties/border_style-expected.txt:
* platform/qt/css1/box_properties/border_style_inline-expected.txt:
* platform/qt/css1/box_properties/border_top-expected.txt:
* platform/qt/css1/box_properties/border_top_inline-expected.txt:
* platform/qt/css1/box_properties/border_top_width-expected.txt:
* platform/qt/css1/box_properties/border_top_width_inline-expected.txt:
* platform/qt/css1/box_properties/border_width-expected.txt:
* platform/qt/css1/box_properties/border_width_inline-expected.txt:
* platform/qt/css1/box_properties/clear-expected.txt:
* platform/qt/css1/box_properties/clear_float-expected.txt:
* platform/qt/css1/box_properties/float-expected.txt:
* platform/qt/css1/box_properties/float_elements_in_series-expected.txt:
* platform/qt/css1/box_properties/float_margin-expected.txt:
* platform/qt/css1/box_properties/height-expected.txt:
* platform/qt/css1/box_properties/margin-expected.txt:
* platform/qt/css1/box_properties/margin_bottom-expected.txt:
* platform/qt/css1/box_properties/margin_bottom_inline-expected.txt:
* platform/qt/css1/box_properties/margin_inline-expected.txt:
* platform/qt/css1/box_properties/margin_left-expected.txt:
* platform/qt/css1/box_properties/margin_left_inline-expected.txt:
* platform/qt/css1/box_properties/margin_right-expected.txt:
* platform/qt/css1/box_properties/margin_right_inline-expected.txt:
* platform/qt/css1/box_properties/margin_top-expected.txt:
* platform/qt/css1/box_properties/margin_top_inline-expected.txt:
* platform/qt/css1/box_properties/padding-expected.txt:
* platform/qt/css1/box_properties/padding_bottom-expected.txt:
* platform/qt/css1/box_properties/padding_bottom_inline-expected.txt:
* platform/qt/css1/box_properties/padding_inline-expected.txt:
* platform/qt/css1/box_properties/padding_left-expected.txt:
* platform/qt/css1/box_properties/padding_left_inline-expected.txt:
* platform/qt/css1/box_properties/padding_right-expected.txt:
* platform/qt/css1/box_properties/padding_right_inline-expected.txt:
* platform/qt/css1/box_properties/padding_top-expected.txt:
* platform/qt/css1/box_properties/padding_top_inline-expected.txt:
* platform/qt/css1/box_properties/width-expected.txt:
* platform/qt/css1/cascade/cascade_order-expected.txt:
* platform/qt/css1/cascade/important-expected.txt:
* platform/qt/css1/classification/display-expected.txt:
* platform/qt/css1/classification/list_style-expected.txt:
* platform/qt/css1/classification/list_style_image-expected.txt:
* platform/qt/css1/classification/list_style_position-expected.txt:
* platform/qt/css1/classification/list_style_type-expected.txt:
* platform/qt/css1/color_and_background/background-expected.txt:
* platform/qt/css1/color_and_background/background_attachment-expected.txt:
* platform/qt/css1/color_and_background/background_color-expected.txt:
* platform/qt/css1/color_and_background/background_image-expected.txt:
* platform/qt/css1/color_and_background/background_position-expected.txt:
* platform/qt/css1/color_and_background/background_repeat-expected.txt:
* platform/qt/css1/color_and_background/color-expected.txt:
* platform/qt/css1/conformance/forward_compatible_parsing-expected.txt:
* platform/qt/css1/font_properties/font-expected.txt:
* platform/qt/css1/font_properties/font_family-expected.txt:
* platform/qt/css1/font_properties/font_size-expected.txt:
* platform/qt/css1/font_properties/font_style-expected.txt:
* platform/qt/css1/font_properties/font_variant-expected.txt:
* platform/qt/css1/font_properties/font_weight-expected.txt:
* platform/qt/css1/formatting_model/canvas-expected.txt:
* platform/qt/css1/formatting_model/floating_elements-expected.txt:
* platform/qt/css1/formatting_model/height_of_lines-expected.txt:
* platform/qt/css1/formatting_model/horizontal_formatting-expected.txt:
* platform/qt/css1/formatting_model/inline_elements-expected.txt:
* platform/qt/css1/formatting_model/replaced_elements-expected.txt:
* platform/qt/css1/formatting_model/vertical_formatting-expected.txt:
* platform/qt/css1/pseudo/anchor-expected.txt:
* platform/qt/css1/pseudo/firstletter-expected.txt:
* platform/qt/css1/pseudo/firstline-expected.txt:
* platform/qt/css1/pseudo/multiple_pseudo_elements-expected.txt:
* platform/qt/css1/pseudo/pseudo_elements_in_selectors-expected.txt:
* platform/qt/css1/text_properties/letter_spacing-expected.txt:
* platform/qt/css1/text_properties/line_height-expected.txt:
* platform/qt/css1/text_properties/text_align-expected.txt:
* platform/qt/css1/text_properties/text_decoration-expected.txt:
* platform/qt/css1/text_properties/text_indent-expected.txt:
* platform/qt/css1/text_properties/text_transform-expected.txt:
* platform/qt/css1/text_properties/vertical_align-expected.txt:
* platform/qt/css1/text_properties/word_spacing-expected.txt:
* platform/qt/css1/units/color_units-expected.txt:
* platform/qt/css1/units/length_units-expected.txt:
* platform/qt/css1/units/percentage_units-expected.txt:
* platform/qt/css1/units/urls-expected.txt:
* platform/qt/css2.1/t1503-c522-font-family-00-b-expected.txt:
* platform/qt/css2.1/t1508-c527-font-03-b-expected.txt:
* platform/qt/css2.1/t1508-c527-font-06-b-expected.txt:
* platform/qt/editing/deleting/merge-whitespace-pre-expected.txt:
* platform/qt/editing/deleting/paragraph-in-preserveNewline-expected.txt:
* platform/qt/editing/inserting/paragraph-separator-03-expected.txt:
* platform/qt/editing/pasteboard/5027857-expected.txt:
* platform/qt/editing/pasteboard/innerText-inline-table-expected.txt:
* platform/qt/editing/pasteboard/paste-pre-001-expected.txt:
* platform/qt/editing/pasteboard/paste-pre-002-expected.txt:
* platform/qt/editing/pasteboard/paste-text-019-expected.txt:
* platform/qt/fast/backgrounds/background-inherit-color-bug-expected.txt:
* platform/qt/fast/css/text-input-with-webkit-border-radius-expected.txt:
* platform/qt/fast/dom/gc-10-expected.txt:
* platform/qt/fast/forms/isindex-placeholder-expected.txt:
* platform/qt/fast/frames/iframe-scrolling-attribute-expected.txt:
* platform/qt/fast/frames/viewsource-on-image-file-expected.txt:
* platform/qt/fast/lists/003-vertical-expected.txt:
* platform/qt/fast/table/border-collapsing/004-vertical-expected.txt:
* platform/qt/fast/text/backslash-to-yen-sign-euc-expected.txt:
* platform/qt/fast/text/international/hindi-whitespace-expected.txt:
* platform/qt/scrollbars/custom-scrollbar-with-incomplete-style-expected.txt:
* platform/qt/svg/custom/bug45331-expected.txt:
* platform/qt/svg/zoom/page/zoom-coords-viewattr-01-b-expected.txt:

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

9 years ago2010-11-30 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Tue, 30 Nov 2010 08:15:28 +0000 (08:15 +0000)]
2010-11-30  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: make ScriptCallStack and ScriptArguments reference counted
        https://bugs.webkit.org/show_bug.cgi?id=50156

        No new tests. This refactoring is covered with existing inspector tests.

        * bindings/js/JSConsoleCustom.cpp:
        (WebCore::JSConsole::profile):
        (WebCore::JSConsole::profileEnd):
        * bindings/js/ScriptCallStackFactory.cpp:
        (WebCore::createScriptCallStack):
        (WebCore::createScriptArguments):
        * bindings/js/ScriptCallStackFactory.h:
        * bindings/scripts/CodeGeneratorJS.pm:
        * bindings/scripts/CodeGeneratorV8.pm:
        * bindings/scripts/test/JS/JSTestObj.cpp:
        (WebCore::jsTestObjPrototypeFunctionCustomArgsAndException):
        * bindings/scripts/test/V8/V8TestObj.cpp:
        (WebCore::TestObjInternal::customArgsAndExceptionCallback):
        * bindings/v8/ScriptCallStackFactory.cpp:
        (WebCore::createScriptCallStack):
        (WebCore::createScriptArguments):
        * bindings/v8/ScriptCallStackFactory.h:
        * bindings/v8/V8ConsoleMessage.cpp:
        (WebCore::V8ConsoleMessage::handler):
        (WebCore::V8ConsoleMessage::dispatchNow):
        * bindings/v8/V8ConsoleMessage.h:
        * bindings/v8/custom/V8ConsoleCustom.cpp:
        (WebCore::V8Console::traceCallback):
        (WebCore::V8Console::assertCallback):
        (WebCore::V8Console::profileCallback):
        (WebCore::V8Console::profileEndCallback):
        * inspector/ConsoleMessage.cpp:
        (WebCore::ConsoleMessage::ConsoleMessage):
        * inspector/ConsoleMessage.h:
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::addMessageToConsole):
        (WebCore::InspectorController::startGroup):
        * inspector/InspectorController.h:
        * inspector/ScriptArguments.cpp:
        (WebCore::ScriptArguments::create):
        * inspector/ScriptArguments.h:
        * inspector/ScriptCallFrame.h:
        * inspector/ScriptCallStack.cpp:
        (WebCore::ScriptCallStack::create):
        (WebCore::ScriptCallStack::at):
        (WebCore::ScriptCallStack::size):
        * inspector/ScriptCallStack.h:
        * page/Console.cpp:
        (WebCore::Console::addMessage):
        (WebCore::Console::debug):
        (WebCore::Console::error):
        (WebCore::Console::info):
        (WebCore::Console::log):
        (WebCore::Console::dir):
        (WebCore::Console::dirxml):
        (WebCore::Console::trace):
        (WebCore::Console::assertCondition):
        (WebCore::Console::count):
        (WebCore::Console::markTimeline):
        (WebCore::Console::profile):
        (WebCore::Console::profileEnd):
        (WebCore::Console::timeEnd):
        (WebCore::Console::group):
        (WebCore::Console::groupCollapsed):
        (WebCore::Console::warn):
        * page/Console.h:

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

9 years agoWindows build fix (part 2).
sfalken@apple.com [Tue, 30 Nov 2010 07:56:55 +0000 (07:56 +0000)]
Windows build fix (part 2).
Define Visual Studio internal variables used in pre-build/pre-link/post-build commands in environment for separated cmd files.

* win/tools/vsprops/common.vsprops:

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

9 years agoWindows build fix (part 1). Use correct environment variable syntax in cmd files.
sfalken@apple.com [Tue, 30 Nov 2010 07:55:33 +0000 (07:55 +0000)]
Windows build fix (part 1). Use correct environment variable syntax in cmd files.

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCorePostBuild.cmd:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCorePreBuild.cmd:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCorePreLink.cmd:
* JavaScriptCore.vcproj/WTF/WTFPostBuild.cmd:
* JavaScriptCore.vcproj/jsc/jscPostBuild.cmd:
* JavaScriptCore.vcproj/jsc/jscPreBuild.cmd:
* JavaScriptCore.vcproj/jsc/jscPreLink.cmd:
* JavaScriptCore.vcproj/testapi/testapiPostBuild.cmd:
* JavaScriptCore.vcproj/testapi/testapiPreBuild.cmd:
* JavaScriptCore.vcproj/testapi/testapiPreLink.cmd:

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

9 years agoGTK DumpRenderTree build fix after r72887.
mitz@apple.com [Tue, 30 Nov 2010 07:39:40 +0000 (07:39 +0000)]
GTK DumpRenderTree build fix after r72887.

* DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
(LayoutTestController::findString):

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

9 years agoBuild fix for non-ICU platforms after r72887.
mitz@apple.com [Tue, 30 Nov 2010 07:32:37 +0000 (07:32 +0000)]
Build fix for non-ICU platforms after r72887.

* editing/TextIterator.cpp:
(WebCore::SearchBuffer::prependContext):

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

9 years agoWindows DumpRenderTree build fix after r72887.
mitz@apple.com [Tue, 30 Nov 2010 07:30:08 +0000 (07:30 +0000)]
Windows DumpRenderTree build fix after r72887.

* DumpRenderTree/win/LayoutTestControllerWin.cpp:
(LayoutTestController::findString): Added empty implementation.

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

9 years agoSkip editing/text-iterator/findString.html on platforms that do not have an implement...
mitz@apple.com [Tue, 30 Nov 2010 07:25:39 +0000 (07:25 +0000)]
Skip editing/text-iterator/findString.html on platforms that do not have an implementation of
layoutTestController.findString()

* platform/gtk/Skipped:
* platform/qt/Skipped:
* platform/win/Skipped:

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

9 years ago2010-11-29 MORITA Hajime <morrita@google.com>
morrita@google.com [Tue, 30 Nov 2010 07:08:13 +0000 (07:08 +0000)]
2010-11-29  MORITA Hajime  <morrita@google.com>

        Unreviewed, updated expectations (unskip some passing tests).

        * platform/chromium/test_expectations.txt:

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

9 years agoJavaScriptCore: WTF support for <rdar://problem/8650085> adding word-prefix search...
mitz@apple.com [Tue, 30 Nov 2010 06:39:39 +0000 (06:39 +0000)]
JavaScriptCore: WTF support for <rdar://problem/8650085> adding word-prefix search options to the text search API.
https://bugs.webkit.org/show_bug.cgi?id=50038

Reviewed by Darin Adler.

* wtf/unicode/UnicodeMacrosFromICU.h: Copied additional macros from icu/unicode/utf16.h.

WebCore: WebCore part of <rdar://problem/8650085> adding word-prefix search options to the text search API.
https://bugs.webkit.org/show_bug.cgi?id=50038

Reviewed by Darin Adler.

Test: editing/text-iterator/findString.html

* GNUmakefile.am: Added FindOptions.h.
* WebCore.exp.in: Export the new methods that take FindOptions.
* WebCore.gypi: Added FindOptions.h.
* WebCore.pro: Added FindOptions.h and TextBoundaries.{cpp,h}.
* WebCore.vcproj/WebCore.vcproj: Added FindOptions.h.
* WebCore.xcodeproj/project.pbxproj: Added FindOptions.h and TextBoundaries.cpp.
* editing/Editor.cpp:
(WebCore::Editor::firstVisibleRange): Changed to use FindOptions.
(WebCore::Editor::lastVisibleRange): Ditto.
(WebCore::Editor::nextVisibleRange): Ditto.
(WebCore::Editor::findString): Ditto.
(WebCore::Editor::countMatchesForText): Ditto.
* editing/Editor.h: Added a version of findString() that takes FindOptions. Changed
countMatchesForText() to take FindOptions. Made nextVisibleRange() private and changed it
and firstVisibleRange() and lastVisibleRange() to take FindOptions.
* editing/FindOptions.h: Added.
* editing/TextIterator.cpp:
Augmented SearchBuffer with an optional prefix, which is not searched, but provides context
for determining word boundaries.
(WebCore::isSeparator): Added. Identifies a class of characters used to determine where
“words” are embedded in a word.
(WebCore::SearchBuffer::SearchBuffer): Changed to take FindOptions. Added initialization of
m_options, m_prefixLength and m_needsMoreContext.
(WebCore::SearchBuffer::append): Adjust m_prefixLength as part of the prefix gets pushed out
of the buffer.
(WebCore::SearchBuffer::needsMoreContext): Added.
(WebCore::SearchBuffer::prependContext): Added.
(WebCore::SearchBuffer::isWordStartMatch): Added.
(WebCore::SearchBuffer::search): Changed to account for the context prefix. When searching
only for word prefix matches, maintains enough context before a tentative match when moving
it to the beginning of the buffer. Reject matches that are not at word starts if requested.
Adjust m_prefixLength when pushing characters out of the buffer.
(WebCore::findPlainText): Changed to work with FindOptions. Feed the search buffer with context
if and as long as it requires more of it.
* editing/TextIterator.h: Added a version of findPlainText() that takes FindOptions.
* editing/visible_units.cpp: Moved {end,start}Of{First,Last}WordBoundary to TextBoundaries.cpp.
* page/Page.cpp:
(WebCore::Page::findString): Changed to work with FindOptions.
(WebCore::Page::markAllMatchesForText): Ditto.
* page/Page.h: Added FindOptions-based findString() and markAllMatchesForText().
* platform/text/TextBoundaries.cpp:
(WebCore::endOfFirstWordBoundaryContext): Moved here from visible_units.cpp.
(WebCore::startOfLastWordBoundaryContext): Ditto.
* platform/text/TextBoundaries.h:

WebKit/mac: WebKit Mac part of <rdar://problem/8650085> adding word-prefix search options to the text search API.
https://bugs.webkit.org/show_bug.cgi?id=50038
Based on a patch from Darin Adler.

Reviewed by Darin Adler.

* WebView/WebDocumentInternal.h: Removed -markAllMatchesForText:caseSensitive:limit: and
replaced -countMatchesForText:caseSensitive:limit:markMatches: with a WebFindOptions-based
method. Declared a WebDocumentOptionsSearching protocol with a new -findString:options:
method. Made WebHTMLView conform to the new protocol.
* WebView/WebHTMLView.mm:
(coreOptions): Added. Converts WebFindOptions to WebCore FindOptions.
(-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]): Changed to use
-findString:options:.
(-[WebHTMLView countMatchesForText:options:limit:markMatches:]): Changed to use WebFindOptions.
(-[WebHTMLView findString:options:]): Added. Calls through to WebCore::Editor::findString().
* WebView/WebPDFView.mm:
(-[WebPDFView countMatchesForText:options:limit:markMatches:]): Changed to use WebFindOptions.
* WebView/WebView.mm:
(-[WebView markAllMatchesForText:caseSensitive:highlight:limit:]): Now calls through to
-countMatchesForText:options:highlight:limit:markMatches.
(-[WebView countMatchesForText:caseSensitive:highlight:limit:markMatches:]): Ditto.
(-[WebView searchFor:direction:caseSensitive:wrap:startInSelection:]): Now calls through to
-findString:options:.
(incrementFrame): Changed to use WebFindOptions.
(findString): Added this helper method that performs the search using the best supported
method for the document view.
(-[WebView findString:options:]): Changed -searchFor::::: into this.
(-[WebView canMarkAllTextMatches]):
(-[WebView countMatchesForText:options:highlight:limit:markMatches:]): Updated to use
WebFindOptions.
(-[WebView unmarkAllTextMatches]): Updated for change to incrementFrame.
(-[WebView rectsForTextMatches]): Ditto.
* WebView/WebViewPrivate.h: Added WebFindOptions, -findString:options:, and WebFindOptions version
of countMatchesForText:.

WebKit2: WebKit2 part of <rdar://problem/8650085> adding word-prefix search options to the text search API.
https://bugs.webkit.org/show_bug.cgi?id=50038
Based on a patch from Darin Adler.

Reviewed by Darin Adler.

* Shared/WebFindOptions.h: Renamed FindOptions.h to this to account for WebCore’s new private
FindOptions.h. Added and reordered FindOptions and rolled FindDirection into FindOptions.
* UIProcess/API/C/WKAPICast.h: Removed toFindDirection().
(WebKit::toFindOptions): Updated for new values.
* UIProcess/API/C/WKPage.cpp:
(WKPageFindString): Removed separate WKFindDirection.
(WKPageCountStringMatches): Replaces caseInsensitive boolean with WKFindOptions.
* UIProcess/API/C/WKPage.h: Removed WKFindDirection and updated WKFindOptions.
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::findString): Removed separate FindDirection.
(WebKit::WebPageProxy::countStringMatches): Replaced caseInsensitive boolean with FindOptions.
* UIProcess/WebPageProxy.h:
* WebKit2.xcodeproj/project.pbxproj: Updated for the header rename.
* WebProcess/WebPage/FindController.cpp:
(WebKit::core): Added. Converts WebKit2 FindOptions to WebCore FindOptions.
(WebKit::FindController::countStringMatches): Changed to use FindOptions.
(WebKit::FindController::findString): Ditto.
* WebProcess/WebPage/FindController.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::findString): Ditto.
(WebKit::WebPage::countStringMatches): Ditto.
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebPage/WebPage.messages.in: Ditto.

WebKitTools: DumpRenderTree changes for testing the text search API.
https://bugs.webkit.org/show_bug.cgi?id=50038

Reviewed by Darin Adler.

* DumpRenderTree/LayoutTestController.cpp:
(findStringCallback):
(LayoutTestController::staticFunctions):
* DumpRenderTree/LayoutTestController.h:
* DumpRenderTree/mac/LayoutTestControllerMac.mm:
(LayoutTestController::findString):
* MiniBrowser/mac/BrowserWindowController.m:
(-[BrowserWindowController find:]):

LayoutTests: Added text search tests, in particular testing word-prefix search.
https://bugs.webkit.org/show_bug.cgi?id=50038

Reviewed by Darin Adler.

* editing/text-iterator/findString-expected.txt: Added.
* editing/text-iterator/findString.html: Added.

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

9 years ago2010-11-29 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Tue, 30 Nov 2010 06:28:22 +0000 (06:28 +0000)]
2010-11-29  Ojan Vafai  <ojan@chromium.org>

        [chromium] Fix expectations for fast/block/basic/truncation-rtl.html
        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-29 Steve Falkenburg <sfalken@apple.com>
sfalken@apple.com [Tue, 30 Nov 2010 06:14:20 +0000 (06:14 +0000)]
2010-11-29  Steve Falkenburg  <sfalken@apple.com>

        Reviewed by Darin Adler.

        JavaScriptCore projects on Windows should use cmd files for build events
        https://bugs.webkit.org/show_bug.cgi?id=50193

        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCommon.vsprops:
        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCorePostBuild.cmd: Added.
        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCorePreBuild.cmd: Added.
        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCorePreLink.cmd: Added.
        * JavaScriptCore.vcproj/WTF/WTFPostBuild.cmd: Added property svn:eol-style.
        * JavaScriptCore.vcproj/WTF/WTFPreBuild.cmd: Added property svn:eol-style.
        * JavaScriptCore.vcproj/jsc/jscCommon.vsprops:
        * JavaScriptCore.vcproj/jsc/jscPostBuild.cmd: Added.
        * JavaScriptCore.vcproj/jsc/jscPreBuild.cmd: Added.
        * JavaScriptCore.vcproj/jsc/jscPreLink.cmd: Added.
        * JavaScriptCore.vcproj/testapi/testapiCommon.vsprops:
        * JavaScriptCore.vcproj/testapi/testapiPostBuild.cmd: Added.
        * JavaScriptCore.vcproj/testapi/testapiPreBuild.cmd: Added.
        * JavaScriptCore.vcproj/testapi/testapiPreLink.cmd: Added.

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

9 years ago2010-11-29 Dai Mikurube <dmikurube@google.com>
commit-queue@webkit.org [Tue, 30 Nov 2010 06:11:08 +0000 (06:11 +0000)]
2010-11-29  Dai Mikurube  <dmikurube@google.com>

        Reviewed by Kent Tamura.

        when empty, clicking "down" on outer-spin-button returns "max value"
        https://bugs.webkit.org/show_bug.cgi?id=45491

        It is required to calculate UTC/DST offsets to retrieve the current local milliseconds for
        date/time type inputs. WTF::currentTimeMS() returns a UTC time, and WTF::getLocalTime()
        returns a struct tm, not milliseconds.

        Calculating milliseconds from a struct tm is not simple since timegm() cannot be used in all
        environments. This calculation is already done in calculateUTCOffset(), and complicated.
        Duplicating this complicated calculation is unreasonable because of maintainability.
        To achieve this without duplication, we must call calculate{UTC|DST}Offset in some way.

        * JavaScriptCore.exp:
        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
        * wtf/DateMath.cpp: Changed calculateUTCOffset() and calculateDSTOffset() to external functions.
        (WTF::calculateUTCOffset):
        (WTF::calculateDSTOffset):
        * wtf/DateMath.h:
2010-11-29  Dai Mikurube  <dmikurube@google.com>

        Reviewed by Kent Tamura.

        when empty, clicking "down" on outer-spin-button returns "max value"
        https://bugs.webkit.org/show_bug.cgi?id=45491

        * fast/forms/input-stepup-stepdown-from-renderer-expected.txt: Added.
        * fast/forms/input-stepup-stepdown-from-renderer.html: Added.
        * fast/forms/script-tests/input-stepup-stepdown-from-renderer.js: Added.
        ():
        (setInputAttributes):
        (stepUp):
        (stepDown):
        (stepUpExplicitBounds):
        (stepDownExplicitBounds):
2010-11-29  Dai Mikurube  <dmikurube@google.com>

        Reviewed by Kent Tamura.

        when empty, clicking "down" on outer-spin-button returns "max value"
        https://bugs.webkit.org/show_bug.cgi?id=45491

        Modified stepping-up/down from renderer
        - to clamp steps,
        - to handle empty values (described below), and
        - to apply them for range type inputs.

        Stepping-up/down for empty values are handled "the empty as 0."
        For example :
        * If 0 is in-range, and matches to step value
          "down" -> -step
          "up" -> +step
          If -step or +step is out of range, new value should be 0.

        * If 0 is smaller than the minimum value
          "down" -> the minimum value
          "up" -> the minimum value

        * If 0 is larger than the maximum value
          "down" -> the maximum value
          "up" -> the maximum value

        * If 0 is in-range, but not matched to step value
          "down" -> smaler matched value nearest to 0.
            e.g. <input type=number min=-100 step=3> -> -1
          "up" -> larger matched value nearest to 0.
            e.g. <input type=number min=-100 step=3> -> 2

        As for date/datetime-local/month/time/week types, the empty is assumed as "current local date/time".
        As for datetime type, the empty is assumed as "current date/time in UTC".

        As for range input types, changed stepping from renderer to use stepUpFromRenderer().
        It was calculated with stepUp() from RangeInputType::handleKeydownEvent().

        Test: fast/forms/input-stepup-stepdown-from-renderer.html

        * html/BaseDateAndTimeInputType.cpp:
        (WebCore::BaseDateAndTimeInputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns the current local time
        * html/BaseDateAndTimeInputType.h:
        * html/DateTimeInputType.cpp:
        (WebCore::DateTimeInputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns the current UTC time
        * html/DateTimeInputType.h:
        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::stepUpFromRenderer): Modified it to clamp steps, support empty values and support range type inputs
        * html/HTMLInputElement.h:
        (WebCore::HTMLInputElement::isRangeControl):
        * html/InputType.cpp:
        (WebCore::InputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns 0
        * html/InputType.h:
        * html/MonthInputType.cpp:
        (WebCore::MonthInputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns the current local month
        * html/MonthInputType.h:
        * html/RangeInputType.cpp:
        (WebCore::RangeInputType::handleKeydownEvent): Added comments and modified it to use stepUpFromRenderer()
        * html/TimeInputType.cpp:
        (WebCore::TimeInputType::defaultValueForStepUp): Added defaultValueForStepUp() which returns the current local time
        * html/TimeInputType.h:
        * manual-tests/input-type-datetime-default-value.html: Added manual tests for default values of date/time inputs since they are "the current local/UTC time", which cannot be tested automatically.

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

9 years ago2010-11-29 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Tue, 30 Nov 2010 05:40:39 +0000 (05:40 +0000)]
2010-11-29  Ojan Vafai  <ojan@chromium.org>

        Update listing for spatial nav tests after they were moved
        in http://trac.webkit.org/changeset/72880/.

        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-24 Kinuko Yasuda <kinuko@chromium.org>
kinuko@chromium.org [Tue, 30 Nov 2010 05:21:27 +0000 (05:21 +0000)]
2010-11-24  Kinuko Yasuda  <kinuko@chromium.org>

        Unreviewed; updating test expectations.

        * fast/filesystem/async-operations-expected.txt:
        * fast/filesystem/read-directory-expected.txt:
        * fast/filesystem/simple-persistent-expected.txt:
        * fast/filesystem/simple-temporary-expected.txt:
        * platform/chromium-linux/fast/filesystem/async-operations-expected.txt: Removed.

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

9 years ago2010-11-29 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Tue, 30 Nov 2010 05:14:20 +0000 (05:14 +0000)]
2010-11-29  Ojan Vafai  <ojan@chromium.org>

        [chromium] Hopefully final modification to text_expectations to green chromium bots.
        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-28 Antonio Gomes <agomes@rim.com>
tonikitoo@webkit.org [Tue, 30 Nov 2010 05:09:02 +0000 (05:09 +0000)]
2010-11-28  Antonio Gomes  <agomes@rim.com>

        Reviewed by Kenneth Rohde Christiansen.

        Spatial navigation: move tests to its own feature directory
        https://bugs.webkit.org/show_bug.cgi?id=50133

        Patch basically moves all spatial navigation tests out of the fast/events folder,
        putting them all under /fast/spatial-navigation.

        Some needed changes in some tests and Skipped files were also made, but there is not
        any content changes in the tests.

        * fast/events/spatial-navigation: Moved to fast/spatial-navigation
        * platform/mac-wk2/Skipped:
        * platform/qt-wk2/Skipped:
        * platform/win/Skipped:

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

9 years ago2010-11-29 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Tue, 30 Nov 2010 05:06:18 +0000 (05:06 +0000)]
2010-11-29  Ojan Vafai  <ojan@chromium.org>

        [chromium] Rebaseline results after http://trac.webkit.org/changeset/72802/.
        The only differences are in the scrollbars.
        The original patch included the chromium-linux results in addition to the
        platform/mac results.

        * platform/chromium-mac/svg/custom/svg-parse-overflow-1-expected.checksum: Added.
        * platform/chromium-mac/svg/custom/svg-parse-overflow-1-expected.png: Added.
        * platform/chromium-mac/svg/custom/svg-parse-overflow-2-expected.checksum: Added.
        * platform/chromium-mac/svg/custom/svg-parse-overflow-2-expected.png: Added.
        * platform/chromium-mac/svg/custom/svg-parse-overflow-3-expected.checksum: Added.
        * platform/chromium-mac/svg/custom/svg-parse-overflow-3-expected.png: Added.
        * platform/chromium-mac/svg/custom/svg-parse-overflow-4-expected.checksum: Added.
        * platform/chromium-mac/svg/custom/svg-parse-overflow-4-expected.png: Added.
        * platform/chromium-mac/svg/custom/svg-parse-overflow-5-expected.checksum: Added.
        * platform/chromium-mac/svg/custom/svg-parse-overflow-5-expected.png: Added.
        * platform/chromium-win/svg/custom/svg-parse-overflow-1-expected.checksum: Added.
        * platform/chromium-win/svg/custom/svg-parse-overflow-1-expected.png: Added.
        * platform/chromium-win/svg/custom/svg-parse-overflow-2-expected.checksum: Added.
        * platform/chromium-win/svg/custom/svg-parse-overflow-2-expected.png: Added.
        * platform/chromium-win/svg/custom/svg-parse-overflow-3-expected.checksum: Added.
        * platform/chromium-win/svg/custom/svg-parse-overflow-3-expected.png: Added.
        * platform/chromium-win/svg/custom/svg-parse-overflow-4-expected.checksum: Added.
        * platform/chromium-win/svg/custom/svg-parse-overflow-4-expected.png: Added.
        * platform/chromium-win/svg/custom/svg-parse-overflow-5-expected.checksum: Added.
        * platform/chromium-win/svg/custom/svg-parse-overflow-5-expected.png: Added.

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

9 years ago2010-11-29 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Tue, 30 Nov 2010 05:01:26 +0000 (05:01 +0000)]
2010-11-29  Ryosuke Niwa  <rniwa@webkit.org>

        More unreviewed rebaseline for r72861.

        * platform/chromium-linux/editing/selection/home-end-expected.txt: Removed.

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

9 years ago2010-11-29 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Tue, 30 Nov 2010 04:53:51 +0000 (04:53 +0000)]
2010-11-29  Ojan Vafai  <ojan@chromium.org>

        [chromium] Some more expectations updates to green chromium bots.
        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-29 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 30 Nov 2010 04:48:40 +0000 (04:48 +0000)]
2010-11-29  Adam Barth  <abarth@webkit.org>

        Reviewed by Darin Adler.

        Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
        https://bugs.webkit.org/show_bug.cgi?id=50182

        A display-isolated URL can only be displayed (e.g., put in an iframe,
        hyperlinked to) by documents from that scheme.  In a sense, this is a
        generalization of some of the protections we give file URLs, but
        instead of lumping them all together into one "local" bucket, this
        patch creates a separate bucket for each scheme.

        For a while, I tried using a separate bucket for each origin.  That
        would have played nicely with what Blob URLs are trying to do, but some
        "chrome" URL pages rely on being able to display other chrome URL
        pages, even in different origins.  For example, the New Tab Page shows
        thumbnails from the "thumbnail" host.

        This patch also removes a bunch of unused code.  I've also propagated
        the "deprecated" status of deprecatedCanDisplay to
        deprecatedShouldTreatURLAsLocal because that method has no other
        callers and is really asking for uppercase/lowercase bugs.  I dream of
        someday removing these functions.

        * page/SecurityOrigin.cpp:
        (WebCore::SecurityOrigin::canDisplay):
        (WebCore::SecurityOrigin::deprecatedCanDisplay):
        * platform/SchemeRegistry.cpp:
        (WebCore::displayIsolatedURLSchemes):
        (WebCore::SchemeRegistry::registerURLSchemeAsLocal):
        (WebCore::SchemeRegistry::deprecatedShouldTreatURLAsLocal):
        (WebCore::SchemeRegistry::shouldTreatURLSchemeAsLocal):
        (WebCore::SchemeRegistry::registerURLSchemeAsDisplayIsolated):
        (WebCore::SchemeRegistry::shouldTreatURLSchemeAsDisplayIsolated):
        * platform/SchemeRegistry.h:
2010-11-29  Adam Barth  <abarth@webkit.org>

        Reviewed by Darin Adler.

        Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
        https://bugs.webkit.org/show_bug.cgi?id=50182

        This patch adds a Chromium API for registering schemes as
        display-isolated.  In a subsequent patch, I'll change the "chrome"
        scheme in Chrome to be display isolated instead of local.  That will
        prevent file URLs from linking to chrome URLs.

        * public/WebSecurityPolicy.h:
        * src/WebSecurityPolicy.cpp:
        (WebKit::WebSecurityPolicy::registerURLSchemeAsDisplayIsolated):

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

9 years ago2010-11-29 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Tue, 30 Nov 2010 04:37:43 +0000 (04:37 +0000)]
2010-11-29  Xiaomei Ji  <xji@chromium.org>

        Unreviewed rebaseline for Chromium after r72852.

        * platform/chromium-linux/fast/block/basic/truncation-rtl-expected.checksum:
        * platform/chromium-linux/fast/block/basic/truncation-rtl-expected.png:
        * platform/chromium-win/fast/block/basic/truncation-rtl-expected.checksum:
        * platform/chromium-win/fast/block/basic/truncation-rtl-expected.png:
        * platform/chromium-win/fast/block/basic/truncation-rtl-expected.txt:

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

9 years ago2010-11-29 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Tue, 30 Nov 2010 04:31:35 +0000 (04:31 +0000)]
2010-11-29  Ryosuke Niwa  <rniwa@webkit.org>

        Unreviewed rebaseline for r72861. Also disabled editing/selection/click-left-of-rtl-wrapping-text.html and
        editing/selection/modify-up-on-rtl-wrapping-text.html on Gtk, Qt, Windows, Chromium Windows and Chromium Linux.

        * editing/selection/extend-selection-home-end-expected.txt:
        * platform/chromium-win/editing/selection/extend-selection-home-end-expected.txt:
        * platform/chromium-win/editing/selection/home-end-expected.txt:
        * platform/chromium/test_expectations.txt:
        * platform/gtk/Skipped:
        * platform/qt/Skipped:
        * platform/win/Skipped:
        * platform/win/editing/selection/extend-selection-home-end-expected.txt:

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

9 years ago2010-11-29 Chang Shu <chang.shu@nokia.com>
chang.shu@nokia.com [Tue, 30 Nov 2010 04:29:27 +0000 (04:29 +0000)]
2010-11-29  Chang Shu  <chang.shu@nokia.com>

        Reviewed by Laszlo Gombos.

        Fix the typo in the test case to make it work when ORIENTATION_EVENTS is enabled.
        https://bugs.webkit.org/show_bug.cgi?id=50171

        * fast/dom/DeviceOrientation/create-event-onorientationchange-expected.txt: Removed.
        * fast/dom/DeviceOrientation/create-event-onorientationchange.html: Removed.
        * fast/dom/DeviceOrientation/create-event-orientationchange-expected.txt: Copied from LayoutTests/fast/dom/DeviceOrientation/create-event-onorientationchange-expected.txt.
        * fast/dom/DeviceOrientation/create-event-orientationchange.html: Copied from LayoutTests/fast/dom/DeviceOrientation/create-event-onorientationchange.html.
        * fast/dom/DeviceOrientation/script-tests/create-event-onorientationchange.js: Removed.
        * fast/dom/DeviceOrientation/script-tests/create-event-orientationchange.js: Copied from LayoutTests/fast/dom/DeviceOrientation/script-tests/create-event-onorientationchange.js.

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

9 years ago2010-11-29 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Tue, 30 Nov 2010 04:26:18 +0000 (04:26 +0000)]
2010-11-29  Xiaomei Ji  <xji@chromium.org>

        Unreviewed fix typo.

        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-29 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Tue, 30 Nov 2010 04:19:03 +0000 (04:19 +0000)]
2010-11-29  Ojan Vafai  <ojan@chromium.org>

        [Chromium] Reflection tests are now fixed. Remove from test_expectations.

        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-29 Sergio Villar Senin <svillar@igalia.com>
commit-queue@webkit.org [Tue, 30 Nov 2010 04:12:23 +0000 (04:12 +0000)]
2010-11-29  Sergio Villar Senin  <svillar@igalia.com>

        Reviewed by Martin Robinson.

        [GTK] Leaks in SoupCache code
        https://bugs.webkit.org/show_bug.cgi?id=50161

        Fixes some memory leaks in SoupCache code.

        * platform/network/soup/cache/soup-http-input-stream.c:
        (send_async_finished): Added a missing g_object_unref.
        * platform/network/soup/cache/webkit/soup-cache.c:
        (get_cacheability): Added soup_header_free_param_list.
        (webkit_soup_cache_entry_set_freshness): Ditto.
        (webkit_soup_cache_send_response): Ditto.
        (webkit_soup_cache_has_response): Ditto.

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

9 years ago2010-11-29 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Tue, 30 Nov 2010 04:11:08 +0000 (04:11 +0000)]
2010-11-29  Xiaomei Ji  <xji@chromium.org>

        Unreviewed.

        Temporarily skip fast/dom/horizontal-scrollbar-in-rtl.html and fast/dom/horizontal-scrollbar-when-dir-change.html due to bug 50203 (after r72852).

        * platform/chromium/test_expectations.txt:
        * platform/win/Skipped:

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

9 years ago2010-11-29 Johnny Ding <jnd@chromium.org>
jnd@chromium.org [Tue, 30 Nov 2010 03:34:25 +0000 (03:34 +0000)]
2010-11-29  Johnny Ding  <jnd@chromium.org>

        Unreviewed: Add myself to the list of Committers.

        * Scripts/webkitpy/common/config/committers.py:

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

9 years ago2010-11-29 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Tue, 30 Nov 2010 03:28:03 +0000 (03:28 +0000)]
2010-11-29  Xiaomei Ji  <xji@chromium.org>

        Unreviewed rebaseline for Win7 after r72852.

        * platform/win/fast/block: Added.
        * platform/win/fast/block/basic: Added.
        * platform/win/fast/block/basic/truncation-rtl-expected.txt: Added.

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

9 years agoAdd send(ArrayBuffer) to XMLHttpRequest per XMLHttpRequest Level 2 spec
jianli@chromium.org [Tue, 30 Nov 2010 03:20:30 +0000 (03:20 +0000)]
Add send(ArrayBuffer) to XMLHttpRequest per XMLHttpRequest Level 2 spec
https://bugs.webkit.org/show_bug.cgi?id=50199

Reviewed by David Levin.

WebCore:

Test: http/tests/xmlhttprequest/send-array-buffer.html

* bindings/js/JSXMLHttpRequestCustom.cpp:
(WebCore::JSXMLHttpRequest::send):
* bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
(WebCore::V8XMLHttpRequest::sendCallback):
* xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::send):
* xml/XMLHttpRequest.h:

LayoutTests:

* http/tests/xmlhttprequest/resources/post-echo-as-ascii.cgi: Added.
* http/tests/xmlhttprequest/send-array-buffer-expected.txt: Added.
* http/tests/xmlhttprequest/send-array-buffer.html: Added.
* platform/gtk/Skipped:
* platform/qt/Skipped:

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

9 years ago2010-11-29 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Tue, 30 Nov 2010 03:16:54 +0000 (03:16 +0000)]
2010-11-29  Xiaomei Ji  <xji@chromium.org>

        Unreviewed.

        Skip fast/dom/tab-in-right-alignment.html for GTK and Win due to
        unimplemented textInputController (after r72847).

        * platform/gtk/Skipped:
        * platform/win/Skipped:

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

9 years ago2010-11-29 James Robinson <jamesr@chromium.org>
jamesr@google.com [Tue, 30 Nov 2010 03:11:40 +0000 (03:11 +0000)]
2010-11-29  James Robinson  <jamesr@chromium.org>

        [chromium] REGRESSION(72470): Crash in skia on some images
        https://bugs.webkit.org/show_bug.cgi?id=50201

        Reverts r72470

        * platform/chromium-linux/svg/custom/image-rescale-expected.checksum: Removed.
        * platform/chromium-linux/svg/custom/image-rescale-expected.png: Removed.
        * platform/chromium-linux/svg/custom/image-rescale-expected.txt: Removed.
        * platform/chromium-linux/svg/custom/image-rescale-scroll-expected.checksum: Removed.
        * platform/chromium-linux/svg/custom/image-rescale-scroll-expected.png: Removed.
        * platform/chromium-linux/svg/custom/image-rescale-scroll-expected.txt: Removed.
        * platform/chromium/test_expectations.txt:
        * platform/mac/svg/custom/image-rescale-expected.checksum: Removed.
        * platform/mac/svg/custom/image-rescale-expected.png: Removed.
        * platform/mac/svg/custom/image-rescale-expected.txt: Removed.
        * platform/mac/svg/custom/image-rescale-scroll-expected.checksum: Removed.
        * platform/mac/svg/custom/image-rescale-scroll-expected.png: Removed.
        * platform/mac/svg/custom/image-rescale-scroll-expected.txt: Removed.
        * platform/mac/test_expectations.txt:
        * svg/custom/image-rescale-scroll.html: Removed.
        * svg/custom/image-rescale.svg: Removed.
        * svg/custom/resources/image-rescale.jpg: Removed.
2010-11-29  James Robinson  <jamesr@chromium.org>

        [chromium] REGRESSION(72470): Crash in skia on some images
        https://bugs.webkit.org/show_bug.cgi?id=50201

        Reverts r72470

        * platform/graphics/skia/ImageSkia.cpp:
        (WebCore::computeResamplingMode):
        (WebCore::drawResampledBitmap):

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

9 years agoCrash when iframe transfers from one page to another and has child frames.
dimich@chromium.org [Tue, 30 Nov 2010 03:06:21 +0000 (03:06 +0000)]
Crash when iframe transfers from one page to another and has child frames.
https://bugs.webkit.org/show_bug.cgi?id=50200

Reviewed by David Levin.

* page/Frame.cpp:
(WebCore::Frame::transferChildFrameToNewDocument):
avoid overriding 'didTransfer' which has the result of previous check.

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

9 years ago2010-11-29 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Tue, 30 Nov 2010 03:00:20 +0000 (03:00 +0000)]
2010-11-29  Ryosuke Niwa  <rniwa@webkit.org>

        Unreviewed reabseline for r72852.

        * platform/gtk/fast/block/basic/truncation-rtl-expected.txt:

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

9 years ago2010-11-19 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Tue, 30 Nov 2010 02:54:54 +0000 (02:54 +0000)]
2010-11-19  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by David Hyatt.

        up arrow doesn't work with RTL text with word wrapping
        https://bugs.webkit.org/show_bug.cgi?id=41987

        The bug was caused by positionForPoint's not returning the correct affinity when the x coordiate
        is to the left of the first line, and startOfLine's incorrectly moving position to the previous candidate.

        Fixed the bug by returning upstream VisiblePosition in positionForPoint if the first inline text box's offset
        is greater than 0.  Also removed the code added by http://trac.webkit.org/changeset/23608 since this changeset
        does not add any test, and the problem described in the changelog reproduces regardless of the code's presence.

        Tests: editing/selection/click-left-of-rtl-wrapping-text.html
               editing/selection/modify-up-on-rtl-wrapping-text.html

        * editing/visible_units.cpp:
        (WebCore::startOfLine):
        * rendering/RenderText.cpp:
        (WebCore::RenderText::positionForPoint):
2010-11-29  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by David Hyatt.

        up arrow doesn't work with RTL text with word wrapping
        https://bugs.webkit.org/show_bug.cgi?id=41987

        Added tests to ensure WebKit places caret at the right position in soft-wrapping RTL text when clicking
        to the left of RTL text or when moving upwards at the end of line.

        * editing/selection/click-left-of-rtl-wrapping-text-expected.txt: Added.
        * editing/selection/click-left-of-rtl-wrapping-text.html: Added.
        * editing/selection/home-end-expected.txt: RTL's expected result now matches LTR's.
        * editing/selection/modify-up-on-rtl-wrapping-text-expected.txt: Added.
        * editing/selection/modify-up-on-rtl-wrapping-text.html: Added.
        * platform/chromium-win/editing/selection/extend-selection-home-end-expected.txt: RTL's expected result now matches LTR's.
        * platform/gtk/editing/selection/extend-selection-home-end-expected.txt: Ditto.
        * platform/mac/editing/selection/extend-selection-home-end-expected.txt: Ditto.
        * platform/win/editing/selection/extend-selection-home-end-expected.txt: Ditto.

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

9 years ago2010-11-29 Ilya Sherman <isherman@chromium.org>
commit-queue@webkit.org [Tue, 30 Nov 2010 02:34:04 +0000 (02:34 +0000)]
2010-11-29  Ilya Sherman  <isherman@chromium.org>

        Reviewed by Kent Tamura.

        Ensure that option elements are rendered with normal font weight on Windows/Linux
        https://bugs.webkit.org/show_bug.cgi?id=50055

        * WebCore.gyp/WebCore.gyp: include themeChromiumSkia.css
        * css/themeChromiumSkia.css: Added.
        (option): font-weight: normal !important;
        * rendering/RenderThemeChromiumSkia.cpp:
        (WebCore::RenderThemeChromiumSkia::extraDefaultStyleSheet): include themeChromiumSkia.css

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

9 years ago<rdar://problem/8694997> DumpRenderTree fails to build.
mrowe@apple.com [Tue, 30 Nov 2010 02:07:04 +0000 (02:07 +0000)]
<rdar://problem/8694997> DumpRenderTree fails to build.

Reviewed by Adele Peterson.

* DumpRenderTree/mac/PerlSupport/Makefile: Skip generating wrappers.

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

9 years ago<rdar://problem/8694997> DumpRenderTree fails to build.
mrowe@apple.com [Tue, 30 Nov 2010 02:06:50 +0000 (02:06 +0000)]
<rdar://problem/8694997> DumpRenderTree fails to build.

Reviewed by Adele Peterson.

* DumpRenderTree/mac/PerlSupport/DumpRenderTreeSupportPregenerated.pm: Renamed from WebKitTools/DumpRenderTree/mac/PerlSupport/DumpRenderTreeSupportTiger.pm.
* DumpRenderTree/mac/PerlSupport/DumpRenderTreeSupport_wrapPregenerated.c: Renamed from WebKitTools/DumpRenderTree/mac/PerlSupport/DumpRenderTreeSupport_wrapTiger.c.
* DumpRenderTree/mac/PerlSupport/Makefile:

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

9 years agoUnreviewed build fix.
bfulgham@webkit.org [Tue, 30 Nov 2010 01:55:48 +0000 (01:55 +0000)]
Unreviewed build fix.

* win/WebKit2.vcproj: Add missing vsprops association for
Debug_Cairo_CFLite target.

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

9 years agoUnreviewed build correction.
bfulgham@webkit.org [Tue, 30 Nov 2010 01:51:44 +0000 (01:51 +0000)]
Unreviewed build correction.

* WebKit.vcproj/WebKit.vcproj: Update WebKit project to
  use WinCairo.vsprops definition for appropriate build targets.

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

9 years agoUnreviewed build fix.
bfulgham@webkit.org [Tue, 30 Nov 2010 01:41:07 +0000 (01:41 +0000)]
Unreviewed build fix.

* WebCore.vcproj/WebCoreCairo.vsprops: Provide missing WIN_CAIRO
  definition so that proper targets are build.
* platform/graphics/win/cairo/FontPlatformData.h:
(WebCore::FontPlatformData::orientation): Add missing implementation.

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

9 years ago2010-11-29 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Tue, 30 Nov 2010 01:40:22 +0000 (01:40 +0000)]
2010-11-29  Xiaomei Ji  <xji@chromium.org>

        Reviewed by NOBODY.

        Rebaseline truncation-rtl-expected.txt after http://trac.webkit.org/changeset/72852

        * platform/qt/fast/block/basic/truncation-rtl-expected.txt:

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

9 years ago2010-11-29 Chris Rogers <crogers@google.com>
crogers@google.com [Tue, 30 Nov 2010 01:18:34 +0000 (01:18 +0000)]
2010-11-29  Chris Rogers  <crogers@google.com>

        Reviewed by Kenneth Russell.

        Switch web audio code to use FloatPoint3D instead of Vector3
        https://bugs.webkit.org/show_bug.cgi?id=50186

        * wtf/Vector3.h: Removed.
2010-11-29  Chris Rogers  <crogers@google.com>

        Reviewed by Kenneth Russell.

        Switch web audio code to use FloatPoint3D instead of Vector3
        https://bugs.webkit.org/show_bug.cgi?id=50186

        No new tests since audio API is not yet implemented.

        * platform/audio/Cone.cpp:
        (WebCore::ConeEffect::gain):
        * platform/audio/Cone.h:
        * platform/graphics/FloatPoint3D.h:
        (WebCore::FloatPoint3D::isZero):
        (WebCore::operator*):
        (WebCore::FloatPoint3D::distanceTo):
        * webaudio/AudioListener.h:
        (WebCore::AudioListener::setPosition):
        (WebCore::AudioListener::position):
        (WebCore::AudioListener::setOrientation):
        (WebCore::AudioListener::orientation):
        (WebCore::AudioListener::setUpVector):
        (WebCore::AudioListener::upVector):
        (WebCore::AudioListener::setVelocity):
        (WebCore::AudioListener::velocity):
        * webaudio/AudioPannerNode.cpp:
        (WebCore::AudioPannerNode::AudioPannerNode):
        (WebCore::AudioPannerNode::getAzimuthElevation):
        (WebCore::AudioPannerNode::dopplerRate):
        (WebCore::AudioPannerNode::distanceConeGain):
        * webaudio/AudioPannerNode.h:
        (WebCore::AudioPannerNode::position):
        (WebCore::AudioPannerNode::setPosition):
        (WebCore::AudioPannerNode::orientation):
        (WebCore::AudioPannerNode::setOrientation):
        (WebCore::AudioPannerNode::velocity):
        (WebCore::AudioPannerNode::setVelocity):

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

9 years ago2010-11-29 Jeremy Moskovich <jeremy@chromium.org>
xji@chromium.org [Tue, 30 Nov 2010 01:11:08 +0000 (01:11 +0000)]
2010-11-29  Jeremy Moskovich  <jeremy@chromium.org>

        Reviewed by David Hyatt.

        Right-to-left pages should be scrollable to reveal left overflow.
        https://bugs.webkit.org/show_bug.cgi?id=23556

        Set and get the original x-axis scroll position and reset scroll position on HOME/END key press.
        Modify WebFrameView to support setting the initial horizontal scroller's thumb position to the right for
        pages with a left overflow.

        * WebView/WebDynamicScrollBarsView.h:
        * WebView/WebDynamicScrollBarsView.mm:
        (-[WebDynamicScrollBarsView inProgramaticScroll]):
        (-[WebDynamicScrollBarsView refreshInitialScrollbarPosition]):
        (-[WebDynamicScrollBarsView updateScrollers]):
        (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
        (-[WebDynamicScrollBarsView setScrollOriginX:]):
        (-[WebDynamicScrollBarsView scrollOriginX]):
        * WebView/WebFrameView.mm:
        (-[WebFrameView _scrollToBeginningOfDocument]):
        (-[WebFrameView _scrollToEndOfDocument]):
        * WebView/WebHTMLView.mm:
        (-[WebHTMLView _frameOrBoundsChanged]):
2010-11-29  Xiaomei Ji  <xji@chromium.org>

        Reviewed by David Hyatt.

        Right-to-left pages should be scrollable to reveal left overflow.
        https://bugs.webkit.org/show_bug.cgi?id=23556

        For RTL page, save left layout overflow and include it into the document
        size during layout. Use the left layout overflow when scroll and paint
        the page. Behavior on LTR page should be untouched since left layout
        overflow is set as 0 for LTR page.

        Tests: fast/dom/horizontal-scrollbar-in-rtl-doesnt-fire-onscroll.html
               fast/dom/horizontal-scrollbar-in-rtl.html
               fast/dom/horizontal-scrollbar-when-dir-change.html
               fast/dom/left-overflow-in-ltr.html
               fast/dom/right-overflow-in-rtl.html

        * page/FrameView.cpp:
        (WebCore::FrameView::adjustViewSize): Save negative of left layout overflow as scroll X origin. And includes left layout overflow into document size.
        * page/mac/WebCoreFrameView.h: Add methods for setting and getting scroll X origin.
        * platform/ScrollView.cpp:
        (WebCore::ScrollView::ScrollView):
        (WebCore::ScrollView::maximumScrollPosition): Minus scroll X origin from maximum horizontal scroll position.
        (WebCore::ScrollView::minimumScrollPosition):
        (WebCore::ScrollView::adjustScrollPositionWithinRange):
        (WebCore::ScrollView::valueChanged):
        (WebCore::ScrollView::setScrollPosition):
        (WebCore::ScrollView::updateScrollbars):
        (WebCore::ScrollView::wheelEvent):
        * platform/ScrollView.h:
        * platform/mac/ScrollViewMac.mm:
        (WebCore::ScrollView::platformSetContentsSize):
        (WebCore::ScrollView::platformSetScrollPosition):
        (WebCore::ScrollView::platformSetScrollOriginX):
        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::styleDidChange):
        (WebCore::RenderBox::paintRootBoxDecorations): Include left layout overflow into canvas size.
        * rendering/RenderView.cpp:
        (WebCore::RenderView::layout): Save left layout overflow.
        (WebCore::RenderView::docLeft):
        (WebCore::RenderView::docWidth): Include left layout overflow into doc width for RTL page.
        * rendering/RenderView.h:
2010-11-29  Xiaomei Ji  <xji@chromium.org>

        Reviewed by David Hyatt.

        Right-to-left pages should be scrollable to reveal left overflow.
        https://bugs.webkit.org/show_bug.cgi?id=23556

        For RTL page, save left layout overflow and include it into the document
        size during layout. Use the left layout overflow when scroll and paint
        the page. Behavior on LTR page should be untouched since left layout
        overflow is set as 0 for LTR page.

        * fast/dom/horizontal-scrollbar-in-rtl-doesnt-fire-onscroll-expected.txt: Added.
        * fast/dom/horizontal-scrollbar-in-rtl-doesnt-fire-onscroll.html: Added.
        * fast/dom/horizontal-scrollbar-in-rtl.html: Added.
        * fast/dom/horizontal-scrollbar-when-dir-change.html: Added.
        * fast/dom/left-overflow-in-ltr.html: Added.
        * fast/dom/right-overflow-in-rtl.html: Added.
        * platform/chromium/fast/dom/horizontal-scrollbar-in-rtl-expected.txt: Added.
        * platform/chromium/fast/dom/horizontal-scrollbar-when-dir-change-expected.txt: Added.
        * platform/mac/fast/block/basic/truncation-rtl-expected.checksum:
        * platform/mac/fast/block/basic/truncation-rtl-expected.txt:
        * platform/mac/fast/dom/horizontal-scrollbar-in-rtl-expected.txt: Added.
        * platform/mac/fast/dom/horizontal-scrollbar-when-dir-change-expected.txt: Added.
        * platform/mac/fast/dom/left-overflow-in-ltr-expected.txt: Added.
        * platform/mac/fast/dom/right-overflow-in-rtl-expected.txt: Added.

        * fast/dom/horizontal-scrollbar-in-rtl-doesnt-fire-onscroll-expected.txt: Added.
        * fast/dom/horizontal-scrollbar-in-rtl-doesnt-fire-onscroll.html: Added.
        * fast/dom/horizontal-scrollbar-in-rtl.html: Added.
        * fast/dom/horizontal-scrollbar-when-dir-change.html: Added.
        * fast/dom/left-overflow-in-ltr.html: Added.
        * fast/dom/right-overflow-in-rtl.html: Added.
        * platform/chromium/fast/dom/horizontal-scrollbar-in-rtl-expected.txt: Added.
        * platform/chromium/fast/dom/horizontal-scrollbar-when-dir-change-expected.txt: Added.
        * platform/mac/fast/block/basic/truncation-rtl-expected.checksum:
        * platform/mac/fast/block/basic/truncation-rtl-expected.txt:
        * platform/mac/fast/dom/horizontal-scrollbar-in-rtl-expected.txt: Added.
        * platform/mac/fast/dom/horizontal-scrollbar-when-dir-change-expected.txt: Added.
        * platform/mac/fast/dom/left-overflow-in-ltr-expected.txt: Added.
        * platform/mac/fast/dom/right-overflow-in-rtl-expected.txt: Added.

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

9 years agoCursor does not always change back to arrow when exiting image document
andersca@apple.com [Tue, 30 Nov 2010 00:57:37 +0000 (00:57 +0000)]
Cursor does not always change back to arrow when exiting image document
https://bugs.webkit.org/show_bug.cgi?id=50190
<rdar://problem/8665265>

Reviewed by Sam Weinig.

* Shared/mac/WebEventFactory.mm:
(WebKit::mouseEventTypeForEvent):
(WebKit::globalPointForEvent):
(WebKit::pointForEvent):
Handle the NSMouseEntered and NSMouseExited events.

* UIProcess/API/mac/WKView.mm:
(-[WKView initWithFrame:pageNamespaceRef:hiddenFromInjectedBundle:]):
We want entered and exited events for this tracking area.
Add mouseEntered and mouseExited handlers.

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

9 years ago2010-11-29 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Tue, 30 Nov 2010 00:53:05 +0000 (00:53 +0000)]
2010-11-29  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Ojan Vafai.

        bunch of pixel failures after http://trac.webkit.org/changeset/72839/
        https://bugs.webkit.org/show_bug.cgi?id=50188

        We need to call updateLayerTransform() for reflections, and
        table rows as well.

        * rendering/RenderReplica.cpp:
        (WebCore::RenderReplica::layout):
        * rendering/RenderTableRow.cpp:
        (WebCore::RenderTableRow::layout):
        * rendering/RenderTableSection.cpp:
        (WebCore::RenderTableSection::layoutRows):

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

9 years ago2010-11-29 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Tue, 30 Nov 2010 00:40:17 +0000 (00:40 +0000)]
2010-11-29  Ojan Vafai  <ojan@chromium.org>

        Mark tests as failing after http://trac.webkit.org/changeset/72839/.

        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-29 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Tue, 30 Nov 2010 00:17:07 +0000 (00:17 +0000)]
2010-11-29  Ojan Vafai  <ojan@chromium.org>

        Mark fast/dom/StyleSheet/gc-declaration-parent-rule.html failing after http://trac.webkit.org/changeset/72833/
        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-29 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Tue, 30 Nov 2010 00:12:47 +0000 (00:12 +0000)]
2010-11-29  Xiaomei Ji  <xji@chromium.org>

        Reviewed by David Hyatt.

        Fix tab overflow problem when alignment is not left.
        https://bugs.webkit.org/show_bug.cgi?id=25459

        I checked WordPad in Windows, TextEdit in Mac, OpenOffice, and Google doc.
        In all of them, (when the writing mode is horizontal) when the alignment is not
        left alignment, the length of tab is computed based on the tab's position
        relative to the left start of line, not based on the tab's position relative
        to the left edge of the document.

        WebKit should follow the same.

        The m_xPos in each TextRun should be relative to the left start of the line,
        not left start of its containing block (in right alignment and center alignment,
        left start of the line is not the same as left start of the containing block).
        So, when the text is drawn, the width of tab is consistent with the width
        computed in RenderBlock::computeInlineDirectionPositionsForLine().

        I did not test vertical writing mode, but I think the same rule should apply.

        Test: fast/dom/tab-in-right-alignment.html

        * platform/graphics/TextRun.h:
        * rendering/InlineTextBox.cpp:
        (WebCore::InlineTextBox::textPos):
        * rendering/InlineTextBox.h:
2010-11-29  Xiaomei Ji  <xji@chromium.org>

        Reviewed by David Hyatt.

        Fix tab overflow problem when alignment is not left.
        https://bugs.webkit.org/show_bug.cgi?id=25459

        I checked WordPad in Windows, TextEdit in Mac, OpenOffice, and Google doc.
        In all of them, (when the writing mode is horizontal) when the alignment is not
        left alignment, the length of tab is computed based on the tab's position
        relative to the left start of line, not based on the tab's position relative
        to the left edge of the document.

        WebKit should follow the same.

        The m_xPos in each TextRun should be relative to the left start of the line,
        not left start of its containing block (in right alignment and center alignment,
        left start of the line is not the same as left start of the containing block).
        So, when the text is drawn, the width of tab is consistent with the width
        computed in RenderBlock::computeInlineDirectionPositionsForLine().

        I did not test vertical writing mode, but I think the same rule should apply.

        * fast/dom/tab-in-right-alignment-expected.txt: Added.
        * fast/dom/tab-in-right-alignment.html: Added.
        * platform/qt/Skipped:

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

9 years ago2010-11-29 Steve Falkenburg <sfalken@apple.com>
sfalken@apple.com [Tue, 30 Nov 2010 00:09:52 +0000 (00:09 +0000)]
2010-11-29  Steve Falkenburg  <sfalken@apple.com>

        Reviewed by Adam Roben.

        Add a mechanism for Windows pre-build/pre-link/post-build events to be separated into individual cmd files
        https://bugs.webkit.org/show_bug.cgi?id=49858

        We're migrating our prebuild/prelink/postbuild steps out of vcproj and vsprops files:
        - To simplify editing (editing vsprops build steps is confusing).
        - For more readable diffs.

        * JavaScriptCore.vcproj/WTF/WTFCommon.vsprops:
        * JavaScriptCore.vcproj/WTF/WTFPostBuild.cmd: Added.
        * JavaScriptCore.vcproj/WTF/WTFPreBuild.cmd: Added.
2010-11-19  Steve Falkenburg  <sfalken@apple.com>

        Reviewed by Adam Roben.

        Add a mechanism for Windows pre-build/pre-link/post-build events to be separated into individual cmd files
        https://bugs.webkit.org/show_bug.cgi?id=49858

        We're migrating our prebuild/prelink/postbuild steps out of vcproj and vsprops files:
        - To simplify editing (editing vsprops build steps is confusing).
        - For more readable diffs.

        To add a prebuild/prelink/postbuild step for a vcproj,
        Add a new file named {ProjectName}PreBuild|PreLink|PostBuild.cmd to the project directory.
        For example, a WTF prebuild script would be named WTFPreBuild.cmd and would be located
        in the directory JavaScriptCore/JavaScriptCore.vcproj/WTF (alongside WTF.vcproj).

        * win/tools/vsprops/common.vsprops:
        * win/tools/vsprops/release.vsprops:

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

9 years ago2010-11-29 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Mon, 29 Nov 2010 23:51:54 +0000 (23:51 +0000)]
2010-11-29  Simon Fraser  <simon.fraser@apple.com>

        Add Qt-specific result.

        * platform/qt/fast/overflow/overflow-update-transform-expected.txt: Added.

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

9 years ago[Chromium] Add substitution parameters to WebKitClient::queryLocalizedString()
tkent@chromium.org [Mon, 29 Nov 2010 23:48:30 +0000 (23:48 +0000)]
[Chromium] Add substitution parameters to WebKitClient::queryLocalizedString()
https://bugs.webkit.org/show_bug.cgi?id=50053

Reviewed by Darin Fisher.

* public/WebKitClient.h:
(WebKit::WebKitClient::queryLocalizedString): Add overload functions with
  substitution string parameters, and remove the integer parameter overload.
* src/LocalizedStrings.cpp:
(WebCore::query): Add string parameter overloads, and remove the integer parameter overload.
(WebCore::multipleFileUploadText): Call the string parameter query().
(WebCore::validationMessageTooLongText): Pass the parameters to query().
(WebCore::validationMessageRangeUnderflowText): ditto.
(WebCore::validationMessageRangeOverflowText): ditto.
(WebCore::validationMessageStepMismatchText): ditto.

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

9 years ago2010-11-29 Mikhail Naganov <mnaganov@chromium.org>
mnaganov@chromium.org [Mon, 29 Nov 2010 23:37:08 +0000 (23:37 +0000)]
2010-11-29  Mikhail Naganov  <mnaganov@chromium.org>

        Reviewed by Pavel Feldman.

        WebInspector: Request JSON-serialized heap snapshot from JS engine.
        This simplifies heap snapshots interaction and API. Instead of
        having objects representing snapshot entities, the whole snapshot
        is transferred to WebInspector and parsed there.

        https://bugs.webkit.org/show_bug.cgi?id=49974

        * bindings/js/ScriptHeapSnapshot.h:
        (WebCore::ScriptHeapSnapshot::OutputStream::~OutputStream):
        (WebCore::ScriptHeapSnapshot::~ScriptHeapSnapshot):
        (WebCore::ScriptHeapSnapshot::writeJSON):
        (WebCore::ScriptHeapSnapshot::ScriptHeapSnapshot):
        * bindings/v8/ScriptHeapSnapshot.cpp:
        (WebCore::ScriptHeapSnapshot::writeJSON):
        * bindings/v8/ScriptHeapSnapshot.h:
        (WebCore::ScriptHeapSnapshot::OutputStream::~OutputStream):
        * inspector/Inspector.idl:
        * inspector/InspectorProfilerAgent.cpp:
        (WebCore::InspectorProfilerAgent::getProfile):
        * inspector/front-end/HeapSnapshotView.js:
        (WebInspector.HeapSnapshotEdgesIterator):
        (WebInspector.HeapSnapshotEdgesIterator.prototype.get done):
        (WebInspector.HeapSnapshotEdgesIterator.prototype.get isElement):
        (WebInspector.HeapSnapshotEdgesIterator.prototype.get isHidden):
        (WebInspector.HeapSnapshotEdgesIterator.prototype.get name):
        (WebInspector.HeapSnapshotEdgesIterator.prototype.next):
        (WebInspector.HeapSnapshotEdgesIterator.prototype.get node):
        (WebInspector.HeapSnapshotEdgesIterator.prototype.get nodeIndex):
        (WebInspector.HeapSnapshotEdgesIterator.prototype._getNameOrIndex):
        (WebInspector.HeapSnapshotEdgesIterator.prototype._getType):
        (WebInspector.HeapSnapshotNodeWrapper):
        (WebInspector.HeapSnapshotNodeWrapper.prototype.get edges):
        (WebInspector.HeapSnapshotNodeWrapper.prototype.get edgesCount):
        (WebInspector.HeapSnapshotNodeWrapper.prototype.get instancesCount):
        (WebInspector.HeapSnapshotNodeWrapper.prototype.get isHidden):
        (WebInspector.HeapSnapshotNodeWrapper.prototype.get name):
        (WebInspector.HeapSnapshotNodeWrapper.prototype.get selfSize):
        (WebInspector.HeapSnapshotNodeWrapper.prototype._getName):
        (WebInspector.HeapSnapshotNodeWrapper.prototype._getEdges):
        (WebInspector.HeapSnapshotNodeWrapper.prototype._getType):
        (WebInspector.HeapSnapshot):
        (WebInspector.HeapSnapshot.prototype._init):
        (WebInspector.HeapSnapshot.prototype.get rootEdges):
        (WebInspector.HeapSnapshotView.prototype.snapshotLoaded):
        (WebInspector.HeapSnapshotView.prototype._loadProfile.processLoadedSnapshot):
        (WebInspector.HeapSnapshotView.prototype._loadProfile):
        (WebInspector.HeapSnapshotView.prototype._convertSnapshot):
        (WebInspector.HeapSnapshotView.prototype._prepareProfile.mergeRetainers):
        (WebInspector.HeapSnapshotView.prototype._prepareProfile):
        (WebInspector.HeapSnapshotView.prototype._sortData):
        * inspector/front-end/ProfilesPanel.js:
        (WebInspector.ProfilesPanel):
        (WebInspector.ProfilesPanel.prototype.addHeapSnapshotChunk):
        (WebInspector.ProfilesPanel.prototype.finishHeapSnapshot):
        * inspector/front-end/inspector.js:
        (WebInspector.addHeapSnapshotChunk):
        (WebInspector.finishHeapSnapshot):

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

9 years agoImproved accuracy of command-line SunSpider.
ggaren@apple.com [Mon, 29 Nov 2010 23:35:11 +0000 (23:35 +0000)]
Improved accuracy of command-line SunSpider.

Reviewed by Gavin Barraclough.

JavaScriptCore:

* jsc.cpp:
(functionRun): Changed the "run" function to run a given test in
its own global object. Previously, all tests ran in the same global
object, which created name conflicts, and made globals from previous
tests artificially survive into later tests.

Also changed "run" to return the elapsed milliseconds when running a
given test, for slightly more accurate numbers.

(functionCheckSyntax): Ditto on returning elapsed milliseconds.

SunSpider:

* resources/sunspider-standalone-driver.js: Use the returned number of
elapsed milliseconds from "run" and "checkSyntax" instead of measuring
ourselves, for slightly more accurate numbers.

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

9 years agoShould be able to pause and resume downloads
andersca@apple.com [Mon, 29 Nov 2010 23:34:17 +0000 (23:34 +0000)]
Should be able to pause and resume downloads
https://bugs.webkit.org/show_bug.cgi?id=50185
<rdar://problem/8691135>

Reviewed by Darin Adler.

* UIProcess/API/C/WKContext.h:
Add didCancel callback.

* UIProcess/API/C/WKDownload.cpp:
(WKDownloadGetResumeData):
(WKDownloadCancel):
Call the respective DownloadProxy member functions.

* UIProcess/API/C/WKDownload.h:
* UIProcess/Downloads/DownloadProxy.cpp:
(WebKit::DownloadProxy::cancel):
Send Cancel to the WebProcess.

(WebKit::DownloadProxy::didFail):
This now takes a resumeData reference.

(WebKit::DownloadProxy::didCancel):
Set the resume data and call didCancel.

* UIProcess/Downloads/DownloadProxy.h:
(WebKit::DownloadProxy::resumeData):
Return the resume data.

* UIProcess/Downloads/DownloadProxy.messages.in:
Add DidCancel message, Add resume data to DidFail.

* UIProcess/WebDownloadClient.cpp:
(WebKit::WebDownloadClient::didCancel):
Call the didCancel context client function.

* WebProcess/Downloads/Download.cpp:
(WebKit::Download::didFail):
This now takes a resume data argument as well.

(WebKit::Download::didCancel):
Send DidCancel.

* WebProcess/Downloads/DownloadManager.cpp:
(WebKit::DownloadManager::cancelDownload):
Look up the download and cancel it.

* WebProcess/Downloads/cf/DownloadCFNet.cpp:
(WebKit::Download::cancel):
Add stub.

* WebProcess/Downloads/mac/DownloadMac.mm:
(WebKit::Download::cancel):
Cancel the download.

(-[WKDownloadAsDelegate download:didFailWithError:]):
Pass the resume data along.

* WebProcess/Downloads/qt/DownloadQt.cpp:
(WebKit::Download::cancel):
Add stub.

* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::cancelDownload):
Ask the download manager to cancel the download.

* WebProcess/WebProcess.h:
* WebProcess/WebProcess.messages.in:
Add CancelDownload message.

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

9 years ago[Chromium] Unreviewed, updated expectations for a test fixed on Chromium side.
dimich@chromium.org [Mon, 29 Nov 2010 23:28:16 +0000 (23:28 +0000)]
[Chromium] Unreviewed, updated expectations for a test fixed on Chromium side.
http://code.google.com/p/chromium/issues/detail?id=61655

* platform/chromium-mac/security/block-test-no-port-expected.txt: Added.
* platform/chromium-win/security/block-test-no-port-expected.txt: Added.
* platform/chromium/test_expectations.txt:

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

9 years ago2010-11-29 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Mon, 29 Nov 2010 23:13:28 +0000 (23:13 +0000)]
2010-11-29  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dave Hyatt.

        layer()->currentTransform() is stale when layout changes the box size
        https://bugs.webkit.org/show_bug.cgi?id=50175

        RenderLayer::updateTransform() is fairly expensive, so we
        have to avoid calling it from RenderBox::applyLayerTransformToRect()
        every time. This requires that we update the layer's transform
        during layout, instead of from updateLayerPositions() which is too late.

        So call updateLayerTransform() from the various layout methods
        on renderers that can be transformed, and remove it from
        updateLayerPositions().

        Test: fast/overflow/overflow-update-transform.html

        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::layoutBlock):
        (WebCore::RenderBlock::layoutOnlyPositionedObjects):
        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::applyLayerTransformToRect):
        (WebCore::RenderBox::updateLayerTransform):
        * rendering/RenderBox.h:
        * rendering/RenderEmbeddedObject.cpp:
        (WebCore::RenderEmbeddedObject::layout):
        * rendering/RenderFlexibleBox.cpp:
        (WebCore::RenderFlexibleBox::layoutBlock):
        * rendering/RenderIFrame.cpp:
        (WebCore::RenderIFrame::layout):
        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::updateLayerPositions):
        * rendering/RenderReplaced.cpp:
        (WebCore::RenderReplaced::layout):
        * rendering/RenderTable.cpp:
        (WebCore::RenderTable::layout):

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

9 years ago2010-11-29 Chris Rogers <crogers@google.com>
crogers@google.com [Mon, 29 Nov 2010 23:03:57 +0000 (23:03 +0000)]
2010-11-29  Chris Rogers  <crogers@google.com>

        Reviewed by Kenneth Russell.

        Add remaining custom JSC web audio bindings
        https://bugs.webkit.org/show_bug.cgi?id=50172

        No new tests since audio API is not yet implemented.

        * bindings/js/JSAudioBufferSourceNodeCustom.cpp: Added.
        (WebCore::JSAudioBufferSourceNode::setBuffer):
        * bindings/js/JSConvolverNodeCustom.cpp: Added.
        (WebCore::JSConvolverNode::setBuffer):
        * bindings/js/JSJavaScriptAudioNodeCustom.cpp: Added.
        (WebCore::JSJavaScriptAudioNode::markChildren):
        * webaudio/AudioBufferSourceNode.idl:
        * webaudio/ConvolverNode.idl:

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

9 years ago2010-11-29 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Mon, 29 Nov 2010 22:48:14 +0000 (22:48 +0000)]
2010-11-29  Ojan Vafai  <ojan@chromium.org>

        [Chromium] Mark tests as failing after http://trac.webkit.org/changeset/72819.
        And rebaseline loader/reload-subresource-when-type-changes.html after
        http://trac.webkit.org/changeset/72817. The difference is that V8 logs a different
        error string.

        * platform/chromium-mac/loader/reload-subresource-when-type-changes-expected.txt: Added.
        * platform/chromium-win/loader/reload-subresource-when-type-changes-expected.txt: Added.
        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-29 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Mon, 29 Nov 2010 22:45:57 +0000 (22:45 +0000)]
2010-11-29  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Martin Robinson.

        * configure.ac: bump version for 1.3.7 release.

WebKit/gtk:

2010-11-29  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Martin Robinson.

        * NEWS: update for 1.3.7 release.

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