WebKit-https.git
9 years agoRealphabetize about webaudio move
commit-queue@webkit.org [Wed, 21 Mar 2012 21:26:47 +0000 (21:26 +0000)]
Realphabetize about webaudio move
https://bugs.webkit.org/show_bug.cgi?id=81825

Patch by Mark Pilgrim <pilgrim@chromium.org> on 2012-03-21
Reviewed by Adam Barth.

No new tests, all existing tests pass.

* CMakeLists.txt:

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

9 years agoEvict tiles from pages in background tabs
andersca@apple.com [Wed, 21 Mar 2012 21:05:22 +0000 (21:05 +0000)]
Evict tiles from pages in background tabs
https://bugs.webkit.org/show_bug.cgi?id=81829
<rdar://problem/10866152>

Reviewed by Andreas Kling.

When the tile cache for a page is no longer in a window (which happens when it's moved to
a background tab), schedule a tile revalidation after 4 seconds. This tile revalidation
will ensure that tiles outside of the visible rect will be dropped.

* platform/graphics/ca/mac/TileCache.h:
(TileCache):
* platform/graphics/ca/mac/TileCache.mm:
(WebCore::TileCache::tileCacheLayerBoundsChanged):
(WebCore::TileCache::setIsInWindow):
(WebCore::TileCache::tileCoverageRect):
(WebCore):
(WebCore::TileCache::scheduleTileRevalidation):
(WebCore::TileCache::revalidateTiles):

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

9 years agoRegExpMatchesArray should not copy the ovector
barraclough@apple.com [Wed, 21 Mar 2012 20:55:41 +0000 (20:55 +0000)]
RegExpMatchesArray should not copy the ovector
https://bugs.webkit.org/show_bug.cgi?id=81742

Reviewed by Michael Saboff.

Currently, all RegExpMatchesArray object contain Vector<int, 32>, used to hold any sub-pattern results.
This makes allocation/construction/destruction of these objects more expensive. Instead, just store the
main match, and recreate the sub-pattern ranges only if necessary (these are often only used for grouping,
and the results never accessed).
If the main match (index 0) of the RegExpMatchesArray is accessed, reify that value alone.

* dfg/DFGOperations.cpp:
    - RegExpObject match renamed back to test (test returns a bool).
* runtime/RegExpConstructor.cpp:
(JSC):
    - Removed RegExpResult, RegExpMatchesArray constructor, destroy method.
(JSC::RegExpMatchesArray::finishCreation):
    - Removed RegExpConstructorPrivate parameter.
(JSC::RegExpMatchesArray::reifyAllProperties):
    - (Was fillArrayInstance) Reify all properties of the RegExpMatchesArray.
    If there are sub-pattern properties, the RegExp is re-run to generate their values.
(JSC::RegExpMatchesArray::reifyMatchProperty):
    - Reify just the match (index 0) property of the RegExpMatchesArray.
* runtime/RegExpConstructor.h:
(RegExpConstructor):
(JSC::RegExpConstructor::performMatch):
    - performMatch now returns a MatchResult, rather than using out-parameters.
* runtime/RegExpMatchesArray.h:
(JSC::RegExpMatchesArray::RegExpMatchesArray):
    - Moved from .cpp, stores the input/regExp/result to use when lazily reifying properties.
(RegExpMatchesArray):
(JSC::RegExpMatchesArray::create):
    - Now passed the input string matched against, the RegExp, and the MatchResult.
(JSC::RegExpMatchesArray::reifyAllPropertiesIfNecessary):
(JSC::RegExpMatchesArray::reifyMatchPropertyIfNecessary):
    - Helpers to conditionally reify properties.
(JSC::RegExpMatchesArray::getOwnPropertySlot):
(JSC::RegExpMatchesArray::getOwnPropertySlotByIndex):
(JSC::RegExpMatchesArray::getOwnPropertyDescriptor):
(JSC::RegExpMatchesArray::put):
(JSC::RegExpMatchesArray::putByIndex):
(JSC::RegExpMatchesArray::deleteProperty):
(JSC::RegExpMatchesArray::deletePropertyByIndex):
(JSC::RegExpMatchesArray::getOwnPropertyNames):
(JSC::RegExpMatchesArray::defineOwnProperty):
    - Changed to use reifyAllPropertiesIfNecessary/reifyMatchPropertyIfNecessary
    (getOwnPropertySlotByIndex calls reifyMatchPropertyIfNecessary if index is 0).
* runtime/RegExpObject.cpp:
(JSC::RegExpObject::exec):
(JSC::RegExpObject::match):
    - match now returns a MatchResult.
* runtime/RegExpObject.h:
(JSC::MatchResult::MatchResult):
    - Added the result of a match is a start & end tuple.
(JSC::MatchResult::failed):
    - A failure is indicated by (notFound, 0).
(JSC::MatchResult::operator bool):
    - Evaluates to false if the match failed.
(JSC::MatchResult::empty):
    - Evaluates to true if the match succeeded with length 0.
(JSC::RegExpObject::test):
    - Now returns a bool.
* runtime/RegExpPrototype.cpp:
(JSC::regExpProtoFuncTest):
    - RegExpObject match renamed back to test (test returns a bool).
* runtime/StringPrototype.cpp:
(JSC::removeUsingRegExpSearch):
(JSC::replaceUsingRegExpSearch):
(JSC::stringProtoFuncMatch):
(JSC::stringProtoFuncSearch):
    - performMatch now returns a MatchResult, rather than using out-parameters.

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

9 years agoSVG layout leaves objects still needing layout
schenney@chromium.org [Wed, 21 Mar 2012 20:55:06 +0000 (20:55 +0000)]
SVG layout leaves objects still needing layout
https://bugs.webkit.org/show_bug.cgi?id=81006

Unreviewed expectations changes.

* platform/mac/Skipped: Removed skipped tests fixed by 81006
* platform/win/Skipped: Removed skipped tests fixed by 81006

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

9 years agoSVG layout leaves objects still needing layout
schenney@chromium.org [Wed, 21 Mar 2012 20:49:40 +0000 (20:49 +0000)]
SVG layout leaves objects still needing layout
https://bugs.webkit.org/show_bug.cgi?id=81006

Reviewed by Nikolas Zimmermann.

Source/WebCore:

Change the layout of SVG objects such that resources that trigger
layout of other objects are handled in a distinct pass, and then
objects still requiring layout are laid out again.

Test: svg/custom/delete-text-innerText-crash.html

* rendering/svg/RenderSVGResourceContainer.cpp:
(WebCore::RenderSVGResourceContainer::layout):
* rendering/svg/RenderSVGResourceMarker.cpp:
(WebCore::RenderSVGResourceMarker::layout):
* rendering/svg/RenderSVGRoot.cpp:
(WebCore::RenderSVGRoot::layout):
(WebCore::RenderSVGRoot::addResourceForClientInvalidation):
(WebCore):
* rendering/svg/RenderSVGRoot.h:
(RenderSVGRoot):

LayoutTests:

* svg/custom/delete-text-crash-expected.png: Removed.
* svg/custom/delete-text-crash-expected.txt:
* svg/custom/delete-text-crash.html:
* svg/custom/delete-text-innerText-crash-expected.txt: Added.
* svg/custom/delete-text-innerText-crash.html: Added.

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

9 years agoMake use of CG rounded-rect primitives
timothy_horton@apple.com [Wed, 21 Mar 2012 20:41:43 +0000 (20:41 +0000)]
Make use of CG rounded-rect primitives
https://bugs.webkit.org/show_bug.cgi?id=79932
<rdar://problem/9274953>

Reviewed by Simon Fraser.

Portions of patch by Nikolas Zimmermann and Mustafizur Rahaman.

Dispatch to potentially platform-specific rounded rectangle path
construction from addPathForRoundedRect. Make use of this to call
wkCGPathAddRoundedRect on Lion and above, as long as the rounded
corners are all equivalent.

The origin of the stroke dash differs between the bezier approach
and the path added by wkCGPathAddRoundedRect, so Path::addRoundedRect()
takes a new parameter allowing code which is sensitive to stroke dash
origin (i.e. SVG) to fall back to the old behavior if need be.

Make use of the new Path::addRoundedRect() parameter to fall back to
the old (bezier) rounded-rect behavior when constructing a dashed SVG path,
in order to continue complying with the spec.

No new tests, as this is covered by many that use rounded corners,
and is only a performance improvement.

* WebCore.exp.in:
* platform/graphics/Path.cpp:
(WebCore::Path::addRoundedRect):
(WebCore):
(WebCore::Path::addPathForRoundedRect):
* platform/graphics/Path.h:
(Path):
* platform/graphics/cg/PathCG.cpp:
(WebCore::Path::platformAddPathForRoundedRect):
(WebCore):
* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:
* rendering/svg/SVGPathData.cpp:
(WebCore::updatePathFromRectElement):

Add wkCGPathAddRoundedRect.

* WebCoreSupport/WebSystemInterface.mm:
(InitWebCoreSystemInterface):

Add wkCGPathAddRoundedRect.

* WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
(InitWebCoreSystemInterface):

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

9 years agowebkitpy: get ServerProcess out of the reportcrash business
dpranke@chromium.org [Wed, 21 Mar 2012 20:29:02 +0000 (20:29 +0000)]
webkitpy: get ServerProcess out of the reportcrash business
https://bugs.webkit.org/show_bug.cgi?id=81600

Unreviewed, build fix.

Re-land r111307 and r111293 with another fix for a crash in NRWT;
we need to check if the driver has crashed before attempting to
read from it.

* Scripts/webkitpy/layout_tests/port/server_process.py:
(ServerProcess._reset):
(ServerProcess._handle_possible_interrupt):
(ServerProcess.write):
(ServerProcess.read_stdout):
(ServerProcess.has_crashed):
(ServerProcess._read):
(ServerProcess.stop):
* Scripts/webkitpy/layout_tests/port/server_process_unittest.py:
(TrivialMockPort.check_for_leaks):
(TestServerProcess.test_broken_pipe):
* Scripts/webkitpy/layout_tests/port/webkit.py:
(WebKitPort._read_image_diff):
(WebKitDriver.has_crashed):
(WebKitDriver._check_for_driver_crash):
(WebKitDriver.run_test):
(WebKitDriver._read_block):
* Scripts/webkitpy/layout_tests/port/webkit_unittest.py:
(MockServerProcess.__init__):
(MockServerProcess):
(MockServerProcess.has_crashed):

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

9 years ago[EFL] Use jhbuild downloaded fonts instead of hardcoded system font paths
commit-queue@webkit.org [Wed, 21 Mar 2012 20:24:11 +0000 (20:24 +0000)]
[EFL] Use jhbuild downloaded fonts instead of hardcoded system font paths
https://bugs.webkit.org/show_bug.cgi?id=81507

Now that we're only loading from one directory, no need to
iterate over a list of directories anymore.

Patch by Dominik Röttsches <dominik.rottsches@linux.intel.com> on 2012-03-21
Reviewed by Martin Robinson.

* DumpRenderTree/efl/CMakeLists.txt:
* DumpRenderTree/efl/FontManagement.cpp:
(addFontDirectory):
(addFontsToEnvironment):

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

9 years ago[Chromium] GL_EXT_occlusion_query_boolean and GL_CHROMIUM_command_buffer_query support.
commit-queue@webkit.org [Wed, 21 Mar 2012 20:08:49 +0000 (20:08 +0000)]
[Chromium] GL_EXT_occlusion_query_boolean and GL_CHROMIUM_command_buffer_query support.
https://bugs.webkit.org/show_bug.cgi?id=80988

Patch by David Reveman <reveman@chromium.org> on 2012-03-21
Reviewed by Adrienne Walker.

Source/Platform:

Add EXT_occlusion_query API to WebGraphicsContext3D.

* chromium/public/WebGraphicsContext3D.h:
(WebGraphicsContext3D):
(WebKit::WebGraphicsContext3D::createQueryEXT):
(WebKit::WebGraphicsContext3D::deleteQueryEXT):
(WebKit::WebGraphicsContext3D::isQueryEXT):
(WebKit::WebGraphicsContext3D::beginQueryEXT):
(WebKit::WebGraphicsContext3D::endQueryEXT):
(WebKit::WebGraphicsContext3D::getQueryivEXT):
(WebKit::WebGraphicsContext3D::getQueryObjectuivEXT):

Source/WebCore:

Expose EXT_occlusion_query API to WebKit compositor. Add
GL_EXT_occlusion_query_boolean and GL_CHROMIUM_command_buffer_query
enums.

* platform/graphics/chromium/Extensions3DChromium.h:
(Extensions3DChromium):

Source/WebKit/chromium:

Expose EXT_occlusion_query API to WebKit compositor.

* src/Extensions3DChromium.cpp:
(WebCore::Extensions3DChromium::createQueryEXT):
(WebCore):
(WebCore::Extensions3DChromium::deleteQueryEXT):
(WebCore::Extensions3DChromium::isQueryEXT):
(WebCore::Extensions3DChromium::beginQueryEXT):
(WebCore::Extensions3DChromium::endQueryEXT):
(WebCore::Extensions3DChromium::getQueryivEXT):
(WebCore::Extensions3DChromium::getQueryObjectuivEXT):
* src/GraphicsContext3DChromium.cpp:
(WebCore):
* src/GraphicsContext3DPrivate.h:
(GraphicsContext3DPrivate):
* tests/FakeWebGraphicsContext3D.h:
(WebKit::FakeWebGraphicsContext3D::createQueryEXT):
(WebKit::FakeWebGraphicsContext3D::deleteQueryEXT):
(WebKit::FakeWebGraphicsContext3D::isQueryEXT):
(WebKit::FakeWebGraphicsContext3D::beginQueryEXT):
(WebKit::FakeWebGraphicsContext3D::endQueryEXT):
(WebKit::FakeWebGraphicsContext3D::getQueryivEXT):
(WebKit::FakeWebGraphicsContext3D::getQueryObjectuivEXT):
(FakeWebGraphicsContext3D):

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

9 years agocompute the sign of flexibility for new flexbox
tony@chromium.org [Wed, 21 Mar 2012 20:00:22 +0000 (20:00 +0000)]
compute the sign of flexibility for new flexbox
https://bugs.webkit.org/show_bug.cgi?id=81722

