profile/ivi/webkit-efl.git
12 years ago[CMake] Share build system options across ports
paroga@webkit.org [Mon, 9 Apr 2012 10:45:15 +0000 (10:45 +0000)]
[CMake] Share build system options across ports
https://bugs.webkit.org/show_bug.cgi?id=72815

Reviewed by Daniel Bates.

Don't define the generic features for every port again.
Add a few macros for reusing the central defined options.

* CMakeLists.txt:
* Source/cmake/OptionsBlackBerry.cmake:
* Source/cmake/OptionsEfl.cmake:
* Source/cmake/OptionsWinCE.cmake:
* Source/cmake/WebKitFeatures.cmake:

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

12 years ago[Blackberry] m_isRequestedByPlugin should be copied in ResourceRequest
commit-queue@webkit.org [Mon, 9 Apr 2012 10:33:22 +0000 (10:33 +0000)]
[Blackberry] m_isRequestedByPlugin should be copied in ResourceRequest
https://bugs.webkit.org/show_bug.cgi?id=83447

Patch by Chris Guan <chris.guan@torchmobile.com.cn> on 2012-04-09
Reviewed by George Staikos.

It is an obvious error, We should copy m_isRequestedByPlugin in ResourceReuest.

No new tests, because those existing plugin test cases are enough.

* platform/network/blackberry/ResourceRequestBlackBerry.cpp:
(WebCore::ResourceRequest::doPlatformCopyData):
(WebCore::ResourceRequest::doPlatformAdopt):

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

12 years agoSubscribe eric.carlson@apple.com to Media-related changes
eric.carlson@apple.com [Mon, 9 Apr 2012 10:19:25 +0000 (10:19 +0000)]
Subscribe eric.carlson@apple.com to Media-related changes
https://bugs.webkit.org/show_bug.cgi?id=83421

Reviewed by Dan Bernstein.

* Scripts/webkitpy/common/config/watchlist:

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

12 years agoLayout Test http/tests/media/media-document.html is flaky
fischman@chromium.org [Mon, 9 Apr 2012 10:02:11 +0000 (10:02 +0000)]
Layout Test http/tests/media/media-document.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=83391

[Chromium] Unreviewed gardening.

* platform/chromium/test_expectations.txt:

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

12 years agoseveral http tests are flaky and crashing on win, debug
fischman@chromium.org [Mon, 9 Apr 2012 09:50:18 +0000 (09:50 +0000)]
several http tests are flaky and crashing on win, debug
https://bugs.webkit.org/show_bug.cgi?id=82505

Remove the expectations of a crash now that the fix (http://crrev.com/131170)
has rolled into webkit in http://trac.webkit.org/changeset/113512

Reviewed by Tony Chang.

* platform/chromium/test_expectations.txt:

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

12 years agocheck-webkit-style should ignore NULL usage in gtk_style_context_get_style
commit-queue@webkit.org [Mon, 9 Apr 2012 09:48:31 +0000 (09:48 +0000)]
check-webkit-style should ignore NULL usage in gtk_style_context_get_style
https://bugs.webkit.org/show_bug.cgi?id=83412

Patch by Martin Robinson <mrobinson@igalia.com> on 2012-04-09
Reviewed by David Levin.

Accept NULL as an argument for gtk_style_context_get_style, because it's
used as a sentinel in a variable argument list.

* Scripts/webkitpy/style/checkers/cpp.py:
(check_for_null): Add an exception.
* Scripts/webkitpy/style/checkers/cpp_unittest.py:
(WebKitStyleTest.test_null_false_zero): Add a test for the exception.

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

12 years agoNot reviewed: fixing inspector front-end compilation that has been broken by the
pfeldman@chromium.org [Mon, 9 Apr 2012 09:42:56 +0000 (09:42 +0000)]
Not reviewed: fixing inspector front-end compilation that has been broken by the
recent SaveAs and DOMStorage changes.

* inspector/front-end/DOMStorage.js:
* inspector/front-end/externs.js:
(WebInspector.isURLSaved):

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

12 years agoWeb Inspector: remove ComboBoxFileSelector and SingleFileEditorContainer.
pfeldman@chromium.org [Mon, 9 Apr 2012 09:39:21 +0000 (09:39 +0000)]
Web Inspector: remove ComboBoxFileSelector and SingleFileEditorContainer.
https://bugs.webkit.org/show_bug.cgi?id=83460

Reviewed by Yury Semikhatsky.

Source/WebCore:

We are now using scripts navigator and tabbed editor container, removing the old components.
This change removes the corresponding classes and the abstractions used during the
transition period.

* English.lproj/localizedStrings.js:
* inspector/front-end/ScriptsNavigator.js:
(WebInspector.ScriptsNavigator.prototype._scriptSelected):
* inspector/front-end/ScriptsPanel.js:
(WebInspector.ScriptsPanel.get this):
(WebInspector.ScriptsPanel.prototype.get defaultFocusedElement):
(WebInspector.ScriptsPanel.prototype._addUISourceCode):
(WebInspector.ScriptsPanel.prototype.setScriptSourceIsDirty):
(WebInspector.ScriptsPanel.prototype._reset):
(WebInspector.ScriptsPanel.prototype._showFile):
(WebInspector.ScriptsPanel.prototype._uiSourceCodeReplaced):
(WebInspector.ScriptsPanel.prototype._editorClosed):
(WebInspector.ScriptsPanel.prototype._scriptSelected):
(WebInspector.ScriptsPanel.prototype._hidePinnedNavigator):
(WebInspector.ScriptsPanel.prototype.set _pinNavigator):
* inspector/front-end/SettingsScreen.js:
(WebInspector.SettingsScreen):
* inspector/front-end/TabbedEditorContainer.js:
(WebInspector.TabbedEditorContainerDelegate):
(WebInspector.TabbedEditorContainerDelegate.prototype.viewForFile):
(get WebInspector):
(WebInspector.TabbedEditorContainer.prototype._tabClosed):
* inspector/front-end/scriptsPanel.css:

LayoutTests:

* inspector/debugger/scripts-combobox-file-selector-history-expected.txt: Removed.
* inspector/debugger/scripts-combobox-file-selector-history.html: Removed.
* inspector/debugger/scripts-file-selector-expected.txt:
* inspector/debugger/scripts-file-selector.html:
* inspector/debugger/scripts-panel-expected.txt:
* inspector/debugger/scripts-panel.html:
* inspector/debugger/scripts-sorting-expected.txt:
* inspector/debugger/scripts-sorting.html:
* inspector/debugger/source-frame-count.html:

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

12 years agowebkitpy: use the filesystem object properly in fileuploader
dpranke@chromium.org [Mon, 9 Apr 2012 09:22:44 +0000 (09:22 +0000)]
webkitpy: use the filesystem object properly in fileuploader
https://bugs.webkit.org/show_bug.cgi?id=83326

Reviewed by Adam Barth.

We should be using the filesystem object rather than the codecs
object.

* Scripts/webkitpy/common/net/file_uploader.py:
(FileUploader.upload_as_multipart_form_data):

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

12 years ago[chromium] Make culling work with clipped rects
commit-queue@webkit.org [Mon, 9 Apr 2012 09:05:50 +0000 (09:05 +0000)]
[chromium] Make culling work with clipped rects
https://bugs.webkit.org/show_bug.cgi?id=83217

Patch by Dana Jansens <danakj@chromium.org> on 2012-04-09
Reviewed by Adrienne Walker.

Source/WebCore:

Use new CCMathUtil transformation methods to deal with rects that clip
the camera plane. This fixes three things:

1. A layer completely behind the camera is not visible and should not
occlude.
2. A layer that is clipped by the camera is treated like a
non-axis-aligned transform, as the result of a mapClippedRect() is a
bounding box and may contain pixels not in the original rect. This guards
our use of mapRect() when transforming occluded regions.
3. A layer's occlusion must be clipped by its scissor rect. This scissor
rect exists in its target space, so occlusion in screen space is only
possible if its target also is axis aligned in the screen, such that
the layer's scissor rect remains a rect in screen space.

Unit tests: CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude
            CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect

* platform/graphics/chromium/cc/CCOcclusionTracker.cpp:
(WebCore::transformSurfaceOpaqueRegion):
(WebCore::computeOcclusionBehindLayer):
(WebCore::::markOccludedBehindLayer):
(WebCore::testContentRectOccluded):
(WebCore::computeUnoccludedContentRect):

Source/WebKit/chromium:

* tests/CCOcclusionTrackerTest.cpp:
(CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude):
(WebKitTests::CCOcclusionTrackerTestLayerBehindCameraDoesNotOcclude::runMyTest):
(WebKitTests):
(CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect):
(WebKitTests::CCOcclusionTrackerTestLargePixelsOccludeInsideClipRect::runMyTest):
* tests/CCQuadCullerTest.cpp:
(WebCore::TestCCOcclusionTrackerImpl::TestCCOcclusionTrackerImpl):

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

12 years ago[Gtk] Web Inspector noinst_DATA images are copied into innacurately named directory
commit-queue@webkit.org [Mon, 9 Apr 2012 08:49:02 +0000 (08:49 +0000)]
[Gtk] Web Inspector noinst_DATA images are copied into innacurately named directory
https://bugs.webkit.org/show_bug.cgi?id=83423

Patch by Zan Dobersek <zandobersek@gmail.com> on 2012-04-09
Reviewed by Martin Robinson.

Copy Web Inspector images that are a part of the data not meant
for installation into a directory named 'Images' rather than
a lower-case version of that. This is required as until now,
when using these inspector resources (for example during layout
tests or manually pointing WEBKIT_INSPECTOR_PATH env to that
location), the images were not displayed as they were not loadable.

No new tests - no new functionality.

* GNUmakefile.am:

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

12 years agoEnable webkit_unit_tests for commit queue and EWS while tracking failures
eric@webkit.org [Mon, 9 Apr 2012 07:55:12 +0000 (07:55 +0000)]
Enable webkit_unit_tests for commit queue and EWS while tracking failures
https://bugs.webkit.org/show_bug.cgi?id=83329

Unreviewed.  Add a missing import to unbreak all the Chromium EWS/CQ bots. :)

line 62, in _create_unit_test_results
 return UnitTestResults.results_from_string(results_xml)
 NameError: global name 'UnitTestResults' is not defined

* Scripts/webkitpy/tool/bot/layouttestresultsreader.py:
* Scripts/webkitpy/tool/bot/layouttestresultsreader_unittest.py:
(LayoutTestResultsReaderTest.test_create_unit_test_results):

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

12 years agoWeb Inspector: move breakpoints active state from scripts panel to debugger presentat...
pfeldman@chromium.org [Mon, 9 Apr 2012 07:50:42 +0000 (07:50 +0000)]
Web Inspector: move breakpoints active state from scripts panel to debugger presentation model.
https://bugs.webkit.org/show_bug.cgi?id=83374

Reviewed by Yury Semikhatsky.

Source/WebCore:

Just moves the state and adds event to propagate it. This is needed to abstract
JavaScriptSourceFrame from the ScriptsPanel.

* inspector/front-end/DebuggerPresentationModel.js:
(WebInspector.DebuggerPresentationModel):
(WebInspector.DebuggerPresentationModel.prototype.setBreakpoint):
(WebInspector.DebuggerPresentationModel.prototype._debuggerReset):
(WebInspector.DebuggerPresentationModel.prototype.setBreakpointsActive):
(WebInspector.DebuggerPresentationModel.prototype.breakpointsActive):
* inspector/front-end/JavaScriptSourceFrame.js:
(WebInspector.JavaScriptSourceFrame.prototype._setBreakpoint):
* inspector/front-end/ScriptsPanel.js:
(WebInspector.ScriptsPanel.prototype._toggleBreakpointsClicked):
(WebInspector.ScriptsPanel.prototype._breakpointsActiveStateChanged):
(WebInspector.ScriptsPanel.prototype._createDebugToolbar):

LayoutTests:

* http/tests/inspector/debugger-test.js:
* inspector/debugger/debugger-breakpoints-not-activated-on-reload.html:

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

12 years agoDFG should not load the property storage if it is inline.
fpizlo@apple.com [Mon, 9 Apr 2012 07:48:08 +0000 (07:48 +0000)]
DFG should not load the property storage if it is inline.
https://bugs.webkit.org/show_bug.cgi?id=83455

Reviewed by Gavin Barraclough.

We had previously decided to have all property storage accesses go through
the property storage pointer even if they don't "really" have to, because
we were thinking this would help GC barriers somehow. Well, we never ended
up doing anything with that. Hence, doing these wasted loads of the
property storage pointer when the storage is inline is just a waste of CPU
cycles.

This change makes the DFG's inline property accesses (GetByOffset and
PutByOffset) go directly to the inline property storage if the structure(s)
tell us that it's OK.

This looks like an across-the-board 1% win.

* bytecode/StructureSet.h:
(JSC):
(JSC::StructureSet::allAreUsingInlinePropertyStorage):
(StructureSet):
* dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::parseBlock):
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::fillStorage):

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

12 years ago[mac] REGRESSION (r113467): Some canvas tests are failing in WebKit1 when run after...
mitz@apple.com [Mon, 9 Apr 2012 05:25:55 +0000 (05:25 +0000)]
[mac] REGRESSION (r113467): Some canvas tests are failing in WebKit1 when run after compositing/tiled-layers-hidpi.html
https://bugs.webkit.org/show_bug.cgi?id=83453

Reviewed by Sam Weinig.

* WebView/WebView.mm:
(-[WebView _setCustomBackingScaleFactor:]): When the scale factor parameter was 0, meaning
no custom scale factor, this method was setting the Page scale factor to 0, and that value
was used by canvas. Changed it to correctly set the Page scale factor back to the device
scale factor.

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

12 years ago<content> in <meter> is not rendered correctly.
commit-queue@webkit.org [Mon, 9 Apr 2012 04:59:28 +0000 (04:59 +0000)]
<content> in <meter> is not rendered correctly.
https://bugs.webkit.org/show_bug.cgi?id=81311

This code changes a code location where MeterValueElement's value
attribute is initialized. In the old code, HTMLMeterElement's attach
did. It is better to initialize the attribute just after creating
meter's shadow subtree.

Patch by Takashi Sakamoto <tasak@google.com> on 2012-04-08
Reviewed by Hajime Morita.

No new tests, because an existing test,
content-element-in-meter-element.html covers.
However test_expectations.txt is changed. Now the test passes.

* html/HTMLMeterElement.cpp:
* html/HTMLMeterElement.h:
(HTMLMeterElement):
(HTMLMeterElement::attach):
Removed attach method, because attach method is just calling
LabelableElement::attach after removing didElementStateChange.
(HTMLMeterElement::createShadowSubTree):
Added setWidthPercentage to initialize MeterValueElement's value
attribute.
* LayoutTests/platform/chromium/test_expectations.txt:
Removed BUGWK81311 fast/dom/shadow/content-element-in-meter.html,
because now contentElementInMeterElement passes.

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

12 years agoThe port object is missing unit_tests_results_path
abarth@webkit.org [Mon, 9 Apr 2012 04:04:22 +0000 (04:04 +0000)]
The port object is missing unit_tests_results_path
https://bugs.webkit.org/show_bug.cgi?id=83448

Unreviewed.

This is causing the cr-linux-ews to throw an exception.

* Scripts/webkitpy/common/config/ports.py:
(DeprecatedPort.unit_tests_results_path):

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

12 years agoCommand-line jsc's exception handling should be rationalized
fpizlo@apple.com [Sun, 8 Apr 2012 20:50:50 +0000 (20:50 +0000)]
Command-line jsc's exception handling should be rationalized
https://bugs.webkit.org/show_bug.cgi?id=83437

Reviewed by Dan Bernstein.