Reviewed by Ojan Vafai.

This implements the computation of the sign of flexibility used by the
new flexing algorithm.
http://dev.w3.org/csswg/css3-flexbox/#resolve-the-flexible-lengths

No new tests, we don't use the sign of flexibility yet.

* rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::layoutFlexItems):
(WebCore::RenderFlexibleBox::computeNextFlexLine): Compute the size
adjusted for min/max as well as not adjusted.
(WebCore::RenderFlexibleBox::resolveFlexibleLengths): Renamed to match
spec text better.
* rendering/RenderFlexibleBox.h: Added enum for flex sign.

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

9 years agoWeb Inspector: Extract WebInspector.UIBreakpoint from WebInspector.Breakpoint.
vsevik@chromium.org [Wed, 21 Mar 2012 19:42:51 +0000 (19:42 +0000)]
Web Inspector: Extract WebInspector.UIBreakpoint from WebInspector.Breakpoint.
https://bugs.webkit.org/show_bug.cgi?id=81669

Reviewed by Pavel Feldman.

Source/WebCore:

* inspector/front-end/BreakpointManager.js:
(WebInspector.BreakpointManager.get for):
(WebInspector.BreakpointManager):
(WebInspector.BreakpointManager.prototype.uiSourceCodeAdded):
(WebInspector.BreakpointManager.prototype.uiSourceCodeRemoved):
(WebInspector.BreakpointManager.prototype.breakpointsForUISourceCode):
(WebInspector.BreakpointManager.prototype.setBreakpoint):
(WebInspector.BreakpointManager.prototype.removeBreakpoint):
(WebInspector.BreakpointManager.prototype._innerRemoveBreakpoint):
(WebInspector.BreakpointManager.prototype.removeAllBreakpoints):
(WebInspector.BreakpointManager.prototype._moveBreakpointInUI):
(WebInspector.BreakpointManager.prototype._uiBreakpoints.get this):
(WebInspector.BreakpointManager.prototype._uiBreakpoints):
(WebInspector.BreakpointManager.prototype.get _uiBreakpoint):
(WebInspector.BreakpointManager.prototype._addBreakpointToUI):
(WebInspector.BreakpointManager.prototype._removeBreakpointFromUI):
(WebInspector.BreakpointManager.prototype._breakpoints):
(WebInspector.BreakpointManager.prototype._breakpoint):
(WebInspector.BreakpointManager.prototype._addBreakpointToModel):
(WebInspector.BreakpointManager.prototype._removeBreakpointFromModel):
(WebInspector.BreakpointManager.prototype._forEachBreakpoint):
(WebInspector.BreakpointManager.prototype._setBreakpointInDebugger):
(WebInspector.BreakpointManager.prototype._removeBreakpointFromDebugger):
(WebInspector.BreakpointManager.prototype.debuggerReset):
(WebInspector.Breakpoint.prototype.serialize):
(WebInspector.Breakpoint.prototype.get uiBreakpoint):
(WebInspector.Breakpoint.prototype.createUIBreakpoint):
(WebInspector.Breakpoint.prototype.removeUIBreakpoint):
(WebInspector.UIBreakpoint):
* inspector/front-end/DebuggerPresentationModel.js:
(WebInspector.DebuggerPresentationModel.prototype._handleUISourceCodeListChanged):
(WebInspector.DebuggerPresentationModel.prototype.findBreakpoint):
(WebInspector.DebuggerPresentationModel.prototype._breakpointAdded):
(WebInspector.DebuggerPresentationModel.prototype._breakpointRemoved):
* inspector/front-end/ScriptsPanel.js:

LayoutTests:

* inspector/debugger/breakpoint-manager-expected.txt:
* inspector/debugger/breakpoint-manager.html:

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

9 years agoadd DOCTYPE for move-by-word-visually tests
xji@chromium.org [Wed, 21 Mar 2012 19:37:25 +0000 (19:37 +0000)]
add DOCTYPE for move-by-word-visually tests
https://bugs.webkit.org/show_bug.cgi?id=81810

Reviewed by Ryosuke Niwa.

* editing/selection/move-by-word-visually-crash-test-1.html:
* editing/selection/move-by-word-visually-crash-test-2.html:
* editing/selection/move-by-word-visually-crash-test-3.html:
* editing/selection/move-by-word-visually-crash-test-4.html:
* editing/selection/move-by-word-visually-crash-test-css-generated-content.html:
* editing/selection/move-by-word-visually-crash-test-textarea.html:
* editing/selection/move-by-word-visually-inline-block-positioned-element.html:
* editing/selection/move-by-word-visually-null-box.html:
* editing/selection/move-by-word-visually-textarea.html:
* editing/selection/move-by-word-visually-wrong-left-right.html:

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

9 years agoTileCache needs to know if its containing page is in a window
andersca@apple.com [Wed, 21 Mar 2012 19:24:24 +0000 (19:24 +0000)]
TileCache needs to know if its containing page is in a window
https://bugs.webkit.org/show_bug.cgi?id=81821

Reviewed by Andreas Kling.

This is in preparation for throwing away invisible tiles in background tabs to reduce memory usage.

* page/FrameView.cpp:
(WebCore::FrameView::didMoveOnscreen):
(WebCore::FrameView::willMoveOffscreen):
* page/Page.cpp:
(WebCore::Page::Page):
(WebCore::Page::didMoveOnscreen):
(WebCore::Page::willMoveOffscreen):
* page/Page.h:
(WebCore::Page::isOnscreen):
(Page):
* platform/graphics/TiledBacking.h:
(TiledBacking):
* platform/graphics/ca/mac/TileCache.h:
(TileCache):
* platform/graphics/ca/mac/TileCache.mm:
(WebCore::TileCache::TileCache):
(WebCore::TileCache::setIsInWindow):
(WebCore):
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::RenderLayerBacking):

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

9 years agoSome chromium rebaselines that differed due to platform-specific text rendering.
ojan@chromium.org [Wed, 21 Mar 2012 19:16:35 +0000 (19:16 +0000)]
Some chromium rebaselines that differed due to platform-specific text rendering.
The changes to non-chromium platforms are the result of webkit-patch optimize-baselines
which removed duplicate baselines from the tree.

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

9 years agoUnreviewed, GTK rebaseline after r111569.
philn@webkit.org [Wed, 21 Mar 2012 19:09:15 +0000 (19:09 +0000)]
Unreviewed, GTK rebaseline after r111569.

* platform/gtk/http/tests/security/clipboard/clipboard-file-access-expected.txt:

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

9 years agoWeb audio layout test failed in debug with an ASSERT error in ReverbConvolverStage.cpp
commit-queue@webkit.org [Wed, 21 Mar 2012 19:06:53 +0000 (19:06 +0000)]
Web audio layout test failed in debug with an ASSERT error in ReverbConvolverStage.cpp
https://bugs.webkit.org/show_bug.cgi?id=81744

Patch by Xingnan Wang <xingnan.wang@intel.com> on 2012-03-21
Reviewed by Chris Rogers.

* platform/audio/ReverbConvolverStage.cpp:
(WebCore::ReverbConvolverStage::ReverbConvolverStage):

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

9 years ago[chromium] Font fallback in cr-win is wrong for string contains zero-width-space.
xji@chromium.org [Wed, 21 Mar 2012 19:04:30 +0000 (19:04 +0000)]
[chromium] Font fallback in cr-win is wrong for string contains zero-width-space.
https://bugs.webkit.org/show_bug.cgi?id=79961

Reviewed by Adam Barth.

Source/WebCore:

Treat zero-width-space (\u200B) as true for treatAsZeroWidthSpaceInComplexScipt().

* platform/graphics/Font.h:
(WebCore::Font::treatAsZeroWidthSpaceInComplexScript):
* platform/graphics/mac/ComplexTextController.cpp:
(WebCore::ComplexTextController::adjustGlyphsAndAdvances):
* platform/graphics/win/UniscribeController.cpp:
(WebCore::UniscribeController::shapeAndPlaceItem):

LayoutTests:

* fast/text/zero-width-characters-complex-script.html:

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

9 years agoUnreviewed test_expectations update for chromium.
eae@chromium.org [Wed, 21 Mar 2012 19:01:59 +0000 (19:01 +0000)]
Unreviewed test_expectations update for chromium.

* platform/chromium/test_expectations.txt:

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

9 years agoBuild fix for !ENABLE(INSPECTOR) after r111005.
paroga@webkit.org [Wed, 21 Mar 2012 18:59:55 +0000 (18:59 +0000)]
Build fix for !ENABLE(INSPECTOR) after r111005.

* inspector/ContentSearchUtils.h:

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

9 years ago[V8] V8GCForContextDispose should indicate whether a context is disposed for the...
commit-queue@webkit.org [Wed, 21 Mar 2012 18:54:18 +0000 (18:54 +0000)]
[V8] V8GCForContextDispose should indicate whether a context is disposed for the main frame or not
https://bugs.webkit.org/show_bug.cgi?id=81200

Patch by Ulan Degenbaev <ulan@chromium.org> on 2012-03-21
Reviewed by Adam Barth.

Pass a hint to V8::IdleNotification that requests more aggressive GC
when a main frame context is disposed and requests incremental GC otherwise.

* bindings/v8/V8DOMWindowShell.cpp:
(WebCore::V8DOMWindowShell::disposeContextHandles):
* bindings/v8/V8GCForContextDispose.cpp:
(WebCore::V8GCForContextDispose::V8GCForContextDispose):
(WebCore::V8GCForContextDispose::notifyContextDisposed):
(WebCore::V8GCForContextDispose::pseudoIdleTimerFired):
* bindings/v8/V8GCForContextDispose.h:
(V8GCForContextDispose):

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

9 years ago[chromium] CCThreadProxy must initialize frameBeginTime to monotonicallyIncreasingTim...
nduca@chromium.org [Wed, 21 Mar 2012 18:43:21 +0000 (18:43 +0000)]
[chromium] CCThreadProxy must initialize frameBeginTime to monotonicallyIncreasingTime rather than zero
https://bugs.webkit.org/show_bug.cgi?id=81790

Reviewed by James Robinson.

* platform/graphics/chromium/cc/CCThreadProxy.cpp:
(WebCore::CCThreadProxy::scheduledActionBeginFrame):

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

9 years agoAdd multichannel support in RealtimeAnalyser
commit-queue@webkit.org [Wed, 21 Mar 2012 18:40:34 +0000 (18:40 +0000)]
Add multichannel support in RealtimeAnalyser
https://bugs.webkit.org/show_bug.cgi?id=81745

Patch by Xingnan Wang <xingnan.wang@intel.com> on 2012-03-21
Reviewed by Chris Rogers.

* Modules/webaudio/RealtimeAnalyser.cpp:
(WebCore::RealtimeAnalyser::writeInput):
(WebCore):

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

9 years agoUnreviewed chromium linux rebaseline.
eae@chromium.org [Wed, 21 Mar 2012 18:37:33 +0000 (18:37 +0000)]
Unreviewed chromium linux rebaseline.

* platform/chromium-linux/fast/eventsource: Removed.
* platform/chromium-linux/fast/eventsource/eventsource-url-attribute-expected.txt: Removed.

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

9 years ago[chromium] MediaStream API (JSEP): Enhancing WebMediaHints and WebICEOptions
tommyw@google.com [Wed, 21 Mar 2012 18:29:44 +0000 (18:29 +0000)]
[chromium] MediaStream API (JSEP): Enhancing WebMediaHints and WebICEOptions
https://bugs.webkit.org/show_bug.cgi?id=81652

Reviewed by Adam Barth.

Adding an initialize method to WebMediaHints and WebICEOptions.
This is needed for Chromium unittests.

* public/platform/WebICEOptions.h:
(WebKit::WebICEOptions::WebICEOptions):
(WebICEOptions):
* public/platform/WebMediaHints.h:
(WebKit::WebMediaHints::WebMediaHints):
(WebMediaHints):
* src/AssertMatchingEnums.cpp:
* src/WebICEOptions.cpp:
(WebKit::WebICEOptions::initialize):
(WebKit):
(WebKit::WebICEOptions::candidateTypeToUse):
* src/WebMediaHints.cpp:
(WebKit::WebMediaHints::initialize):
(WebKit):

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

9 years agoRemoving HTMLTrackElement does not delete TextTrack
eric.carlson@apple.com [Wed, 21 Mar 2012 18:28:48 +0000 (18:28 +0000)]
Removing HTMLTrackElement does not delete TextTrack
https://bugs.webkit.org/show_bug.cgi?id=80873

Reviewed by Antti Koivisto.

Source/WebCore:

No new tests, but media/track/track-language-preference.html has been updated
to test this fix.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::didAddTrack): Renamed from trackWasAdded.
(WebCore::HTMLMediaElement::willRemoveTrack): Renamed from trackWasRemoved because it is
called before the track is removed, to allow the TextTrack to be removed.
* html/HTMLMediaElement.h:

* html/HTMLTrackElement.cpp:
(WebCore::HTMLTrackElement::insertedIntoTree): Renamed from insertedIntoDocument
(WebCore::HTMLTrackElement::willRemove): Renamed from removedFromDocument.
* html/HTMLTrackElement.h:

* html/track/LoadableTextTrack.cpp:
(WebCore::LoadableTextTrack::trackElementIndex): Don't include tracks that are not in the
document in the calcualtion.

LayoutTests:

* media/track/track-language-preference-expected.txt:
* media/track/track-language-preference.html:

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

9 years agoFix out of memory by allowing overcommit
commit-queue@webkit.org [Wed, 21 Mar 2012 18:21:46 +0000 (18:21 +0000)]
Fix out of memory by allowing overcommit
https://bugs.webkit.org/show_bug.cgi?id=81743

Patch by Hojong Han <hojong.han@samsung.com> on 2012-03-21
Reviewed by Geoffrey Garen.

Garbage collection is not triggered and new blocks are added
because overcommit is allowed by MAP_NORESERVE flag when high water mark is big enough.

* wtf/OSAllocatorPosix.cpp:
(WTF::OSAllocator::reserveAndCommit):

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