- If an exception is thrown during run() execution, it is now propagated,
  so that it will terminate program execution unless it is caught.

- If program execution terminates with an exception, the exception is now
  always printed.

- When printing the exception, the backtrace is now also printed if one is
  available. It will only not be available if you use something akin to my
  favorite line of code, 'throw "error"', since primitives don't have
  properties and hence we cannot attach a "stack" property to them.

* jsc.cpp:
(functionRun):
(runWithScripts):

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

12 years agoForced OSR exits should lead to recompilation based on count, not rate
fpizlo@apple.com [Sun, 8 Apr 2012 20:46:12 +0000 (20:46 +0000)]
Forced OSR exits should lead to recompilation based on count, not rate
https://bugs.webkit.org/show_bug.cgi?id=83247
<rdar://problem/10720925>

Reviewed by Geoff Garen.

Track which OSR exits happen because of inadequate coverage. Count them
separately. If the count reaches a threshold, immediately trigger
reoptimization.

This is in contrast to the recompilation trigger for all other OSR exits.
Normally recomp is triggered when the exit rate exceeds a certain ratio.

Looks like a slight V8 speedup (sub 1%).

* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::CodeBlock):
* bytecode/CodeBlock.h:
(JSC::CodeBlock::forcedOSRExitCounter):
(JSC::CodeBlock::addressOfForcedOSRExitCounter):
(JSC::CodeBlock::offsetOfForcedOSRExitCounter):
(JSC::CodeBlock::shouldReoptimizeNow):
(JSC::CodeBlock::shouldReoptimizeFromLoopNow):
(CodeBlock):
* bytecode/DFGExitProfile.h:
(JSC::DFG::exitKindToString):
* dfg/DFGOSRExitCompiler.cpp:
(JSC::DFG::OSRExitCompiler::handleExitCounts):
(DFG):
* dfg/DFGOSRExitCompiler.h:
(OSRExitCompiler):
* dfg/DFGOSRExitCompiler32_64.cpp:
(JSC::DFG::OSRExitCompiler::compileExit):
* dfg/DFGOSRExitCompiler64.cpp:
(JSC::DFG::OSRExitCompiler::compileExit):
* dfg/DFGOperations.cpp:
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileGetIndexedPropertyStorage):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* runtime/Options.cpp:
(Options):
(JSC::Options::initializeOptions):
* runtime/Options.h:
(Options):

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

12 years agoBuild fix for !ENABLE(CSS_FILTERS) && ASSERT_DISABLED after r109953.
paroga@webkit.org [Sun, 8 Apr 2012 18:35:53 +0000 (18:35 +0000)]
Build fix for !ENABLE(CSS_FILTERS) && ASSERT_DISABLED after r109953.

* platform/graphics/ca/GraphicsLayerCA.cpp:

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

12 years ago2012-04-07 Andrew Scherkus <scherkus@chromium.org>
scherkus@chromium.org [Sun, 8 Apr 2012 03:45:55 +0000 (03:45 +0000)]
2012-04-07  Andrew Scherkus  <scherkus@chromium.org>

        [Chromium] Unreviewed, checking in baselines for video-frame-size-change.html.

        * platform/chromium-linux/platform/chromium/compositing/video-frame-size-change-expected.png: Added.
        * platform/chromium-linux/platform/chromium/media/video-frame-size-change-expected.png: Added.
        * platform/chromium-mac-leopard/platform/chromium/compositing/video-frame-size-change-expected.png: Added.
        * platform/chromium-mac-leopard/platform/chromium/media/video-frame-size-change-expected.png: Added.
        * platform/chromium-mac-snowleopard/platform/chromium/compositing/video-frame-size-change-expected.png: Added.
        * platform/chromium-mac-snowleopard/platform/chromium/media/video-frame-size-change-expected.png: Added.
        * platform/chromium-mac/platform/chromium/compositing/video-frame-size-change-expected.png: Added.
        * platform/chromium-mac/platform/chromium/compositing/video-frame-size-change-expected.txt: Added.
        * platform/chromium-mac/platform/chromium/media/video-frame-size-change-expected.png: Added.
        * platform/chromium-mac/platform/chromium/media/video-frame-size-change-expected.txt: Added.
        * platform/chromium-win/platform/chromium/compositing/video-frame-size-change-expected.png: Added.
        * platform/chromium-win/platform/chromium/compositing/video-frame-size-change-expected.txt: Added.
        * platform/chromium-win/platform/chromium/media/video-frame-size-change-expected.png: Added.
        * platform/chromium-win/platform/chromium/media/video-frame-size-change-expected.txt: Added.
        * platform/chromium/test_expectations.txt:

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

12 years agoAdded fast/canvas/webgl/array-message-passing.html to skipped tests on mac.
jonlee@apple.com [Sat, 7 Apr 2012 18:47:20 +0000 (18:47 +0000)]
Added fast/canvas/webgl/array-message-passing.html to skipped tests on mac.
Tracked by https://bugs.webkit.org/show_bug.cgi?id=83427

* platform/mac/Skipped:

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

12 years ago[CMake] Cleanup WTF include directories
paroga@webkit.org [Sat, 7 Apr 2012 17:14:40 +0000 (17:14 +0000)]
[CMake] Cleanup WTF include directories
https://bugs.webkit.org/show_bug.cgi?id=82716

Reviewed by Eric Seidel.

Source/WebCore:

* CMakeLists.txt:

Source/WebKit:

* CMakeLists.txt:

Source/WebKit2:

* CMakeLists.txt:

Tools:

* DumpRenderTree/efl/CMakeLists.txt:
* WinCELauncher/CMakeLists.txt:

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

12 years ago[BlackBerry] Add Battery Status API support
rwlbuis@webkit.org [Sat, 7 Apr 2012 15:30:43 +0000 (15:30 +0000)]
[BlackBerry] Add Battery Status API support
https://bugs.webkit.org/show_bug.cgi?id=82615

Reviewed by George Staikos.

.:

Enable BATTERY_STATUS.

* Source/cmake/OptionsBlackBerry.cmake:

Source/WebKit:

Add BatteryClientBlackBerry.cpp to the build.

* PlatformBlackBerry.cmake:

Source/WebKit/blackberry:

Add client implementation for Battery API.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::init):  initialize BatteryClient.
* WebCoreSupport/BatteryClientBlackBerry.cpp: Added.
(WebCore):
(WebCore::BatteryClientBlackBerry::BatteryClientBlackBerry):
(WebCore::BatteryClientBlackBerry::setController):
(WebCore::BatteryClientBlackBerry::startUpdating):
(WebCore::BatteryClientBlackBerry::stopUpdating):
(WebCore::BatteryClientBlackBerry::batteryControllerDestroyed):
(WebCore::BatteryClientBlackBerry::onLevelChange):
(WebCore::BatteryClientBlackBerry::onChargingChange):
(WebCore::BatteryClientBlackBerry::onChargingTimeChange):
(WebCore::BatteryClientBlackBerry::onDischargingTimeChange):
* WebCoreSupport/BatteryClientBlackBerry.h: Added.
(WebCore):
(BatteryClientBlackBerry):
(WebCore::BatteryClientBlackBerry::~BatteryClientBlackBerry):

Tools:

Enable BATTERY_STATUS.

* Scripts/build-webkit:

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

12 years agoRemove dead code in SVGCSSParser
rwlbuis@webkit.org [Sat, 7 Apr 2012 14:31:52 +0000 (14:31 +0000)]
Remove dead code in SVGCSSParser
https://bugs.webkit.org/show_bug.cgi?id=83404

Reviewed by Nikolas Zimmermann.

Source/WebCore:

Remove code that was there to create a SVGColor representation for color, but was never reached. Since
SVGColor is deprecated now (also see bug 15012), this code has lost any potential. Should SVGColor come
back in SVG2 we can revisit this.

Add a test to confirm for SVG we follow the CSS3 handling of color="currentColor". This is something the
removed code never dealt with, but the existing code in CSSParser.cpp handles, make sure we stick to this
behaviour in the future using this test.

Test: svg/custom/currentColor-on-color.html

* css/SVGCSSParser.cpp:
(WebCore::CSSParser::parseSVGValue):

LayoutTests:

Test that we support color="currentColor" in SVG. This follows from the CSS3 spec, see
http://www.w3.org/TR/css3-color/#currentcolor. This matches FF behaviour.

* svg/custom/currentColor-on-color-expected.txt: Added.
* svg/custom/currentColor-on-color.html: Added.
* svg/custom/script-tests/currentColor-on-color.js: Added.

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

12 years ago[Qt] Unreviewed Easter gardening, skip new failing tests to paint the bots green.
ossy@webkit.org [Sat, 7 Apr 2012 13:13:55 +0000 (13:13 +0000)]
[Qt] Unreviewed Easter gardening, skip new failing tests to paint the bots green.

* platform/qt/Skipped:

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

12 years ago2012-04-07 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Sat, 7 Apr 2012 08:21:18 +0000 (08:21 +0000)]
2012-04-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Rebaseline three results on Lion, so my baseline passes with tolerance 0 again.

        * platform/mac/svg/W3C-SVG-1.1/animate-elem-30-t-expected.png: Images have wrong colorspace in those results.
        * platform/mac/svg/W3C-SVG-1.1/animate-elem-36-t-expected.png: Ditto.
        * platform/mac/svg/carto.net/selectionlist-expected.png: Ditto.

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

12 years ago2012-04-07 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Sat, 7 Apr 2012 08:09:47 +0000 (08:09 +0000)]
2012-04-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        FrameData constructor zeroes all fields, causing ImageOrientation to be 0
        https://bugs.webkit.org/show_bug.cgi?id=83416

        Inofficially rubber-stamped by Tim Horton.

        Lots of svg/as-image/ crash on debug builds. FrameData is used in a Vector and currently
        special VectorTraits force it to be initialized with memset(), nulling all members, instead
        of properly initializing them causing the ImageOrientation bug. To be able to remove the
        SimpleClassVectorTraits specialization, we have to allow FrameData to be copied.

        * platform/graphics/BitmapImage.h:

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

12 years ago2012-04-07 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Sat, 7 Apr 2012 07:38:48 +0000 (07:38 +0000)]
2012-04-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        Work around an entity parsing bug in libxml2 2.7.3 (supplied with Lion) and unskip tests
        https://bugs.webkit.org/show_bug.cgi?id=82577

        Reviewed by Filip Pizlo.

        Unskip several tests on Lion, now that the libxml2 bug doesn't affect us anymore.

        * platform/mac-lion/Skipped:
        * platform/mac/svg/W3C-SVG-1.1-SE/types-dom-01-b-expected.png:
        * platform/mac/svg/W3C-SVG-1.1-SE/types-dom-01-b-expected.txt:
        * platform/mac/svg/W3C-SVG-1.1/coords-viewattr-01-b-expected.png:
        * platform/mac/svg/W3C-SVG-1.1/coords-viewattr-01-b-expected.txt:
        * platform/mac/svg/W3C-SVG-1.1/coords-viewattr-02-b-expected.png:
        * platform/mac/svg/W3C-SVG-1.1/coords-viewattr-02-b-expected.txt:
        * platform/mac/svg/custom/preserve-aspect-ratio-syntax-expected.png:
        * platform/mac/svg/custom/preserve-aspect-ratio-syntax-expected.txt:
        * platform/mac/svg/custom/viewbox-syntax-expected.png:
        * platform/mac/svg/custom/viewbox-syntax-expected.txt:
        * platform/mac/svg/zoom/page/zoom-coords-viewattr-01-b-expected.png:
        * platform/mac/svg/zoom/page/zoom-coords-viewattr-01-b-expected.txt:
        * platform/mac/svg/zoom/text/zoom-coords-viewattr-01-b-expected.png:
        * platform/mac/svg/zoom/text/zoom-coords-viewattr-01-b-expected.txt:

2012-04-07  Nikolas Zimmermann  <nzimmermann@rim.com>

        Work around an entity parsing bug in libxml2 2.7.3 (supplied with Lion) and unskip tests
        https://bugs.webkit.org/show_bug.cgi?id=82577

        Reviewed by Filip Pizlo.

        Work-around entity expansion bug that affects several SVG tests on Lion.

        Sample test document which is currently broken:
        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd" [
        <!ENTITY Smile "<rect x='.5' y='.5' width='29' height='39' fill='black' stroke='red'/>">
        ]>

        <svg xmlns="http://www.w3.org/2000/svg">&Smile;</svg>

        The expanded rect carries no namespace, thus an Element will be created for it, instead of a SVGRectElement.
        libxml2 2.7.4 fixed this bug (https://bugzilla.gnome.org/show_bug.cgi?id=502960) in 2009 already, but Lion
        still ships with 2.7.3, so we need to find a work-around for the problem. It works like this:
        - When an entity is requested (getEntityHandler) determine whether the entity is being declared (while the <!ENTITY.. parses)
          or wheter its references (when the &Smile; is parsed). If its referenced, record the current depth of the libxml2 parser.
        - When startElementNs is called while we're expanding entities, be sure to transfer the namespace of the parent node
          to the new node, but only do this if the current depth() is greater than the depth() at the time where entity expansion started.
          This way we only apply our workaround for elements inside entities, that get expanded at the insertion point.
        - When endElementNs is called, and our current depth() is less than our equal to the depth() where entity expansion started,
          clear the recorded detph(), and stop executing the workaround.

        It requires storing an extra integer & boolean in XMLDocumentParser, which is only used for this work-around.

        * xml/parser/XMLDocumentParser.h:
        (XMLDocumentParser):
        (WebCore::XMLDocumentParser::isParsingEntityDeclaration):
        (WebCore::XMLDocumentParser::setIsParsingEntityDeclaration):
        (WebCore::XMLDocumentParser::depthTriggeringEntityExpansion):
        (WebCore::XMLDocumentParser::setDepthTriggeringEntityExpansion):
        * xml/parser/XMLDocumentParserLibxml2.cpp:
        (WebCore::XMLDocumentParser::XMLDocumentParser):
        (WebCore::hackAroundLibXMLEntityParsingBug):
        (WebCore::XMLDocumentParser::startElementNs):
        (WebCore::XMLDocumentParser::endElementNs):
        (WebCore::entityDeclarationHandler):
        (WebCore::getEntityHandler):
        (WebCore::XMLDocumentParser::initializeParserContext):

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

12 years agoVersioning.
mrowe@apple.com [Sat, 7 Apr 2012 05:47:04 +0000 (05:47 +0000)]
Versioning.

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

12 years agoUnreviewed, rolling out r113526.
commit-queue@webkit.org [Sat, 7 Apr 2012 03:28:38 +0000 (03:28 +0000)]
Unreviewed, rolling out r113526.
http://trac.webkit.org/changeset/113526
https://bugs.webkit.org/show_bug.cgi?id=83417

speculative rollout for broken chrome browser_test (Requested
by simonjam on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-04-06

* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::stopLoading):
(WebCore::DocumentLoader::finishedLoading):
(WebCore::DocumentLoader::setupForReplaceByMIMEType):
(WebCore):
(WebCore::DocumentLoader::setParsedArchiveData):
(WebCore::DocumentLoader::scheduleArchiveLoad):
(WebCore::DocumentLoader::documentURL):
* loader/DocumentLoader.h:
(DocumentLoader):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::receivedFirstData):
(WebCore::FrameLoader::loadArchive):
(WebCore::FrameLoader::stopAllLoaders):
(WebCore::FrameLoader::finishedLoadingDocument):
(WebCore):
* loader/FrameLoader.h:
(FrameLoader):
(WebCore::FrameLoader::archive):

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

12 years ago[chromium] Avoid deleting impl tree when becoming invisible
commit-queue@webkit.org [Sat, 7 Apr 2012 02:13:14 +0000 (02:13 +0000)]
[chromium] Avoid deleting impl tree when becoming invisible
https://bugs.webkit.org/show_bug.cgi?id=83396