9 years agoChecking in updated test expectations
mhahnenberg@apple.com [Wed, 21 Mar 2012 18:04:39 +0000 (18:04 +0000)]
Checking in updated test expectations

* platform/mac/fast/AppleScript/001-expected.txt:

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

9 years ago[Qt][Mac] ranlib segfaults when creating symbol tables for libWebCore.a.
zeno.albisser@nokia.com [Wed, 21 Mar 2012 18:02:15 +0000 (18:02 +0000)]
[Qt][Mac] ranlib segfaults when creating symbol tables for libWebCore.a.
https://bugs.webkit.org/show_bug.cgi?id=81750

Building WebCore on mac currently creates an archive that is bigger than
4GB. But ranlib fails to create a symbol table for such a big archive,
even on 64bit machines.
Therefore we start using SVGAllInOne.cpp when building debug
on mac. This reduces the size of the archive by about 300MB.

Reviewed by Tor Arne Vestbø.

Source/WebCore:

* Target.pri:

Tools:

* qmake/mkspecs/features/mac/default_pre.prf:

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

9 years ago[chromium] MediaStream API (JSEP): Introducing WebSessionDescription and WebIceCandidate
tommyw@google.com [Wed, 21 Mar 2012 17:55:04 +0000 (17:55 +0000)]
[chromium] MediaStream API (JSEP): Introducing WebSessionDescription and WebIceCandidate
https://bugs.webkit.org/show_bug.cgi?id=81339

Reviewed by Adam Barth.

Source/WebCore:

Not possible to test until the entire JSEP feature is commited.

* Modules/mediastream/IceCandidate.cpp:
(WebCore::IceCandidate::toSdp):
* Modules/mediastream/SessionDescription.cpp:
(WebCore::SessionDescription::toSdp):
* platform/mediastream/IceCandidateDescriptor.cpp:
(WebCore::IceCandidateDescriptor::toSDP):
* platform/mediastream/IceCandidateDescriptor.h:
(IceCandidateDescriptor):
* platform/mediastream/MediaStreamCenter.cpp:
(WebCore::MediaStreamCenter::constructSDP):
* platform/mediastream/MediaStreamCenter.h:
(MediaStreamCenter):
* platform/mediastream/SessionDescriptionDescriptor.cpp:
(WebCore::SessionDescriptionDescriptor::SessionDescriptionDescriptor):
(WebCore::SessionDescriptionDescriptor::toSDP):
(WebCore::SessionDescriptionDescriptor::initialSDP):
* platform/mediastream/SessionDescriptionDescriptor.h:
(SessionDescriptionDescriptor):

Source/WebKit/chromium:

Simple WebKit representations of the WebCore/platform versions.

* WebKit.gyp:
* public/platform/WebICECandidateDescriptor.h: Added.
(WebCore):
(WebKit):
(WebICECandidateDescriptor):
(WebKit::WebICECandidateDescriptor::WebICECandidateDescriptor):
(WebKit::WebICECandidateDescriptor::~WebICECandidateDescriptor):
(WebKit::WebICECandidateDescriptor::operator=):
(WebKit::WebICECandidateDescriptor::isNull):
* public/platform/WebSessionDescriptionDescriptor.h: Added.
(WebCore):
(WebKit):
(WebSessionDescriptionDescriptor):
(WebKit::WebSessionDescriptionDescriptor::WebSessionDescriptionDescriptor):
(WebKit::WebSessionDescriptionDescriptor::~WebSessionDescriptionDescriptor):
(WebKit::WebSessionDescriptionDescriptor::operator=):
(WebKit::WebSessionDescriptionDescriptor::isNull):
* src/WebICECandidateDescriptor.cpp: Added.
(WebKit):
(WebKit::WebICECandidateDescriptor::WebICECandidateDescriptor):
(WebKit::WebICECandidateDescriptor::assign):
(WebKit::WebICECandidateDescriptor::reset):
(WebKit::WebICECandidateDescriptor::initialize):
(WebKit::WebICECandidateDescriptor::operator PassRefPtr<WebCore::IceCandidateDescriptor>):
(WebKit::WebICECandidateDescriptor::label):
(WebKit::WebICECandidateDescriptor::candidateLine):
* src/WebSessionDescriptionDescriptor.cpp: Added.
(WebKit):
(WebKit::WebSessionDescriptionDescriptor::WebSessionDescriptionDescriptor):
(WebKit::WebSessionDescriptionDescriptor::assign):
(WebKit::WebSessionDescriptionDescriptor::reset):
(WebKit::WebSessionDescriptionDescriptor::operator WTF::PassRefPtr<WebCore::SessionDescriptionDescriptor>):
(WebKit::WebSessionDescriptionDescriptor::initialize):
(WebKit::WebSessionDescriptionDescriptor::numberOfAddedCandidates):
(WebKit::WebSessionDescriptionDescriptor::candidate):
(WebKit::WebSessionDescriptionDescriptor::initialSDP):

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

9 years agoUnreviewed test_expectations update for chromium.
eae@chromium.org [Wed, 21 Mar 2012 17:52:50 +0000 (17:52 +0000)]
Unreviewed test_expectations update for chromium.

* platform/chromium/test_expectations.txt:
Marking rubberbanding and a couple of svg tests as flaky.

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

9 years agoUse RFC version of WebSocket protocol by default
yutak@chromium.org [Wed, 21 Mar 2012 17:51:10 +0000 (17:51 +0000)]
Use RFC version of WebSocket protocol by default
https://bugs.webkit.org/show_bug.cgi?id=81718

Reviewed by Kent Tamura.

Flip the default value of Settings::m_useHixie76WebSocketProtocol so WebKit ports will use
RFC version of WebSocket protocol by default.

All the existing ports already use the RFC protocol as of now, so this change will not make
any impact (hopefully).

No new tests. No change in functionality.

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

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

9 years agoWeb Inspector: only show JS event listeners in Event Listeners tab of Elements panel
caseq@chromium.org [Wed, 21 Mar 2012 17:49:51 +0000 (17:49 +0000)]
Web Inspector: only show JS event listeners in Event Listeners tab of Elements panel
https://bugs.webkit.org/show_bug.cgi?id=81798

Reviewed by Pavel Feldman.

* bindings/js/JSInjectedScriptHostCustom.cpp:
(WebCore::getJSListenerFunctions):
* bindings/js/ScriptEventListener.cpp:
(WebCore::eventListenerHandlerBody):
(WebCore::eventListenerHandlerLocation):
* bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
(WebCore::getJSListenerFunctions):
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::getEventListeners):

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

9 years agoEventListener::Type enum has unused member InspectorDOMAgentType
caseq@chromium.org [Wed, 21 Mar 2012 17:47:08 +0000 (17:47 +0000)]
EventListener::Type enum has unused member InspectorDOMAgentType
https://bugs.webkit.org/show_bug.cgi?id=81794

Reviewed by Pavel Feldman.

* dom/EventListener.h:

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

9 years agoIncremental cleanup of BitmapImage: inlined virtual functions
commit-queue@webkit.org [Wed, 21 Mar 2012 17:43:46 +0000 (17:43 +0000)]
Incremental cleanup of BitmapImage: inlined virtual functions
https://bugs.webkit.org/show_bug.cgi?id=81688

Patch by Tom Hudson <tomhudson@google.com> on 2012-03-21
Reviewed by James Robinson.

No change in functionality, so no new tests.

Move virtual functions defined in headers into .cpp files.

* WebCore.gypi:
* platform/graphics/BitmapImage.cpp:
(WebCore::BitmapImage::isBitmapImage):
(WebCore):
(WebCore::BitmapImage::hasSingleSecurityOrigin):
(WebCore::BitmapImage::nativeImageForCurrentFrame):
(WebCore::BitmapImage::currentFrameHasAlpha):
(WebCore::BitmapImage::notSolidColor):
(WebCore::BitmapImage::decodedSize):
(WebCore::BitmapImage::mayFillWithSolidColor):
(WebCore::BitmapImage::solidColor):
* platform/graphics/BitmapImage.h:
(BitmapImage):
* platform/graphics/skia/BitmapImageSingleFrameSkia.cpp: Added.
(WebCore):
(WebCore::BitmapImageSingleFrameSkia::isBitmapImage):
(WebCore::BitmapImageSingleFrameSkia::currentFrameHasAlpha):
(WebCore::BitmapImageSingleFrameSkia::size):
(WebCore::BitmapImageSingleFrameSkia::destroyDecodedData):
(WebCore::BitmapImageSingleFrameSkia::decodedSize):
(WebCore::BitmapImageSingleFrameSkia::nativeImageForCurrentFrame):
(WebCore::BitmapImageSingleFrameSkia::notSolidColor):
* platform/graphics/skia/BitmapImageSingleFrameSkia.h:
(BitmapImageSingleFrameSkia):

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

9 years agoAdded fast/forms/placeholder-set-attribute.html to the Mac skipped list, because of
mitz@apple.com [Wed, 21 Mar 2012 17:43:20 +0000 (17:43 +0000)]
Added fast/forms/placeholder-set-attribute.html to the Mac skipped list, because of
<http://webkit.org/b/81802> REGRESSION: fast/forms/placeholder-set-attribute.html is failing intermittently because WebKit fails to repaint after setting the placeholder attribute

* platform/mac/Skipped:

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

9 years agoUnreviewed, GTK rebaseline after r111558.
philn@webkit.org [Wed, 21 Mar 2012 17:31:52 +0000 (17:31 +0000)]
Unreviewed, GTK rebaseline after r111558.

* platform/gtk/fast/dom/Window/window-properties-expected.txt:
* platform/gtk/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/gtk/fast/dom/prototype-inheritance-2-expected.txt:
* platform/gtk/fast/js/global-constructors-expected.txt:

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

9 years ago Remove obsolete File attributes
ap@apple.com [Wed, 21 Mar 2012 17:26:40 +0000 (17:26 +0000)]
    Remove obsolete File attributes
        https://bugs.webkit.org/show_bug.cgi?id=79383

        Reviewed by Hajime Morita.

        * bindings/objc/PublicDOMInterfaces.h:
        * fileapi/File.h:
        * fileapi/File.idl:
        Removed fileName and fileSize, they have different names now.

        * html/FileInputType.cpp:
        (WebCore::FileInputType::appendFormData):
        (WebCore::FileInputType::getTypeSpecificValue):
        (WebCore::FileInputType::defaultToolTip):
        Updated to use new function names.

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

9 years agoSkipped editing/selection/move-by-word-visually-crash-test-5.html due to isWordTextBr...
xji@chromium.org [Wed, 21 Mar 2012 17:25:54 +0000 (17:25 +0000)]
Skipped editing/selection/move-by-word-visually-crash-test-5.html due to isWordTextBreak() is not implemented.

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

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

9 years ago[Qt] WebGraphicsLayer: Untie the layer updates and tile updates.
jocelyn.turcotte@nokia.com [Wed, 21 Mar 2012 17:25:07 +0000 (17:25 +0000)]
[Qt] WebGraphicsLayer: Untie the layer updates and tile updates.
https://bugs.webkit.org/show_bug.cgi?id=81771

Reviewed by Kenneth Rohde Christiansen.

The DidRenderFrame message needs to be sent for every UpdateTileForLayer
message, but this currently has to be triggered by m_shouldSyncFrame which
is only set after sending a SyncCompositingLayerState message.
This patch makes sure that tile updates won't trigger sending the whole
layer info if it didn't change, and send the DidRenderFrame message directly.

It also makes sure that the layer info is sent before any tile update so that
the layer can be created on the UI process before any tile update is handled.

* UIProcess/WebLayerTreeRenderer.cpp:
(WebKit::WebLayerTreeRenderer::getBackingStore):
* WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
(WebCore::WebGraphicsLayer::syncCompositingStateForThisLayerOnly):
(WebCore::WebGraphicsLayer::tiledBackingStorePaint):
(WebCore::WebGraphicsLayer::createTile):
(WebCore::WebGraphicsLayer::updateTile):
(WebCore::WebGraphicsLayer::removeTile):
* WebProcess/WebPage/qt/LayerTreeHostQt.cpp:
(WebKit::LayerTreeHostQt::createTile):
(WebKit::LayerTreeHostQt::updateTile):
(WebKit::LayerTreeHostQt::removeTile):

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

9 years ago[Qt] Don't clip the contents rendering to the contents size.
jocelyn.turcotte@nokia.com [Wed, 21 Mar 2012 17:23:30 +0000 (17:23 +0000)]
[Qt] Don't clip the contents rendering to the contents size.
https://bugs.webkit.org/show_bug.cgi?id=81770

Reviewed by Kenneth Rohde Christiansen.

The original bug was caused by the contents size updates
having to go through the UI process before being applied
on the TiledBackingStore of the non composited contents layer.
With this bug being fixed, the clipping isn't necessary anymore.

* UIProcess/qt/LayerBackingStore.cpp:
(WebKit::LayerBackingStore::paintToTextureMapper):

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

9 years ago[Qt] Apply tile removals at the same time as update buffer swaps.
jocelyn.turcotte@nokia.com [Wed, 21 Mar 2012 17:22:04 +0000 (17:22 +0000)]
[Qt] Apply tile removals at the same time as update buffer swaps.
https://bugs.webkit.org/show_bug.cgi?id=81768

Reviewed by Kenneth Rohde Christiansen.

When committing the scale, we have to remove old tiles once the
tiles for the new scale are rendered. This should however wait
until those tiles gets their buffer swapped (following the DidRenderFrame
message) to make sure that there is no rendered gap between the removals
and updates swap.
This patch continues rendering the removed tiles until the DidRenderFrame
message is received to discard the old contents and show the new contents
at the same frame.

* UIProcess/WebLayerTreeRenderer.cpp:
(WebKit::WebLayerTreeRenderer::commitTileUpdates):
(WebKit::WebLayerTreeRenderer::flushLayerChanges):
* UIProcess/WebLayerTreeRenderer.h:
(WebLayerTreeRenderer):
* UIProcess/qt/LayerBackingStore.cpp:
(WebKit::LayerBackingStore::removeTile):
(WebKit::LayerBackingStore::commitTileUpdates):
* UIProcess/qt/LayerBackingStore.h:
(LayerBackingStore):

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

9 years ago[Qt] Trigger scene graph repaints only for relevant layer updates.
jocelyn.turcotte@nokia.com [Wed, 21 Mar 2012 17:20:47 +0000 (17:20 +0000)]
[Qt] Trigger scene graph repaints only for relevant layer updates.
https://bugs.webkit.org/show_bug.cgi?id=81765

Reviewed by Kenneth Rohde Christiansen.

Tile updates and removal shouldn't re-render the scene all by themselves
since they need a buffer swap before having any effect on the framebuffer.

* UIProcess/LayerTreeHostProxy.cpp:
(WebKit::LayerTreeHostProxy::dispatchUpdate):
(WebKit::LayerTreeHostProxy::deleteCompositingLayer):
(WebKit::LayerTreeHostProxy::setRootCompositingLayer):
(WebKit::LayerTreeHostProxy::didRenderFrame):

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

9 years ago[Qt] Don't go through the UI process to update a layer's contents size.
jocelyn.turcotte@nokia.com [Wed, 21 Mar 2012 17:19:46 +0000 (17:19 +0000)]
[Qt] Don't go through the UI process to update a layer's contents size.
https://bugs.webkit.org/show_bug.cgi?id=81764

Reviewed by Kenneth Rohde Christiansen.

It's happening when navigating pages that contents from the old page
is still present on the tiles until the contents size is shrunk to cut it out.
Since the contents size updates are asynchronous and go through the UI process,
this could occasionally show some glitch frames.
Even worse, the user could delay this update by starting to pan and keep
his finger on the screen.
This patch makes sure that changes to contents size are notifying the LayerTreeHost
immediately when in fixed layout mode, and remove the loop through the UI process.

* UIProcess/API/qt/qquickwebpage.cpp:
(QQuickWebPage::setContentsSize):
* UIProcess/API/qt/qquickwebpage_p_p.h:
(QQuickWebPagePrivate):
* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewPrivate::didRelaunchProcess):
(QQuickWebViewLegacyPrivate::updateViewportSize):
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::contentsSizeChanged):
* WebProcess/WebPage/DrawingArea.h:
(WebKit):
(WebKit::DrawingArea::layerTreeHost):
* WebProcess/WebPage/DrawingAreaImpl.cpp:
(WebKit::DrawingAreaImpl::updateBackingStoreState):
* WebProcess/WebPage/DrawingAreaImpl.h:
(WebKit::DrawingAreaImpl::layerTreeHost):
* WebProcess/WebPage/qt/LayerTreeHostQt.cpp:
(WebKit::LayerTreeHostQt::sizeDidChange):

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

9 years agoMore Windows build fixing.
jberlin@webkit.org [Wed, 21 Mar 2012 17:18:06 +0000 (17:18 +0000)]
More Windows build fixing.

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCommon.vsprops:
Fix the order of the include directories to look in include/private first before looking
in include/private/JavaScriptCore.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreReleasePGO.vsprops:
Look in the Production output directory (where the wtf headers will be). This is the same
thing that is done for jsc and testRegExp in ReleasePGO.

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

9 years agoTiledBackingStore: Create the first round of tiles synchronously after setting the...
jocelyn.turcotte@nokia.com [Wed, 21 Mar 2012 17:18:00 +0000 (17:18 +0000)]
TiledBackingStore: Create the first round of tiles synchronously after setting the visible rect.
https://bugs.webkit.org/show_bug.cgi?id=81762

Reviewed by Kenneth Rohde Christiansen.

The first round of tiles should cover completely the visible rect.
Creating the tiles synchronously allows us to get the new tiles immediately
and prevents an extra AC layers sync to be able to remove the old tiles.

At some point it might also make sense to remove the tile creation timer
completely.

* platform/graphics/TiledBackingStore.cpp:
(WebCore::TiledBackingStore::coverWithTilesIfNeeded):

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

9 years agoTiledBackingStore: When checking if the visible area is covered, only convert to...
jocelyn.turcotte@nokia.com [Wed, 21 Mar 2012 17:16:46 +0000 (17:16 +0000)]
TiledBackingStore: When checking if the visible area is covered, only convert to scaled coordinates once.
https://bugs.webkit.org/show_bug.cgi?id=81519

Reviewed by Kenneth Rohde Christiansen.

Both visibleRect and coverageRatio call mapFromContents on the input rect,
this woulc cause the coverageRatio to never reach 1.0 when the contents is
scaled up.

* platform/graphics/TiledBackingStore.cpp:
(WebCore::TiledBackingStore::visibleAreaIsCovered):

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

9 years agoUpdated Mac WebKit2 expected results for this test. <http://webkit.org/b/81797> track...
mitz@apple.com [Wed, 21 Mar 2012 17:13:55 +0000 (17:13 +0000)]
Updated Mac WebKit2 expected results for this test. <webkit.org/b/81797> tracks the
fact that it is failing in WebKit2.

* platform/mac-wk2/fast/history: Added.
* platform/mac-wk2/fast/history/visited-link-background-color-expected.png: Added.
* platform/mac-wk2/fast/history/visited-link-background-color-expected.txt: Added.

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

9 years agoMediaStream API: Need to support MediaStream constructor for JSC
commit-queue@webkit.org [Wed, 21 Mar 2012 17:08:26 +0000 (17:08 +0000)]
MediaStream API: Need to support MediaStream constructor for JSC
https://bugs.webkit.org/show_bug.cgi?id=78781

Patch by Mao Yujie <yujie.mao@intel.com> on 2012-03-21
Reviewed by Adam Barth.

No new tests.

* Modules/mediastream/DOMWindowMediaStream.idl:
* bindings/generic/RuntimeEnabledFeatures.h:
(WebCore::RuntimeEnabledFeatures::webkitMediaStreamEnabled):

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

9 years agoUnreviewed tests_expectations update.
eae@chromium.org [Wed, 21 Mar 2012 17:06:14 +0000 (17:06 +0000)]
Unreviewed tests_expectations update.

Mark svg/custom/fill-opacity-update.svg as crashing on snowleopard dbg.

* platform/chromium/test_expectations.txt:

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

9 years agoSkip building resources if SVGTRef is not in a document
commit-queue@webkit.org [Wed, 21 Mar 2012 16:56:06 +0000 (16:56 +0000)]
Skip building resources if SVGTRef is not in a document
https://bugs.webkit.org/show_bug.cgi?id=81473

Patch by Philip Rogers <pdr@google.com> on 2012-03-21
Reviewed by Nikolas Zimmermann.

Source/WebCore:

We can skip the building of pending resources in SVGTRef if we're not
yet in a document. This mirrors the nearly identical logic in
SVGUseElement::buildPendingResource() and
SVGFEImageElement::buildPendingResource().

Test: http/tests/svg/tref-adoptNode-crash.html

* svg/SVGTRefElement.cpp:
(WebCore::SVGTRefElement::buildPendingResource):

LayoutTests:

* http/tests/svg: Added.
* http/tests/svg/resources: Added.
* http/tests/svg/resources/svg-tref.svg: Added.
* http/tests/svg/tref-adoptNode-crash-expected.txt: Added.
* http/tests/svg/tref-adoptNode-crash.html: Added.

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

9 years ago[chromium] Use floating point scroll deltas for layers
commit-queue@webkit.org [Wed, 21 Mar 2012 16:52:38 +0000 (16:52 +0000)]
[chromium] Use floating point scroll deltas for layers
https://bugs.webkit.org/show_bug.cgi?id=81546

Patch by Sami Kyostila <skyostil@chromium.org> on 2012-03-21
Reviewed by James Robinson.

Source/WebCore:

Use floating point scroll deltas for layers instead of integral scroll
deltas. This is because due to page scaling it may be necessary to
scroll layers in sub-CSS-pixel steps to avoid visible jumps. When the
floating point scroll offset is committed to the main thread, it is
truncated to integer, but the fractional part is kept on the CC side to
make sure fractional scroll offsets are accumulated correctly over
multiple commits.

Test: CCLayerTreeHostTestFractionalScroll

* platform/graphics/FloatPoint.h:
(WebCore::toSize):
(WebCore):
* platform/graphics/chromium/cc/CCLayerImpl.cpp:
(WebCore::CCLayerImpl::scrollBy):
(WebCore::CCLayerImpl::setScrollDelta):
* platform/graphics/chromium/cc/CCLayerImpl.h:
(WebCore::CCLayerImpl::scrollDelta):
(CCLayerImpl):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::startPageScaleAnimation):
(WebCore::CCLayerTreeHostImpl::adjustScrollsForPageScaleChange):
(WebCore::CCLayerTreeHostImpl::processScrollDeltas):
(WebCore::CCLayerTreeHostImpl::animatePageScale):

Source/WebKit/chromium:

New unit test for accumulating fractional scroll deltas across multiple commits.

* tests/CCLayerTreeHostTest.cpp:
(CCLayerTreeHostTestFractionalScroll):
(WTF::CCLayerTreeHostTestFractionalScroll::CCLayerTreeHostTestFractionalScroll):
(WTF::CCLayerTreeHostTestFractionalScroll::beginTest):
(WTF::CCLayerTreeHostTestFractionalScroll::drawLayersOnCCThread):
(WTF::CCLayerTreeHostTestFractionalScroll::applyScrollAndScale):
(WTF::CCLayerTreeHostTestFractionalScroll::afterTest):
(WTF):
(WTF::TEST_F):

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

9 years ago[WebSocket]The Sec-WebSocket-Accept MUST NOT appear more than once in an HTTP response
commit-queue@webkit.org [Wed, 21 Mar 2012 16:46:41 +0000 (16:46 +0000)]
[WebSocket]The Sec-WebSocket-Accept MUST NOT appear more than once in an HTTP response
https://bugs.webkit.org/show_bug.cgi?id=81655

Patch by Li Yin <li.yin@intel.com> on 2012-03-21
Reviewed by Adam Barth.

Source/WebCore:

Test: http/tests/websocket/tests/hybi/handshake-fail-by-more-accept-header.html

* Modules/websockets/WebSocketHandshake.cpp:
(WebCore::WebSocketHandshake::readHTTPHeaders):

LayoutTests:

* http/tests/websocket/tests/hybi/handshake-fail-by-more-accept-header-expected.txt: Added.
* http/tests/websocket/tests/hybi/handshake-fail-by-more-accept-header.html: Added.
* http/tests/websocket/tests/hybi/handshake-fail-by-more-accept-header_wsh.py: Added.
(web_socket_do_extra_handshake):
(web_socket_transfer_data):

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

9 years agoWeb Inspector: Speedup heap snapshot loading.
commit-queue@webkit.org [Wed, 21 Mar 2012 16:37:06 +0000 (16:37 +0000)]
Web Inspector: Speedup heap snapshot loading.
https://bugs.webkit.org/show_bug.cgi?id=81788

Patch by Alexei Filippov <alexeif@chromium.org> on 2012-03-21
Reviewed by Yury Semikhatsky.

* inspector/front-end/HeapSnapshot.js:
(WebInspector.HeapSnapshotLoader.prototype._parseNodes):

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

9 years ago[Chromium] IndexedDB: Expose necessary IDB exception codes through WebKit API
jsbell@chromium.org [Wed, 21 Mar 2012 16:36:34 +0000 (16:36 +0000)]
[Chromium] IndexedDB: Expose necessary IDB exception codes through WebKit API
https://bugs.webkit.org/show_bug.cgi?id=81597

To fix http://crbug.com/96826 and http://crbug.com/113118 we need to be able throw
exceptions from the Chromium side, so expose the necessary members of IDBDatabaseException.

Reviewed by Darin Fisher.

* WebKit.gyp:
* public/WebIDBDatabaseException.h: Added.
(WebKit):
* src/AssertMatchingEnums.cpp:

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

9 years agoWeb Inspector: get rid of isInEditMode, use isBeingEdited on particular element.
pfeldman@chromium.org [Wed, 21 Mar 2012 16:33:12 +0000 (16:33 +0000)]
Web Inspector: get rid of isInEditMode, use isBeingEdited on particular element.
https://bugs.webkit.org/show_bug.cgi?id=81766

Reviewed by Yury Semikhatsky.

We should check event target and its ancestors for being edited, not use some
global property. This change also introduces Event.prototype.consume so that we
were consistently consuming events.