Patch by James Robinson <jamesr@chromium.org> on 2012-04-06
Reviewed by Adrienne Walker.

This bit of code in CCLayerTreeHost::didBecomeInvisible..() was an attempt to drop resources when becoming
invisible. However, it's fairly confused - we drop textures via TextureManagers when going invisible and
CCLayerImpl destructors can't delete non-managed resources since they do not have access to a context - so this
code was never actually freeing up GPU resources. Having a sometimes-null CCLayerImpl tree when we still have a
valid LayerChromium tree has lead to various tricky bugs.

No new tests since this code wasn't doing anything useful in the first place.

* platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
(WebCore::CCLayerTreeHost::didBecomeInvisibleOnImplThread):

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

12 years agoLocalFileSystem::initializeLocalFileSystem should be static
leo.yang@torchmobile.com.cn [Sat, 7 Apr 2012 02:06:26 +0000 (02:06 +0000)]
LocalFileSystem::initializeLocalFileSystem should be static
https://bugs.webkit.org/show_bug.cgi?id=83356

Reviewed by Rob Buis.

LocalFileSystem::initializeLocalFileSystem should be static because
static LocalFileSystem::localFileSystem() requires initializeLocalFileSystem()
is called before it gets called.

No functionalities changed, no new tests.

* Modules/filesystem/LocalFileSystem.h:
(LocalFileSystem):

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

12 years ago2012-04-06 Andrew Scherkus <scherkus@chromium.org>
scherkus@chromium.org [Sat, 7 Apr 2012 02:04:32 +0000 (02:04 +0000)]
2012-04-06  Andrew Scherkus  <scherkus@chromium.org>

        [chromium] Add layout tests that exercise rendering path for videos that have changing resolutions.
        https://bugs.webkit.org/show_bug.cgi?id=83383

        Reviewed by James Robinson.

        * platform/chromium/compositing/video-frame-size-change.html: Added.
        * platform/chromium/media/video-frame-size-change.html: Changed from dumpAsText() to pixel test

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

12 years agoclone baselines from platform/win to platform/chromium-win
dpranke@chromium.org [Sat, 7 Apr 2012 02:02:48 +0000 (02:02 +0000)]
clone baselines from platform/win to platform/chromium-win
https://bugs.webkit.org/show_bug.cgi?id=83394

Unreviewed, baselines update.

Removes a bunch of "generic" baselines that were mistakenly
cloned in r113509. I forgot to filter out the baselines that
were for win-specific tests, as opposed to win-specific
baselines for generic tests.

* platform/chromium-win/accessibility/detached-object-notification-crash-expected.txt: Removed.
* platform/chromium-win/accessibility/document-enabled-state-expected.txt: Removed.
* platform/chromium-win/accessibility/document-role-expected.txt: Removed.
* platform/chromium-win/accessibility/focus-events-expected.txt: Removed.
* platform/chromium-win/accessibility/heading-elements-expected.txt: Removed.
* platform/chromium-win/accessibility/img-alt-attribute-expected.txt: Removed.
* platform/chromium-win/accessibility/linked-elements-expected.txt: Removed.
* platform/chromium-win/accessibility/list-item-role-expected.txt: Removed.
* platform/chromium-win/accessibility/list-marker-role-expected.txt: Removed.
* platform/chromium-win/accessibility/list-role-expected.txt: Removed.
* platform/chromium-win/accessibility/multiple-select-element-role-expected.txt: Removed.
* platform/chromium-win/accessibility/option-element-position-and-size-expected.txt: Removed.
* platform/chromium-win/accessibility/option-element-selection-and-focus-events-expected.txt: Removed.
* platform/chromium-win/accessibility/parent-element-expected.txt: Removed.
* platform/chromium-win/accessibility/scroll-to-anchor-expected.txt: Removed.
* platform/chromium-win/accessibility/select-element-role-expected.txt: Removed.
* platform/chromium-win/accessibility/select-element-valuechange-event-expected.txt: Removed.
* platform/chromium-win/accessibility/selection-and-focus-expected.txt: Removed.
* platform/chromium-win/accessibility/single-select-children-changed-expected.txt: Removed.
* platform/chromium-win/accessibility/single-select-children-expected.txt: Removed.
* platform/chromium-win/accessibility/text-role-expected.txt: Removed.
* platform/chromium-win/editing/selection/doubleclick-should-not-expand-across-lines-expected.txt: Removed.
* platform/chromium-win/editing/selection/shift-page-up-down-expected.txt: Removed.
* platform/chromium-win/fast/events/alt-numpad-expected.txt: Removed.
* platform/chromium-win/fast/events/alt-space-scroll-expected.txt: Removed.
* platform/chromium-win/fast/events/context-click-events-expected.txt: Removed.
* platform/chromium-win/fast/events/double-dead-char-expected.txt: Removed.
* platform/chromium-win/fast/events/keyLocation-numpad-expected.txt: Removed.
* platform/chromium-win/fast/events/panScroll-correct-direction-expected.txt: Removed.
* platform/chromium-win/fast/events/panScroll-event-fired-expected.txt: Removed.
* platform/chromium-win/fast/events/panScroll-image-no-scroll-expected.txt: Removed.
* platform/chromium-win/fast/events/panScroll-imageMap-href-no-scroll-expected.txt: Removed.
* platform/chromium-win/fast/events/panScroll-imageMap-noHref-scroll-expected.txt: Removed.
* platform/chromium-win/fast/events/panScroll-nested-divs-expected.txt: Removed.
* platform/chromium-win/fast/events/panScroll-no-iframe-jump-expected.txt: Removed.
* platform/chromium-win/fast/events/panScroll-preventDefault-expected.txt: Removed.
* platform/chromium-win/fast/text/uniscribe-item-boundary-crash-expected.txt: Removed.
* platform/chromium-win/fast/text/uniscribe-missing-glyph-expected.txt: Removed.
* platform/chromium-win/inverted-colors/non-composited-expected.png: Removed.
* platform/chromium-win/inverted-colors/non-composited-expected.txt: Removed.
* platform/chromium-win/platform/win/plugins/draws-gradient-expected.png: Removed.
* platform/chromium-win/platform/win/plugins/draws-gradient-expected.txt: Removed.
* platform/chromium-win/plugins/call-javascript-that-destroys-plugin-expected.txt: Removed.
* platform/chromium-win/plugins/get-value-netscape-window-expected.txt: Removed.
* platform/chromium-win/plugins/iframe-inside-overflow-expected.txt: Removed.
* platform/chromium-win/plugins/npn-invalidate-rect-invalidates-window-expected.txt: Removed.
* platform/chromium-win/plugins/visibility-hidden-expected.png: Removed.
* platform/chromium-win/plugins/visibility-hidden-expected.txt: Removed.
* platform/chromium-win/plugins/window-geometry-initialized-before-set-window-expected.txt: Removed.
* platform/chromium-win/plugins/window-region-is-set-to-clip-rect-expected.txt: Removed.
* platform/chromium-win/plugins/windowless-paint-rect-coordinates-expected.txt: Removed.

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

12 years ago[Chromium] Unreviewed gardening.
simonjam@chromium.org [Sat, 7 Apr 2012 01:54:52 +0000 (01:54 +0000)]
[Chromium] Unreviewed gardening.

* platform/chromium-mac/svg/W3C-SVG-1.1/filters-composite-02-b-expected.txt: Added.

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

12 years ago[GTK] Accelerated compositing is broken after recent TextureMapper reorganizations
commit-queue@webkit.org [Sat, 7 Apr 2012 01:25:53 +0000 (01:25 +0000)]
[GTK] Accelerated compositing is broken after recent TextureMapper reorganizations
https://bugs.webkit.org/show_bug.cgi?id=83393

Patch by Martin Robinson <mrobinson@igalia.com> on 2012-04-06
Reviewed by Noam Rosenthal.

Source/WebCore:

No new tests. This will be covered by existing accelerated compositing tests
once the implementation is complete.

The GTK+ implementation doesn't clip currently, so hold off enabling the
scissor test until necessary.

* platform/graphics/texmap/TextureMapperGL.cpp:
(WebCore::TextureMapperGL::beginPainting): Do not enable the scissor test.
(WebCore::TextureMapperGL::beginScissorClip): Enable the scissor test once
we know for sure we will be using scissored clipping.

Source/WebKit/gtk:

Ensure that the layer tree is synced when the root layer is resized.

* WebCoreSupport/AcceleratedCompositingContextGL.cpp:
(WebKit::AcceleratedCompositingContext::resizeRootLayer): Ensure that the layer
tree is synced when the root layer resizes and remove a call to recomposite
the tree, as it happens anyway.

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

12 years agoRemove obsolete parts of <datalist> support code
keishi@webkit.org [Sat, 7 Apr 2012 01:17:19 +0000 (01:17 +0000)]
Remove obsolete parts of <datalist> support code
https://bugs.webkit.org/show_bug.cgi?id=83117

Source/WebCore:

Removing HTMLInputElement::selectedOption because it was removed from the specification.
Removing -webkit-appearance:list-button and -webkit-input-list-button pseudo selector
related code because we decided not to use it.

Reviewed by Kent Tamura.

* WebCore.order:
* css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
* css/CSSSelector.cpp:
(WebCore::CSSSelector::pseudoId):
(WebCore::nameToPseudoTypeMap):
(WebCore::CSSSelector::extractPseudoType):
* css/CSSSelector.h:
* css/CSSValueKeywords.in:
* css/html.css:
(datalist):
* html/HTMLInputElement.cpp:
* html/HTMLInputElement.h:
(HTMLInputElement):
* html/HTMLInputElement.idl:
* inspector/front-end/SourceCSSTokenizer.js:
(WebInspector.SourceCSSTokenizer):
* inspector/front-end/SourceCSSTokenizer.re2js:
* inspector/front-end/StylesSidebarPane.js:
* platform/ThemeTypes.h:
* platform/chromium/ThemeChromiumMac.mm:
(WebCore::setupButtonCell):
(WebCore::paintButton):
(WebCore::ThemeChromiumMac::controlSize):
(WebCore::ThemeChromiumMac::minimumControlSize):
(WebCore::ThemeChromiumMac::controlBorder):
(WebCore::ThemeChromiumMac::paint):
* platform/mac/ThemeMac.mm:
(WebCore::setUpButtonCell):
(WebCore::paintButton):
(WebCore::ThemeMac::controlSize):
(WebCore::ThemeMac::minimumControlSize):
(WebCore::ThemeMac::controlBorder):
(WebCore::ThemeMac::paint):
* platform/qt/RenderThemeQtMobile.cpp:
(WebCore::RenderThemeQtMobile::computeSizeBasedOnStyle):
* rendering/RenderTheme.cpp:
(WebCore::RenderTheme::adjustStyle):
(WebCore::RenderTheme::paint):
(WebCore::RenderTheme::paintBorderOnly):
(WebCore::RenderTheme::paintDecorations):
* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::adjustRepaintRect):

LayoutTests:

Removed tests for HTMLInputElement.selectedOption and -webkit-appearance:list-button.

Reviewed by Kent Tamura.

* fast/forms/datalist/input-selectedoption-expected.txt: Removed.
* fast/forms/datalist/input-selectedoption.html: Removed.
* platform/chromium-linux/fast/forms/datalist/input-selectedoption-expected.png: Removed.
* platform/chromium-mac-leopard/fast/forms/datalist/input-selectedoption-expected.png: Removed.
* platform/chromium-mac/fast/forms/datalist/input-selectedoption-expected.png: Removed.
* platform/chromium-mac/fast/forms/datalist/input-selectedoption-expected.txt: Removed.
* platform/chromium-win/fast/forms/datalist/input-selectedoption-expected.png: Removed.
* platform/chromium-win/fast/forms/datalist/input-selectedoption-expected.txt: Removed.
* platform/chromium-win/platform/mac/fast/forms/input-list-button-size-expected.png: Removed.
* platform/gtk/fast/forms/input-selectedoption-expected.txt: Removed.
* platform/mac-leopard/fast/forms/input-list-button-size-expected.png: Removed.
* platform/mac/Skipped:
* platform/mac/fast/forms/input-list-button-size-expected.png: Removed.
* platform/mac/fast/forms/input-list-button-size-expected.txt: Removed.
* platform/mac/fast/forms/input-list-button-size.html: Removed.

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

12 years agoSubscribe feature-media-reviews@c.o to Media-related changes.
fischman@chromium.org [Sat, 7 Apr 2012 01:12:53 +0000 (01:12 +0000)]
Subscribe feature-media-reviews@c.o to Media-related changes.
https://bugs.webkit.org/show_bug.cgi?id=83397

Reviewed by David Levin.

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

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

12 years agoDo not abuse ArrayStorage's m_length for testing array consistency
benjamin@webkit.org [Sat, 7 Apr 2012 01:12:09 +0000 (01:12 +0000)]
Do not abuse ArrayStorage's m_length for testing array consistency
https://bugs.webkit.org/show_bug.cgi?id=83403

Patch by Benjamin Poulain <bpoulain@apple.com> on 2012-04-06
Reviewed by Geoffrey Garen.

Array creation from a list of values is a 3 steps process:
-JSArray::tryCreateUninitialized()
-JSArray::initializeIndex() for each values
-JSArray::completeInitialization()

Previously, the attribute m_length was not set to the final size
JSArray::tryCreateUninitialized() because it was used to test the array
consistency JSArray::initializeIndex().

This caused the initialization loop using JSArray::initializeIndex() maintain
two counters:
-index of the loop
-storage->m_length++

This patch fixes this by using the index of the initialization loop for the indinces of
JSArray::initializeIndex(). For testing consistency, the variable m_initializationIndex
is introduced if CHECK_ARRAY_CONSISTENCY is defined.

The patch also fixes minor unrelated build issue when CHECK_ARRAY_CONSISTENCY is defined.

This improves the performance of JSArray creation from literals by 8%.

* runtime/JSArray.cpp:
(JSC::JSArray::tryFinishCreationUninitialized):
(JSC::JSArray::checkConsistency):
* runtime/JSArray.h:
(ArrayStorage):
(JSC::JSArray::initializeIndex):
(JSC::JSArray::completeInitialization):

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

12 years ago[chromium] Add virtual test suite for threaded compositing
enne@google.com [Sat, 7 Apr 2012 01:09:56 +0000 (01:09 +0000)]
[chromium] Add virtual test suite for threaded compositing
https://bugs.webkit.org/show_bug.cgi?id=82263

Reviewed by James Robinson.

Add compositing/visibility as a virtual test suites to test threaded
compositing with. This is a reasonable smoke test of 9 tests, none of
which have any expectations in the non-threaded case.

To fix many of the remaining tests in this virtual test suite, there
will need to be some serious refactoring to merge the conflict between
the way CCScheduler wants to draw frames and the way DRT also wants to
control things. So, in the short term, enable a few simple tests that
are known to be passing.

* Scripts/webkitpy/layout_tests/port/chromium.py:
(ChromiumPort.virtual_test_suites):

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

12 years agoAccessing the returnValue of a modal dialog should be performed directly on the globa...
oliver@apple.com [Sat, 7 Apr 2012 01:03:25 +0000 (01:03 +0000)]
Accessing the returnValue of a modal dialog should be performed directly on the global object.
https://bugs.webkit.org/show_bug.cgi?id=83414

Reviewed by Gavin Barraclough.

Presumably during the mass-devirtualising of JSObject, this deliberate use of
the GlobalObject's property lookup logic directly was replaced with a dynamic
call.  That results in the DOMWindow filtering out the lookup.  This regression
was masked by r93567.

* bindings/js/JSDOMWindowCustom.cpp:
(WebCore::DialogHandler::returnValue):

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