* inspector/front-end/AdvancedSearchController.js:
(WebInspector.SearchView.prototype._onKeyDown):
* inspector/front-end/BreakpointsSidebarPane.js:
(WebInspector.JavaScriptBreakpointsSidebarPane.prototype._breakpointCheckboxClicked):
* inspector/front-end/CSSSelectorProfileView.js:
* inspector/front-end/Checkbox.js:
(WebInspector.Checkbox.prototype.addEventListener):
* inspector/front-end/ConsoleView.js:
(WebInspector.ConsoleView.prototype._enterKeyPressed):
(WebInspector.ConsoleGroup.prototype._titleClicked):
* inspector/front-end/ContextMenu.js:
(WebInspector.ContextMenu.prototype.show):
* inspector/front-end/DataGrid.js:
(WebInspector.DataGrid.prototype._keyDown):
* inspector/front-end/DatabaseQueryView.js:
(WebInspector.DatabaseQueryView.prototype._enterKeyPressed):
* inspector/front-end/DetailedHeapshotView.js:
(WebInspector.DetailedHeapshotView.prototype._mouseDownInContentsGrid):
(WebInspector.DetailedHeapshotView.prototype._startRetainersHeaderDragging):
(WebInspector.DetailedHeapshotView.prototype._retainersHeaderDragging):
(WebInspector.DetailedHeapshotView.prototype._endRetainersHeaderDragging):
* inspector/front-end/Dialog.js:
(WebInspector.Dialog.prototype._onKeyDown):
* inspector/front-end/Drawer.js:
(WebInspector.Drawer.prototype._startStatusBarDragging):
(WebInspector.Drawer.prototype._statusBarDragging):
(WebInspector.Drawer.prototype._endStatusBarDragging):
* inspector/front-end/EventListenersSidebarPane.js:
(WebInspector.EventListenersSidebarPane.get if):
* inspector/front-end/HelpScreen.js:
(WebInspector.HelpScreen.prototype._onKeyDown):
* inspector/front-end/InspectorView.js:
(WebInspector.InspectorView.prototype._keyDown):
* inspector/front-end/MetricsSidebarPane.js:
(WebInspector.MetricsSidebarPane.prototype._highlightDOMNode):
* inspector/front-end/NetworkPanel.js:
* inspector/front-end/Object.js:
(WebInspector.Event.prototype.preventDefault):
(WebInspector.Event.prototype.consume):
* inspector/front-end/ObjectPropertiesSection.js:
(WebInspector.ObjectPropertyTreeElement.prototype._promptKeyDown):
* inspector/front-end/ProfileView.js:
* inspector/front-end/SearchController.js:
(WebInspector.SearchController.prototype._onKeyDown):
* inspector/front-end/Section.js:
(WebInspector.Section.prototype.handleClick):
* inspector/front-end/Settings.js:
(WebInspector.ExperimentsSettings):
* inspector/front-end/SoftContextMenu.js:
(.WebInspector.SoftContextMenu.prototype.show):
(.WebInspector.SoftContextMenu.prototype._menuItemMouseDown):
(.WebInspector.SoftContextMenu.prototype._menuKeyDown):
(.WebInspector.SoftContextMenu.prototype._discardMenu):
* inspector/front-end/Spectrum.js:
(WebInspector.Spectrum.draggable.consume):
(WebInspector.Spectrum.draggable.start):
(WebInspector.Spectrum.draggable.stop):
(WebInspector.Spectrum.draggable):
(WebInspector.Spectrum.prototype._onKeyDown):
* inspector/front-end/StylesSidebarPane.js:
(WebInspector.StylesSidebarPane.muteEventListener):
(WebInspector.StylesSidebarPane):
(WebInspector.StylesSidebarPane.prototype.set _createNewRule):
(WebInspector.StylesSidebarPane.prototype._toggleElementStatePane):
(WebInspector.StylePropertiesSection.prototype._handleEmptySpaceClick):
(WebInspector.StylePropertiesSection.prototype._handleSelectorClick):
(WebInspector.StylePropertyTreeElement.prototype.updateTitle.):
(WebInspector.StylePropertyTreeElement.prototype):
* inspector/front-end/TextPrompt.js:
(WebInspector.TextPrompt.prototype.onKeyDown):
(WebInspector.TextPromptWithHistory.prototype.defaultKeyHandler):
(WebInspector.TextPrompt.SuggestBox.prototype._onItemMouseDown):
* inspector/front-end/TextViewer.js:
(WebInspector.TextViewer.prototype._handleKeyDown):
* inspector/front-end/Toolbar.js:
(WebInspector.ToolbarDropdown.prototype._onKeyDown):
* inspector/front-end/UIUtils.js:
(WebInspector.isBeingEdited):
(WebInspector.startEditing):
* inspector/front-end/View.js:
(WebInspector.View.prototype._doLoadCSS):
* inspector/front-end/WatchExpressionsSidebarPane.js:
(WebInspector.WatchExpressionsSidebarPane.prototype._addButtonClicked):
(WebInspector.WatchExpressionsSidebarPane.prototype._refreshButtonClicked):
* inspector/front-end/inspector.js:
(WebInspector.documentClick.followLink):
(WebInspector.documentClick):
(WebInspector.documentKeyDown):
(WebInspector.postDocumentKeyDown):
(WebInspector.addMainEventListeners):
* inspector/front-end/treeoutline.js:
(TreeOutline.prototype._treeKeyPress):
(TreeOutline.prototype._treeKeyDown):
(TreeOutline.prototype._searchInputKeyDown):
(TreeElement.treeElementToggled):
(TreeElement.prototype.selectOnMouseDown):
* inspector/front-end/utilities.js:
(Event.prototype.consume):

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

9 years agoFix the Windows build after r111504.
jberlin@webkit.org [Wed, 21 Mar 2012 16:25:49 +0000 (16:25 +0000)]
Fix the Windows build after r111504.

* WTF.vcproj/WTF.vcproj:
Platform.h was moved to Source/WTF.
* WTF.vcproj/copy-files.cmd:
Copy Platform.h from its new source location. This separate copy will not be necessary once
the full move is done and all the headers are being copied at once from the new locations.

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

9 years agoWeb Inspector: event listener section doesn't show all event listeners of the element...
yurys@chromium.org [Wed, 21 Mar 2012 16:09:40 +0000 (16:09 +0000)]
Web Inspector: event listener section doesn't show all event listeners of the element ancestors
https://bugs.webkit.org/show_bug.cgi?id=81782

Source/WebCore:

Event listeners section now contains all event listeners for the selected
element ancestors chain (in case option "All Nodes" is selected).

Reviewed by Pavel Feldman.

* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::getEventListenersForNode):
* inspector/front-end/EventListenersSidebarPane.js:
(WebInspector.EventListenersSidebarPane.prototype.update.callback):
(WebInspector.EventListenersSidebarPane.prototype.update):
(WebInspector.EventListenersSidebarPane.prototype):

LayoutTests:

Reviewed by Pavel Feldman.

* http/tests/inspector/elements-test.js:
(initialize_ElementTest.InspectorTest.expandSelectedElementEventListenersEventBars):
(initialize_ElementTest.InspectorTest.dumpSelectedElementEventListeners):
* inspector/elements/event-listener-sidebar-expected.txt:
* inspector/elements/event-listener-sidebar.html:
* platform/chromium/inspector/elements/event-listener-sidebar-expected.txt:

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

9 years agoWeb Inspector: HeapSnapshot: move all builders and calculation calls to HeapSnapshot...
loislo@chromium.org [Wed, 21 Mar 2012 15:48:46 +0000 (15:48 +0000)]
Web Inspector: HeapSnapshot: move all builders and calculation calls to HeapSnapshot._init function.
https://bugs.webkit.org/show_bug.cgi?id=81784

Reviewed by Yury Semikhatsky.

* inspector/front-end/HeapSnapshot.js:
(WebInspector.HeapSnapshot.prototype._init):
(WebInspector.HeapSnapshot.prototype.dispose):
(WebInspector.HeapSnapshot.prototype._retainersForNode):
(WebInspector.HeapSnapshot.prototype._dominatedNodesOfNode):
(WebInspector.HeapSnapshot.prototype._flagsOfNode):
(WebInspector.HeapSnapshot.prototype.aggregates):
(WebInspector.HeapSnapshot.prototype._buildRetainers):
(WebInspector.HeapSnapshot.prototype.get nodeIndexes):

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

9 years agoWTF headers should be in $(ConfigurationBuildDir)\include\private\wtf, not
jberlin@webkit.org [Wed, 21 Mar 2012 15:45:35 +0000 (15:45 +0000)]
WTF headers should be in $(ConfigurationBuildDir)\include\private\wtf, not
$(ConfigurationBuildDir)\include\private\JavaScriptCore\wtf.
https://bugs.webkit.org/show_bug.cgi?id=81739

Reviewed by Dan Bernstein.

Source/JavaScriptCore:

* JavaScriptCore.vcproj/jsc/jsc.vcproj:
Look for AtomicString.cpp, StringBuilder.cpp, StringImpl.cpp, and WTFString.cpp in the wtf
subdirectory of the build output, not the JavaScriptCore/wtf subdirectory.
* JavaScriptCore.vcproj/testRegExp/testRegExp.vcproj:
Ditto.

* JavaScriptCore.vcproj/testRegExp/testRegExpReleasePGO.vsprops:
Get the headers for those 4 files from the wtf subdirectory of the build output, not the
JavaScriptCore/wtf subdirectory.
* JavaScriptCore.vcproj/jsc/jscReleasePGO.vsprops:
Ditto.

Source/WebCore:

* WebCore.vcproj/WebCore.vcproj:
Look for AtomicString.cpp, StringBuilder.cpp, StringImpl.cpp, and WTFString.cpp in the wtf
subdirectory of the build output, not the JavaScriptCore/wtf subdirectory.

Source/WTF:

* WTF.vcproj/copy-files.cmd:
Copy the headers to private/include/wtf instead of private/include/JavaScriptCore/wtf.

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

9 years ago[BlackBerry] Credential save and autofill implemetation
commit-queue@webkit.org [Wed, 21 Mar 2012 15:23:33 +0000 (15:23 +0000)]
[BlackBerry] Credential save and autofill implemetation
https://bugs.webkit.org/show_bug.cgi?id=80401

Patch by Jonathan Dong <jonathan.dong@torchmobile.com.cn> on 2012-03-21
Reviewed by Rob Buis.

Source/WebCore:

Added interface function authenticationChallenge() and
notifyShouldSaveCredential() into PageClientBlackBerry.
As this class is our platform specific interface,
by doing this we don't need to add an interface function
in class FrameLoaderClient which is a platform
independent interface.

No new tests.

* platform/blackberry/PageClientBlackBerry.h:
(WebCore):
* platform/network/blackberry/NetworkJob.cpp:
(WebCore::NetworkJob::sendRequestWithCredentials):

Source/WebKit/blackberry:

This patch is intended to implement the credential persist
and autofill feature for BlackBerry porting.

Moved interface authenticationChallenge() from class
FrameLoaderClientBlackBerry to WebPagePrivate (derived from
PageClientBlackBerry as changes made in its parent interface class);
Implemented notifyShouldSaveCredential() in WebPagePrivate
and WebPageClient as well.
Added credentialManager() to retrive CredentialManager instance
as a global singleton; removed its m_frameLoaderClient which is
replaced with a passed in PageClientBlackBerry pointer, and modified
the interface function accordingly.

For the http authentication, autofill the input dialog in
function authenticationChallenge() and save the credential
information in the same function;
For the in-form authentication, autofill the username and
password input fields in function dispatchDidFinishLoad(),
and save the credential information in function
dispatchWillSubmitForm() or dispatchWillSendSubmitEvent().

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::authenticationChallenge):
(WebKit):
(BlackBerry::WebKit::WebPagePrivate::notifyShouldSaveCredential):
* Api/WebPageClient.h:
* Api/WebPage_p.h:
(WebPagePrivate):
* WebCoreSupport/CredentialManager.cpp:
(WebCore::credentialManager):
(WebCore::CredentialManager::saveCredentialIfConfirmed):
* WebCoreSupport/CredentialManager.h:
(CredentialManager):
(WebCore::CredentialManager::CredentialManager):
(WebCore):
* WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
(WebCore::FrameLoaderClientBlackBerry::dispatchDidFinishLoad):
(WebCore::FrameLoaderClientBlackBerry::dispatchWillSubmitForm):
(WebCore::FrameLoaderClientBlackBerry::dispatchWillSendSubmitEvent):
(WebCore):
* WebCoreSupport/FrameLoaderClientBlackBerry.h:
(FrameLoaderClientBlackBerry):

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

9 years agoConvert some fast/regions pixel tests to reftests
commit-queue@webkit.org [Wed, 21 Mar 2012 14:51:12 +0000 (14:51 +0000)]
Convert some fast/regions pixel tests to reftests
https://bugs.webkit.org/show_bug.cgi?id=80602

Patch by hermwong <herm.wong@gmail.com> on 2012-03-21
Reviewed by Dirk Schulze.

- convert CSS regions tests from pixel tests to reftests.
- removed unnecessary image files that were used for pixel tests.
- added *.expected.html as the control for the reftests - these will render the position of objects without using CSS regions
- removed the "no red should be visible..." text from the positioned-objects-inline-static-in-rtl-regions because there was no red in the test file and the statement was irrelevant to the test.
- removed text from the positioned-objects-inline-static-spanning-regions.html test because it had nothing to do with the test. We based this on the visuals of the test and the fact that the test description made no mention of the text at all