12 years agoBuild fix for Windows bots.
jonlee@apple.com [Sat, 7 Apr 2012 00:57:19 +0000 (00:57 +0000)]
Build fix for Windows bots.

Source/JavaScriptCore:

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: export missing symbol.

Source/WebKit2:

* win/WebKit2.def: Add missing export symbol.

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

12 years agoMove Archive processing to DocumentLoader, instead of FrameLoader.
japhet@chromium.org [Sat, 7 Apr 2012 00:43:17 +0000 (00:43 +0000)]
Move Archive processing to DocumentLoader, instead of FrameLoader.
https://bugs.webkit.org/show_bug.cgi?id=83055

Reviewed by Adam Barth.

No new tests, no functionality change intended.

* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::finishedLoading):
(WebCore::DocumentLoader::setupForReplaceByMIMEType):
(WebCore::DocumentLoader::maybeCreateArchive): Renamed from
    FrameLoader::finishedLoadingDocument(). Returns true if an archive
    was created.
(WebCore::DocumentLoader::setArchive):
(WebCore::DocumentLoader::scheduleArchiveLoad):
(WebCore::DocumentLoader::documentURL): Add a check for whether an archive url
    should be returned, so that we don't need special handling in Document and
    FrameLoader for overriding the document url later.
* loader/DocumentLoader.h:
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::receivedFirstData): Remove archive special cases, since
    DocumentLoader::documentURL() will return the right thing for legacy archives
    and maybeCreateArchive() will override the base url for mhtml.
(WebCore::FrameLoader::loadArchive):
* loader/FrameLoader.h:

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

12 years ago[BlackBerry] Build fix to match the latest WebCore change
charles.wei@torchmobile.com.cn [Sat, 7 Apr 2012 00:33:16 +0000 (00:33 +0000)]
[BlackBerry] Build fix to match the latest WebCore change
https://bugs.webkit.org/show_bug.cgi?id=83358

Reviewed by Rob Buis.

Source/WebCore:

Update the BlackBerry cmake file to reflect the fact that:
1.VDMXParser.cpp moved from graphics/skia to graphics/chromium.
2.geolocation moved to Modules/geolocation
3.websockets moved to Modules/websockets

* PlatformBlackBerry.cmake:

Source/WebKit:

* PlatformBlackBerry.cmake:

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

12 years ago[BlackBerry] Restore some code which was deleted by accident.
charles.wei@torchmobile.com.cn [Sat, 7 Apr 2012 00:30:36 +0000 (00:30 +0000)]
[BlackBerry] Restore some code which was deleted by accident.
https://bugs.webkit.org/show_bug.cgi?id=83357

Reviewed by Rob Buis.

No new tests, just BlackBerry build fix.

* platform/network/blackberry/ResourceRequest.h:
(ResourceRequest):
* platform/network/blackberry/ResourceRequestBlackBerry.cpp:
(WebCore):
(WebCore::mimeTypeRequestTypeMap):
(WebCore::ResourceRequest::targetTypeFromMimeType):

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

12 years agoREGRESSION: Cannot write a word with Korean double consonant
hbono@chromium.org [Sat, 7 Apr 2012 00:14:02 +0000 (00:14 +0000)]
REGRESSION: Cannot write a word with Korean double consonant
https://bugs.webkit.org/show_bug.cgi?id=81186

Reviewed by Dan Bernstein.

WebKit change r103859 posts fake mouse-move events when the keyboard status is
changed. Unfortunately, these mouse events go to input methods and confuse a
Korean input method. This change directly calls handleMouseEvent() instead of
-mouseMoved: to prevent sending these fake events to input methods.

* UIProcess/API/mac/WKView.mm:
(-[WKView _postFakeMouseMovedEventForFlagsChangedEvent:]):

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

12 years ago[Chromium] Unreviewed gardening.
simonjam@chromium.org [Sat, 7 Apr 2012 00:13:19 +0000 (00:13 +0000)]
[Chromium] Unreviewed gardening.

* platform/chromium-linux/fast/text/atsui-partial-selection-expected.png: Renamed from LayoutTests/platform/chromium-linux-x86/fast/text/atsui-partial-selection-expected.png.
* platform/chromium-mac-snowleopard/fullscreen/full-screen-stacking-context-expected.png:
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1/pservers-grad-08-b-expected.txt: Removed.
* platform/chromium-mac-snowleopard/svg/text/non-bmp-positioning-lists-expected.txt: Removed.
* platform/chromium-mac/fullscreen/full-screen-stacking-context-expected.png:
* platform/chromium-mac/svg/custom/shape-rendering-expected.txt: Added.
* platform/chromium/test_expectations.txt:

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

12 years agoUnreviewed gardening.
jamesr@google.com [Sat, 7 Apr 2012 00:06:02 +0000 (00:06 +0000)]
Unreviewed gardening.

Explicitly position canvases for these tests to avoid cross-platform differences.

* fast/canvas/webgl/webgl-composite-modes-expected.png:
* fast/canvas/webgl/webgl-composite-modes-repaint-expected.png:
* fast/canvas/webgl/webgl-composite-modes-repaint.html:
* fast/canvas/webgl/webgl-composite-modes.html:

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

12 years agoFix bug in ContainerNode::getRect with scale transforms
commit-queue@webkit.org [Sat, 7 Apr 2012 00:03:28 +0000 (00:03 +0000)]
Fix bug in ContainerNode::getRect with scale transforms
https://bugs.webkit.org/show_bug.cgi?id=83385

Patch by Alexandre Elias <aelias@google.com> on 2012-04-06
Reviewed by Simon Fraser.

The bottom-right corner calculation for non-inline and replaced
elements in ContainerNode::getRect was incorrect in the presence of
scaling, because the untransformed element size was added after the
transformation is applied.  The rest of the calculations are careful
to always apply the transformation as the last step, but this had been
forgotten in this codepath.  The fix is just to make sure the size is
included in the localToAbsolute call.

One bug caused by this was that a scaled element would be cut off
when scrollIntoView(false) is called to scroll its parent container
to make it bottom-visible.

New layout test case in fast/transforms/scrollIntoView-transformed.html

Source/WebCore:

* dom/ContainerNode.cpp:
(WebCore::ContainerNode::getLowerRightCorner):

LayoutTests:

* fast/transforms/scrollIntoView-transformed-expected.txt:
* fast/transforms/scrollIntoView-transformed.html:

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

12 years agom_shouldRespectImageOrientation is used uninitialized
timothy_horton@apple.com [Fri, 6 Apr 2012 23:41:35 +0000 (23:41 +0000)]
m_shouldRespectImageOrientation is used uninitialized
https://bugs.webkit.org/show_bug.cgi?id=83410

Reviewed by Simon Fraser.

Initialize Settings's m_shouldRespectImageOrientation to false.

* page/Settings.cpp:
(WebCore::Settings::Settings):

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

12 years ago [Mac] Adopt a different method of telling AppKit when inline input isn't...
ap@apple.com [Fri, 6 Apr 2012 23:26:09 +0000 (23:26 +0000)]
    [Mac] Adopt a different method of telling AppKit when inline input isn't supported
        https://bugs.webkit.org/show_bug.cgi?id=83408
        <rdar://problem/9205734>

        Reviewed by Adele Peterson.

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

12 years ago[chromium] Clear values in combinedClear path not respected in WebGLRenderingContext...
jamesr@google.com [Fri, 6 Apr 2012 23:09:41 +0000 (23:09 +0000)]
[chromium] Clear values in combinedClear path not respected in WebGLRenderingContext::clearIfComposited()
https://bugs.webkit.org/show_bug.cgi?id=83407

Source/WebCore:

Reviewed by Kenneth Russell.

When doing a combined clear in the drawing buffer path, we have to use the user specified values for the clear
color / mask / depth and not all 0s.

Covered by slight modification to fast/canvas/webgl/canvas-test.html

* html/canvas/WebGLRenderingContext.cpp:
(WebCore):
(WebCore::WebGLRenderingContext::clearIfComposited):
* platform/graphics/gpu/DrawingBuffer.cpp:
(WebCore::DrawingBuffer::clearFramebuffers):
(WebCore::DrawingBuffer::reset):
* platform/graphics/gpu/DrawingBuffer.h:

LayoutTests:

Force a composite on each tick to more closely match the test's behavior in an actual browser.

* fast/canvas/webgl/canvas-test.html:

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

12 years ago[chromium] Unreviewed gardening.
tony@chromium.org [Fri, 6 Apr 2012 23:02:09 +0000 (23:02 +0000)]
[chromium] Unreviewed gardening.

This test is passing on Chromium Linux, but we have a different expectation
checked in for Chromium Win which uses lighttpd.

* platform/chromium-linux/http/tests/xmlhttprequest/cache-override-expected.txt: Added.
* platform/chromium/test_expectations.txt:

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

12 years ago[chromium] merge redundant conditions in WebCore.gyp
tony@chromium.org [Fri, 6 Apr 2012 22:57:27 +0000 (22:57 +0000)]
[chromium] merge redundant conditions in WebCore.gyp
https://bugs.webkit.org/show_bug.cgi?id=83319

Reviewed by Adam Barth.

There were duplicate conditions in some of the targets (e.g., 2
OS=="win" sections) so I merged them and if possible, used an else
block of an existing condition.

No new tests, just refactoring the build file.

* WebCore.gyp/WebCore.gyp:

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

12 years agoRename paintingGoesToWindow() to paintsIntoWindow()
simon.fraser@apple.com [Fri, 6 Apr 2012 22:55:45 +0000 (22:55 +0000)]
Rename paintingGoesToWindow() to paintsIntoWindow()
https://bugs.webkit.org/show_bug.cgi?id=83406

Reviewed by Dirk Schulze.

Rename paintingGoesToWindow() to paintsIntoWindow() to be consistent
with some future refactoring.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::setFilterBackendNeedsRepaintingInRect):
(WebCore::RenderLayer::paintLayer):
(WebCore::RenderLayer::paintsWithTransform):
(WebCore::RenderLayer::setBackingNeedsRepaint):
(WebCore::RenderLayer::setBackingNeedsRepaintInRect):
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::containsPaintedContent):
(WebCore::RenderLayerBacking::paintsIntoWindow):
(WebCore::RenderLayerBacking::paintIntoLayer):
* rendering/RenderLayerBacking.h:
(RenderLayerBacking):
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::rootLayerAttachmentChanged):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::repaintUsingContainer):
* rendering/RenderView.cpp:
(WebCore::RenderView::paintBoxDecorations):

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

12 years agoRoll out change to HTMLParserIdioms.cpp from 82857
simonjam@chromium.org [Fri, 6 Apr 2012 22:53:20 +0000 (22:53 +0000)]
Roll out change to HTMLParserIdioms.cpp from 82857
https://bugs.webkit.org/show_bug.cgi?id=83402

Change 82857 causes a DCHECK on fast/forms/number/ValidityState-typeMismatch-number.html

Darin suggested we roll out this file here: https://bugs.webkit.org/show_bug.cgi?id=82857#c20

Unreviewed, rolling out change that broke tests.

* html/parser/HTMLParserIdioms.cpp:
(WebCore::parseToDoubleForNumberType):

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

12 years agoRoll Chromium DEPS
fischman@chromium.org [Fri, 6 Apr 2012 22:49:11 +0000 (22:49 +0000)]
Roll Chromium DEPS
https://bugs.webkit.org/show_bug.cgi?id=83389

Unreviewed, just a DEPS roll (130110:131183)

* DEPS:

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

12 years agoAllow site authors to override autofilled fields' colors.
isherman@chromium.org [Fri, 6 Apr 2012 22:48:44 +0000 (22:48 +0000)]
Allow site authors to override autofilled fields' colors.
https://bugs.webkit.org/show_bug.cgi?id=66032
http://code.google.com/p/chromium/issues/detail?id=46543

Reviewed by Simon Fraser.

Source/WebCore:

* css/html.css:
(input:-webkit-autofill): Remove !important declarations.

LayoutTests:

* fast/forms/input-autofilled-expected.txt:
* fast/forms/input-autofilled.html:

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

12 years agoProvide Obj-C private API to simplify markup.
enrica@apple.com [Fri, 6 Apr 2012 22:44:02 +0000 (22:44 +0000)]
Provide Obj-C private API to simplify markup.
https://bugs.webkit.org/show_bug.cgi?id=83334
<rdar://problem/11033861>

Reviewed by Sam Weinig.

Source/WebCore:

Added test in TestWebKitAPI

* WebCore.exp.in:
* editing/Editor.cpp:
(WebCore::Editor::simplifyMarkup): Exposing the new command through the editor.
* editing/Editor.h:

Source/WebKit/mac:

* WebView/WebView.mm:
(-[WebView _simplifyMarkup:endNode:]): Added.
* WebView/WebViewPrivate.h:

Tools:

* TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* TestWebKitAPI/Tests/mac/SimplifyMarkup.mm: Added.
(-[SimplifyMarkupTest webView:didFinishLoadForFrame:]):
* TestWebKitAPI/Tests/mac/verboseMarkup.html: Added.

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

12 years agoclone baselines from platform/win to platform/chromium-win
dpranke@chromium.org [Fri, 6 Apr 2012 22:43:54 +0000 (22:43 +0000)]
clone baselines from platform/win to platform/chromium-win
https://bugs.webkit.org/show_bug.cgi?83394

Unreviewed, expectations change.

Copies the win baselines that chromium depends on into a
chromium dir, so that we can remove the dependency on win down
the road.