* fast/regions/positioned-objects-clipped-spanning-regions-expected.html: Added.
* fast/regions/positioned-objects-clipped-spanning-regions.html:
* fast/regions/positioned-objects-in-regions-expected.html: Added.
* fast/regions/positioned-objects-in-rtl-regions-expected.html: Copied from LayoutTests/fast/regions/positioned-objects-inline-static-in-rtl-regions.html.
* fast/regions/positioned-objects-inline-static-in-regions-expected.html: Copied from LayoutTests/fast/regions/positioned-objects-inline-static-in-regions.html.
* fast/regions/positioned-objects-inline-static-in-regions.html:
* fast/regions/positioned-objects-inline-static-in-rtl-regions-expected.html: Copied from LayoutTests/fast/regions/positioned-objects-inline-static-in-rtl-regions.html.
* fast/regions/positioned-objects-inline-static-in-rtl-regions.html:    no red should be visible because there was no red in the test file and the statement was irrelevant to the test.
* fast/regions/positioned-objects-inline-static-spanning-regions-expected.html: Added.
* fast/regions/positioned-objects-inline-static-spanning-regions.html:
* fast/regions/positioned-objects-perpendicular-flows-in-regions-expected.html: Copied from LayoutTests/fast/regions/positioned-objects-inline-static-in-rtl-regions.html.
* fast/regions/positioned-objects-spanning-regions-expected.html: Added.
* platform/chromium/test_expectations.txt:
* platform/efl/fast/regions/positioned-objects-clipped-spanning-regions-expected.png: Removed.
* platform/efl/fast/regions/positioned-objects-in-regions-expected.png: Removed.
* platform/efl/fast/regions/positioned-objects-in-regions-expected.txt: Removed.
* platform/efl/fast/regions/positioned-objects-in-rtl-regions-expected.png: Removed.
* platform/efl/fast/regions/positioned-objects-in-rtl-regions-expected.txt: Removed.
* platform/efl/fast/regions/positioned-objects-inline-static-in-regions-expected.png: Removed.
* platform/efl/fast/regions/positioned-objects-inline-static-in-regions-expected.txt: Removed.
* platform/efl/fast/regions/positioned-objects-inline-static-in-rtl-regions-expected.png: Removed.
* platform/efl/fast/regions/positioned-objects-inline-static-in-rtl-regions-expected.txt: Removed.
* platform/efl/fast/regions/positioned-objects-inline-static-spanning-regions-expected.png: Removed.
* platform/efl/fast/regions/positioned-objects-inline-static-spanning-regions-expected.txt: Removed.
* platform/efl/fast/regions/positioned-objects-perpendicular-flows-in-regions-expected.png: Removed.
* platform/efl/fast/regions/positioned-objects-perpendicular-flows-in-regions-expected.txt: Removed.
* platform/efl/fast/regions/positioned-objects-spanning-regions-expected.png: Removed.
* platform/efl/fast/regions/positioned-objects-spanning-regions-expected.txt: Removed.
* platform/mac/fast/regions/position-writing-modes-in-variable-width-regions-expected.png: Removed.
* platform/mac/fast/regions/position-writing-modes-in-variable-width-regions-expected.txt: Removed.
* platform/mac/fast/regions/positioned-objects-clipped-spanning-regions-expected.png: Removed.
* platform/mac/fast/regions/positioned-objects-clipped-spanning-regions-expected.txt: Removed.
* platform/mac/fast/regions/positioned-objects-in-regions-expected.png: Removed.
* platform/mac/fast/regions/positioned-objects-in-regions-expected.txt: Removed.
* platform/mac/fast/regions/positioned-objects-in-rtl-regions-expected.png: Removed.
* platform/mac/fast/regions/positioned-objects-in-rtl-regions-expected.txt: Removed.
* platform/mac/fast/regions/positioned-objects-inline-static-in-regions-expected.png: Removed.
* platform/mac/fast/regions/positioned-objects-inline-static-in-regions-expected.txt: Removed.
* platform/mac/fast/regions/positioned-objects-inline-static-in-rtl-regions-expected.png: Removed.
* platform/mac/fast/regions/positioned-objects-inline-static-in-rtl-regions-expected.txt: Removed.
* platform/mac/fast/regions/positioned-objects-inline-static-spanning-regions-expected.png: Removed.
* platform/mac/fast/regions/positioned-objects-inline-static-spanning-regions-expected.txt: Removed.
* platform/mac/fast/regions/positioned-objects-inline-static-spanning-regions-rtl-expected.png: Removed.
* platform/mac/fast/regions/positioned-objects-inline-static-spanning-regions-rtl-expected.txt: Removed.
* platform/mac/fast/regions/positioned-objects-perpendicular-flows-in-regions-expected.png: Removed.
* platform/mac/fast/regions/positioned-objects-perpendicular-flows-in-regions-expected.txt: Removed.
* platform/mac/fast/regions/positioned-objects-spanning-regions-expected.png: Removed.
* platform/mac/fast/regions/positioned-objects-spanning-regions-expected.txt: Removed.

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

9 years ago[chromium] Rebaselining eventsource-url-attribute.html after r111529
keishi@webkit.org [Wed, 21 Mar 2012 14:44:48 +0000 (14:44 +0000)]
[chromium] Rebaselining eventsource-url-attribute.html after r111529

* platform/chromium-linux/fast/eventsource/eventsource-url-attribute-expected.txt: Added.

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

9 years ago[chromium] Rebaselining canvas-putImageData.html
keishi@webkit.org [Wed, 21 Mar 2012 14:39:42 +0000 (14:39 +0000)]
[chromium] Rebaselining canvas-putImageData.html

* platform/chromium-linux/fast/repaint/canvas-putImageData-expected.txt: Removed.
* platform/chromium-mac-snowleopard/fast/repaint/canvas-putImageData-expected.txt: Removed.
* platform/chromium-win/fast/repaint/canvas-putImageData-expected.txt: Removed.
* platform/chromium/fast/repaint/canvas-putImageData-expected.txt: Renamed from LayoutTests/platform/chromium-linux-x86/fast/repaint/canvas-putImageData-expected.txt.

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

9 years ago[chromium] Rebaselining limit-layer-bounds-fixed-positioned.html
keishi@webkit.org [Wed, 21 Mar 2012 14:35:48 +0000 (14:35 +0000)]
[chromium] Rebaselining limit-layer-bounds-fixed-positioned.html

* platform/chromium/compositing/geometry/limit-layer-bounds-fixed-positioned-expected.txt: Renamed from LayoutTests/platform/chromium-win/compositing/geometry/limit-layer-bounds-fixed-positioned-expected.txt.

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

9 years ago[chromium] Marking convolution-mono-mono.html and canvas-toDataURL-webp.html as crashing.
keishi@webkit.org [Wed, 21 Mar 2012 14:29:06 +0000 (14:29 +0000)]
[chromium] Marking convolution-mono-mono.html and canvas-toDataURL-webp.html as crashing.

* platform/chromium/test_expectations.txt:

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

9 years agoWeb Inspector: HeapProfiler: DOM node id can overflow Int32.
loislo@chromium.org [Wed, 21 Mar 2012 14:21:31 +0000 (14:21 +0000)]
Web Inspector: HeapProfiler: DOM node id can overflow Int32.
https://bugs.webkit.org/show_bug.cgi?id=81776

Reviewed by Pavel Feldman.

* inspector/front-end/HeapSnapshot.js:
(WebInspector.Uint32Array):
(WebInspector.HeapSnapshotLoader.prototype.pushJSONChunk):
(WebInspector.HeapSnapshot.prototype._buildReverseIndex.var):
(WebInspector.HeapSnapshot.prototype._buildReverseIndex):
(WebInspector.HeapSnapshot.prototype._buildNodeIndex):

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

9 years ago[chromium] Increase size of Combo Box Options for touch and high DPI devices
commit-queue@webkit.org [Wed, 21 Mar 2012 14:19:45 +0000 (14:19 +0000)]
[chromium] Increase size of Combo Box Options for touch and high DPI devices
https://bugs.webkit.org/show_bug.cgi?id=80027

Patch by Tim Dresser <tdresser@chromium.org> on 2012-03-21
Reviewed by Darin Fisher.

Source/WebCore:

Scale Combo box popups by defaultDeviceScaleFactor, and add padding to
<option> elements when touch is enabled.

Manually tested with --default-device-scale-factor=1,2 and unset.
Each of these were tested with RuntimeEnabledFeatures::touchEnabled
set to true and false.

* platform/chromium/PopupListBox.cpp:
(WebCore::PopupListBox::paint):
(WebCore::PopupListBox::paintRow):
(WebCore::PopupListBox::getRowHeight):
* platform/chromium/PopupListBox.h:
(PopupContainerSettings):
* platform/chromium/PopupMenuChromium.cpp:
(WebCore):
(WebCore::PopupMenuChromium::show):
* platform/chromium/PopupMenuChromium.h:
(WebCore::PopupMenuChromium::optionPaddingForTouch):
(WebCore::PopupMenuChromium::setOptionPaddingForTouch):
(PopupMenuChromium):
* rendering/RenderMenuList.cpp:
(WebCore::RenderMenuList::showPopup):

Source/WebKit/chromium:

* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::gestureEvent):
(WebKit::WebViewImpl::applyAutofillSuggestions):
* tests/PopupMenuTest.cpp:
(WebKit::TestWebViewClient::screenInfo):
(WebKit::SelectPopupMenuTest::SetUp):
(WebKit::SelectPopupMenuTest::TearDown):
(SelectPopupMenuTest):

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

9 years agoUpdated the address list of committers.py.
ossy@webkit.org [Wed, 21 Mar 2012 14:18:50 +0000 (14:18 +0000)]
Updated the address list of committers.py.

Patch by Szilard Ledan <szledan@inf.u-szeged.hu> on 2012-03-21
Reviewed by Csaba Osztrogonác.

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

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

9 years ago[Chromium] [WebSocket] provide WebFrameClient with a chance of
toyoshim@chromium.org [Wed, 21 Mar 2012 14:00:35 +0000 (14:00 +0000)]
[Chromium] [WebSocket] provide WebFrameClient with a chance of
accessing to opening WebSocketStreamHandle.
https://bugs.webkit.org/show_bug.cgi?id=78459

Reviewed by Kent Tamura and Darin Fisher.

Source/WebCore:

Add willOpenSocketStream client function to WebFrameClient with an
argument representing an opening SocketStreamHandle.
These mechanisms provide embedders with a chance to bind arbitrary
data to a WebSocketStreamHandle from WebFrameClient to which the
WebSocket object having the WebSocketStreamHandle belongs.

No new tests because this change just provide mechanisms to embedders.

* Modules/websockets/WebSocketChannel.cpp: Implement willOpenSocketStream to call a client function in WebFrameClient.
(WebCore::WebSocketChannel::willOpenSocketStream):
(WebCore):
* Modules/websockets/WebSocketChannel.h: Add willOpenSocketStream declaration.
(WebSocketChannel):
* loader/FrameLoaderClient.h: Add dispatchWillOpenSocketStream declaration.
(WebCore):
(FrameLoaderClient):
(WebCore::FrameLoaderClient::dispatchWillOpenSocketStream):
* platform/network/SocketStreamHandleClient.h: Add willOpenSocketStream declaration.
(WebCore::SocketStreamHandleClient::willOpenSocketStream):

Source/WebKit/chromium:

Add dispatchWillOpenSocketStream client function to WebFrameClient with
an argument representing an opening SocketStreamHandle.
These mechanisms provide embedders with a chance to bind arbitrary
data to a WebSocketStreamHandle from WebFrameClient to which the
WebSocket object having the WebSocketStreamHandle belongs.

No new tests because this change just provide mechanisms to embedders.

* public/WebFrameClient.h: Add dispatchWillOpenSocketStream declaration.
(WebKit):
(WebFrameClient):
(WebKit::WebFrameClient::willOpenSocketStream):
* public/platform/WebSocketStreamHandle.h: Add default implementation to virtual functions.
(WebKit::WebSocketStreamHandle::connect):
(WebKit::WebSocketStreamHandle::send):
(WebKit::WebSocketStreamHandle::close):
* src/FrameLoaderClientImpl.cpp: Implement dispatchWillOpenSocketStream.
(WebKit::FrameLoaderClientImpl::dispatchWillOpenSocketStream):
(WebKit):
* src/FrameLoaderClientImpl.h: Add dispatchWillOpenSocketStream declaratioin.
(FrameLoaderClientImpl):
* src/SocketStreamHandle.cpp: Call willOpenSocketStream client function.
(WebCore::SocketStreamHandleInternal::connect):

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

9 years ago[Qt][Wk2] Removed test expectation after r111419.
ossy@webkit.org [Wed, 21 Mar 2012 13:56:12 +0000 (13:56 +0000)]
[Qt][Wk2] Removed test expectation after r111419.

Patch by Ádám Kallai <kadam@inf.u-szeged.hu> on 2012-03-21
Reviewed by Csaba Osztrogonác.

* platform/qt-5.0-wk2/css1/basic/inheritance-expected.txt: Removed.

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=81761
commit-queue@webkit.org [Wed, 21 Mar 2012 13:52:44 +0000 (13:52 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=81761
Fix Gobject binding for sequence<T> for function return type.

Patch by Vineet Chaudhary <rgf748@motorola.com> on 2012-03-21
Reviewed by Kentaro Hara.

No new tests.

* bindings/scripts/CodeGeneratorGObject.pm:
(SkipFunction): Skip function with sequence<T> return type.
* bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
(webkit_dom_test_obj_method_with_sequence_arg):
* bindings/scripts/test/GObject/WebKitDOMTestObj.h:

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

9 years agoUnskip test fixed in r111520.
philn@webkit.org [Wed, 21 Mar 2012 13:43:30 +0000 (13:43 +0000)]
Unskip test fixed in r111520.

* platform/gtk/Skipped: fast/dom/prototype-inheritance-2.html
should pass now.

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

9 years agoUnreviewed build fix for r111529.
caseq@chromium.org [Wed, 21 Mar 2012 13:38:07 +0000 (13:38 +0000)]
Unreviewed build fix for r111529.

* inspector/InjectedScriptHost.h:
(WebCore):

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

9 years agoUnreviewed, rolling out r111497, r111506, r111508, and
ossy@webkit.org [Wed, 21 Mar 2012 13:36:18 +0000 (13:36 +0000)]
Unreviewed, rolling out r111497, r111506, r111508, and
r111513.
http://trac.webkit.org/changeset/111497
http://trac.webkit.org/changeset/111506
http://trac.webkit.org/changeset/111508
http://trac.webkit.org/changeset/111513
https://bugs.webkit.org/show_bug.cgi?id=81774

It broke 2 tests on all platform (Requested by Ossy on

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

Source/WebCore:

* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::collectMatchingRulesForList):
* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::checkOneSelector):
* html/HTMLKeygenElement.cpp:
(WebCore::HTMLKeygenElement::HTMLKeygenElement):
* html/HTMLOptionElement.cpp:
(WebCore::HTMLOptionElement::HTMLOptionElement):
(WebCore::HTMLOptionElement::create):
(WebCore::HTMLOptionElement::attach):
(WebCore::HTMLOptionElement::detach):
(WebCore::HTMLOptionElement::formControlType):
(WebCore):
(WebCore::HTMLOptionElement::parseAttribute):
(WebCore::HTMLOptionElement::childrenChanged):
(WebCore::HTMLOptionElement::insertedIntoTree):
* html/HTMLOptionElement.h:
(HTMLOptionElement):
(WebCore::HTMLOptionElement::ownElementDisabled):
* html/HTMLTagNames.in:

LayoutTests:

* fast/forms/resources/select-live-pseudo-selectors.js:
(simulateClick):
* fast/forms/select-live-pseudo-selectors-expected.txt:
* platform/chromium-mac-leopard/fast/css/text-transform-select-expected.png:
* platform/chromium-mac-leopard/fast/forms/select/menulist-disabled-option-expected.png: Removed.
* platform/chromium-mac-snowleopard/fast/css/text-transform-select-expected.png:
* platform/chromium-mac-snowleopard/fast/css/text-transform-select-expected.txt: Removed.
* platform/chromium-mac-snowleopard/fast/forms/select-max-length-expected.txt: Removed.
* platform/chromium-mac-snowleopard/fast/forms/select/menulist-disabled-option-expected.png: Removed.
* platform/chromium-mac/fast/css/text-transform-select-expected.png:
* platform/chromium-mac/fast/css/text-transform-select-expected.txt: Removed.
* platform/chromium-mac/fast/forms/select/menulist-disabled-option-expected.png: Removed.
* platform/chromium-win-xp/fast/forms/select-max-length-expected.txt: Removed.
* platform/chromium-win/fast/css/text-transform-select-expected.png:
* platform/chromium-win/fast/css/text-transform-select-expected.txt:
* platform/chromium-win/fast/forms/select/menulist-disabled-option-expected.png: Removed.
* platform/gtk/Skipped:
* platform/gtk/fast/css/text-transform-select-expected.txt:
* platform/mac/fast/css/text-transform-select-expected.png:
* platform/mac/fast/css/text-transform-select-expected.txt:

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

9 years agoUpdating my nick in committers file.
wjmaclean@chromium.org [Wed, 21 Mar 2012 13:28:31 +0000 (13:28 +0000)]
Updating my nick in committers file.

Unreviewed.

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

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

9 years agoThe activation highlight does not always hide
kenneth@webkit.org [Wed, 21 Mar 2012 13:23:16 +0000 (13:23 +0000)]
The activation highlight does not always hide
https://bugs.webkit.org/show_bug.cgi?id=81767

Reviewed by Simon Hausmann.

The zero point used for hiding potential activations should
not be transformed.

* UIProcess/qt/QtWebPageEventHandler.cpp:
(QtWebPageEventHandler::handlePotentialSingleTapEvent):

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

9 years agoWeb Inspector: expose getEventListeners() to console command line API
caseq@chromium.org [Wed, 21 Mar 2012 13:22:08 +0000 (13:22 +0000)]
Web Inspector: expose getEventListeners() to console command line API
https://bugs.webkit.org/show_bug.cgi?id=81658

Reviewed by Yury Semikhatsky.

Source/WebCore:

Test: inspector/console/command-line-api-getEventListeners.html

* bindings/js/JSInjectedScriptHostCustom.cpp:
(WebCore::JSInjectedScriptHost::functionDetails):
(WebCore):
(WebCore::getJSListenerFunctions):
(WebCore::JSInjectedScriptHost::getEventListeners):
* bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
(WebCore::getJSListenerFunctions):
(WebCore):
(WebCore::V8InjectedScriptHost::getEventListenersCallback):
* inspector/InjectedScriptHost.cpp:
(WebCore::InjectedScriptHost::InjectedScriptHost):
(WebCore::InjectedScriptHost::disconnect):
(WebCore::InjectedScriptHost::getEventListenersImpl):
(WebCore):
* inspector/InjectedScriptHost.h:
(WebCore):
(WebCore::InjectedScriptHost::init):
(InjectedScriptHost):
* inspector/InjectedScriptHost.idl:
* inspector/InjectedScriptSource.js:
(.):
* inspector/InspectorController.cpp:
(WebCore::InspectorController::InspectorController):
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::getEventListenersForNode):
(WebCore::InspectorDOMAgent::getEventListeners):
(WebCore):
* inspector/InspectorDOMAgent.h:
(InspectorDOMAgent):
* inspector/WorkerInspectorController.cpp:
(WebCore::WorkerInspectorController::WorkerInspectorController):

LayoutTests:

* inspector/console/command-line-api-getEventListeners-expected.txt: Added.
* inspector/console/command-line-api-getEventListeners.html: Added.

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

9 years agoUnreviewed, rebaselined run-bindings-tests results.
haraken@chromium.org [Wed, 21 Mar 2012 12:53:27 +0000 (12:53 +0000)]
Unreviewed, rebaselined run-bindings-tests results.

* bindings/scripts/test/CPP/WebDOMFloat64Array.cpp:
* bindings/scripts/test/GObject/WebKitDOMFloat64Array.cpp:
* bindings/scripts/test/GObject/WebKitDOMFloat64ArrayPrivate.h:
* bindings/scripts/test/ObjC/DOMFloat64Array.mm:

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

9 years ago[chromium] timing functions are getting incorrectly applied for accelerated css trans...
commit-queue@webkit.org [Wed, 21 Mar 2012 12:22:30 +0000 (12:22 +0000)]
[chromium] timing functions are getting incorrectly applied for accelerated css transitions
https://bugs.webkit.org/show_bug.cgi?id=81692

Patch by Ian Vollick <vollick@chromium.org> on 2012-03-21
Reviewed by Adrienne Walker.

Source/WebCore:

Tested in CCLayerTreeHostTestAddAnimationWithTimingFunction

* platform/graphics/chromium/cc/CCLayerAnimationController.cpp:

Source/WebKit/chromium:

* tests/CCAnimationTestCommon.cpp:
(WebCore::addOpacityTransition):
(WebKitTests::addOpacityTransitionToController):
(WebKitTests::addOpacityTransitionToLayer):
* tests/CCAnimationTestCommon.h:
(WebKitTests):
* tests/CCLayerAnimationControllerTest.cpp:
(WebKitTests::TEST):
* tests/CCLayerTreeHostTest.cpp:
(WTF::CCLayerTreeHostTest::dispatchAddInstantAnimation):
(WTF::CCLayerTreeHostTest::dispatchAddAnimation):
(WTF::TEST_F):
(WTF):
(CCLayerTreeHostTestAddAnimationWithTimingFunction):
(WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::CCLayerTreeHostTestAddAnimationWithTimingFunction):
(WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::beginTest):
(WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::animateLayers):
(WTF::CCLayerTreeHostTestAddAnimationWithTimingFunction::afterTest):

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

9 years ago[Qt] Cookie Jar blocks on fsync in SQLITE
commit-queue@webkit.org [Wed, 21 Mar 2012 12:21:01 +0000 (12:21 +0000)]
[Qt] Cookie Jar blocks on fsync in SQLITE
https://bugs.webkit.org/show_bug.cgi?id=81755

Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-03-21
Reviewed by Simon Hausmann.

Set PRAGMA synchronous to OFF, which tells SQLITE to never fsync.

* platform/qt/CookieJarQt.cpp:
(WebCore::SharedCookieJarQt::ensureDatabaseTable):

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

9 years ago[chromium] Animation events should only be used for synchronizing animation start...
commit-queue@webkit.org [Wed, 21 Mar 2012 12:13:36 +0000 (12:13 +0000)]
[chromium] Animation events should only be used for synchronizing animation start times
https://bugs.webkit.org/show_bug.cgi?id=81484

Patch by Ian Vollick <vollick@chromium.org> on 2012-03-21
Reviewed by Adrienne Walker.

Source/WebCore:

Tested in CCLayerTreeHostTestSynchronizeAnimationStartTimes

Eliminated animation finished events. Animations will finish naturally on the
main thread and the final values will be set.

Animation started events are now also used to synchronize the main thread
animations' start times with their impl thread equivalents, preventing skew.
Until main thread animations receive their synchronized start times, they will
apply their initial values (i.e., they will be paused at time zero). This
guarantees that we will not jump to the animation's final value on the main
thread while we wait for the synchronized start time.

* WebCore.gypi:
* platform/graphics/chromium/LayerChromium.cpp:
(WebCore::LayerChromium::notifyAnimationStarted):
* platform/graphics/chromium/LayerChromium.h:
(WebCore):
(LayerChromium):
* platform/graphics/chromium/cc/CCActiveAnimation.cpp:
(WebCore::CCActiveAnimation::CCActiveAnimation):
* platform/graphics/chromium/cc/CCActiveAnimation.h:
(CCActiveAnimation):
(WebCore::CCActiveAnimation::needsSynchronizedStartTime):
(WebCore::CCActiveAnimation::setNeedsSynchronizedStartTime):
* platform/graphics/chromium/cc/CCAnimationEvents.cpp: Removed.
* platform/graphics/chromium/cc/CCAnimationEvents.h:
(WebCore::CCAnimationStartedEvent::CCAnimationStartedEvent):
(CCAnimationStartedEvent):
(WebCore):
* platform/graphics/chromium/cc/CCLayerAnimationController.cpp:
(WebCore::CCLayerAnimationController::animate):
(WebCore::CCLayerAnimationController::notifyAnimationStarted):
(WebCore):
(WebCore::CCLayerAnimationController::pushNewAnimationsToImplThread):
(WebCore::CCLayerAnimationController::startAnimationsWaitingForNextTick):
(WebCore::CCLayerAnimationController::startAnimationsWaitingForStartTime):
(WebCore::CCLayerAnimationController::startAnimationsWaitingForTargetAvailability):
(WebCore::CCLayerAnimationController::purgeFinishedAnimations):
(WebCore::CCLayerAnimationController::tickAnimations):
* platform/graphics/chromium/cc/CCLayerAnimationController.h:
(CCLayerAnimationController):
* platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
(WebCore::CCLayerTreeHost::updateAnimations):
(WebCore::CCLayerTreeHost::setAnimationEventsRecursive):
* platform/graphics/chromium/cc/CCLayerTreeHost.h:
(CCLayerTreeHost):

Source/WebKit/chromium:

* tests/CCLayerTreeHostTest.cpp:
(WTF):
(CCLayerTreeHostTestSynchronizeAnimationStartTimes):
(WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::CCLayerTreeHostTestSynchronizeAnimationStartTimes):
(WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::beginTest):
(WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::animateLayers):
(WTF::CCLayerTreeHostTestSynchronizeAnimationStartTimes::afterTest):
(WTF::TEST_F):

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

9 years ago[Qt][WK2][Mac] MiniBrowser asserts at HashTable.h:480
zeno.albisser@nokia.com [Wed, 21 Mar 2012 11:58:01 +0000 (11:58 +0000)]
[Qt][WK2][Mac] MiniBrowser asserts at HashTable.h:480
https://bugs.webkit.org/show_bug.cgi?id=81113

The GLContext is created by QWindow/QSurface using
QOpenGLContext which is implemented using NSOpenGL functions
on mac. Therefore we should use QOpenGLContext as well when
querying for the current context. AGL is not supposed
to be paired with NSOpenGL.
Altering the typedef for GLContext is fine, since
the GLContext type is only used as a key in a map.

Reviewed by Kenneth Rohde Christiansen.

* platform/graphics/texmap/TextureMapperGL.cpp:
(SharedGLData):
(WebCore::TextureMapperGLData::SharedGLData::getCurrentGLContext):

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

9 years ago[Qt][WK2] Item cannot be selected from select list in touch webview
commit-queue@webkit.org [Wed, 21 Mar 2012 11:43:40 +0000 (11:43 +0000)]
[Qt][WK2] Item cannot be selected from select list in touch webview
https://bugs.webkit.org/show_bug.cgi?id=81674

Patch by Dinu Jacob <dinu.jacob@nokia.com> on 2012-03-21
Reviewed by Simon Hausmann.

Activate flag to prevent QQuickWebView from accepting touch event when select
dialog is being displayed.

* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewPrivate::QQuickWebViewPrivate):
(QQuickWebViewPrivate::execDialogRunner):
(QQuickWebView::touchEvent):
* UIProcess/API/qt/qquickwebview_p_p.h:
(QQuickWebViewPrivate::setDialogActive):
(QQuickWebViewPrivate):
* UIProcess/qt/WebPopupMenuProxyQt.cpp:
(WebKit::WebPopupMenuProxyQt::showPopupMenu):
(WebKit::WebPopupMenuProxyQt::hidePopupMenu):

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

9 years agoWeb Inspector: HeapSnapshot: make _bfs twice as fast as the old version.
loislo@chromium.org [Wed, 21 Mar 2012 11:29:01 +0000 (11:29 +0000)]
Web Inspector: HeapSnapshot: make _bfs twice as fast as the old version.
https://bugs.webkit.org/show_bug.cgi?id=81756

Reviewed by Yury Semikhatsky.

* inspector/front-end/HeapSnapshot.js:
(WebInspector.HeapSnapshot.prototype._calculateObjectToWindowDistance):
(WebInspector.HeapSnapshot.prototype._bfs):

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

9 years ago[Qt] Remove the PostTransitionState
kenneth@webkit.org [Wed, 21 Mar 2012 11:26:03 +0000 (11:26 +0000)]
[Qt] Remove the PostTransitionState
https://bugs.webkit.org/show_bug.cgi?id=81751

Reviewed by Simon Hausmann.

As we are handling content size change event etc from the
WebProcess, that conflicts with the PostTransitionState handling
and we therefore need to handle this slightly differently.

Remove the code and make sure that we never resize the tiled
area to something smaller than the layout viewport.

* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewFlickablePrivate::QQuickWebViewFlickablePrivate):
(QQuickWebViewFlickablePrivate::loadDidCommit):
(QQuickWebViewFlickablePrivate::didFinishFirstNonEmptyLayout):
(QQuickWebViewFlickablePrivate::didChangeViewportProperties):
(QQuickWebViewFlickablePrivate::_q_resume):
(QQuickWebViewFlickablePrivate::pageDidRequestScroll):
(QQuickWebViewFlickablePrivate::didChangeContentsSize):
* UIProcess/API/qt/qquickwebview_p_p.h:
(QQuickWebViewFlickablePrivate):
* UIProcess/qt/QtViewportInteractionEngine.cpp:
(WebKit::QtViewportInteractionEngine::applyConstraints):
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::contentsSizeChanged):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::resizeToContentsIfNeeded):

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=81705
commit-queue@webkit.org [Wed, 21 Mar 2012 11:21:24 +0000 (11:21 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=81705
REGRESSION (r111416): fast/dom/prototype-inheritance-2.html is failing.

Patch by Vineet Chaudhary <rgf748@motorola.com> on 2012-03-21
Reviewed by Csaba Osztrogonác.

Source/WebCore:

No new tests.

* bindings/js/JSDOMBinding.h: Needs passing globalObject to constructArray().
(WebCore::jsArray):

LayoutTests:

* platform/mac/fast/dom/prototype-inheritance-2-expected.txt: Reverting test as it passes now.

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

9 years ago[Qt] Unreviewed gardening after r111477.
kkristof@inf.u-szeged.hu [Wed, 21 Mar 2012 10:16:50 +0000 (10:16 +0000)]
[Qt] Unreviewed gardening after r111477.
https://bugs.webkit.org/show_bug.cgi?id=81697
modified:   LayoutTests/ChangeLog
modified:   LayoutTests/platform/qt/Skipped

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

9 years ago[BlackBerry] Upstreaming blackberry specific css file
commit-queue@webkit.org [Wed, 21 Mar 2012 10:09:33 +0000 (10:09 +0000)]
[BlackBerry] Upstreaming blackberry specific css file
https://bugs.webkit.org/show_bug.cgi?id=81650

Ustream BlackBerry specific css files, including:
css/themeBlackBerry.css
css/mediaControlsBlackBerry.css

Patch by Jonathan Dong <jonathan.dong@torchmobile.com.cn> on 2012-03-21
Reviewed by Nikolas Zimmermann.

No new tests, this is the initial upstream patch
for BlackBerry specific css files.

* css/mediaControlsBlackBerry.css: Added.
(audio):
(audio::-webkit-media-controls-panel, video::-webkit-media-controls-panel):
(video:-webkit-full-page-media::-webkit-media-controls-panel):
(audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-button):
(audio::-webkit-media-controls-timeline-container, video::-webkit-media-controls-timeline-container):
(audio::-webkit-media-controls-current-time-display, video::-webkit-media-controls-current-time-display):
(audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-controls-time-remaining-display):
(audio::-webkit-media-controls-timeline, video::-webkit-media-controls-timeline):
(audio::-webkit-media-controls-fullscreen-button, video::-webkit-media-controls-fullscreen-button):
(audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-button):
(audio::-webkit-media-controls-volume-slider-container, video::-webkit-media-controls-volume-slider-container):
(audio::-webkit-media-controls-volume-slider, video::-webkit-media-controls-volume-slider):
(audio::-webkit-media-controls-seek-back-button, video::-webkit-media-controls-seek-back-button):
(audio::-webkit-media-controls-seek-forward-button, video::-webkit-media-controls-seek-forward-button):
* css/themeBlackBerry.css: Added.
(textarea):
(input, textarea):
(input[type="color"]):
(select:focus):
(select[size][multiple]):
(select[size][multiple]:focus):

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

9 years ago[Chromium] Remove Android build-fix when the proper fix rolled into WebKit
peter@chromium.org [Wed, 21 Mar 2012 10:05:57 +0000 (10:05 +0000)]
[Chromium] Remove Android build-fix when the proper fix rolled into WebKit
https://bugs.webkit.org/show_bug.cgi?id=80861

Reviewed by Tony Chang.

Source/WebKit/chromium:

No longer set the CC.target environment variable as this is no longer
required for project file generation.

* gyp_webkit:

Tools:

Remove most Android-specific logic from webkitdirs.pm in favor of
handling this during project generation time.

* Scripts/webkitdirs.pm:
(buildChromiumMakefile):

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

9 years agoUnreviewed. Rolled DEPS.
peter@chromium.org [Wed, 21 Mar 2012 10:00:51 +0000 (10:00 +0000)]
Unreviewed.  Rolled DEPS.

* DEPS:

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

9 years agoUpdate LayoutUnit usage in descendants of RenderReplaced
leviw@chromium.org [Wed, 21 Mar 2012 09:32:01 +0000 (09:32 +0000)]
Update LayoutUnit usage in descendants of RenderReplaced
https://bugs.webkit.org/show_bug.cgi?id=80918

Reviewed by Eric Seidel.

Replaced elements have to flow in the new sub-pixel Render Tree, but since the rendering of these
often takes place outside of WebCore (or in cases such as foreign objects, in WebCore after
passing through platform code), care must be taken to determine the final rendered size and
location before render time. This patch brings these classes up to the latest and greatest in the
subpixellayout branch.

See https://trac.webkit.org/wiki/LayoutUnit for more information.

No new tests. No change in behavior.

* rendering/RenderFrameBase.cpp:
(WebCore::RenderFrameBase::layoutWithFlattening): Build Fix.
* rendering/RenderFullScreen.cpp:
(RenderFullScreen::createPlaceholder): Ditto.
* rendering/RenderFullScreen.h:
(RenderFullScreen): Ditto.
* rendering/RenderHTMLCanvas.cpp:
(WebCore::RenderHTMLCanvas::canvasSizeChanged): Ditto.
* rendering/RenderIFrame.cpp:
(WebCore::RenderIFrame::computeLogicalHeight): Ditto.
(WebCore::RenderIFrame::computeLogicalWidth): Ditto.
* rendering/RenderImage.cpp:
(WebCore::RenderImage::updateIntrinsicSizeIfNeeded): Intrinsic sizes are always integers, since they
originate outside of WebCore.
(WebCore::RenderImage::paintIntoRect): Use pixel snapping to paint into an arbitrary rect.
(WebCore::RenderImage::computeReplacedLogicalWidth): Intrinsic size is always integral -- rounding
values to integers.
* rendering/RenderImage.h:
(RenderImage):
* rendering/RenderVideo.cpp:
(WebCore::RenderVideo::videoBox):
(WebCore::RenderVideo::paintReplaced): Painting at integer boundaries.
* rendering/RenderWidget.cpp:
(WebCore):
(WebCore::roundedIntRect): Widgets are rendered outside of WebCore, so we always align them to
integer boundaries. This means we can actually round the size of our ultimate content box. This
function is implemented here specifically to prevent its misuse if we put it elsewhere.
(WebCore::RenderWidget::setWidgetGeometry): We simplify layout by taking a LayoutRect and rounding
it to its final location within this function.
(WebCore::RenderWidget::updateWidgetGeometry): We keep things in LayoutUnits until handing off to
setWidgetGeometry.
(WebCore::RenderWidget::paint): Rounding the paint location before handing painting off to the
widget itself.
* rendering/RenderWidget.h:
(RenderWidget):

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

9 years ago[Qt] fast/css/resize-single-axis.html timeout
ossy@webkit.org [Wed, 21 Mar 2012 09:24:39 +0000 (09:24 +0000)]
[Qt] fast/css/resize-single-axis.html timeout
https://bugs.webkit.org/show_bug.cgi?id=80604

* platform/qt/Skipped: Unskip fast/css/resize-single-axis.html, because it works now.

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

9 years agoUnreviewed, GTK rebaseline after r111500 and skipping 2 tests.
philn@webkit.org [Wed, 21 Mar 2012 09:17:04 +0000 (09:17 +0000)]
Unreviewed, GTK rebaseline after r111500 and skipping 2 tests.

* platform/gtk/Skipped:
* platform/gtk/fast/css/text-transform-select-expected.txt:

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

9 years agoWeb Inspector: HeapProfiler: support distance column in Summary View.
loislo@chromium.org [Wed, 21 Mar 2012 09:14:01 +0000 (09:14 +0000)]
Web Inspector: HeapProfiler: support distance column in Summary View.
https://bugs.webkit.org/show_bug.cgi?id=81675

In many cases when a page leaked an object we see not only this object
but the all objects it retains. It is quite difficult to find out which
the object is the root of leak. It'd be simpler to sort the leaked
objects by Distance column and track down the first one.

Reviewed by Yury Semikhatsky.

Source/WebCore:

* inspector/front-end/DetailedHeapshotGridNodes.js:
(WebInspector.HeapSnapshotGenericObjectNode):
(WebInspector.HeapSnapshotGenericObjectNode.prototype.get data):
(WebInspector.HeapSnapshotInstanceNode.prototype.comparator):
(WebInspector.HeapSnapshotConstructorNode):
(WebInspector.HeapSnapshotConstructorNode.prototype.comparator):
(WebInspector.HeapSnapshotConstructorNode.prototype.get data):
* inspector/front-end/DetailedHeapshotView.js:
(WebInspector.HeapSnapshotConstructorsDataGrid):
(WebInspector.HeapSnapshotConstructorsDataGrid.prototype._defaultPopulateCount.100._sortFields):
* inspector/front-end/HeapSnapshot.js:
(WebInspector.HeapSnapshotNodesProvider.prototype._serialize):

LayoutTests:

* inspector/profiler/detailed-heapshots-summary-sorting.html:

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

9 years ago[GTK] Allow running javascript from location bar in MiniBrowser
carlosgc@webkit.org [Wed, 21 Mar 2012 08:56:53 +0000 (08:56 +0000)]
[GTK] Allow running javascript from location bar in MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=81331

Reviewed by Martin Robinson.

* MiniBrowser/gtk/BrowserWindow.c:
(activateUriEntryCallback): Use browser_window_load_uri().
(browser_window_load_uri): Check whether uri starts with
javascript: and run the given script, or just call
webkit_web_view_load_uri() to load the given uri.
* MiniBrowser/gtk/BrowserWindow.h:
* MiniBrowser/gtk/main.c:
(createBrowserWindow): Use browser_window_load_uri().

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

9 years ago[GTK] Add webkit_web_view_run_javascript() to WebKit2 GTK+
carlosgc@webkit.org [Wed, 21 Mar 2012 08:44:23 +0000 (08:44 +0000)]
[GTK] Add webkit_web_view_run_javascript() to WebKit2 GTK+
https://bugs.webkit.org/show_bug.cgi?id=75543

Reviewed by Martin Robinson.

Source/WebKit2:

* GNUmakefile.am: Add new files to compilation.
* UIProcess/API/gtk/WebKitError.cpp:
(webkit_javascript_error_quark): Add new error domain for
Javascript errors.
* UIProcess/API/gtk/WebKitError.h:
* UIProcess/API/gtk/WebKitJavascriptResult.cpp: Added.
(webkitJavascriptResultCreate): Create a WebKitJavascriptResult
for the given WKSerializedScriptValueRef.
(webkit_javascript_result_ref): Increment reference count of
WebKitJavascriptResult.
(webkit_javascript_result_unref): Decrement reference count of
WebKitJavascriptResult.
(webkit_javascript_result_get_global_context): Get global
javascript context of the result.
(webkit_javascript_result_get_value): Get the JSValueRef of the
result.
* UIProcess/API/gtk/WebKitJavascriptResult.h: Added.
* UIProcess/API/gtk/WebKitJavascriptResultPrivate.h: Added.
* UIProcess/API/gtk/WebKitPrivate.h:
* UIProcess/API/gtk/WebKitWebView.cpp:
(webkitWebViewFinalize): Release the global javascript context.
(webkit_web_view_get_javascript_global_context): Get or create the
global javascript context.
(webkitWebViewRunJavaScriptCallback): Callback called by C API when
javascript execution finishes.
(webkit_web_view_run_javascript): Asynchronously run a given
javascript.
(webkit_web_view_run_javascript_finish): Finish async operation
started by webkit_web_view_run_javascript().
* UIProcess/API/gtk/WebKitWebView.h:
* UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbols.
* UIProcess/API/gtk/docs/webkit2gtk.types: Add
webkit_javascript_result_get_type().
* UIProcess/API/gtk/tests/TestWebKitWebView.cpp:
(testWebViewRunJavaScript):
(beforeAll):
* UIProcess/API/gtk/tests/WebViewTest.cpp:
(WebViewTest::WebViewTest):
(WebViewTest::~WebViewTest):
(runJavaScriptReadyCallback):
(WebViewTest::runJavaScriptAndWaitUntilFinished):
(jsValueToCString):
(WebViewTest::javascriptResultToCString):
(WebViewTest::javascriptResultToNumber):
(WebViewTest::javascriptResultToBoolean):
(WebViewTest::javascriptResultIsNull):
(WebViewTest::javascriptResultIsUndefined):
* UIProcess/API/gtk/tests/WebViewTest.h:
* UIProcess/API/gtk/webkit2.h:

Tools:

* MiniBrowser/gtk/GNUmakefile.am: Add javascriptcore_cppflags to
MiniBrowser CPP flags.

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

9 years ago[chromium] Marking lost-compositor-context-permanently.html on WIN as flaky.
keishi@webkit.org [Wed, 21 Mar 2012 08:24:18 +0000 (08:24 +0000)]
[chromium] Marking lost-compositor-context-permanently.html on WIN as flaky.

* platform/chromium/test_expectations.txt:

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

9 years agoUpdated Mac expected results for this test. <http://webkit.org/b/81746> tracks the...
mitz@apple.com [Wed, 21 Mar 2012 08:03:47 +0000 (08:03 +0000)]
Updated Mac expected results for this test. <webkit.org/b/81746> tracks the fact that
r111500 broke it.

* platform/mac/fast/css/text-transform-select-expected.png:
* platform/mac/fast/css/text-transform-select-expected.txt:

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

9 years ago[BlackBerry] Remove redundant code in SocketStreamHandler
charles.wei@torchmobile.com.cn [Wed, 21 Mar 2012 07:29:59 +0000 (07:29 +0000)]
[BlackBerry] Remove redundant code in SocketStreamHandler
https://bugs.webkit.org/show_bug.cgi?id=81726

Reviewed by George Staikos.

No new tests needed. Just remove redundant code.

* platform/network/blackberry/SocketStreamHandle.h:
(SocketStreamHandle):
* platform/network/blackberry/SocketStreamHandleBlackBerry.cpp:

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

9 years ago[chromium] Rebaseline tests after r111497.
keishi@webkit.org [Wed, 21 Mar 2012 07:26:34 +0000 (07:26 +0000)]
[chromium] Rebaseline tests after r111497.

* platform/chromium-mac-leopard/fast/css/text-transform-select-expected.png:
* platform/chromium-mac-leopard/fast/forms/select/menulist-disabled-option-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/css/text-transform-select-expected.png:
* platform/chromium-mac-snowleopard/fast/css/text-transform-select-expected.txt: Added.
* platform/chromium-mac-snowleopard/fast/forms/select-max-length-expected.txt: Added.
* platform/chromium-mac-snowleopard/fast/forms/select/menulist-disabled-option-expected.png: Added.
* platform/chromium-mac/fast/css/text-transform-select-expected.png:
* platform/chromium-mac/fast/css/text-transform-select-expected.txt: Added.
* platform/chromium-mac/fast/forms/select/menulist-disabled-option-expected.png: Added.
* platform/chromium-win-xp/fast/forms/select-max-length-expected.txt: Added.
* platform/chromium-win/fast/css/text-transform-select-expected.png:
* platform/chromium-win/fast/css/text-transform-select-expected.txt:
* platform/chromium-win/fast/forms/select/menulist-disabled-option-expected.png: Added.

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