* platform/chromium-win/accessibility/aria-fallback-roles-expected.txt: Added.
* platform/chromium-win/accessibility/detached-object-notification-crash-expected.txt: Added.
* platform/chromium-win/accessibility/document-enabled-state-expected.txt: Added.
* platform/chromium-win/accessibility/document-role-expected.txt: Added.
* platform/chromium-win/accessibility/focus-events-expected.txt: Added.
* platform/chromium-win/accessibility/heading-elements-expected.txt: Added.
* platform/chromium-win/accessibility/img-alt-attribute-expected.txt: Added.
* platform/chromium-win/accessibility/linked-elements-expected.txt: Added.
* platform/chromium-win/accessibility/list-item-role-expected.txt: Added.
* platform/chromium-win/accessibility/list-marker-role-expected.txt: Added.
* platform/chromium-win/accessibility/list-role-expected.txt: Added.
* platform/chromium-win/accessibility/multiple-select-element-role-expected.txt: Added.
* platform/chromium-win/accessibility/option-element-position-and-size-expected.txt: Added.
* platform/chromium-win/accessibility/option-element-selection-and-focus-events-expected.txt: Added.
* platform/chromium-win/accessibility/parent-element-expected.txt: Added.
* platform/chromium-win/accessibility/scroll-to-anchor-expected.txt: Added.
* platform/chromium-win/accessibility/select-element-role-expected.txt: Added.
* platform/chromium-win/accessibility/select-element-valuechange-event-expected.txt: Added.
* platform/chromium-win/accessibility/selection-and-focus-expected.txt: Added.
* platform/chromium-win/accessibility/single-select-children-changed-expected.txt: Added.
* platform/chromium-win/accessibility/single-select-children-expected.txt: Added.
* platform/chromium-win/accessibility/text-role-expected.txt: Added.
* platform/chromium-win/compositing/plugins/composited-plugin-expected.txt: Added.
* platform/chromium-win/compositing/plugins/small-to-large-composited-plugin-expected.txt: Added.
* platform/chromium-win/editing/selection/anchor-focus2-expected.txt: Added.
* platform/chromium-win/editing/selection/anchor-focus3-expected.txt: Added.
* platform/chromium-win/editing/selection/collapse-selection-in-bidi-expected.txt: Added.
* platform/chromium-win/editing/selection/doubleclick-should-not-expand-across-lines-expected.txt: Added.
* platform/chromium-win/editing/selection/drag-text-delay-expected.txt: Added.
* platform/chromium-win/editing/selection/extend-selection-home-end-expected.txt: Added.
* platform/chromium-win/editing/selection/mixed-editability-10-expected.txt: Added.
* platform/chromium-win/editing/selection/shift-page-up-down-expected.txt: Added.
* platform/chromium-win/editing/selection/transformed-selection-rects-expected.txt: Added.
* platform/chromium-win/fast/css/zoom-body-scroll-expected.txt: Added.
* platform/chromium-win/fast/dom/Element/id-in-deletebutton-expected.txt: Added.
* platform/chromium-win/fast/dom/Window/window-properties-expected.txt: Added.
* platform/chromium-win/fast/dom/prototype-inheritance-2-expected.txt: Added.
* platform/chromium-win/fast/events/alt-numpad-expected.txt: Added.
* platform/chromium-win/fast/events/alt-space-scroll-expected.txt: Added.
* platform/chromium-win/fast/events/context-click-events-expected.txt: Added.
* platform/chromium-win/fast/events/double-dead-char-expected.txt: Added.
* platform/chromium-win/fast/events/keyLocation-numpad-expected.txt: Added.
* platform/chromium-win/fast/events/panScroll-click-hyperlink-expected.txt: Added.
* platform/chromium-win/fast/events/panScroll-correct-direction-expected.txt: Added.
* platform/chromium-win/fast/events/panScroll-event-fired-expected.txt: Added.
* platform/chromium-win/fast/events/panScroll-image-no-scroll-expected.txt: Added.
* platform/chromium-win/fast/events/panScroll-imageMap-href-no-scroll-expected.txt: Added.
* platform/chromium-win/fast/events/panScroll-imageMap-noHref-scroll-expected.txt: Added.
* platform/chromium-win/fast/events/panScroll-nested-divs-expected.txt: Added.
* platform/chromium-win/fast/events/panScroll-no-iframe-jump-expected.txt: Added.
* platform/chromium-win/fast/events/panScroll-preventDefault-expected.txt: Added.
* platform/chromium-win/fast/forms/cursor-at-editable-content-boundary-expected.txt: Added.
* platform/chromium-win/fast/forms/select-popup-pagekeys-expected.txt: Added.
* platform/chromium-win/fast/images/support-broken-image-delegate-expected.txt: Added.
* platform/chromium-win/fast/js/global-constructors-expected.txt: Added.
* platform/chromium-win/fast/loader/stateobjects/state-url-sets-links-visited-expected.txt: Added.
* platform/chromium-win/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png: Added.
* platform/chromium-win/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.txt: Added.
* platform/chromium-win/fast/replaced/table-percent-height-text-controls-expected.txt: Added.
* platform/chromium-win/fast/text/capitalize-boundaries-expected.txt: Added.
* platform/chromium-win/fast/text/emphasis-combined-text-expected.txt: Added.
* platform/chromium-win/fast/text/emphasis-expected.png: Added.
* platform/chromium-win/fast/text/emphasis-expected.txt: Added.
* platform/chromium-win/fast/text/emphasis-vertical-expected.png: Added.
* platform/chromium-win/fast/text/emphasis-vertical-expected.txt: Added.
* platform/chromium-win/fast/text/fallback-traits-fixup-expected.txt: Added.
* platform/chromium-win/fast/text/international/hindi-whitespace-expected.png: Added.
* platform/chromium-win/fast/text/international/hindi-whitespace-expected.txt: Added.
* platform/chromium-win/fast/text/international/text-combine-image-test-expected.png: Added.
* platform/chromium-win/fast/text/international/text-combine-image-test-expected.txt: Added.
* platform/chromium-win/fast/text/international/vertical-text-glyph-test-expected.png: Added.
* platform/chromium-win/fast/text/international/vertical-text-glyph-test-expected.txt: Added.
* platform/chromium-win/fast/text/international/vertical-text-metrics-test-expected.txt: Added.
* platform/chromium-win/fast/text/justify-ideograph-complex-expected.txt: Added.
* platform/chromium-win/fast/text/justify-ideograph-simple-expected.txt: Added.
* platform/chromium-win/fast/text/justify-ideograph-vertical-expected.txt: Added.
* platform/chromium-win/fast/text/uniscribe-item-boundary-crash-expected.txt: Added.
* platform/chromium-win/fast/text/uniscribe-missing-glyph-expected.txt: Added.
* platform/chromium-win/fast/writing-mode/Kusa-Makura-background-canvas-expected.png: Added.
* platform/chromium-win/fast/writing-mode/Kusa-Makura-background-canvas-expected.txt: Added.
* platform/chromium-win/fast/writing-mode/border-vertical-lr-expected.png: Added.
* platform/chromium-win/fast/writing-mode/border-vertical-lr-expected.txt: Added.
* platform/chromium-win/fast/writing-mode/japanese-lr-selection-expected.png: Added.
* platform/chromium-win/fast/writing-mode/japanese-lr-selection-expected.txt: Added.
* platform/chromium-win/fast/writing-mode/japanese-rl-selection-expected.png: Added.
* platform/chromium-win/fast/writing-mode/japanese-rl-selection-expected.txt: Added.
* platform/chromium-win/fast/writing-mode/text-orientation-basic-expected.png: Added.
* platform/chromium-win/fast/writing-mode/text-orientation-basic-expected.txt: Added.
* platform/chromium-win/fast/writing-mode/vertical-font-fallback-expected.txt: Added.
* platform/chromium-win/inverted-colors/non-composited-expected.png: Added.
* platform/chromium-win/inverted-colors/non-composited-expected.txt: Added.
* platform/chromium-win/platform/win/plugins/draws-gradient-expected.png: Added.
* platform/chromium-win/platform/win/plugins/draws-gradient-expected.txt: Added.
* platform/chromium-win/plugins/call-javascript-that-destroys-plugin-expected.txt: Added.
* platform/chromium-win/plugins/get-value-netscape-window-expected.txt: Added.
* platform/chromium-win/plugins/iframe-inside-overflow-expected.txt: Added.
* platform/chromium-win/plugins/npn-invalidate-rect-invalidates-window-expected.txt: Added.
* platform/chromium-win/plugins/npp-set-window-called-during-destruction-expected.txt: Added.
* platform/chromium-win/plugins/plugin-javascript-access-expected.txt: Added.
* platform/chromium-win/plugins/resize-from-plugin-expected.txt: Added.
* platform/chromium-win/plugins/visibility-hidden-expected.png: Added.
* platform/chromium-win/plugins/visibility-hidden-expected.txt: Added.
* platform/chromium-win/plugins/window-geometry-initialized-before-set-window-expected.txt: Added.
* platform/chromium-win/plugins/window-region-is-set-to-clip-rect-expected.txt: Added.
* platform/chromium-win/plugins/windowless-paint-rect-coordinates-expected.txt: Added.
* platform/chromium-win/printing/page-rule-in-media-query-expected.txt: Added.
* platform/chromium-win/sputnik/Conformance/11_Expressions/11.5_Multiplicative_Operators/11.5.3_Percent/S11.5.3_A4_T6-expected.txt: Added.
* platform/chromium-win/svg/zoom/page/zoom-mask-with-percentages-expected.png: Added.

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

12 years agoRenamed
ggaren@apple.com [Fri, 6 Apr 2012 22:35:55 +0000 (22:35 +0000)]
Renamed

        WeakHeap => WeakSet
        HandleHeap => HandleSet

Reviewed by Sam Weinig.

These sets do have internal allocators, but it's confusing to call them
heaps because they're sub-objects of an object called "heap".

* heap/HandleHeap.cpp: Removed.
* heap/HandleHeap.h: Removed.
* heap/HandleSet.cpp: Copied from JavaScriptCore/heap/HandleHeap.cpp.
* heap/WeakHeap.cpp: Removed.
* heap/WeakHeap.h: Removed.
* heap/WeakSet.cpp: Copied from JavaScriptCore/heap/WeakHeap.cpp.
* heap/WeakSet.h: Copied from JavaScriptCore/heap/WeakHeap.h.

Plus global rename using grep.

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

12 years agonew-run-webkit-tests: fix bugs in 'mock' drt implementation
dpranke@chromium.org [Fri, 6 Apr 2012 22:30:37 +0000 (22:30 +0000)]
new-run-webkit-tests: fix bugs in 'mock' drt implementation
https://bugs.webkit.org/show_bug.cgi?id=83341

Reviewed by Eric Seidel.

The current implementation crashed in some circumstances for
reference tests and files that were missing expected results.
This patch fixes those cases and adds more unit tests; it is a
precursor to adding unit tests each port that actually uses this
code, in order to get better coverage of the port/*
implementations.

* Scripts/webkitpy/layout_tests/port/mock_drt.py:
(parse_options):
(MockDRT.input_from_line):
(MockDRT.output_for_test):
(MockDRT.run_one_test):
(MockChromiumDRT.input_from_line):
(MockChromiumDRT.output_for_test):
(MockChromiumDRT.run_one_test):
* Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py:
(MockDRTTest.make_input_output):
(MockDRTTest.expected_output):
(MockDRTTest):
(MockDRTTest.assertTest):
(MockDRTTest.test_missing_image):
(MockDRTTest.test_missing_text):
(MockDRTTest.test_reftest_match):
(MockDRTTest.test_reftest_mismatch):
(MockChromiumDRTTest.expected_output):

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

12 years ago[chromium] Unreviewed gardening. This test is passing on chromium win and linux.
tony@chromium.org [Fri, 6 Apr 2012 22:24:49 +0000 (22:24 +0000)]
[chromium] Unreviewed gardening.  This test is passing on chromium win and linux.

* platform/chromium-linux-x86/fast/text/atsui-partial-selection-expected.png: Added.
* platform/chromium-win/fast/text/atsui-partial-selection-expected.png:
* platform/chromium/test_expectations.txt:

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

12 years agoGet rid of the useless flag PREEMPT_GEOLOCATION_PERMISSION
benjamin@webkit.org [Fri, 6 Apr 2012 22:23:32 +0000 (22:23 +0000)]
Get rid of the useless flag PREEMPT_GEOLOCATION_PERMISSION
https://bugs.webkit.org/show_bug.cgi?id=83325

Patch by Benjamin Poulain <bpoulain@apple.com> on 2012-04-06
Reviewed by Ryosuke Niwa.

Source/WebCore:

The flag WTF_USE_PREEMPT_GEOLOCATION_PERMISSION was added in r63742 but
was never disabled by anyone. Supporting this feature added complexity by
introducing two authorization scheme.

This patch removes WTF_USE_PREEMPT_GEOLOCATION_PERMISSION and the code supporting
granting the authorization after startUpdating().

* Modules/geolocation/Geolocation.cpp:
(WebCore::Geolocation::GeoNotifier::runSuccessCallback): With the simplified
authorization code, we ensure stronger constraint on GeoNotifier::runSuccessCallback().
(WebCore::Geolocation::stop):
(WebCore::Geolocation::startRequest):
(WebCore::Geolocation::clearWatch):
(WebCore::Geolocation::setIsAllowed):
(WebCore::Geolocation::positionChanged): The case (!isAllowed()) was there
to support granting the authorization for WTF_USE_PREEMPT_GEOLOCATION_PERMISSION.
(WebCore::Geolocation::handlePendingPermissionNotifiers):
* Modules/geolocation/Geolocation.h:
(Geolocation):

Source/WebKit/blackberry:

* WebCoreSupport/AboutDataUseFeatures.in:

Source/WTF:

* wtf/Platform.h: Remove the flag.

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

12 years ago[chromium] Unreviewed, rebaseline a test on Vista/Win7.
tony@chromium.org [Fri, 6 Apr 2012 22:16:08 +0000 (22:16 +0000)]
[chromium] Unreviewed, rebaseline a test on Vista/Win7.

* platform/chromium-linux/fast/encoding/invalid-UTF-8-expected.txt: Removed.
* platform/chromium-win/fast/encoding/invalid-UTF-8-expected.png:
* platform/chromium-win/fast/encoding/invalid-UTF-8-expected.txt:
* platform/chromium/test_expectations.txt:

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

12 years agoBlock cross-origin iframe scroll to fragment.
tsepez@chromium.org [Fri, 6 Apr 2012 22:15:02 +0000 (22:15 +0000)]
Block cross-origin iframe scroll to fragment.
https://bugs.webkit.org/show_bug.cgi?id=73083

Reviewed by Adam Barth.

Add a restriction similar to what FF has done for all iframes for over a
year now. Our change is less disruptive in that it only does this in the
cross-orgin case, which is where the fragment scrolling is problematic.

Source/WebCore:

Test: http/tests/navigation/anchor-frames-cross-origin.html

* dom/Document.cpp:
(WebCore::Document::canBeAccessedByEveryAncestorFrame):
(WebCore):
* dom/Document.h:
(Document):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::finishedParsing):
(WebCore::FrameLoader::loadInSameDocument):
(WebCore::FrameLoader::loadURL):
(WebCore::FrameLoader::loadWithDocumentLoader):
(WebCore::FrameLoader::shouldPerformFragmentNavigation):
(WebCore::FrameLoader::scrollToFragmentIfAllowed):
(WebCore):
* loader/FrameLoader.h:
(FrameLoader):

LayoutTests:

* http/tests/inspector/resource-parameters-expected.txt:
* http/tests/navigation/anchor-frames-cross-origin-expected.txt: Added.
* http/tests/navigation/anchor-frames-cross-origin.html: Added.
* http/tests/navigation/resources/frame-with-anchor-cross-origin.html: Added.
* http/tests/security/xssAuditor/anchor-url-dom-write-location-expected.txt:
* http/tests/security/xssAuditor/anchor-url-dom-write-location-inline-event-expected.txt:
* http/tests/security/xssAuditor/anchor-url-dom-write-location-inline-event-null-char-expected.txt:
* http/tests/security/xssAuditor/anchor-url-dom-write-location-javascript-URL-expected.txt:
* http/tests/security/xssAuditor/anchor-url-dom-write-location2-expected.txt:
* http/tests/security/xssAuditor/dom-write-location-inline-event-expected.txt:

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

12 years agoWebFullScreenManagerProxy::isFullScreen() will create an empty full screen window...
jer.noble@apple.com [Fri, 6 Apr 2012 21:49:11 +0000 (21:49 +0000)]
WebFullScreenManagerProxy::isFullScreen() will create an empty full screen window; steal focus.
https://bugs.webkit.org/show_bug.cgi?id=83388

Reviewed by Geoffrey Garen.

Calling WebFullScreenManagerProxy::isFullScreen() will create a WKFullScreenWindowController if
one does not already exist, since the -[WKView fullScreenWindowController] method will create-on-access.
Add a new call, -[WKView hasFullScreenWindowController], which does not auto-create the controller
and add that check to WebFullScreenManagerProxy::isFullScreen().

* UIProcess/API/mac/WKView.mm:
(-[WKView hasFullScreenWindowController]):
* UIProcess/API/mac/WKViewInternal.h:
* UIProcess/mac/WebFullScreenManagerProxyMac.mm:
(WebKit::WebFullScreenManagerProxy::isFullScreen):

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

12 years ago[chromium] Unreviewed, remove a passing test.
tony@chromium.org [Fri, 6 Apr 2012 21:48:33 +0000 (21:48 +0000)]
[chromium] Unreviewed, remove a passing test.
tables/mozilla/bugs/bug9024.html is passing on Leopard.

* platform/chromium/test_expectations.txt:

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

12 years agoEnable webkit_unit_tests for commit queue and EWS while tracking failures
jamesr@google.com [Fri, 6 Apr 2012 21:45:50 +0000 (21:45 +0000)]
Enable webkit_unit_tests for commit queue and EWS while tracking failures
https://bugs.webkit.org/show_bug.cgi?id=83329

Reviewed by Adam Barth.

This adds a step to parse XML output from webkit_unit_tests and consider regressions in the PatchAnalysisTask so
the commit queue and EWS can reject patches that cause regressions.

* Scripts/webkitpy/common/config/ports.py:
(ChromiumPort.run_webkit_unit_tests_command):
* Scripts/webkitpy/common/config/ports_mock.py:
(MockPort.unit_tests_results_path):
* Scripts/webkitpy/common/net/layouttestresults.py:
(LayoutTestResults.__init__):
(LayoutTestResults.failing_tests):
(LayoutTestResults):
(LayoutTestResults.add_unit_test_failures):
* Scripts/webkitpy/common/net/unittestresults.py: Copied from Tools/Scripts/webkitpy/tool/steps/runtests_unittest.py.
(UnitTestResults):
(UnitTestResults.results_from_string):
* Scripts/webkitpy/common/net/unittestresults_unittest.py: Added.
(UnitTestResultsTest):
(UnitTestResultsTest.test_nostring):
(UnitTestResultsTest.test_emptystring):
(UnitTestResultsTest.test_nofailures):
(test_onefailure):
(test_multiple_failures_per_test):
* Scripts/webkitpy/tool/bot/commitqueuetask_unittest.py:
(MockCommitQueue.test_results):
(MockCommitQueue.archive_last_test_results):
(FailingTestCommitQueue.test_results):
(test_flaky_test_failure):
(test_failed_archive):
* Scripts/webkitpy/tool/bot/layouttestresultsreader.py:
(LayoutTestResultsReader._create_unit_test_results):
(LayoutTestResultsReader.results):
* Scripts/webkitpy/tool/bot/layouttestresultsreader_unittest.py:
(LayoutTestResultsReaderTest.test_missing_layout_test_results):
* Scripts/webkitpy/tool/bot/patchanalysistask.py:
(PatchAnalysisTaskDelegate.test_results):
(PatchAnalysisTaskDelegate.archive_last_test_results):
(PatchAnalysisTask._test):
(PatchAnalysisTask._build_and_test_without_patch):
(PatchAnalysisTask._test_patch):
* Scripts/webkitpy/tool/commands/earlywarningsystem.py:
(AbstractEarlyWarningSystem.test_results):
(AbstractEarlyWarningSystem.archive_last_test_results):
* Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
(EarlyWarningSytemTest._test_testing_ews):
* Scripts/webkitpy/tool/commands/queues.py:
(CommitQueue.test_results):
(CommitQueue.archive_last_test_results):
* Scripts/webkitpy/tool/commands/queues_unittest.py:
(CommitQueueTest.test_commit_queue):
(test_rollout):
(test_manual_reject_during_processing):
* Scripts/webkitpy/tool/steps/runtests.py:
(RunTests.run):
* Scripts/webkitpy/tool/steps/runtests_unittest.py:
(RunTestsTest.test_webkit_run_unit_tests):

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

12 years agoForeground of apple.com/iphone video page visible during full screen animation.
jer.noble@apple.com [Fri, 6 Apr 2012 21:38:33 +0000 (21:38 +0000)]
Foreground of apple.com/iphone video page visible during full screen animation.
https://bugs.webkit.org/show_bug.cgi?id=83080

Reviewed by Simon Fraser.

Source/WebCore:

No new tests; updated fullscreen/full-screen-stacking-context.html

The apple.com/iphone video page uses a -webkit-mask: CSS style, which creates a stacking
context and causes the page to pop in front of the full screen renderer.  Add all the
styles suggested by the W3C full screen spec to the -webkit-full-screen-ancestor rule
to keep these stacking contexts from being created.

* css/fullscreen.css:
(:-webkit-full-screen-ancestor:not(iframe)):

LayoutTests:

* fullscreen/full-screen-stacking-context.html:
* platform/mac/fullscreen/full-screen-stacking-context-expected.png:

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

12 years agoVirtualize createAnonymousBoxWithSameTypeAs.
inferno@chromium.org [Fri, 6 Apr 2012 21:32:55 +0000 (21:32 +0000)]
Virtualize createAnonymousBoxWithSameTypeAs.
https://bugs.webkit.org/show_bug.cgi?id=83229

Reviewed by Julien Chaffraix.

This helps to use the same function to create anonymous
table parts and in the future extend to more classes
derived from RenderBox.

The current switch case situation was going to be messy as
we will need to mix cases that were very dependent on the
class, so it made sense to add a virtual function.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::splitAnonymousBlocksAroundChild):
(WebCore::RenderBlock::createAnonymousBoxWithSameTypeAs):
* rendering/RenderBlock.h:
(RenderBlock):
* rendering/RenderBox.h:
(WebCore::RenderBox::createAnonymousBoxWithSameTypeAs):
(RenderBox):
* rendering/RenderInline.cpp:
(WebCore::RenderInline::splitFlow):
* rendering/RenderTable.h:
(WebCore::RenderTable::createAnonymousBoxWithSameTypeAs):
* rendering/RenderTableCell.h:
(WebCore::RenderTableCell::createAnonymousBoxWithSameTypeAs):
* rendering/RenderTableRow.h:
(WebCore::RenderTableRow::createAnonymousBoxWithSameTypeAs):
* rendering/RenderTableSection.h:
(WebCore::RenderTableSection::createAnonymousBoxWithSameTypeAs):

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

12 years ago[cg] REGRESSION (r101517): Animating the transform of a <rect> with shape-rendering...
timothy_horton@apple.com [Fri, 6 Apr 2012 21:31:02 +0000 (21:31 +0000)]
[cg] REGRESSION (r101517): Animating the transform of a <rect> with shape-rendering: crispEdges leaves behind garbage
https://bugs.webkit.org/show_bug.cgi?id=82963
<rdar://problem/11170476>

Reviewed by Simon Fraser.

CoreGraphics can inflate the stroke by 1px when drawing a rectangle
with antialiasing disabled at non-integer coordinates, we need to
compensate by inflating the RenderSVGRect repaint bounds by 1px.

No new tests, as this is not reproducible in DRT or WKTR.

* rendering/svg/RenderSVGRect.cpp:
(WebCore::RenderSVGRect::createShape):
(WebCore::RenderSVGRect::strokeBoundingBox):
* rendering/svg/RenderSVGRect.h:
(RenderSVGRect):

New Mac baselines for two tests which have SVG <rect>s with shape-rendering: crispEdges.

* platform/mac/svg/W3C-SVG-1.1/filters-composite-02-b-expected.txt:
* platform/mac/svg/custom/shape-rendering-expected.txt:

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

12 years agoTools: Enable MediaSource feature for DumpRenderTree so
commit-queue@webkit.org [Fri, 6 Apr 2012 21:19:26 +0000 (21:19 +0000)]
Tools: Enable MediaSource feature for DumpRenderTree so
MediaSource LayoutTests will pass for Chromium.
https://bugs.webkit.org/show_bug.cgi?id=83053

Patch by Aaron Colwell <acolwell@chromium.org> on 2012-04-06
Reviewed by Dimitri Glazkov.

* DumpRenderTree/chromium/TestShell.cpp:
(TestShell::TestShell):

LayoutTests: Fix MediaSource LayoutTests to work with the new XHR behavior
that requires asynchronous requests for the 'arraybuffer'
responseType.
https://bugs.webkit.org/show_bug.cgi?id=83053

Patch by Aaron Colwell <acolwell@chromium.org> on 2012-04-06
Reviewed by Dimitri Glazkov.

* http/tests/media/media-source/webm/video-media-source-errors.html:
* http/tests/media/media-source/webm/video-media-source-play.html:
* http/tests/media/media-source/webm/video-media-source-seek.html:
* http/tests/media/media-source/webm/video-media-source-state-changes.html:
* http/tests/media/media-source/webm/webm-media-source.js:
(getData.request.onload):
(createClusterGetFunction.return.if):
(createClusterGetFunction):
(loadWebMData):
(getCluster):
(appendCluster):
(getReadyStateName):
(expectSourceState):
(expectReadyState):
* platform/chromium/test_expectations.txt:

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

12 years agoAvoid trying to set filters on transform layers
simon.fraser@apple.com [Fri, 6 Apr 2012 21:17:55 +0000 (21:17 +0000)]
Avoid trying to set filters on transform layers
https://bugs.webkit.org/show_bug.cgi?id=83344

Reviewed by Dean Jackson.

Return early from GraphicsLayerCA::setFilters() when the filters
haven't changed. This avoids trying to clear filters on CALayers
which never had them, which should both help performance, and avoids
console spew related to setting shadow properties on transform layers.

* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::setFilters):

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

12 years agoWebGL content swapped at wrong time in threaded compositing mode
jamesr@google.com [Fri, 6 Apr 2012 21:15:55 +0000 (21:15 +0000)]
WebGL content swapped at wrong time in threaded compositing mode
https://bugs.webkit.org/show_bug.cgi?id=82275

Reviewed by Kenneth Russell.

Source/WebCore:

When using threaded compositing, we need to defer touching the texture ID being used by the compositor until the
appropriate point in the synchronization routine and not before. Specifically, there is no time at which it is
safe to manipulate the texture the compositor may be using from the main thread. This breaks up the presentation
path into a few pieces (depending on the context attributes) in order to maintain these invariants.

Depending on the context attributes and if we're in threaded mode, there are a few different possible back/front
buffer combinations:

- When the context is antialiased, we have a multisampled renderbuffer and associated framebuffer.
- In all cases, we have a color texture back buffer.
- When preserveDrawingBuffer is set or threaded compositing is enabled, we have a separate color texture as a
front buffer.

The resource update is in two phases. First, on the main thread, we prepare the back buffer. This resolves from
the multisampled FBO into the back color buffer if multisampled and swaps the front / back color buffer textures
if preserveDrawingBuffer is false and we're using separate front / back color buffers. Second, on the compositor
thread, we do a texture copy from the back to the front color buffer if preserveDrawingBuffer is true. After
these steps are complete the main thread is free to manipulate the back buffer color texture without affecting
any resources the compositor is using.

One incidental cleanup this patch also does is remove all state queries from DrawingBuffer::clearFramebuffer().

Tests: fast/canvas/webgl/webgl-composite-modes-repaint.html
       fast/canvas/webgl/webgl-composite-modes.html

* html/canvas/WebGLRenderingContext.cpp:
(WebCore):
(WebCore::WebGLRenderingContext::WebGLRenderingContext):
(WebCore::WebGLRenderingContext::clearIfComposited):
(WebCore::WebGLRenderingContext::restoreStateAfterClear):
(WebCore::WebGLRenderingContext::reshape):
(WebCore::WebGLRenderingContext::maybeRestoreContext):
* html/canvas/WebGLRenderingContext.h:
(WebGLRenderingContext):
* platform/graphics/blackberry/DrawingBufferBlackBerry.cpp:
(WebCore::DrawingBuffer::DrawingBuffer):
(WebCore):
(WebCore::DrawingBuffer::prepareBackBuffer):
(WebCore::DrawingBuffer::requiresCopyFromBackToFrontBuffer):
(WebCore::DrawingBuffer::frontColorBuffer):
* platform/graphics/cairo/DrawingBufferCairo.cpp:
(WebCore::DrawingBuffer::DrawingBuffer):
(WebCore):
(WebCore::DrawingBuffer::prepareBackBuffer):
(WebCore::DrawingBuffer::requiresCopyFromBackToFrontBuffer):
(WebCore::DrawingBuffer::frontColorBuffer):
* platform/graphics/chromium/DrawingBufferChromium.cpp:
(WebCore::generateColorTexture):
(WebCore::DrawingBuffer::DrawingBuffer):
(WebCore::DrawingBuffer::initialize):
(WebCore::DrawingBuffer::prepareBackBuffer):
(WebCore):
(WebCore::DrawingBuffer::requiresCopyFromBackToFrontBuffer):
(WebCore::DrawingBuffer::frontColorBuffer):
(WebCore::DrawingBuffer::platformLayer):
* platform/graphics/chromium/WebGLLayerChromium.cpp:
(WebCore::WebGLLayerChromium::WebGLLayerChromium):
(WebCore::WebGLLayerChromium::paintContentsIfDirty):
(WebCore::WebGLLayerChromium::updateCompositorResources):
(WebCore::WebGLLayerChromium::paintRenderedResultsToCanvas):
(WebCore::WebGLLayerChromium::setNeedsDisplayRect):
(WebCore::WebGLLayerChromium::setDrawingBuffer):
* platform/graphics/chromium/WebGLLayerChromium.h:
(WebGLLayerChromium):
* platform/graphics/clutter/DrawingBufferClutter.cpp:
(WebCore::DrawingBuffer::DrawingBuffer):
(WebCore):
(WebCore::DrawingBuffer::prepareBackBuffer):
(WebCore::DrawingBuffer::requiresCopyFromBackToFrontBuffer):
(WebCore::DrawingBuffer::frontColorBuffer):
* platform/graphics/filters/FECustomFilter.cpp:
(WebCore::FECustomFilter::initializeContext):
* platform/graphics/gpu/DrawingBuffer.cpp:
(WebCore::DrawingBuffer::create):
(WebCore::DrawingBuffer::clear):
(WebCore::DrawingBuffer::clearFramebuffer):
(WebCore::DrawingBuffer::reset):
(WebCore::DrawingBuffer::discardResources):
* platform/graphics/gpu/DrawingBuffer.h:
(DrawingBuffer):
* platform/graphics/gpu/mac/DrawingBufferMac.mm:
(WebCore::DrawingBuffer::DrawingBuffer):
(WebCore):
(WebCore::DrawingBuffer::prepareBackBuffer):
(WebCore::DrawingBuffer::requiresCopyFromBackToFrontBuffer):
(WebCore::DrawingBuffer::frontColorBuffer):
* platform/graphics/gpu/qt/DrawingBufferQt.cpp:
(WebCore::DrawingBuffer::DrawingBuffer):
(WebCore::DrawingBuffer::platformLayer):
(WebCore::DrawingBuffer::prepareBackBuffer):
(WebCore::DrawingBuffer::requiresCopyFromBackToFrontBuffer):
(WebCore):
(WebCore::DrawingBuffer::frontColorBuffer):

Source/WebKit/chromium:

* tests/WebGLLayerChromiumTest.cpp:
(WebKit::TEST):

LayoutTests:

Adds some pixel tests for compositing all different combinations of alpha/antialias/preserveDrawingBuffer on
WebGL content.

* fast/canvas/webgl/webgl-composite-modes-expected.png: Added.
* fast/canvas/webgl/webgl-composite-modes-expected.txt: Added.
* fast/canvas/webgl/webgl-composite-modes-repaint-expected.png: Added.
* fast/canvas/webgl/webgl-composite-modes-repaint-expected.txt: Added.
* fast/canvas/webgl/webgl-composite-modes-repaint.html: Added.
* fast/canvas/webgl/webgl-composite-modes.html: Added.

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

12 years ago[chromium] Unreviewed, land some mac/win baselines for table tests after r111742.
tony@chromium.org [Fri, 6 Apr 2012 21:10:59 +0000 (21:10 +0000)]
[chromium] Unreviewed, land some mac/win baselines for table tests after r111742.

* platform/chromium-mac-leopard/tables/mozilla/bugs/bug2123-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug2509-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug34176-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug44505-expected.png:
* platform/chromium-mac-leopard/tables/mozilla_expected_failures/bugs/bug59252-expected.png:
* platform/chromium-mac-leopard/tables/mozilla_expected_failures/bugs/bug7243-expected.png:
* platform/chromium-mac-snowleopard/fast/repaint/scroll-inside-table-cell-expected.png:
* platform/chromium-mac-snowleopard/fast/repaint/scroll-relative-table-inside-table-cell-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug2123-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug2509-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug34176-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug44505-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla_expected_failures/bugs/bug59252-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla_expected_failures/bugs/bug7243-expected.png:
* platform/chromium-mac/fast/repaint/scroll-inside-table-cell-expected.png:
* platform/chromium-mac/fast/repaint/scroll-relative-table-inside-table-cell-expected.png:
* platform/chromium-mac/fast/table/cell-pref-width-invalidation-expected.txt: Added.
* platform/chromium-mac/tables/mozilla/bugs/bug2123-expected.png:
* platform/chromium-mac/tables/mozilla/bugs/bug2123-expected.txt: Added.
* platform/chromium-mac/tables/mozilla/bugs/bug2509-expected.png:
* platform/chromium-mac/tables/mozilla/bugs/bug2509-expected.txt: Added.
* platform/chromium-mac/tables/mozilla/bugs/bug34176-expected.png:
* platform/chromium-mac/tables/mozilla/bugs/bug34176-expected.txt: Added.
* platform/chromium-mac/tables/mozilla/bugs/bug44505-expected.png:
* platform/chromium-mac/tables/mozilla/bugs/bug44505-expected.txt:
* platform/chromium-mac/tables/mozilla_expected_failures/bugs/bug59252-expected.png:
* platform/chromium-mac/tables/mozilla_expected_failures/bugs/bug59252-expected.txt: Added.
* platform/chromium-mac/tables/mozilla_expected_failures/bugs/bug7243-expected.png:
* platform/chromium-mac/tables/mozilla_expected_failures/bugs/bug7243-expected.txt: Added.
* platform/chromium-win/fast/repaint/scroll-inside-table-cell-expected.png:
* platform/chromium-win/fast/repaint/scroll-relative-table-inside-table-cell-expected.png:
* platform/chromium-win/tables/mozilla/bugs/bug44505-expected.png:
* platform/chromium-win/tables/mozilla/bugs/bug44505-expected.txt:
* platform/chromium/test_expectations.txt:

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

12 years agoUnreviewed build fix after r113486 and r113487.
jchaffraix@webkit.org [Fri, 6 Apr 2012 20:41:20 +0000 (20:41 +0000)]
Unreviewed build fix after r113486 and r113487.

* rendering/RenderObject.cpp:
Added missing #include.

* rendering/RenderView.h:
Removed bad OVERRIDE.

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

12 years agohttps://bugs.webkit.org/show_bug.cgi?id=81939
bdakin@apple.com [Fri, 6 Apr 2012 20:20:19 +0000 (20:20 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=81939
-webkit-image-set should update dynamically when the device scale factor
changes
-and corresponding-
<rdar://problem/11101108>

Reviewed by Darin Adler.

Source/WebCore:

New member variable to keep track of the scale factor.
* css/CSSImageSetValue.cpp:
(WebCore::CSSImageSetValue::CSSImageSetValue):
(WebCore::CSSImageSetValue::bestImageForScaleFactor):

 Merge the two cachedImageSet functions. There was no need for two functions here.
(WebCore::CSSImageSetValue::cachedImageSet):

cachedOrPendingImageSet() now takes a Document as a parameter so that it can
access the deviceScaleFactor. If there is a cached image already and the
Document's deviceScaleFactor doesn't match m_scaleFactor, then m_imageSet is set
to a pending image so that the best fit image will be reassessed and then
loaded.
(WebCore::CSSImageSetValue::cachedOrPendingImageSet):
* css/CSSImageSetValue.h:
(WebCore):
(CSSImageSetValue):

cachedOrPendingImageSet() now takes a Document.
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::collectMatchingRulesForList):

StyleCachedImageSet should inherit from CachedImageClient just like
StyleCachedImage. It should add and remove itself as a client upon creation
and destruction, respectively.
* rendering/style/StyleCachedImageSet.cpp:
(WebCore::StyleCachedImageSet::StyleCachedImageSet):
(WebCore):
(WebCore::StyleCachedImageSet::~StyleCachedImageSet):
* rendering/style/StyleCachedImageSet.h:
(StyleCachedImageSet):

LayoutTests:

* fast/hidpi/image-set-background-dynamic.html: Added.
* fast/hidpi/image-set-border-image-dynamic.html: Added.
* fast/hidpi/image-set-in-content-dynamic.html: Added.
* platform/mac/fast/hidpi/image-set-background-dynamic-expected.png: Added.
* platform/mac/fast/hidpi/image-set-background-dynamic-expected.txt: Added.
* platform/mac/fast/hidpi/image-set-border-image-dynamic-expected.png: Added.
* platform/mac/fast/hidpi/image-set-border-image-dynamic-expected.txt: Added.
* platform/mac/fast/hidpi/image-set-in-content-dynamic-expected.png: Added.
* platform/mac/fast/hidpi/image-set-in-content-dynamic-expected.txt: Added.

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

12 years agoTurn on vibration support for BlackBerry.
staikos@webkit.org [Fri, 6 Apr 2012 20:12:41 +0000 (20:12 +0000)]
Turn on vibration support for BlackBerry.

Reviewed by Rob Buis.

* Scripts/build-webkit:

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

12 years ago[Chromium} Rebaseline some failing Leopard tests
schenney@chromium.org [Fri, 6 Apr 2012 20:07:27 +0000 (20:07 +0000)]
[Chromium} Rebaseline some failing Leopard tests
https://bugs.webkit.org/show_bug.cgi?id=83387

Unreviewed chromium test expectations update.

* platform/chromium-mac-leopard/fast/text/atsui-multiple-renderers-expected.png: Added.
* platform/chromium-mac-leopard/fast/text/find-kana-expected.txt: Added.
* platform/chromium/test_expectations.txt:

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

12 years agoUpdate LayoutUnit usage in RenderView
leviw@chromium.org [Fri, 6 Apr 2012 20:04:56 +0000 (20:04 +0000)]
Update LayoutUnit usage in RenderView
https://bugs.webkit.org/show_bug.cgi?id=83147

Reviewed by Julien Chaffraix.

Updating the usage of LayoutUnits in RenderView in preparation for sub-pixel layout. This mostly
affects paint and repaint functions, which take LayoutRects up to the RenderView level. This is
necessary as we continue to accumulate sub-pixel offsets up to this level.

No new tests. No change in behavior.

* rendering/RenderView.cpp:
(WebCore::RenderView::paint): Adding an assert that we're being called to paint on pixel
boundaries. We don't currently ever position RenderViews at sub-pixel offsets.
(WebCore::RenderView::shouldRepaint):
(WebCore::RenderView::repaintViewRectangle): Switching to a LayoutRect and cleaning up a fixme
that used decomposed offsets. Pixel snapping is applied before handing the rect up to the
FrameView.
(WebCore::RenderView::repaintRectangleInViewAndCompositedLayers): Pixel snapping before handing
the rect up to the Compositor.
(WebCore::RenderView::computeRectForRepaint):
(WebCore::RenderView::selectionBounds):
(WebCore::RenderView::viewRect):
(WebCore::RenderView::unscaledDocumentRect):
* rendering/RenderView.h:
(RenderView):

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

12 years agoAdd autodetection of image orientation from EXIF information
timothy_horton@apple.com [Fri, 6 Apr 2012 20:02:59 +0000 (20:02 +0000)]
Add autodetection of image orientation from EXIF information
https://bugs.webkit.org/show_bug.cgi?id=19688
<rdar://problem/4126979> and <rdar://problem/11091578>

Original patch by David Carson and Eric Seidel.

Reviewed by Simon Fraser.

Add support for respecting EXIF image orientation, enabled by default for ImageDocuments.
The setting shouldRespectImageOrientation causes orientation to take effect for any image included via <img>.

Test: fast/images/exif-orientation.html, fast/images/exif-orientation-css.html

File list truncated because it's very long.

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

12 years agoIndexedDB: Race condition in layout test logging from window and worker
jsbell@chromium.org [Fri, 6 Apr 2012 19:58:53 +0000 (19:58 +0000)]
IndexedDB: Race condition in layout test logging from window and worker
https://bugs.webkit.org/show_bug.cgi?id=83378

The sequencing of logging directly from window vs. logging via posted events
from a worker is racy, making this test flake when run under Chromium. Removed
the sensitive logging on the window side; the test logic is unaffected as the
blocked/success event sequence would not be present if the window handler was
not run.

Reviewed by Tony Chang.

* storage/indexeddb/dont-commit-on-blocked-expected.txt:
* storage/indexeddb/dont-commit-on-blocked.html:

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

12 years agoCorrect LayoutUnit usgae in RenderThemeQt and RenderThemeQStyle
leviw@chromium.org [Fri, 6 Apr 2012 19:54:28 +0000 (19:54 +0000)]
Correct LayoutUnit usgae in RenderThemeQt and RenderThemeQStyle
https://bugs.webkit.org/show_bug.cgi?id=83376

Reviewed by Eric Seidel.

Source/WebCore:

Correcting LayoutUnit usage in QT RenderTheme code.

No new tests. No change in behavior.

* platform/qt/RenderThemeQt.cpp:
(WebCore::RenderThemeQt::convertToPaintingRect): Rounding the ancestor offset before
applying it to the pixel snapped partRect.
(WebCore::RenderThemeQt::paintSearchFieldCancelButton): Also rounding the ancestor
offset, and also pixel snapping the content rect before painting.

Source/WebKit/qt:

Calculating the progress animation using the pixel-snapped RenderProgress size instead
of the internal sub-pixel version.

* WebCoreSupport/RenderThemeQStyle.cpp:
(WebCore::RenderThemeQStyle::animationDurationForProgressBar):

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

12 years ago[chromium] Rebaseline svg/clip-path/deep-nested-clip-in-mask* expectations
commit-queue@webkit.org [Fri, 6 Apr 2012 19:47:25 +0000 (19:47 +0000)]
[chromium] Rebaseline svg/clip-path/deep-nested-clip-in-mask* expectations
https://bugs.webkit.org/show_bug.cgi?id=83368

Unreviewed Chromium expectations rebaseline.

Patch by Florin Malita <fmalita@google.com> on 2012-04-06

* platform/chromium-mac-leopard/svg/clip-path/clip-path-pixelation-expected.png:
* platform/chromium-mac-leopard/svg/clip-path/deep-nested-clip-in-mask-expected.png:
* platform/chromium-mac-leopard/svg/clip-path/deep-nested-clip-in-mask-panning-expected.png:
* platform/chromium-mac-snowleopard/svg/clip-path/clip-in-mask-expected.png: Removed.
* platform/chromium-mac-snowleopard/svg/clip-path/clip-path-pixelation-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/clip-path/deep-nested-clip-in-mask-expected.png:
* platform/chromium-mac-snowleopard/svg/clip-path/deep-nested-clip-in-mask-panning-expected.png:
* platform/chromium-mac-snowleopard/svg/clip-path/nested-clip-in-mask-image-based-clipping-expected.png: Removed.
* platform/chromium-mac-snowleopard/svg/clip-path/nested-clip-in-mask-path-and-image-based-clipping-expected.png: Removed.
* platform/chromium-mac-snowleopard/svg/clip-path/nested-clip-in-mask-path-based-clipping-expected.png: Removed.
* platform/chromium-mac/svg/clip-path/clip-in-mask-expected.png: Added.
* platform/chromium-mac/svg/clip-path/clip-path-pixelation-expected.png:
* platform/chromium-mac/svg/clip-path/deep-nested-clip-in-mask-expected.png: Added.
* platform/chromium-mac/svg/clip-path/deep-nested-clip-in-mask-panning-expected.png: Added.
* platform/chromium-mac/svg/clip-path/nested-clip-in-mask-image-based-clipping-expected.png: Added.
* platform/chromium-mac/svg/clip-path/nested-clip-in-mask-path-and-image-based-clipping-expected.png: Added.
* platform/chromium-mac/svg/clip-path/nested-clip-in-mask-path-based-clipping-expected.png: Added.
* platform/chromium-win/svg/clip-path/clip-in-mask-expected.png: Added.
* platform/chromium-win/svg/clip-path/deep-nested-clip-in-mask-expected.png: Added.
* platform/chromium-win/svg/clip-path/deep-nested-clip-in-mask-expected.txt: Renamed from LayoutTests/platform/chromium-linux/svg/clip-path/deep-nested-clip-in-mask-expected.txt.
* platform/chromium-win/svg/clip-path/deep-nested-clip-in-mask-panning-expected.png: Added.
* platform/chromium-win/svg/clip-path/deep-nested-clip-in-mask-panning-expected.txt: Renamed from LayoutTests/platform/chromium-linux/svg/clip-path/deep-nested-clip-in-mask-panning-expected.txt.
* platform/chromium-win/svg/clip-path/nested-clip-in-mask-image-based-clipping-expected.png: Added.
* platform/chromium-win/svg/clip-path/nested-clip-in-mask-path-and-image-based-clipping-expected.png: Added.
* platform/chromium-win/svg/clip-path/nested-clip-in-mask-path-based-clipping-expected.png: Added.
* platform/chromium/test_expectations.txt:
* platform/mac/svg/clip-path/clip-in-mask-expected.txt: Removed.
* platform/mac/svg/clip-path/nested-clip-in-mask-image-based-clipping-expected.txt: Removed.
* platform/mac/svg/clip-path/nested-clip-in-mask-path-and-image-based-clipping-expected.txt: Removed.
* platform/mac/svg/clip-path/nested-clip-in-mask-path-based-clipping-expected.txt: Removed.
* platform/qt/svg/clip-path/clip-in-mask-expected.txt: Removed.
* platform/qt/svg/clip-path/nested-clip-in-mask-image-based-clipping-expected.txt: Removed.
* platform/qt/svg/clip-path/nested-clip-in-mask-path-and-image-based-clipping-expected.txt: Removed.
* platform/qt/svg/clip-path/nested-clip-in-mask-path-based-clipping-expected.txt: Removed.
* svg/clip-path/clip-in-mask-expected.txt: Renamed from LayoutTests/platform/gtk/svg/clip-path/clip-in-mask-expected.txt.
* svg/clip-path/nested-clip-in-mask-image-based-clipping-expected.txt: Renamed from LayoutTests/platform/gtk/svg/clip-path/nested-clip-in-mask-image-based-clipping-expected.txt.
* svg/clip-path/nested-clip-in-mask-path-and-image-based-clipping-expected.txt: Renamed from LayoutTests/platform/gtk/svg/clip-path/nested-clip-in-mask-path-and-image-based-clipping-expected.txt.
* svg/clip-path/nested-clip-in-mask-path-based-clipping-expected.txt: Renamed from LayoutTests/platform/gtk/svg/clip-path/nested-clip-in-mask-path-based-clipping-expected.txt.

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

12 years agoFont-related tests are flaky on Chromium (sometimes glyphs don't draw)
schenney@chromium.org [Fri, 6 Apr 2012 19:43:55 +0000 (19:43 +0000)]
Font-related tests are flaky on Chromium (sometimes glyphs don't draw)
https://bugs.webkit.org/show_bug.cgi?id=66908

Unreviewed chromium test expectations update.

* platform/chromium-mac-snowleopard/svg/custom/svg-fonts-fallback-expected.png: Removed.
* platform/chromium-mac/platform/chromium/virtual/gpu/canvas/philip/tests/2d.text.draw.fontface.notinpage-expected.txt:
* platform/chromium-mac/svg/custom/svg-fonts-fallback-expected.png: Added.
* platform/chromium/test_expectations.txt:

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

12 years agocontext-lost.html is failing
kbr@google.com [Fri, 6 Apr 2012 19:43:22 +0000 (19:43 +0000)]
context-lost.html is failing
https://bugs.webkit.org/show_bug.cgi?id=81325

Reviewed by James Robinson.

Ensure that the DrawingBuffer does not attempt to restore the
TEXTURE_2D binding to an already-deleted texture.

Tested with layout test fast/canvas/webgl/context-lost.html as
well as WebGL conformance tests.

* html/canvas/WebGLRenderingContext.cpp:
(WebCore):
(WebCore::WebGLRenderingContext::loseContextImpl):

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

12 years agoUnreviewed, rolling out r113267.
commit-queue@webkit.org [Fri, 6 Apr 2012 19:37:20 +0000 (19:37 +0000)]
Unreviewed, rolling out r113267.
http://trac.webkit.org/changeset/113267
https://bugs.webkit.org/show_bug.cgi?id=83384

causes dhtml perf regression (Requested by simonjam on
#webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-04-06

Source/WebCore:

* dom/ChildListMutationScope.cpp:
(ChildListMutationScope::MutationAccumulator):
(WebCore::ChildListMutationScope::MutationAccumulator::isAddedNodeInOrder):
(WebCore::ChildListMutationScope::MutationAccumulator::childAdded):
(WebCore::ChildListMutationScope::MutationAccumulationRouter::childAdded):
* dom/ChildListMutationScope.h:
(WebCore::ChildListMutationScope::childAdded):
(MutationAccumulationRouter):
* dom/ContainerNode.cpp:
(WebCore):
(WebCore::ContainerNode::insertBefore):
(WebCore::ContainerNode::replaceChild):
(WebCore::ContainerNode::appendChild):
(WebCore::dispatchChildInsertionEvents):
(WebCore::updateTreeAfterInsertion):

LayoutTests:

* fast/events/domnodeinserted-entire-fragment-expected.txt: Removed.
* fast/events/domnodeinserted-entire-fragment.html: Removed.

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

12 years ago6 layout tests known to fail on Mac10.6 with CPU-Skia graphics
schenney@chromium.org [Fri, 6 Apr 2012 19:28:29 +0000 (19:28 +0000)]
6 layout tests known to fail on Mac10.6 with CPU-Skia graphics
https://bugs.webkit.org/show_bug.cgi?id=68436

Unreviewed Chromium test expectations update.

One of the files marked in this bug is a minor rebaselining. Done.

* platform/chromium-mac-leopard/svg/W3C-SVG-1.1/paths-data-12-t-expected.png: Removed.
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1/paths-data-12-t-expected.txt: Removed.
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1/paths-data-12-t-expected.png: Removed.
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1/paths-data-12-t-expected.txt: Removed.
* platform/chromium/test_expectations.txt:

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

12 years agoRebaseline after Skia 2527 landed
schenney@chromium.org [Fri, 6 Apr 2012 19:19:02 +0000 (19:19 +0000)]
Rebaseline after Skia 2527 landed
https://bugs.webkit.org/show_bug.cgi?id=83375

Unreviewed update of Chromium test expectations.

Patch by Philip Rogers <pdr@google.com> on 2012-04-06

* platform/chromium-linux/svg/as-background-image/svg-as-background-5-expected.png:
* platform/chromium-linux/svg/filters/subRegion-one-effect-expected.png:
* platform/chromium-linux/svg/filters/subRegion-two-effects-expected.png:
* platform/chromium-mac-leopard/svg/as-background-image/svg-as-background-5-expected.png:
* platform/chromium-mac-snowleopard/svg/as-background-image/svg-as-background-5-expected.png:
* platform/chromium-mac/svg/as-background-image/svg-as-background-5-expected.png: Added.
* platform/chromium-mac/svg/filters/subRegion-one-effect-expected.png:
* platform/chromium-mac/svg/filters/subRegion-two-effects-expected.png:
* platform/chromium-win/svg/as-background-image/svg-as-background-5-expected.png:
* platform/chromium-win/svg/filters/subRegion-one-effect-expected.png:
* platform/chromium-win/svg/filters/subRegion-two-effects-expected.png:
* platform/chromium/test_expectations.txt:

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

12 years agoRebaseline after r109097
schenney@chromium.org [Fri, 6 Apr 2012 19:16:27 +0000 (19:16 +0000)]
Rebaseline after r109097
https://bugs.webkit.org/show_bug.cgi?id=79568

Unreviewed update of test expectations.

Patch by Philip Rogers <pdr@google.com> on 2012-04-06

* platform/chromium-linux/svg/W3C-SVG-1.1/filters-morph-01-f-expected.png:
* platform/chromium-linux/svg/W3C-SVG-1.1/filters-morph-01-f-expected.txt: Removed.
* platform/chromium-mac-leopard/svg/W3C-SVG-1.1/filters-morph-01-f-expected.png:
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1/filters-morph-01-f-expected.png:
* platform/chromium-mac/svg/W3C-SVG-1.1/filters-morph-01-f-expected.png: Added.
* platform/chromium-win/svg/W3C-SVG-1.1/filters-morph-01-f-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/filters-morph-01-f-expected.txt:
* platform/chromium/test_expectations.txt:

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

12 years agoRebaseline tests for wk62974
schenney@chromium.org [Fri, 6 Apr 2012 19:14:39 +0000 (19:14 +0000)]
Rebaseline tests for wk62974
https://bugs.webkit.org/show_bug.cgi?id=62974

Unreviewed test expectations update for Chromium.

Patch by Philip Rogers <pdr@google.com> on 2012-04-06

* platform/chromium-linux/svg/W3C-SVG-1.1/fonts-glyph-03-t-expected.png:
* platform/chromium-linux/svg/W3C-SVG-1.1/fonts-glyph-03-t-expected.txt: Added.
* platform/chromium-linux/svg/W3C-SVG-1.1/text-altglyph-01-b-expected.png:
* platform/chromium-linux/svg/text/text-altglyph-01-b-expected.png:
* platform/chromium-linux/svg/text/text-text-04-t-expected.png:
* platform/chromium-linux/svg/text/text-text-06-t-expected.png:
* platform/chromium-linux/svg/wicd/test-rightsizing-b-expected.png:
* platform/chromium-mac-leopard/svg/text/text-altglyph-01-b-expected.png: Added.
* platform/chromium-mac-leopard/svg/text/text-text-04-t-expected.png: Added.
* platform/chromium-mac-leopard/svg/text/text-text-06-t-expected.png: Added.
* platform/chromium-mac-leopard/svg/wicd/test-rightsizing-b-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/W3C-SVG-1.1/pservers-grad-08-b-expected.txt: Added.
* platform/chromium-mac-snowleopard/svg/wicd/test-rightsizing-b-expected.png: Added.
* platform/chromium-mac/svg/W3C-SVG-1.1/pservers-grad-08-b-expected.png: Added.
* platform/chromium-mac/svg/text/text-altglyph-01-b-expected.png: Added.
* platform/chromium-mac/svg/text/text-text-04-t-expected.png: Added.
* platform/chromium-mac/svg/text/text-text-06-t-expected.png: Added.
* platform/chromium-mac/svg/wicd/test-rightsizing-b-expected.png: Added.
* platform/chromium-win-vista/svg/wicd: Removed.
* platform/chromium-win-vista/svg/wicd/test-rightsizing-b-expected.png: Removed.
* platform/chromium-win-xp/svg/wicd: Added.
* platform/chromium-win-xp/svg/wicd/test-rightsizing-b-expected.png: Added.
* platform/chromium-win/svg/W3C-SVG-1.1/fonts-glyph-03-t-expected.png:
* platform/chromium-win/svg/W3C-SVG-1.1/fonts-glyph-03-t-expected.txt:
* platform/chromium-win/svg/W3C-SVG-1.1/text-altglyph-01-b-expected.png:
* platform/chromium-win/svg/text/text-altglyph-01-b-expected.png:
* platform/chromium-win/svg/text/text-text-04-t-expected.png:
* platform/chromium-win/svg/text/text-text-06-t-expected.png:
* platform/chromium-win/svg/wicd/test-rightsizing-b-expected.png:
* platform/chromium-win/svg/wicd/test-rightsizing-b-expected.txt:
* platform/chromium/test_expectations.txt:

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

12 years ago[Chromium] Layout Test svg/custom/oversized-pattern-scale.svg and svg/custom/transfor...
schenney@chromium.org [Fri, 6 Apr 2012 19:10:44 +0000 (19:10 +0000)]
[Chromium] Layout Test svg/custom/oversized-pattern-scale.svg and svg/custom/transformed-pattern-clamp-svg-root.svg are flaky
https://bugs.webkit.org/show_bug.cgi?id=68982

Unreviewed Chromium expectations update.

These tests now passing without issue.

* platform/chromium-linux/svg/custom/oversized-pattern-scale-expected.png: Removed.
* platform/chromium-mac/svg/custom/oversized-pattern-scale-expected.png: Added.
* platform/chromium-mac/svg/custom/transformed-pattern-clamp-svg-root-expected.png:
* platform/chromium-win/svg/custom/oversized-pattern-scale-expected.png:
* platform/chromium-win/svg/custom/transformed-pattern-clamp-svg-root-expected.png:
* platform/chromium/svg/custom/oversized-pattern-scale-expected.png: Removed.
* platform/chromium/test_expectations.txt:

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

12 years agoUnskip some tests that appear to be passing on GTK+ and add a
mrobinson@webkit.org [Fri, 6 Apr 2012 19:07:11 +0000 (19:07 +0000)]
Unskip some tests that appear to be passing on GTK+ and add a
new baseline to deal with whitespace issues.

* platform/gtk/Skipped: Unskip some tests passing locally.
* platform/gtk/plugins/document-open-expected.txt: Added.

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

12 years agoIndexedDB: ObjectStore/Index shouldn't hold reference to backing store
jsbell@chromium.org [Fri, 6 Apr 2012 19:06:47 +0000 (19:06 +0000)]
IndexedDB: ObjectStore/Index shouldn't hold reference to backing store
https://bugs.webkit.org/show_bug.cgi?id=83074

Source/WebCore:

We should be able to collect and close the leveldb backing store as soon as the database
connection is closed, but the IDBObjectStoreBackendImpl and IDBIndexBackendImpl were
holding RefPtrs, and those objects are kept alive by script references.

Replaced RefPtrs to the IDBBackingStore with pointers to the IDBDatabase. On the back end,
IDBDatabaseBackendImpl maintains a RefPtr to the IDBObjectStoreBackendImpl object, so
a raw pointer back is safe. On the front end, the IDBObjectStore maintains a RefPtr to
the IDBDatabase so script can navigate upwards. Ditto on both ends for the ObjectStore/Index
relationship. The frontend objects maintain RefPtrs to the backend objects, so the backend
objects and their owners are maintained as long as there's a script reference.

Also made IDBDatabaseBackendImpl handle a null IDBFactoryBackendImpl pointer, for testing.

Reviewed by Tony Chang.

Tests: webkit_unit_tests --gtest_filter="IDBDatabaseBackendTest.*"

* Modules/indexeddb/IDBDatabaseBackendImpl.cpp:
(WebCore::IDBDatabaseBackendImpl::~IDBDatabaseBackendImpl):
(WebCore::IDBDatabaseBackendImpl::createObjectStore):
(WebCore::IDBDatabaseBackendImpl::loadObjectStores):
* Modules/indexeddb/IDBIndexBackendImpl.cpp:
(WebCore::IDBIndexBackendImpl::IDBIndexBackendImpl):
(WebCore::IDBIndexBackendImpl::openCursorInternal):
(WebCore::IDBIndexBackendImpl::countInternal):
(WebCore::IDBIndexBackendImpl::getInternal):
(WebCore::IDBIndexBackendImpl::addingKeyAllowed):
* Modules/indexeddb/IDBIndexBackendImpl.h:
(WebCore::IDBIndexBackendImpl::create):
(IDBIndexBackendImpl):
(WebCore::IDBIndexBackendImpl::backingStore):
(WebCore::IDBIndexBackendImpl::databaseId):
* Modules/indexeddb/IDBObjectStoreBackendImpl.cpp:
(WebCore::IDBObjectStoreBackendImpl::IDBObjectStoreBackendImpl):
(WebCore::IDBObjectStoreBackendImpl::getInternal):
(WebCore::IDBObjectStoreBackendImpl::putInternal):
(WebCore::IDBObjectStoreBackendImpl::deleteInternal):
(WebCore::IDBObjectStoreBackendImpl::clearInternal):
(WebCore):
(WebCore::IDBObjectStoreBackendImpl::createIndex):
(WebCore::IDBObjectStoreBackendImpl::createIndexInternal):
(WebCore::IDBObjectStoreBackendImpl::deleteIndexInternal):
(WebCore::IDBObjectStoreBackendImpl::openCursorInternal):
(WebCore::IDBObjectStoreBackendImpl::countInternal):
(WebCore::IDBObjectStoreBackendImpl::loadIndexes):
(WebCore::IDBObjectStoreBackendImpl::genAutoIncrementKey):
* Modules/indexeddb/IDBObjectStoreBackendImpl.h:
(WebCore::IDBObjectStoreBackendImpl::create):
(IDBObjectStoreBackendImpl):
(WebCore::IDBObjectStoreBackendImpl::backingStore):
(WebCore::IDBObjectStoreBackendImpl::databaseId):

Source/WebKit/chromium:

Reviewed by Tony Chang.

* WebKit.gypi:
* tests/IDBDatabaseBackendTest.cpp: Added.
(WebCore):
(MockIDBBackingStore):
(WebCore::TEST):

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

12 years agoFix build warning on const long long to int implicit conversion.
jonlee@apple.com [Fri, 6 Apr 2012 18:56:50 +0000 (18:56 +0000)]
Fix build warning on const long long to int implicit conversion.

* inspector/InspectorApplicationCacheAgent.cpp:
(WebCore::InspectorApplicationCacheAgent::buildObjectForApplicationCacheResource):

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

12 years agoFix LayoutUnit usage and rounding in RenderBlock and RenderEmbeddedObject
eae@chromium.org [Fri, 6 Apr 2012 18:55:54 +0000 (18:55 +0000)]
Fix LayoutUnit usage and rounding in RenderBlock and RenderEmbeddedObject
https://bugs.webkit.org/show_bug.cgi?id=83343

Reviewed by Eric Seidel.

Fix usage of LayoutUnits and rounding/pixel snapping in RenderBlock and
RenderEmbeddedObject in preparation for turing on subpixel support.

No new tests, no change in functionality.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::baselinePosition):
* rendering/RenderEmbeddedObject.cpp:
(WebCore::RenderEmbeddedObject::nodeAtPoint):

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

12 years agoZooming in SVGs in <object> is flakey
schenney@chromium.org [Fri, 6 Apr 2012 18:55:51 +0000 (18:55 +0000)]
Zooming in SVGs in <object> is flakey
https://bugs.webkit.org/show_bug.cgi?id=71673

Unreviewed Chromium test expectations update.

* platform/chromium-linux-x86/svg/zoom/page: Removed.
* platform/chromium-linux-x86/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.png: Removed.
* platform/chromium-linux-x86/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.txt: Removed.
* platform/chromium-linux/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.png:
* platform/chromium-mac-leopard/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.png: Added.
* platform/chromium-mac-snowleopard/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.png:
* platform/chromium-mac-snowleopard/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.txt: Removed.
* platform/chromium-mac/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.png: Added.
* platform/chromium-win-xp/svg/zoom/page: Removed.
* platform/chromium-win/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.png:
* platform/chromium-win/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.txt:
* platform/chromium/test_expectations.txt:

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

12 years ago[GTK] crash in editing/selection/editable-html-element.html
mrobinson@webkit.org [Fri, 6 Apr 2012 18:50:37 +0000 (18:50 +0000)]
[GTK] crash in editing/selection/editable-html-element.html
https://bugs.webkit.org/show_bug.cgi?id=64530

Unskip and rebaseline a test.

* platform/gtk/Skipped: Unskip this test, because it's passing locally.
* platform/gtk/editing/selection/editable-html-element-expected.txt:

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