WebKit-https.git
6 years agoAX: AXShowMenu doesn't always work.
samuel_white@apple.com [Tue, 5 Nov 2013 02:14:32 +0000 (02:14 +0000)]
AX: AXShowMenu doesn't always work.
https://bugs.webkit.org/show_bug.cgi?id=123649

Reviewed by Chris Fleizach.

No new tests, the change occurs in a code path that forces the context menu to show which
locks up DRT if we try to test it (platform menu is shown). The change itself gives the mouse
event handler a chance to handle our platform mouse event BEFORE the event ends up in the show
context menu machinery. This is necessary because without it, the element will not become
focused. Without focus, accessibility shows different/less menu items than a mouse click. The
end result is that context menus shown via accessibility are consistent with menus shown via click.

* page/ContextMenuController.cpp:
(WebCore::ContextMenuController::showContextMenuAt):

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

6 years agoImplement base64url encoding from RFC 4648
ap@apple.com [Tue, 5 Nov 2013 01:45:36 +0000 (01:45 +0000)]
Implement base64url encoding from RFC 4648
https://bugs.webkit.org/show_bug.cgi?id=123767

Reviewed by Sam Weinig.

No tests yet, will be covered by JWK tests for WebCrypto.

* wtf/text/Base64.cpp:
(WTF::base64EncodeInternal):
(WTF::base64Encode):
(WTF::base64URLEncode):
(WTF::base64DecodeInternal):
(WTF::base64Decode):
(WTF::base64URLDecode):
* wtf/text/Base64.h:
(WTF::base64URLEncode):

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

6 years agoSMIL timers can still fire after the containing document has been torn down
jpfau@apple.com [Tue, 5 Nov 2013 01:45:13 +0000 (01:45 +0000)]
SMIL timers can still fire after the containing document has been torn down
<https://webkit.org/b/123291>

Reviewed by Darin Adler.

Source/WebCore:

Ensure that the timers get paused when the document is preparing to be torn down.

Test: svg/animations/smil-timers-not-disabled-crash.html

* dom/Document.cpp:
(WebCore::Document::dropChildren):
(WebCore::Document::commonTeardown):
(WebCore::Document::prepareForDestruction):
* dom/Document.h:

LayoutTests:

Add a test that triggers the crash; unfortunately it triggers it after
the test is done, causing the next test to time out or crash.

* svg/animations/smil-timers-not-disabled-crash-expected.txt: Added.
* svg/animations/smil-timers-not-disabled-crash.html: Added.

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

6 years agoMove duplicate code in TrackPrivate classes to a common base class
commit-queue@webkit.org [Tue, 5 Nov 2013 01:37:26 +0000 (01:37 +0000)]
Move duplicate code in TrackPrivate classes to a common base class
https://bugs.webkit.org/show_bug.cgi?id=123619

Patch by Brendan Long <b.long@cablelabs.com> on 2013-11-04
Reviewed by Darin Adler.

No new tests because this is just refactoring.

* GNUmakefile.list.am: Add TrackPrivateBase.
* WebCore.vcxproj/WebCore.vcxproj: Same.
* WebCore.vcxproj/WebCore.vcxproj.filters: Same.
* WebCore.xcodeproj/project.pbxproj: Same.
* html/track/AudioTrack.cpp:
(WebCore::AudioTrack::inbandTrackIndex): Renamed audioTrackIndex() to trackIndex().
(WebCore::AudioTrack::labelChanged): First argument is now a TrackPrivateBase*.
(WebCore::AudioTrack::languageChanged): Same.
(WebCore::AudioTrack::willRemove): Same.
* html/track/AudioTrack.h: Update TrackPrivateBaseClient function signatures.
* html/track/InbandTextTrack.cpp:
(WebCore::InbandTextTrack::inbandTrackIndex): Renamed textTrackIndex() to trackIndex().
(WebCore::InbandTextTrack::labelChanged): First argument is now a TrackPrivateBase*.
(WebCore::InbandTextTrack::languageChanged): Same.
(WebCore::InbandTextTrack::willRemove): Same.
* html/track/InbandTextTrack.h: Update TrackPrivateBaseClient function signatures.
* html/track/VideoTrack.cpp:
(WebCore::VideoTrack::inbandTrackIndex): Renamed videoTrackIndex() to trackIndex().
(WebCore::VideoTrack::labelChanged): First argument is now a TrackPrivateBase*.
(WebCore::VideoTrack::languageChanged): Same.
(WebCore::VideoTrack::willRemove): Same.
* html/track/VideoTrack.h: Update TrackPrivateBaseClient function signatures.
* platform/graphics/AudioTrackPrivate.h: Remove code that was moved to TrackPrivateBase.
* platform/graphics/InbandTextTrackPrivate.h: Same.
* platform/graphics/InbandTextTrackPrivateClient.h: Same.
* platform/graphics/VideoTrackPrivate.h: Same.
* platform/graphics/TrackPrivateBase.h: Refactored out duplicate code in AudioTrackPrivate, InbandTextTrackPrivate and VideoTrackPrivate.
* platform/graphics/avfoundation/InbandTextTrackPrivateAVF.h: Renamed textTrackIndex() to trackIndex().
* platform/graphics/gstreamer/InbandTextTrackPrivateGStreamer.h: Same.
* platform/graphics/gstreamer/AudioTrackPrivateGStreamer.h: Renamed audioTrackIndex() to trackIndex().
* platform/graphics/gstreamer/VideoTrackPrivateGStreamer.h: Renamed videoTrackIndex() to trackIndex90.

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

6 years agoFrameView destructor is worried about being retained by a renderer.
akling@apple.com [Tue, 5 Nov 2013 01:33:34 +0000 (01:33 +0000)]
FrameView destructor is worried about being retained by a renderer.
<https://webkit.org/b/123763>

There's no way we can be in ~FrameView() while also being owned by
a RenderWidget. Remove some overly paranoid code that was making sure
the renderer didn't have a reference on us.

Reviewed by Anders Carlsson.

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

6 years agoREGRESSION(r158311): media/media-fragments/TC0054.html and TC0061.html hit assertions
eric.carlson@apple.com [Tue, 5 Nov 2013 01:33:11 +0000 (01:33 +0000)]
REGRESSION(r158311): media/media-fragments/TC0054.html and TC0061.html hit assertions
https://bugs.webkit.org/show_bug.cgi?id=123555

Reviewed by Darin Adler.

Source/WebCore:

No new tests, covered by existing tests.

* html/MediaFragmentURIParser.cpp:
(WebCore::MediaFragmentURIParser::parseFragments): Don't add a fragment with empty key or value as
    they will not processed.
(WebCore::MediaFragmentURIParser::parseNPTFragment): Remove excess whitespace.

LayoutTests:

* TestExpectations: Remove media/media-fragments/TC0054.html and media/media-fragments/TC0061.html.

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

6 years agoRemove code duplications in createFontCustomPlatformData()
paroga@webkit.org [Tue, 5 Nov 2013 01:31:43 +0000 (01:31 +0000)]
Remove code duplications in createFontCustomPlatformData()
https://bugs.webkit.org/show_bug.cgi?id=123706

Reviewed by Darin Adler.

Move OpenTypeSanitizer and WOFF handling from the port specific
implementations in createFontCustomPlatformData() into the only
caller of this function CachedFont::ensureCustomFontData().
Also change the parameter passing the SharedBuffer from a
pointer to a reference since it is never null.

* loader/cache/CachedFont.cpp:
(WebCore::CachedFont::ensureCustomFontData):
* platform/graphics/blackberry/FontCustomPlatformData.h:
* platform/graphics/blackberry/FontCustomPlatformDataBlackBerry.cpp:
(WebCore::FontCustomPlatformData::FontCustomPlatformData):
(WebCore::createFontCustomPlatformData):
* platform/graphics/cairo/FontCustomPlatformData.h:
* platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
(WebCore::FontCustomPlatformData::FontCustomPlatformData):
(WebCore::createFontCustomPlatformData):
* platform/graphics/mac/FontCustomPlatformData.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/mac/FontCustomPlatformData.h:
* platform/graphics/win/FontCustomPlatformData.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/win/FontCustomPlatformData.h:
* platform/graphics/win/FontCustomPlatformDataCairo.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/wince/FontCustomPlatformData.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/wince/FontCustomPlatformData.h:

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

6 years agoFixing MediaStreamDescriptor addSource and addTrack methods
commit-queue@webkit.org [Tue, 5 Nov 2013 01:26:49 +0000 (01:26 +0000)]
Fixing MediaStreamDescriptor addSource and addTrack methods
https://bugs.webkit.org/show_bug.cgi?id=123755

Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-11-04
Reviewed by Eric Carlson.

We must store the track and source that is passed as parameter in a RefPtr,
otherwise we will refer to a null pointer.

No new tests needed.

* platform/mediastream/MediaStreamDescriptor.cpp:
(WebCore::MediaStreamDescriptor::addSource):
(WebCore::MediaStreamDescriptor::addTrack):

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

6 years agoRemove PlatformCALayer::playerLayer
timothy_horton@apple.com [Tue, 5 Nov 2013 01:23:33 +0000 (01:23 +0000)]
Remove PlatformCALayer::playerLayer
https://bugs.webkit.org/show_bug.cgi?id=123764

Reviewed by Sam Weinig.

Source/WebCore:

* platform/graphics/ca/PlatformCALayer.h:
* platform/graphics/ca/mac/PlatformCALayerMac.h:
* platform/graphics/ca/mac/PlatformCALayerMac.mm:
(PlatformCALayerMac::clone):
Remove playerLayer(), fold it into clone().

Source/WebKit2:

* WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
* WebProcess/WebPage/mac/PlatformCALayerRemote.h:
Remove playerLayer().

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

6 years agoAX: Mail attachments at the start of an email are not output by VoiceOver
cfleizach@apple.com [Tue, 5 Nov 2013 00:47:32 +0000 (00:47 +0000)]
AX: Mail attachments at the start of an email are not output by VoiceOver
https://bugs.webkit.org/show_bug.cgi?id=123697

Reviewed by Ryosuke Niwa.

Source/WebCore:

VoiceOver is expecting that "replaced elements" (attachments in a Mail message in this case) to be
represented by the replacement character when asking for a stringForRange.

However, when that replaced element is at the beginning of the document, the logic does not work because
there is a few code places that will take that first Position and advance it forward, not accounting for replaced elements.
When using the TextIterator normally, it does account for these, so that's why it's only affecting as at the beginning of the document.

Also a "replaced element" can be more than just renderer->isReplaced(), hence the externing of the isRendererReplacedElement method
and using that it in pertinent places.

Tests: platform/mac/accessibility/object-replacement-with-no-rendered-children-at-node-start.html
       platform/mac/accessibility/object-replacement-with-rendered-children-at-node-start.html

* accessibility/AccessibilityObject.cpp:
(WebCore::replacedNodeNeedsCharacter):
* accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(nsStringForReplacedNode):
* dom/Position.cpp:
(WebCore::Position::isCandidate):
* dom/PositionIterator.cpp:
* dom/Range.cpp:
(WebCore::Range::firstNode):
* editing/TextIterator.cpp:
(WebCore::isRendererReplacedElement):
* editing/TextIterator.h:

LayoutTests:

Add two flavors of this. One where the replaced element has rendered children and one where it does not,
which go down two different code paths.

* platform/mac/accessibility/object-replacement-with-no-rendered-children-at-node-start-expected.txt: Added.
* platform/mac/accessibility/object-replacement-with-no-rendered-children-at-node-start.html: Added.
* platform/mac/accessibility/object-replacement-with-rendered-children-at-node-start-expected.txt: Added.
* platform/mac/accessibility/object-replacement-with-rendered-children-at-node-start.html: Added.

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

6 years agoChange structure of frame tree in WINCE port.
commit-queue@webkit.org [Tue, 5 Nov 2013 00:46:55 +0000 (00:46 +0000)]
Change structure of frame tree in WINCE port.
https://bugs.webkit.org/show_bug.cgi?id=121079

Patch by Zhuang Zhigang <zhuangzg@cn.fujitsu.com> on 2013-11-04
Reviewed by Darin Adler.

* WebCoreSupport/FrameLoaderClientWinCE.cpp:
(WebKit::FrameLoaderClientWinCE::createFrame):
* WebView.cpp:
(WebView::createFrame):
* WebView.h:

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

6 years agoREGRESSION(r158586): plugins/refcount-leaks.html fails
rniwa@webkit.org [Tue, 5 Nov 2013 00:41:19 +0000 (00:41 +0000)]
REGRESSION(r158586): plugins/refcount-leaks.html fails
https://bugs.webkit.org/show_bug.cgi?id=123765

Add the test expectation.

* TestExpectations:
* platform/wk2/TestExpectations:

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

6 years agoUse RenderAncestorIterator in a couple of places.
akling@apple.com [Tue, 5 Nov 2013 00:12:56 +0000 (00:12 +0000)]
Use RenderAncestorIterator in a couple of places.
<https://webkit.org/b/123725>

Take the ancestorsOfType<RenderMoo>() thingy out for a spin.

Found a bunch of parent chain walking loops that were really just
looking for the first ancestor renderer of a certain type.
They were a perfect fit for this pattern:

    if (auto svgRoot = ancestorsOfType<RenderSVGRoot>(renderer).first())
        svgRoot->shakeMoneyMaker();

Quite a bit clearer than the previous:

    for (auto ancestor = renderer.parent(); ancestor; ancestor = ancestor->parent()) {
        if (ancestor->isSVGRoot())
            toRenderSVGRoot(ancestor)->makeMoneyShaker();
    }

Reviewed by Antti Koivisto.

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

6 years agoWKRemoteObjectEncoder should escape keys
andersca@apple.com [Tue, 5 Nov 2013 00:09:03 +0000 (00:09 +0000)]
WKRemoteObjectEncoder should escape keys
https://bugs.webkit.org/show_bug.cgi?id=123761

Reviewed by Tim Horton.

Keys that start with $ will be reserved for use by the coder, so prepend an extra
$ to keys that already start with $ to avoid clashes.

* Shared/API/Cocoa/WKRemoteObjectCoder.mm:
(escapeKey):
(-[WKRemoteObjectEncoder encodeBytes:length:forKey:]):
(-[WKRemoteObjectEncoder _encodeObjectForKey:usingBlock:]):

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

6 years agoDFG NewArray/NewArrayBuffer shouldn't be constructing with negative indexing
fpizlo@apple.com [Tue, 5 Nov 2013 00:05:02 +0000 (00:05 +0000)]
DFG NewArray/NewArrayBuffer shouldn't be constructing with negative indexing
https://bugs.webkit.org/show_bug.cgi?id=123760
<rdar://problem/15356705>

Reviewed by Mark Hahnenberg and Oliver Hunt.

Source/JavaScriptCore:

* dfg/DFGOperations.cpp:

LayoutTests:

* js/dfg-new-array-buffer-while-having-a-bad-time-expected.txt: Added.
* js/dfg-new-array-buffer-while-having-a-bad-time.html: Added.
* js/dfg-new-array-while-having-a-bad-time-expected.txt: Added.
* js/dfg-new-array-while-having-a-bad-time.html: Added.
* js/script-tests/dfg-new-array-buffer-while-having-a-bad-time.js: Added.
(foo):
* js/script-tests/dfg-new-array-while-having-a-bad-time.js: Added.
(foo):

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

6 years ago[MSE] Add a SourceBufferPrivateClient interface for platform -> html communication.
jer.noble@apple.com [Mon, 4 Nov 2013 23:52:32 +0000 (23:52 +0000)]
[MSE] Add a SourceBufferPrivateClient interface for platform -> html communication.
https://bugs.webkit.org/show_bug.cgi?id=123373

Reviewed by Eric Carlson.

To enable communication between SourceBuffer and SourceBufferPrivate without introducing
layering violations, add a new interface class SourceBufferPrivateInterface from which
SourceBuffer will inherit.

* Modules/mediasource/SourceBuffer.cpp:
(WebCore::SourceBuffer::SourceBuffer): Set the private's client.
(WebCore::SourceBuffer::~SourceBuffer): Clear the private's client.
(WebCore::SourceBuffer::sourceBufferPrivateDidEndStream): Added stub.
(WebCore::SourceBuffer::sourceBufferPrivateDidReceiveInitializationSegment): Hinno.
(WebCore::SourceBuffer::sourceBufferPrivateDidReceiveSample): Ditto.
(WebCore::SourceBuffer::sourceBufferPrivateHasAudio): Ditto.
(WebCore::SourceBuffer::sourceBufferPrivateHasVideo): Ditto.
* Modules/mediasource/SourceBuffer.h:
* WebCore.xcodeproj/project.pbxproj: Add new files to project.
* platform/graphics/SourceBufferPrivate.h:
* platform/graphics/SourceBufferPrivateClient.h: Added.
(WebCore::SourceBufferPrivateClient::~SourceBufferPrivateClient): Empty destructor.

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

6 years ago../WebKit: [Win] Use VersionStamper for official builds
bfulgham@apple.com [Mon, 4 Nov 2013 23:26:17 +0000 (23:26 +0000)]
../WebKit: [Win] Use VersionStamper for official builds
https://bugs.webkit.org/show_bug.cgi?id=123758

Reviewed by Tim Horton.

* WebKit.vcxproj/WebKit/WebKitPostBuild.cmd: Restore command to
call VersionStamper on final stage of build.

../WTF: [Win] User VersionStamper for official builds
https://bugs.webkit.org/show_bug.cgi?id=123758

Reviewed by Tim Horton.

* WTF.vcxproj/WTFPostBuild.cmd: Add missing command to run VersionStamper.exe.

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

6 years ago[WK2] Update WebGeolocationManager to support multiple WebContent processes
benjamin@webkit.org [Mon, 4 Nov 2013 23:03:14 +0000 (23:03 +0000)]
[WK2] Update WebGeolocationManager to support multiple WebContent processes
https://bugs.webkit.org/show_bug.cgi?id=123658

Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-11-04
Reviewed by Anders Carlsson.

Change WebGeolocationManagerProxy to track which WebProcessProxy needs geolocation.

* UIProcess/WebContext.cpp:
(WebKit::WebContext::disconnectProcess):
WebContext::disconnectProcess does not handle ContextSupplement yet when using multiple
WebContent processes. Add an explicit call for WebGeolocationManagerProxy as a temporary
solution.

* UIProcess/WebGeolocationManagerProxy.cpp:
(WebKit::WebGeolocationManagerProxy::WebGeolocationManagerProxy):
(WebKit::WebGeolocationManagerProxy::contextDestroyed):
(WebKit::WebGeolocationManagerProxy::processDidClose):
(WebKit::WebGeolocationManagerProxy::startUpdating):
(WebKit::WebGeolocationManagerProxy::stopUpdating):
(WebKit::WebGeolocationManagerProxy::removeRequester):
* UIProcess/WebGeolocationManagerProxy.h:
* UIProcess/WebGeolocationManagerProxy.messages.in:

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

6 years ago[PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
jer.noble@apple.com [Mon, 4 Nov 2013 22:53:32 +0000 (22:53 +0000)]
[PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
https://bugs.webkit.org/show_bug.cgi?id=123621

Reviewed by Eric Carlson.

Source/WebCore:

Add a new Setting which will disable the video plugin proxy. Enable support for AVFoundation
in iOS (which requries fixing a few compile errors resulting from classes and methods which
are not available on iOS.

* WebCore.exp.in: Export wkAVAssetResolvedURL.
* css/StyleResolver.cpp:
(WebCore::StyleResolver::canShareStyleWithElement): Make conditional upon
    new isVideoPluginProxyEnabled() setting.
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::parseAttribute): Ditto.
* html/HTMLMediaElement.h:
* html/HTMLVideoElement.cpp:
(WebCore::HTMLVideoElement::createRenderer): Ditto.
(WebCore::HTMLVideoElement::attach): Ditto.
(WebCore::HTMLVideoElement::parseAttribute): Ditto.
(HTMLVideoElement::setDisplayMode): Ditto.
* html/HTMLVideoElement.h:
* page/Settings.cpp:
(WebCore::Settings::setVideoPluginProxyEnabled): Simple setter.
* page/Settings.h:
(WebCore::Settings::isVideoPluginProxyEnabled): Simple getter.
* platform/graphics/MediaPlayer.cpp:
(WebCore::installedMediaEngines): Conditionally add MediaPlayerPrivateIOS and always add
    MediaPlayerPriateAVFoundationObjC.
* platform/graphics/MediaPlayerPrivate.h:
(WebCore::MediaPlayerPrivateInterface::deliverNotification): Add default implementation.
(WebCore::MediaPlayerPrivateInterface::setMediaPlayerProxy): Ditto.
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::MediaPlayerPrivateAVFoundationObjC): Use new
    HAS_ and USE_ macros instead of __MAC_OS_MIN_VERNSION_REQUIRED.
(WebCore::MediaPlayerPrivateAVFoundationObjC::~MediaPlayerPrivateAVFoundationObjC): Ditto.
(WebCore::MediaPlayerPrivateAVFoundationObjC::hasContextRenderer): Ditto.
(WebCore::MediaPlayerPrivateAVFoundationObjC::createContextVideoRenderer): Ditto.
(WebCore::MediaPlayerPrivateAVFoundationObjC::destroyContextVideoRenderer): Ditto.
(WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL): Ditto.
(WebCore::MediaPlayerPrivateAVFoundationObjC::paint): Ditto.
(WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoLayer): Use cachedCGColor instead
    of CGColorGetConstantColor.
(WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoOutput): Use CVPixelBuffer pixel
    format constant instead of QuickDraw constant.
(WebCore::MediaPlayerPrivateAVFoundationObjC::createPixelBuffer): Ditto.
(WebCore::MediaPlayerPrivateAVFoundationObjC::paintWithVideoOutput): Draw to intermediary
    CGImage on iOS.
* platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.h:
* platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm:
* platform/ios/WebCoreSystemInterfaceIOS.mm:
* platform/mac/WebCoreSystemInterface.h:

Source/WebKit/mac:

Add a new isVideoPluginProxyEnabled setting.

* WebView/WebPreferenceKeysPrivate.h:
* WebView/WebPreferences.mm:
(+[WebPreferences initialize]): Set isVideoPluginProxyEnabled preference.
(-[WebPreferences isVideoPluginProxyEnabled]): Pass through to Settings.
* WebView/WebPreferencesPrivate.h:
* WebView/WebView.mm:
(-[WebView _preferencesChanged:]): Set isVideoPluginProxyEnabled preference.

Source/WebKit2:

Add WebKit2 functions for setting then new isVideoPluginProxyEnabled preference.

* Shared/WebPreferencesStore.h:
* UIProcess/API/C/WKPreferences.cpp:
(WKPreferencesSetVideoPluginProxyEnabled):
(WKPreferencesGetVideoPluginProxyEnabled):
* UIProcess/API/C/WKPreferences.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):

Source/WTF:

Enable WTF_USE_AVFOUNDATION and add some HAVE_AVFOUNDATION_* defines
to replace the existing __MAC_OS_X_VERSION_MIN_REQUIRED macros in
MediaPlayerPrivateAVFoundationObjC.mm.

* wtf/Platform.h:

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

6 years agoREGRESSION(r158561): fast/block/float/float-append-child-crash.html asserting.
akling@apple.com [Mon, 4 Nov 2013 22:50:57 +0000 (22:50 +0000)]
REGRESSION(r158561): fast/block/float/float-append-child-crash.html asserting.

The non-const ancestor iterator was walking siblings, not ancestors.

Rubber-stamped by Antti Koivisto.

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

6 years ago[MSE] [Mac] Disclaim support for MSE in AVFoundation and QTKit engines
jer.noble@apple.com [Mon, 4 Nov 2013 22:49:35 +0000 (22:49 +0000)]
[MSE] [Mac] Disclaim support for MSE in AVFoundation and QTKit engines
https://bugs.webkit.org/show_bug.cgi?id=123593

Reviewed by Eric Carlson.

Immediately fail if asked to load a Media Source in engines which do not support
them.

* platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
(WebCore::MediaPlayerPrivateAVFoundation::load):
* platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::supportsType):
* platform/graphics/mac/MediaPlayerPrivateQTKit.h:
* platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
(WebCore::MediaPlayerPrivateQTKit::load):
(WebCore::MediaPlayerPrivateQTKit::supportsType):

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

6 years ago[CSS Shapes] image valued shape element margin can cause an ASSERT fail
hmuller@adobe.com [Mon, 4 Nov 2013 22:39:46 +0000 (22:39 +0000)]
[CSS Shapes] image valued shape element margin can cause an ASSERT fail
https://bugs.webkit.org/show_bug.cgi?id=123743

Reviewed by Andreas Kling.

Source/WebCore:

When margin-top is specified for a shape's element, the Y coordinates passed
to RasterShapeIntervals::getExcludedIntervals() may be negative. This is
because the incoming logical coordinates are relative to the content or
padding box, depending on the box-sizing property. The RasterShape::getExcludedIntervals()
method now clips the incoming Y coordinates to the shape's bounds before
accessing the shape's intervals.

Test: fast/shapes/shape-outside-floats/shape-outside-floats-margin-crash.html

* rendering/shapes/RasterShape.cpp:
(WebCore::RasterShapeIntervals::getExcludedIntervals):

LayoutTests:

Verify that an element with an image valued shape and a non-negative margin
does not cause an assertion failure.

* fast/shapes/shape-outside-floats/shape-outside-floats-margin-crash-expected.html: Added.
* fast/shapes/shape-outside-floats/shape-outside-floats-margin-crash.html: Added.

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

6 years agoMore WKRemoteObjectRegistry work
andersca@apple.com [Mon, 4 Nov 2013 22:30:34 +0000 (22:30 +0000)]
More WKRemoteObjectRegistry work
https://bugs.webkit.org/show_bug.cgi?id=123754

Reviewed by Dan Bernstein.

Source/WebKit2:

* Shared/API/Cocoa/WKRemoteObjectCoder.h:
* Shared/API/Cocoa/WKRemoteObjectCoder.mm:
(-[WKRemoteObjectEncoder rootObjectDictionary]):
Add a getter for the root object dictionary.

* Shared/API/Cocoa/WKRemoteObjectRegistry.mm:
(-[WKRemoteObjectRegistry _sendInvocation:interface:]):
Call _sendMessageWithBody:.
(-[WKRemoteObjectRegistry _sendMessageWithBody:]):
Call WebConnection::postMessage.

Tools:

* TestWebKitAPI/Tests/WebKit2ObjC/WKRemoteObjectRegistry.mm:
(TestWebKitAPI::TEST):
Use the correct bundle test name. Call Util::run.

* TestWebKitAPI/Tests/mac/WKRemoteObjectRegistry_Bundle.mm:
(-[BundleObject sayHello]):
(-[BundleObject testMethodWithString:double:integer:]):
Add BundleObject implementation. Register the bundle object with
the remote object registry. Call _handleMessageWithName:body: on the incoming message.

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

6 years agoMake LiveNodeListBase use Elements instead of Nodes
antti@apple.com [Mon, 4 Nov 2013 21:31:27 +0000 (21:31 +0000)]
Make LiveNodeListBase use Elements instead of Nodes
https://bugs.webkit.org/show_bug.cgi?id=123745

Reviewed by Anders Carlsson.

* WebCore.exp.in:
* dom/Element.cpp:
(WebCore::Element::firstElementChild):
(WebCore::Element::lastElementChild):

    Switch to correct calls. ElementTraversal::previous and previousChild are no longer equivalent.

* dom/ElementTraversal.h:
(WebCore::::lastWithinTemplate):
(WebCore::::previousTemplate):

    Fix ElementTraversal::lastWithin and previous. They had no real clients and didn't work correctly.
    With LiveNodeListBase starting to use these they get excellent test coverage.

* dom/LiveNodeList.cpp:
(WebCore::LiveNodeListBase::invalidateCache):
* dom/LiveNodeList.h:
(WebCore::LiveNodeListBase::LiveNodeListBase):
(WebCore::LiveNodeListBase::isElementCacheValid):
(WebCore::LiveNodeListBase::cachedElement):
(WebCore::LiveNodeListBase::cachedElementOffset):
(WebCore::LiveNodeListBase::setCachedElement):

    Make the cache Element based.
    Switch to Elements in all helpers.
    Rename item -> element for clarity.

* dom/NodeIterator.cpp:
(WebCore::NodeIterator::NodePointer::moveToPrevious):
(WebCore::NodeIterator::updateForNodeRemoval):

    This code expected the old inconsistent NodeTraversal::previous behavior where the traversal includes
    the root as the last item. Drop the stayWithin parameter and handle the one case where it is needed here.

* dom/NodeTraversal.cpp:
(WebCore::NodeTraversal::last):
(WebCore::NodeTraversal::deepLastChild):
* dom/NodeTraversal.h:

    Support ElementTraversal::previous/lastWithin.

(WebCore::NodeTraversal::previous):

    This was slightly wrong too.

* html/HTMLCollection.cpp:
(WebCore::previousElement):
(WebCore::lastElement):
(WebCore::LiveNodeListBase::iterateForPreviousElement):
(WebCore::LiveNodeListBase::itemBefore):
(WebCore::LiveNodeListBase::isLastItemCloserThanLastOrCachedItem):
(WebCore::LiveNodeListBase::isFirstItemCloserThanCachedItem):
(WebCore::LiveNodeListBase::setCachedElement):
(WebCore::LiveNodeListBase::item):
(WebCore::LiveNodeListBase::elementBeforeOrAfterCachedElement):
* html/HTMLCollection.h:
(WebCore::HTMLCollection::isEmpty):
(WebCore::HTMLCollection::hasExactlyOneItem):

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

6 years agoEliminate HostCall bit from JSC Stack CallerFrame
msaboff@apple.com [Mon, 4 Nov 2013 21:28:38 +0000 (21:28 +0000)]
Eliminate HostCall bit from JSC Stack CallerFrame
https://bugs.webkit.org/show_bug.cgi?id=123642

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

Replace the HostCallFrame bit or'ed to the CallerFrame value in a CallFrame with
a VM entry sentinel CallFrame.  Logically, the VM entry sentinel call frame is
pushed on the stack before the callee frame when calling from native to JavaScript
code.  The callee frame's CallerFrame points at the VM entry sentinel call frame
and the VM entry sentinel call frame's CallerFrame points to the real caller.
The VM entry sentinel call frame has a sentinel (1) in the CodeBlock to indicate
its a VM entry sentinel call frame.  It's ScopeChain has vm.topCallFrame at the
time of the call.  This allows for a complete stack walk as well as walking just
the contiguous JS frames.

The VM entry sentinel call frame and callee frame are currently allocated and
initialized in ExecState::init(), but this initialization will be moved to
ctiTrampoline when we actually move onto the native stack.

* bytecode/CodeBlock.cpp:
(JSC::CodeBlock::noticeIncomingCall):
* debugger/DebuggerCallFrame.cpp:
(JSC::DebuggerCallFrame::callerFrame):
* dfg/DFGJITCompiler.cpp:
(JSC::DFG::JITCompiler::compileExceptionHandlers):
* interpreter/CallFrame.h:
(JSC::ExecState::frameExtent):
(JSC::ExecState::currentVPC):
(JSC::ExecState::setCurrentVPC):
(JSC::ExecState::init):
(JSC::ExecState::noCaller):
(JSC::ExecState::isVMEntrySentinel):
(JSC::ExecState::vmEntrySentinelCallerFrame):
(JSC::ExecState::initializeVMEntrySentinelFrame):
(JSC::ExecState::callerFrameSkippingVMEntrySentinel):
(JSC::ExecState::vmEntrySentinelCodeBlock):
* interpreter/Interpreter.cpp:
(JSC::unwindCallFrame):
(JSC::Interpreter::getStackTrace):
* interpreter/Interpreter.h:
(JSC::TopCallFrameSetter::TopCallFrameSetter):
(JSC::TopCallFrameSetter::~TopCallFrameSetter):
(JSC::NativeCallFrameTracer::NativeCallFrameTracer):
* interpreter/JSStack.cpp:
(JSC::JSStack::~JSStack):
* interpreter/JSStackInlines.h:
(JSC::JSStack::getStartOfFrame):
(JSC::JSStack::pushFrame):
(JSC::JSStack::popFrame):
* interpreter/Register.h:
(JSC::Register::operator=):
(JSC::Register::callFrame):
* interpreter/StackVisitor.cpp:
(JSC::StackVisitor::readFrame):
(JSC::StackVisitor::readNonInlinedFrame):
(JSC::StackVisitor::readInlinedFrame):
(JSC::StackVisitor::Frame::print):
* interpreter/VMInspector.cpp:
(JSC::VMInspector::countFrames):
* jit/JIT.cpp:
(JSC::JIT::privateCompileExceptionHandlers):
* jit/JITOperations.cpp:
* jit/JITStubsARM.h:
(JSC::ctiTrampoline):
* jit/JITStubsARM64.h:
* jit/JITStubsARMv7.h:
(JSC::ctiTrampoline):
* jit/JITStubsMIPS.h:
* jit/JITStubsMSVC64.asm:
* jit/JITStubsSH4.h:
* jit/JITStubsX86.h:
* jit/JITStubsX86_64.h:
* jsc.cpp:
(functionDumpCallFrame):
* llint/LowLevelInterpreter.cpp:
(JSC::CLoop::execute):
* runtime/VM.cpp:
(JSC::VM::VM):
(JSC::VM::throwException):

Source/WebCore:

Updated JavaScript stack walking as a result of the corresponding changes made in
JavaScriptCore.

* bindings/js/ScriptController.cpp:
(WebCore::ScriptController::shouldBypassMainWorldContentSecurityPolicy):
* bindings/js/ScriptDebugServer.cpp:
(WebCore::ScriptDebugServer::stepOutOfFunction):
(WebCore::ScriptDebugServer::returnEvent):
(WebCore::ScriptDebugServer::didExecuteProgram):

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

6 years agoBuild fixes. In particular, we were missing the code to generate JSONs in report...
rniwa@webkit.org [Mon, 4 Nov 2013 20:15:08 +0000 (20:15 +0000)]
Build fixes. In particular, we were missing the code to generate JSONs in report.php :(

* public/api/report.php:
* public/include/test-results.php:

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

6 years ago[css shapes] Fix support for shape-outside on a float with padding
bjonesbe@adobe.com [Mon, 4 Nov 2013 20:12:22 +0000 (20:12 +0000)]
[css shapes] Fix support for shape-outside on a float with padding
https://bugs.webkit.org/show_bug.cgi?id=123590

Reviewed by Alexandru Chiculita.

Source/WebCore:

The line top was being improperly converted to the coordinates of the
shape, causing the shape to be positioned incorrectly when the float
had padding. This fixes that problem.

No new tests, covered by updates to existing ones.

* rendering/shapes/ShapeOutsideInfo.cpp:
(WebCore::ShapeOutsideInfo::updateDeltasForContainingBlockLine):

LayoutTests:

Fix existing tests that depended on the incorrect behavior so that
they are now testing the proper thing. Also fix up the tests to make
them clearer and more robust.

* csswg/contributors/adobe/submitted/shapes/shape-outside/resources/w3c-import.log:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-circle-000-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-circle-000.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-ellipse-000-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-ellipse-000.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-inset-rectangle-001-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-inset-rectangle-001.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-000-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-000.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-001-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-001.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-002-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-002.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-003-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-003.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-004-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-004.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-005-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-005.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-006-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-006.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-007-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-007.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-008-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-008.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-009-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-padding-009.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-001-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-001.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-002-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-002.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-003-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-003.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-004-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-rounded-rectangle-004.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-square-border-000-expected.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/shape-outside-floats-square-border-000.html:
* csswg/contributors/adobe/submitted/shapes/shape-outside/w3c-import.log:

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

6 years agoJSArrayBufferViews of length 0 allocate 0 CopiedSpace bytes, which is invalid
mhahnenberg@apple.com [Mon, 4 Nov 2013 19:52:04 +0000 (19:52 +0000)]
JSArrayBufferViews of length 0 allocate 0 CopiedSpace bytes, which is invalid
https://bugs.webkit.org/show_bug.cgi?id=123746

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

This patch disallows clients from allocating 0 bytes in CopiedSpace. We enforce this invariant
with an ASSERT in C++ code and a breakpoint in JIT code. Clients who care about 0-byte
allocations (like JSArrayBufferViews) must handle that case themselves, but we don't punish
anybody else for the rare case that somebody decides to allocate a 0-length typed array.
It also makes the allocation and copying cases consistent for CopiedSpace: no 0-byte allocations,
no 0-byte copying.

Also added a check so that JSArrayBufferViews don't try to copy their m_vector backing store when
their length is 0. Also sprinkled several ASSERTs throughout the JSArrayBufferView code to make sure that
when length is 0 m_vector is null.

* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileNewTypedArray):
* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::emitAllocateBasicStorage):
* heap/CopiedSpaceInlines.h:
(JSC::CopiedSpace::tryAllocate):
* runtime/ArrayBuffer.h:
(JSC::ArrayBuffer::create):
* runtime/JSArrayBufferView.cpp:
(JSC::JSArrayBufferView::ConstructionContext::ConstructionContext):
* runtime/JSGenericTypedArrayViewInlines.h:
(JSC::::visitChildren):
(JSC::::copyBackingStore):
(JSC::::slowDownAndWasteMemory):

LayoutTests:

Added a test to make sure that we don't crash when allocating a typed array with 0 length.

* js/script-tests/typedarray-zero-size.js: Added.
(foo):
* js/typedarray-zero-size-expected.txt: Added.
* js/typedarray-zero-size.html: Added.

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

6 years agoImplement generateKey for HMAC and AES-CBC
ap@apple.com [Mon, 4 Nov 2013 18:45:03 +0000 (18:45 +0000)]
Implement generateKey for HMAC and AES-CBC
https://bugs.webkit.org/show_bug.cgi?id=123669

Reviewed by Dan Bernstein.

Source/WebCore:

Tests: crypto/subtle/aes-cbc-generate-key.html
       crypto/subtle/hmac-generate-key.html

* WebCore.xcodeproj/project.pbxproj: Added new files.

* bindings/js/JSCryptoAlgorithmDictionary.cpp:
(WebCore::createAesKeyGenParams): Added bindings for AesKeyGenParams.
(WebCore::JSCryptoAlgorithmDictionary::createParametersForGenerateKey): Handle
algorithms that generate AES and HMAC keys.

* bindings/js/JSSubtleCryptoCustom.cpp: (WebCore::JSSubtleCrypto::generateKey): Added.

* crypto/CryptoAlgorithmAesKeyGenParams.h: Added.

* crypto/CryptoKey.cpp: (WebCore::CryptoKey::randomData):
* crypto/CryptoKey.h:
* crypto/CryptoKeyMac.cpp: Added
Expose a function that produces random data for symmetric crypto keys. Cross-platform
implementation uses ARC4 code from WTF, while Mac uses a system function that
provides a FIPS validated random number generator.

* crypto/CryptoKeyAES.cpp: (WebCore::CryptoKeyAES::generate):
* crypto/CryptoKeyAES.h:
Added a function that creates AES keys.

* crypto/SubtleCrypto.idl: Added generateKey.

* crypto/algorithms/CryptoAlgorithmAES_CBC.cpp:
(WebCore::CryptoAlgorithmAES_CBC::generateKey): Added.

* crypto/algorithms/CryptoAlgorithmHMAC.cpp:
(WebCore::CryptoAlgorithmHMAC::generateKey): Added.

* crypto/keys/CryptoKeyHMAC.cpp: (WebCore::CryptoKeyHMAC::generate):
* crypto/keys/CryptoKeyHMAC.h:
Added a function that creates HMAC keys.

* crypto/mac/CryptoAlgorithmAES_CBCMac.cpp: Removed generateKey stub, the implementation
ended up in cross-platform file.

* crypto/mac/CryptoAlgorithmHMACMac.cpp: Ditto.

LayoutTests:

* crypto/subtle/aes-cbc-generate-key-expected.txt: Added.
* crypto/subtle/aes-cbc-generate-key.html: Added.
* crypto/subtle/hmac-generate-key-expected.txt: Added.
* crypto/subtle/hmac-generate-key.html: Added.

* crypto/subtle/sha-1-expected.txt: Now that crypto.webkitSubtle.generateKey exists,
a different exception is raised.

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

6 years agoRevert SetCGFontRenderingMode() build fix for Chromium Mac
dbates@webkit.org [Mon, 4 Nov 2013 18:42:21 +0000 (18:42 +0000)]
Revert SetCGFontRenderingMode() build fix for Chromium Mac
https://bugs.webkit.org/show_bug.cgi?id=123633

Reviewed by Darin Adler.

Reverts <http://trac.webkit.org/changeset/134380>, which
was a Chromium Mac build fix for <http://trac.webkit.org/changeset/134348>
(https://bugs.webkit.org/show_bug.cgi?id=101787). Chromium doesn't
build against top-of-tree WebKit.

* platform/graphics/mac/FontMac.mm:
(WebCore::Font::drawGlyphs):
* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:

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

6 years ago[sh4] Refactor jumps in baseline JIT to return label after the jump.
commit-queue@webkit.org [Mon, 4 Nov 2013 18:21:37 +0000 (18:21 +0000)]
[sh4] Refactor jumps in baseline JIT to return label after the jump.
https://bugs.webkit.org/show_bug.cgi?id=123734

Patch by Julien Brianceau <jbriance@cisco.com> on 2013-11-04
Reviewed by Michael Saboff.

Current implementation of jumps in sh4 baseline JIT returns a label on the jump itself
and not after it. This is not correct and leads to issues like infinite loop the DFG
(https://bugs.webkit.org/show_bug.cgi?id=122597 for instance). This refactor fixes this
and also simplifies the link and relink procedures for sh4 jumps.

* assembler/MacroAssemblerSH4.h:
(JSC::MacroAssemblerSH4::branchDouble):
(JSC::MacroAssemblerSH4::branchTrue):
(JSC::MacroAssemblerSH4::branchFalse):
* assembler/SH4Assembler.h:
(JSC::SH4Assembler::jmp):
(JSC::SH4Assembler::extraInstrForBranch):
(JSC::SH4Assembler::jne):
(JSC::SH4Assembler::je):
(JSC::SH4Assembler::bra):
(JSC::SH4Assembler::linkJump):
(JSC::SH4Assembler::relinkJump):

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

6 years ago[GTK][WK1] Enable CSS Regions if feature flag is set to TRUE
rego@igalia.com [Mon, 4 Nov 2013 18:03:00 +0000 (18:03 +0000)]
[GTK][WK1] Enable CSS Regions if feature flag is set to TRUE
https://bugs.webkit.org/show_bug.cgi?id=123739

Reviewed by Martin Robinson.

In WK1 CSS Regions were always disabled even if you set the feature flag
ENABLE_CSS_REGIONS to TRUE. Enabling CSS Regions support in that case.

* webkit/webkitwebview.cpp:
(webkit_web_view_update_settings): Enable CSS Regions if feautre flag is
set to TRUE.

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

6 years agoUnreviewed, rolling out r158526.
commit-queue@webkit.org [Mon, 4 Nov 2013 17:37:20 +0000 (17:37 +0000)]
Unreviewed, rolling out r158526.
http://trac.webkit.org/changeset/158526
https://bugs.webkit.org/show_bug.cgi?id=123744

it broke the build (Requested by jessieberlin on #webkit).

Source/WebCore:

* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSCryptoAlgorithmDictionary.cpp:
(WebCore::createAesCbcParams):
(WebCore::createHmacParams):
(WebCore::createHmacKeyParams):
(WebCore::JSCryptoAlgorithmDictionary::createParametersForGenerateKey):
* bindings/js/JSSubtleCryptoCustom.cpp:
* crypto/CryptoAlgorithmAesKeyGenParams.h: Removed.
* crypto/CryptoKey.cpp:
* crypto/CryptoKey.h:
* crypto/CryptoKeyAES.cpp:
* crypto/CryptoKeyAES.h:
* crypto/CryptoKeyMac.cpp: Removed.
* crypto/SubtleCrypto.idl:
* crypto/algorithms/CryptoAlgorithmAES_CBC.cpp:
* crypto/algorithms/CryptoAlgorithmHMAC.cpp:
* crypto/keys/CryptoKeyHMAC.cpp:
* crypto/keys/CryptoKeyHMAC.h:
* crypto/mac/CryptoAlgorithmAES_CBCMac.cpp:
(WebCore::CryptoAlgorithmAES_CBC::generateKey):
* crypto/mac/CryptoAlgorithmHMACMac.cpp:
(WebCore::CryptoAlgorithmHMAC::generateKey):

LayoutTests:

* crypto/subtle/aes-cbc-generate-key-expected.txt: Removed.
* crypto/subtle/aes-cbc-generate-key.html: Removed.
* crypto/subtle/hmac-generate-key-expected.txt: Removed.
* crypto/subtle/hmac-generate-key.html: Removed.
* crypto/subtle/sha-1-expected.txt:

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

6 years ago[EFL] Change ATK version to 2.10.0
commit-queue@webkit.org [Mon, 4 Nov 2013 16:08:49 +0000 (16:08 +0000)]
[EFL] Change ATK version to 2.10.0
https://bugs.webkit.org/show_bug.cgi?id=123727

Patch by Krzysztof Czech <k.czech@samsung.com> on 2013-11-04
Reviewed by Mario Sanchez Prada.

Provided new API to retrieve text at a given offset.

* efl/jhbuild.modules:

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

6 years ago[EFL] accessibility/textarea-line-for-index.html is failing
commit-queue@webkit.org [Mon, 4 Nov 2013 16:04:10 +0000 (16:04 +0000)]
[EFL] accessibility/textarea-line-for-index.html is failing
https://bugs.webkit.org/show_bug.cgi?id=112015

Patch by Robert Plociennik <r.plociennik@samsung.com> on 2013-11-04
Reviewed by Mario Sanchez Prada.

Tools:

Provided implementation for AccessibilityUIElement::lineForIndex().

* DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
(AccessibilityUIElement::lineForIndex): Implemented.
* WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
(WTR::AccessibilityUIElement::lineForIndex): Implemented.

LayoutTests:

Removed failure expectations.

* platform/efl-wk1/TestExpectations: The test is no longer failing.
* platform/efl-wk2/TestExpectations: The test is no longer failing.

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

6 years ago[EFL] accessibility/button-press-action.html
commit-queue@webkit.org [Mon, 4 Nov 2013 15:02:51 +0000 (15:02 +0000)]
[EFL] accessibility/button-press-action.html
https://bugs.webkit.org/show_bug.cgi?id=111993

Patch by Krzysztof Czech <k.czech@samsung.com> on 2013-11-04
Reviewed by Mario Sanchez Prada.

Tools:

Provided an implementation for AccessibilityUIElement::isPressActionSupported.

* DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
(AccessibilityUIElement::isPressActionSupported):
* WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
(WTR::AccessibilityUIElement::isPressActionSupported):

LayoutTests:

Removed failure expectations.

* platform/efl-wk1/TestExpectations:
* platform/efl-wk2/TestExpectations:

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

6 years ago[Texmap] Remove redundant calls in CoordinatedGraphicsScene
commit-queue@webkit.org [Mon, 4 Nov 2013 14:58:23 +0000 (14:58 +0000)]
[Texmap] Remove redundant calls in CoordinatedGraphicsScene
https://bugs.webkit.org/show_bug.cgi?id=123737

Patch by Przemyslaw Szymanski <p.szymanski3@samsung.com> on 2013-11-04
Reviewed by Noam Rosenthal.

Removing unused code left after few refactoring patches.

No new tests. Covered by existing ones.

* platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp:
(WebCore::CoordinatedGraphicsScene::paintToCurrentGLContext):

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

6 years agoCSSPrimitiveValue color constructors should return PassRef.
akling@apple.com [Mon, 4 Nov 2013 13:01:40 +0000 (13:01 +0000)]
CSSPrimitiveValue color constructors should return PassRef.
<https://webkit.org/b/123728>

Make CSSPrimitiveValue::createColor() and the corresponding
CSSValuePool helper functions return PassRef<CSSPrimitiveValue>.

Also made CSSValuePool slightly less stupid when hitting the upper
size limit on the color value cache: instead of throwing out cache
and rebuilding it from scratch, just remove one value at random.

Reviewed by Antti Koivisto.

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

6 years agoSome more RenderChildIterator deployment.
akling@apple.com [Mon, 4 Nov 2013 12:55:48 +0000 (12:55 +0000)]
Some more RenderChildIterator deployment.
<https://webkit.org/b/123735>

Convert another handful of loops to use childrenOfType<RenderFoo>
iterators, mostly for skipping over uninteresting text renderers.

Reviewed by Antti Koivisto.

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

6 years agoLabelsNodeList always is always rooted at a LabelableElement.
akling@apple.com [Mon, 4 Nov 2013 12:43:13 +0000 (12:43 +0000)]
LabelsNodeList always is always rooted at a LabelableElement.
<https://webkit.org/b/123730>

Tighten up LabelsNodeList by enforcing that it's only rooted to
a LabelableElement. Also marked the class FINAL and made its
create() helper return PassRef.

Reviewed by Antti Koivisto.

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

6 years agoREGRESSION: RenderStyle is leaked when not creating renderer for display:none
akling@apple.com [Mon, 4 Nov 2013 12:40:59 +0000 (12:40 +0000)]
REGRESSION: RenderStyle is leaked when not creating renderer for display:none
<https://webkit.org/b/123726>

Source/WebCore:

Explicitly drop the RenderStyle reference in RenderElement::createFor
if we decide to not create any renderer.

Reviewed by Antti Koivisto.

Test: fast/css/renderstyle-leak-with-display-none.html

* rendering/RenderElement.cpp:
(WebCore::RenderElement::createFor):

LayoutTests:

Reviewed by Antti Koivisto.

* fast/css/renderstyle-leak-with-display-none-expected.txt: Added.
* fast/css/renderstyle-leak-with-display-none.html: Added.

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

6 years ago[webcore/dom] Remove extra header includes from cpp files.
commit-queue@webkit.org [Mon, 4 Nov 2013 12:25:31 +0000 (12:25 +0000)]
[webcore/dom] Remove extra header includes from cpp files.
https://bugs.webkit.org/show_bug.cgi?id=123720

Patch by Santosh Mahto <santosh.ma@samsung.com> on 2013-11-04
Reviewed by Andreas Kling.

Removing redundant headers from dom related cpp files.

* dom/Attr.cpp:
* dom/CharacterData.cpp:
* dom/ChildListMutationScope.cpp:
* dom/ChildNodeList.cpp:
* dom/ContainerNode.cpp:
* dom/ContainerNodeAlgorithms.cpp:
* dom/DOMNamedFlowCollection.cpp:
* dom/DatasetDOMStringMap.cpp:
* dom/Document.cpp:
* dom/DocumentEventQueue.cpp:
* dom/DocumentMarkerController.cpp:
* dom/DocumentOrderedMap.cpp:
* dom/DocumentStyleSheetCollection.cpp:
* dom/Element.cpp:
* dom/ElementRareData.cpp:
* dom/Event.cpp:
* dom/EventContext.cpp:
* dom/EventDispatcher.cpp:
* dom/EventTarget.cpp:
* dom/ExceptionBase.cpp:
* dom/FocusEvent.cpp:
* dom/InlineStyleSheetOwner.cpp:
* dom/KeyboardEvent.cpp:
* dom/LiveNodeList.cpp:
* dom/MessageEvent.cpp:
* dom/MessagePort.cpp:
* dom/MouseRelatedEvent.cpp:
* dom/MutationEvent.cpp:
* dom/MutationObserver.cpp:
* dom/MutationObserverInterestGroup.cpp:
* dom/MutationObserverRegistration.cpp:
* dom/MutationRecord.cpp:
* dom/NameNodeList.cpp:
* dom/NamedFlowCollection.cpp:
* dom/NamedNodeMap.cpp:
* dom/Node.cpp:
* dom/NodeIterator.cpp:
* dom/NodeTraversal.cpp:
* dom/PositionIterator.cpp:
* dom/ProcessingInstruction.cpp:
* dom/Range.cpp:
* dom/RegisteredEventListener.cpp:
* dom/ScopedEventQueue.cpp:
* dom/ScriptElement.cpp:
* dom/ScriptRunner.cpp:
* dom/SelectorQuery.cpp:
* dom/ShadowRoot.cpp:
* dom/StyledElement.cpp:
* dom/TagNodeList.cpp:
* dom/Text.cpp:
* dom/TextEvent.cpp:
* dom/TouchEvent.cpp:
* dom/TreeScope.cpp:
* dom/TreeScopeAdopter.cpp:
* dom/TreeWalker.cpp:
* dom/UIEvent.cpp:
* dom/UserActionElementSet.cpp:
* dom/UserTypingGestureIndicator.cpp:
* dom/VisitedLinkState.cpp:
* dom/WebKitNamedFlow.cpp:

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

6 years agoHTMLAllCollection is always rooted at a Document.
akling@apple.com [Mon, 4 Nov 2013 12:22:48 +0000 (12:22 +0000)]
HTMLAllCollection is always rooted at a Document.
<https://webkit.org/b/123724>

Tighten up HTMLAllCollection by making the constructor take a
Document& instead of a ContainerNode&. Drive-by application of
FINAL and PassRef also happened.

Reviewed by Antti Koivisto.

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

6 years agoMake more CSSValue subclass constructors return PassRef.
akling@apple.com [Mon, 4 Nov 2013 12:21:51 +0000 (12:21 +0000)]
Make more CSSValue subclass constructors return PassRef.
<https://webkit.org/b/123731>

Make the constructor helpers for the following classes return
PassRef instead of PassRefPtr:

    - CSSFontValue
    - CSSImageSetValue
    - CSSUnicodeRangeValue
    - WebKitCSSArrayFunctionValue
    - WebKitCSSFilterValue
    - WebKitCSSMatFunctionValue
    - WebKitCSSMixFunctionValue
    - WebKitCSSShaderValue
    - WebKitCSSTransformValue

Reviewed by Antti Koivisto.

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

6 years agoBuildfix after r158182 for GCC 4.6
ossy@webkit.org [Mon, 4 Nov 2013 12:16:47 +0000 (12:16 +0000)]
Buildfix after r158182 for GCC 4.6
https://bugs.webkit.org/show_bug.cgi?id=123442

Patch by Jozsef Berta <jberta@inf.u-szeged.hu> on 2013-11-04
Reviewed by Csaba Osztrogon√°c.

Added explicit "friend class", because  GCC 4.6 doesn't support extended friend declaration (c++11)

* dom/ScopedEventQueue.h:

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

6 years agoFix JSON generations on new flakiness dashboard
rniwa@webkit.org [Mon, 4 Nov 2013 09:16:11 +0000 (09:16 +0000)]
Fix JSON generations on new flakiness dashboard
https://bugs.webkit.org/show_bug.cgi?id=123723

Reviewed by Andreas Kling.

Add is_flaky column on results table so that this column can be used to find flaky tests on a given builder
efficiently without having to through results for all tests in PHP. This column is updated in report.php
when a new build is added. Because is_flaky depends on the preceding and succeeding results, we must update
is_flaky flag on results for builds immediately before and after the new build as well.

To see why, suppose we had two consecutive results [PASS] [PASS]. If we were to insert [FAIL] result between
the two, those two results may also turn into flaky results if they were surrounded by [FAIL]. Similarly,
if we had [PASS] [FAIL] and the second result was marked flaky, inserting new [FAIL] must unmark it.

* init-database.sql: Added is_flaky column to results table with an index. Also added an index on
build_revisions.time as many queries filter results by this quantity. Also set the work_mem to 50MB avoid
disk thrashing while sorting results in various queries.

* public/api/failing-tests.php: Handle builder ids as well as names. Call generate() with failure types.
No longer generates *-failing.json since it's a subset of *-wrongexpectations.json to save time.

* public/api/report.php: Rewritten. Calls update_flakiness_after_inserting_build to update is_flaky flags
on the newly added results.
(store_results): Added.
(main): Added.

* public/include/test-results.php:
(ResultsJSONWriter):
(ResultsJSONWriter::add_results_for_test): Renamed from add_results_for_test_if_matches.
(ResultsJSONGenerator::generate): Takes the failure type. Instead of generating JSONs for all failure types
at once, generate one JSON for the specified type. We generate the list of test ids based on the failure type
and query results based on that. This dramatically cuts down the time spent in PHP.
(ResultsJSONGenerator::latest_build): Added.
(ResultsJSONGenerator::write_jsons): Takes single writer now.
(update_flakiness_for_build): Added.
(update_flakiness_after_inserting_build): Added.

* public/index.html:
(TestResultsView._populateBuilderPane): Emulate *-failing.json upon *-wrongexpectations.json.
(TestResultsView.fetchFailingTestsForBuilder): Ditto.

* public/main.css: Minor style tweaks.
(.testResults): Extend the border that wraps the test results as needed.
(.tooltip): Don't wrap text inside tooltips.

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

6 years agoHTMLTableRowsCollection is always rooted at a HTMLTableElement.
akling@apple.com [Mon, 4 Nov 2013 08:53:47 +0000 (08:53 +0000)]
HTMLTableRowsCollection is always rooted at a HTMLTableElement.
<https://webkit.org/b/123721>

Tighten up HTMLTableRowsCollection by making the create() helper
take a HTMLTableElement& and adding a HTMLSelectElement& getter.

Reviewed by Antti Koivisto.

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

6 years agoHTMLNameCollection and friends are always rooted at a Document.
akling@apple.com [Mon, 4 Nov 2013 08:51:14 +0000 (08:51 +0000)]
HTMLNameCollection and friends are always rooted at a Document.
<https://webkit.org/b/123722>

Tighten WindowNameCollection and DocumentNameCollection by making
their constructors take a Document&, and add a slightly better
document() than the one we inherit from LiveNodeListBase.

Also marked the classes FINAL and made create() helpers return
PassRef instead of PassRefPtr.

Reviewed by Antti Koivisto.

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

6 years agoOptimize baselines: svg/zoom
akling@apple.com [Mon, 4 Nov 2013 08:49:41 +0000 (08:49 +0000)]
Optimize baselines: svg/zoom

Unreviewed; run "webkit-patch optimize-baselines svg/zoom"

* platform/gtk/svg/zoom/page/zoom-background-images-expected.txt: Removed.
* platform/gtk/svg/zoom/page/zoom-coords-viewattr-01-b-expected.txt: Removed.
* platform/gtk/svg/zoom/page/zoom-hixie-rendering-model-004-expected.txt: Removed.
* platform/gtk/svg/zoom/page/zoom-mask-with-percentages-expected.txt: Removed.
* platform/gtk/svg/zoom/page/zoom-replaced-intrinsic-ratio-001-expected.txt: Removed.
* platform/gtk/svg/zoom/page/zoom-svg-as-background-with-relative-size-expected.txt: Removed.
* platform/gtk/svg/zoom/page/zoom-svg-as-image-expected.png: Removed.
* platform/gtk/svg/zoom/page/zoom-svg-float-border-padding-expected.txt: Removed.
* platform/gtk/svg/zoom/text/zoom-coords-viewattr-01-b-expected.txt: Removed.
* platform/gtk/svg/zoom/text/zoom-hixie-rendering-model-004-expected.txt: Removed.
* platform/gtk/svg/zoom/text/zoom-svg-float-border-padding-expected.txt: Removed.
* svg/zoom/page/zoom-background-images-expected.txt: Renamed from LayoutTests/platform/efl/svg/zoom/page/zoom-background-images-expected.txt.
* svg/zoom/page/zoom-coords-viewattr-01-b-expected.txt: Renamed from LayoutTests/platform/efl/svg/zoom/page/zoom-coords-viewattr-01-b-expected.txt.
* svg/zoom/page/zoom-hixie-rendering-model-004-expected.txt: Renamed from LayoutTests/platform/efl/svg/zoom/page/zoom-hixie-rendering-model-004-expected.txt.
* svg/zoom/page/zoom-mask-with-percentages-expected.txt: Renamed from LayoutTests/platform/efl/svg/zoom/page/zoom-mask-with-percentages-expected.txt.
* svg/zoom/page/zoom-replaced-intrinsic-ratio-001-expected.txt: Renamed from LayoutTests/platform/efl/svg/zoom/page/zoom-replaced-intrinsic-ratio-001-expected.txt.
* svg/zoom/page/zoom-svg-as-background-with-relative-size-expected.txt: Renamed from LayoutTests/platform/efl/svg/zoom/page/zoom-svg-as-background-with-relative-size-expected.txt.
* svg/zoom/page/zoom-svg-as-image-expected.png: Renamed from LayoutTests/platform/efl/svg/zoom/page/zoom-svg-as-image-expected.png.
* svg/zoom/page/zoom-svg-float-border-padding-expected.txt: Renamed from LayoutTests/platform/efl/svg/zoom/page/zoom-svg-float-border-padding-expected.txt.
* svg/zoom/page/zoom-svg-through-object-with-auto-size-expected.txt: Removed.
* svg/zoom/text/zoom-coords-viewattr-01-b-expected.txt: Renamed from LayoutTests/platform/efl/svg/zoom/text/zoom-coords-viewattr-01-b-expected.txt.
* svg/zoom/text/zoom-hixie-rendering-model-004-expected.txt: Renamed from LayoutTests/platform/efl/svg/zoom/text/zoom-hixie-rendering-model-004-expected.txt.
* svg/zoom/text/zoom-svg-float-border-padding-expected.txt: Renamed from LayoutTests/platform/efl/svg/zoom/text/zoom-svg-float-border-padding-expected.txt.

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

6 years agoAdd an ancestor renderer iterator.
akling@apple.com [Mon, 4 Nov 2013 08:46:06 +0000 (08:46 +0000)]
Add an ancestor renderer iterator.
<https://webkit.org/b/123718>

Add ancestor iterators for renderers, analogous to element ancestor
iterators. They walk the chain of parent renderers, stopping at each
ancestor of a certain type.

Just like child renderer iterators, this requires isRendererOfType()
to be implemented for the targeted renderer class.

You use them like this:

auto frameSets = ancestorsOfType<RenderFrameSet>(*this);
for (auto frameSet = frameSets.begin(), end = frameSets.end(); frameSet != end; ++frameSet)
    frameSet->thisOrThat();

To complete the patch, I put them to use in a couple of random places.

Reviewed by Antti Koivisto.

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

6 years agoOptimize baselines: fast/images
akling@apple.com [Mon, 4 Nov 2013 08:40:07 +0000 (08:40 +0000)]
Optimize baselines: fast/images

Unreviewed; run "webkit-patch optimize-baselines fast/images"

* fast/images/crossfade-client-not-removed-crash-expected.txt:
* fast/images/embed-image-expected.png: Renamed from LayoutTests/platform/efl/fast/images/embed-image-expected.png.
* fast/images/exif-orientation-css-expected.txt: Renamed from LayoutTests/platform/efl/fast/images/exif-orientation-css-expected.txt.
* fast/images/exif-orientation-expected.txt: Renamed from LayoutTests/platform/efl/fast/images/exif-orientation-expected.txt.
* fast/images/icon-decoding-expected.txt: Renamed from LayoutTests/platform/efl/fast/images/icon-decoding-expected.txt.
* fast/images/image-in-map-expected.png: Renamed from LayoutTests/platform/efl/fast/images/image-in-map-expected.png.
* fast/images/image-in-map-expected.txt: Renamed from LayoutTests/platform/efl/fast/images/image-in-map-expected.txt.
* fast/images/imagemap-focus-ring-zoom-expected.txt: Renamed from LayoutTests/platform/efl/fast/images/imagemap-focus-ring-zoom-expected.txt.
* fast/images/support-broken-image-delegate-expected.txt: Renamed from LayoutTests/platform/gtk/fast/images/support-broken-image-delegate-expected.txt.
* platform/efl-wk2/fast/images/imagemap-circle-focus-ring-expected.png: Renamed from LayoutTests/platform/efl/fast/images/imagemap-circle-focus-ring-expected.png.
* platform/efl-wk2/fast/images/imagemap-focus-ring-outline-color-expected.png: Renamed from LayoutTests/platform/efl/fast/images/imagemap-focus-ring-outline-color-expected.png.
* platform/efl-wk2/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.png: Renamed from LayoutTests/platform/efl/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.png.
* platform/efl-wk2/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.png: Renamed from LayoutTests/platform/efl/fast/images/imagemap-focus-ring-outline-color-not-inherited-from-map-expected.png.
* platform/efl-wk2/fast/images/imagemap-polygon-focus-ring-expected.png: Renamed from LayoutTests/platform/efl/fast/images/imagemap-polygon-focus-ring-expected.png.
* platform/efl/fast/images/crossfade-client-not-removed-crash-expected.txt: Removed.
* platform/gtk/fast/images/crossfade-client-not-removed-crash-expected.txt: Removed.
* platform/gtk/fast/images/embed-image-expected.png: Removed.
* platform/gtk/fast/images/exif-orientation-css-expected.txt: Removed.
* platform/gtk/fast/images/icon-decoding-expected.txt: Removed.
* platform/gtk/fast/images/image-in-map-expected.png: Removed.
* platform/gtk/fast/images/image-in-map-expected.txt: Removed.
* platform/gtk/fast/images/imagemap-focus-ring-zoom-expected.txt: Removed.
* platform/mac/fast/images/crossfade-client-not-removed-crash-expected.txt: Removed.
* platform/mac/fast/images/exif-orientation-css-expected.txt: Removed.
* platform/mac/fast/images/exif-orientation-expected.txt: Removed.
* platform/win-7sp0/fast/images/support-broken-image-delegate-expected.txt: Renamed from LayoutTests/platform/win/fast/images/support-broken-image-delegate-expected.txt.

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

6 years ago[CSSRegions] Use auto keyword to clean-up for loops
mihnea@adobe.com [Mon, 4 Nov 2013 08:28:03 +0000 (08:28 +0000)]
[CSSRegions] Use auto keyword to clean-up for loops
https://bugs.webkit.org/show_bug.cgi?id=123699

Reviewed by Anders Carlsson.

Start using auto keyword for loops.
Also, since region breaks (forced breaks) can be added only on boxes,
i changed RenderFlowThread::addForcedRegionBreak to use a RenderBox* instead of RenderObject*.

No change in functionality, no new tests.

* dom/WebKitNamedFlow.cpp:
(WebCore::WebKitNamedFlow::firstEmptyRegionIndex):
* rendering/FlowThreadController.cpp:
(WebCore::FlowThreadController::ensureRenderFlowThreadWithName):
(WebCore::FlowThreadController::styleDidChange):
(WebCore::FlowThreadController::layoutRenderNamedFlowThreads):
(WebCore::FlowThreadController::updateFlowThreadsChainIfNecessary):
(WebCore::FlowThreadController::updateFlowThreadsNeedingLayout):
(WebCore::FlowThreadController::updateFlowThreadsNeedingTwoStepLayout):
(WebCore::FlowThreadController::resetFlowThreadsWithAutoHeightRegions):
(WebCore::FlowThreadController::updateFlowThreadsIntoConstrainedPhase):
(WebCore::FlowThreadController::updateFlowThreadsIntoOverflowPhase):
(WebCore::FlowThreadController::updateFlowThreadsIntoMeasureContentPhase):
(WebCore::FlowThreadController::updateFlowThreadsIntoFinalPhase):
(WebCore::FlowThreadController::updateRenderFlowThreadLayersIfNeeded):
(WebCore::FlowThreadController::collectFixedPositionedLayers):
(WebCore::FlowThreadController::isAutoLogicalHeightRegionsCountConsistent):
* rendering/RenderFlowThread.cpp:
(WebCore::RenderFlowThread::validateRegions):
(WebCore::RenderFlowThread::hasCompositingRegionDescendant):
(WebCore::RenderFlowThread::getLayerListForRegion):
(WebCore::RenderFlowThread::updateLayerToRegionMappings):
(WebCore::RenderFlowThread::updateLogicalWidth):
(WebCore::RenderFlowThread::computeLogicalHeight):
(WebCore::RenderFlowThread::repaintRectangleInRegions):
(WebCore::RenderFlowThread::removeRenderBoxRegionInfo):
(WebCore::RenderFlowThread::logicalWidthChangedInRegionsForBlock):
(WebCore::RenderFlowThread::clearRenderObjectCustomStyle):
(WebCore::RenderFlowThread::clearRenderBoxRegionInfoAndCustomStyle):
(WebCore::RenderFlowThread::setRegionRangeForBox):
(WebCore::RenderFlowThread::getRegionRangeForBox):
(WebCore::RenderFlowThread::regionInRange):
(WebCore::RenderFlowThread::checkRegionsWithStyling):
(WebCore::RenderFlowThread::objectInFlowRegion):
(WebCore::RenderFlowThread::isAutoLogicalHeightRegionsCountConsistent):
(WebCore::RenderFlowThread::initializeRegionsComputedAutoHeight):
(WebCore::RenderFlowThread::markAutoLogicalHeightRegionsForLayout):
(WebCore::RenderFlowThread::markRegionsForOverflowLayoutIfNeeded):
(WebCore::RenderFlowThread::updateRegionsFlowThreadPortionRect):
(WebCore::RenderFlowThread::addForcedRegionBreak):
(WebCore::RenderFlowThread::collectLayerFragments):
(WebCore::RenderFlowThread::fragmentsBoundingBox):
(WebCore::RenderFlowThread::addRegionsVisualEffectOverflow):
(WebCore::RenderFlowThread::addRegionsVisualOverflowFromTheme):
(WebCore::RenderFlowThread::addRegionsOverflowFromChild):
(WebCore::RenderFlowThread::addRegionsLayoutOverflow):
(WebCore::RenderFlowThread::clearRegionsOverflow):
* rendering/RenderFlowThread.h:
* rendering/RenderNamedFlowThread.cpp:
(WebCore::RenderNamedFlowThread::nextRendererForNode):
(WebCore::RenderNamedFlowThread::previousRendererForNode):
(WebCore::RenderNamedFlowThread::dependsOn):
(WebCore::addRegionToList):
(WebCore::RenderNamedFlowThread::computeOversetStateForRegions):
(WebCore::RenderNamedFlowThread::checkInvalidRegions):
(WebCore::RenderNamedFlowThread::pushDependencies):
* rendering/RenderRegion.cpp:
(WebCore::RenderRegion::setRegionObjectsRegionStyle):
(WebCore::RenderRegion::restoreRegionObjectsOriginalStyle):
(WebCore::RenderRegion::computeChildrenStyleInRegion):

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

6 years agoPingLoader objects unnecessarily pass through OwnPtr
zandobersek@gmail.com [Mon, 4 Nov 2013 07:10:05 +0000 (07:10 +0000)]
PingLoader objects unnecessarily pass through OwnPtr
https://bugs.webkit.org/show_bug.cgi?id=122942

Reviewed by Darin Adler.

There's no need to store new PingLoader objects into an OwnPtr just to leak them out a few lines later
into an unused variable. New objects are created through a new helper method and then left unmanaged as
they're guaranteed to destroy themselves when they receive a response of any kind.

* loader/PingLoader.cpp:
(WebCore::PingLoader::loadImage): Call the new createPingLoader method to spawn the PingLoader.
(WebCore::PingLoader::sendPing): Ditto.
(WebCore::PingLoader::sendViolationReport): Ditto.
(WebCore::PingLoader::createPingLoader): A helper method that creates a new PingLoader object
* loader/PingLoader.h: Declare the new PingLoader::createPingLoader method.

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

6 years agoHTMLOptionsCollection is always rooted at a HTMLSelectElement.
akling@apple.com [Mon, 4 Nov 2013 06:54:12 +0000 (06:54 +0000)]
HTMLOptionsCollection is always rooted at a HTMLSelectElement.
<https://webkit.org/b/123719>

Tighten up HTMLOptionsCollection by making the constructor take
a HTMLSelectElement& and adding a HTMLSelectElement& getter instead
of casting all over the place. Removed now-pointless assertions.

Reviewed by Sam Weinig.

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

6 years agoGenerated color wheel displays incorrectly (regressed in r155567)
fpizlo@apple.com [Mon, 4 Nov 2013 04:24:25 +0000 (04:24 +0000)]
Generated color wheel displays incorrectly (regressed in r155567)
https://bugs.webkit.org/show_bug.cgi?id=123664

Source/JavaScriptCore:

Reviewed by Andreas Kling.

Interestingly, r155567 just "un-broke" the attempt to constant-fold ArithMod, but
that constant folding was just wrong to begin with. There is no evidence that this
constant folding rule is profitable. I'm removing it instead of trying to think
about what it means for it to be correct.

* dfg/DFGAbstractInterpreterInlines.h:
(JSC::DFG::::executeEffects):

LayoutTests:

Reviewed by Andreas Kling.

* js/dfg-mod-1-expected.txt: Added.
* js/dfg-mod-1.html: Added.
* js/script-tests/dfg-mod-1.js: Added.
(foo):

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

6 years agoOptimize baselines: fast/repaint
akling@apple.com [Mon, 4 Nov 2013 04:12:25 +0000 (04:12 +0000)]
Optimize baselines: fast/repaint

Unreviewed; run "webkit-patch optimize-baselines fast/repaint"

* fast/repaint/4774354-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/4774354-expected.txt.
* fast/repaint/absolute-position-changed-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/absolute-position-changed-expected.png.
* fast/repaint/block-selection-gap-stale-cache-2-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/block-selection-gap-stale-cache-2-expected.png.
* fast/repaint/block-selection-gap-stale-cache-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/block-selection-gap-stale-cache-expected.png.
* fast/repaint/box-shadow-inset-repaint-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/box-shadow-inset-repaint-expected.txt.
* fast/repaint/button-spurious-layout-hint-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/button-spurious-layout-hint-expected.png.
* fast/repaint/canvas-putImageData-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/canvas-putImageData-expected.png.
* fast/repaint/clip-with-layout-delta-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/clip-with-layout-delta-expected.txt.
* fast/repaint/content-into-overflow-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/content-into-overflow-expected.png.
* fast/repaint/erase-overflow-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/erase-overflow-expected.png.
* fast/repaint/fixed-after-scroll-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/fixed-after-scroll-expected.png.
* fast/repaint/fixed-and-absolute-position-scrolled-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/fixed-and-absolute-position-scrolled-expected.png.
* fast/repaint/fixed-position-transparency-with-overflow-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/fixed-position-transparency-with-overflow-expected.png.
* fast/repaint/fixed-scale-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/fixed-scale-expected.png.
* fast/repaint/fixed-scroll-simple-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/fixed-scroll-simple-expected.png.
* fast/repaint/fixed-table-cell-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/fixed-table-cell-expected.png.
* fast/repaint/fixed-table-overflow-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/fixed-table-overflow-expected.png.
* fast/repaint/fixed-table-overflow-zindex-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/fixed-table-overflow-zindex-expected.png.
* fast/repaint/fixed-tranformed-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/fixed-tranformed-expected.png.
* fast/repaint/float-in-new-block-with-layout-delta-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/float-in-new-block-with-layout-delta-expected.png.
* fast/repaint/float-overflow-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/float-overflow-expected.txt.
* fast/repaint/float-overflow-right-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/float-overflow-right-expected.txt.
* fast/repaint/inline-block-resize-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/inline-block-resize-expected.png.
* fast/repaint/inline-horizontal-bt-overflow-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/inline-horizontal-bt-overflow-expected.txt.
* fast/repaint/inline-vertical-lr-overflow-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/inline-vertical-lr-overflow-expected.png.
* fast/repaint/inline-vertical-lr-overflow-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/inline-vertical-lr-overflow-expected.txt.
* fast/repaint/inline-vertical-rl-overflow-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/inline-vertical-rl-overflow-expected.png.
* fast/repaint/inline-vertical-rl-overflow-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/inline-vertical-rl-overflow-expected.txt.
* fast/repaint/intermediate-layout-position-clip-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/intermediate-layout-position-clip-expected.png.
* fast/repaint/japanese-rl-selection-clear-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/japanese-rl-selection-clear-expected.txt.
* fast/repaint/japanese-rl-selection-repaint-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/japanese-rl-selection-repaint-expected.txt.
* fast/repaint/layer-hide-when-needs-layout-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/layer-hide-when-needs-layout-expected.png.
* fast/repaint/layer-visibility-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/layer-visibility-expected.png.
* fast/repaint/line-in-scrolled-clipped-block-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/line-in-scrolled-clipped-block-expected.txt.
* fast/repaint/moving-shadow-on-path-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/moving-shadow-on-path-expected.txt.
* fast/repaint/overflow-auto-in-overflow-auto-scrolled-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/overflow-auto-in-overflow-auto-scrolled-expected.png.
* fast/repaint/overflow-clip-subtree-layout-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/overflow-clip-subtree-layout-expected.png.
* fast/repaint/overflow-into-content-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/overflow-into-content-expected.png.
* fast/repaint/overflow-scroll-in-overflow-scroll-scrolled-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/overflow-scroll-in-overflow-scroll-scrolled-expected.png.
* fast/repaint/reflection-repaint-test-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/reflection-repaint-test-expected.txt.
* fast/repaint/repaint-across-writing-mode-boundary-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/repaint-across-writing-mode-boundary-expected.txt.
* fast/repaint/repaint-during-scroll-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/repaint-during-scroll-expected.png.
* fast/repaint/repaint-during-scroll-with-zoom-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/repaint-during-scroll-with-zoom-expected.txt.
* fast/repaint/scroll-absolute-layer-with-reflection-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/scroll-absolute-layer-with-reflection-expected.png.
* fast/repaint/scroll-fixed-layer-with-no-visible-content-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/scroll-fixed-layer-with-no-visible-content-expected.png.
* fast/repaint/scroll-fixed-layer-with-reflection-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/scroll-fixed-layer-with-reflection-expected.png.
* fast/repaint/scroll-fixed-reflected-layer-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/scroll-fixed-reflected-layer-expected.png.
* fast/repaint/scroll-in-clipped-layer-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/scroll-in-clipped-layer-expected.png.
* fast/repaint/scroll-in-fixed-layer-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/scroll-in-fixed-layer-expected.png.
* fast/repaint/subtree-root-clip-2-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/subtree-root-clip-2-expected.png.
* fast/repaint/subtree-root-clip-3-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/subtree-root-clip-3-expected.png.
* fast/repaint/subtree-root-clip-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/subtree-root-clip-expected.png.
* fast/repaint/table-cell-vertical-overflow-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/table-cell-vertical-overflow-expected.txt.
* fast/repaint/table-col-background-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/table-col-background-expected.png.
* fast/repaint/table-outer-border-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/table-outer-border-expected.png.
* fast/repaint/table-overflow-auto-in-overflow-auto-scrolled-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/table-overflow-auto-in-overflow-auto-scrolled-expected.png.
* fast/repaint/table-overflow-hidden-in-overflow-hidden-scrolled-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/table-overflow-hidden-in-overflow-hidden-scrolled-expected.png.
* fast/repaint/table-overflow-scroll-in-overflow-scroll-scrolled-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/table-overflow-scroll-in-overflow-scroll-scrolled-expected.png.
* fast/repaint/table-row-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/table-row-expected.png.
* fast/repaint/table-section-overflow-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/table-section-overflow-expected.png.
* fast/repaint/transform-layout-repaint-expected.txt: Renamed from LayoutTests/platform/efl/fast/repaint/transform-layout-repaint-expected.txt.
* fast/repaint/view-background-from-body-1-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/view-background-from-body-1-expected.png.
* fast/repaint/view-background-from-body-2-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/view-background-from-body-2-expected.png.
* platform/efl-wk2/fast/repaint/selection-after-delete-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/selection-after-delete-expected.png.
* platform/efl-wk2/fast/repaint/selection-after-remove-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/selection-after-remove-expected.png.
* platform/efl-wk2/fast/repaint/selection-gap-overflow-scroll-2-expected.png: Renamed from LayoutTests/platform/efl/fast/repaint/selection-gap-overflow-scroll-2-expected.png.
* platform/gtk/fast/repaint/4774354-expected.txt: Removed.
* platform/gtk/fast/repaint/absolute-position-changed-expected.png: Removed.
* platform/gtk/fast/repaint/block-selection-gap-stale-cache-2-expected.png: Removed.
* platform/gtk/fast/repaint/block-selection-gap-stale-cache-expected.png: Removed.
* platform/gtk/fast/repaint/box-shadow-inset-repaint-expected.txt: Removed.
* platform/gtk/fast/repaint/button-spurious-layout-hint-expected.png: Removed.
* platform/gtk/fast/repaint/canvas-putImageData-expected.png: Removed.
* platform/gtk/fast/repaint/clip-with-layout-delta-expected.txt: Removed.
* platform/gtk/fast/repaint/content-into-overflow-expected.png: Removed.
* platform/gtk/fast/repaint/erase-overflow-expected.png: Removed.
* platform/gtk/fast/repaint/fixed-after-scroll-expected.png: Removed.
* platform/gtk/fast/repaint/fixed-and-absolute-position-scrolled-expected.png: Removed.
* platform/gtk/fast/repaint/fixed-position-transparency-with-overflow-expected.png: Removed.
* platform/gtk/fast/repaint/fixed-scale-expected.png: Removed.
* platform/gtk/fast/repaint/fixed-scroll-simple-expected.png: Removed.
* platform/gtk/fast/repaint/fixed-table-cell-expected.png: Removed.
* platform/gtk/fast/repaint/fixed-table-overflow-expected.png: Removed.
* platform/gtk/fast/repaint/fixed-table-overflow-zindex-expected.png: Removed.
* platform/gtk/fast/repaint/fixed-tranformed-expected.png: Removed.
* platform/gtk/fast/repaint/float-in-new-block-with-layout-delta-expected.png: Removed.
* platform/gtk/fast/repaint/inline-block-resize-expected.png: Removed.
* platform/gtk/fast/repaint/inline-horizontal-bt-overflow-expected.txt: Removed.
* platform/gtk/fast/repaint/inline-vertical-lr-overflow-expected.png: Removed.
* platform/gtk/fast/repaint/inline-vertical-lr-overflow-expected.txt: Removed.
* platform/gtk/fast/repaint/inline-vertical-rl-overflow-expected.png: Removed.
* platform/gtk/fast/repaint/inline-vertical-rl-overflow-expected.txt: Removed.
* platform/gtk/fast/repaint/intermediate-layout-position-clip-expected.png: Removed.
* platform/gtk/fast/repaint/japanese-rl-selection-clear-expected.txt: Removed.
* platform/gtk/fast/repaint/japanese-rl-selection-repaint-expected.txt: Removed.
* platform/gtk/fast/repaint/layer-hide-when-needs-layout-expected.png: Removed.
* platform/gtk/fast/repaint/layer-visibility-expected.png: Removed.
* platform/gtk/fast/repaint/line-in-scrolled-clipped-block-expected.txt: Removed.
* platform/gtk/fast/repaint/moving-shadow-on-path-expected.txt: Removed.
* platform/gtk/fast/repaint/overflow-auto-in-overflow-auto-scrolled-expected.png: Removed.
* platform/gtk/fast/repaint/overflow-clip-subtree-layout-expected.png: Removed.
* platform/gtk/fast/repaint/overflow-into-content-expected.png: Removed.
* platform/gtk/fast/repaint/overflow-scroll-in-overflow-scroll-scrolled-expected.png: Removed.
* platform/gtk/fast/repaint/reflection-repaint-test-expected.txt: Removed.
* platform/gtk/fast/repaint/repaint-across-writing-mode-boundary-expected.txt: Removed.
* platform/gtk/fast/repaint/repaint-during-scroll-expected.png: Removed.
* platform/gtk/fast/repaint/repaint-during-scroll-with-zoom-expected.txt: Removed.
* platform/gtk/fast/repaint/scroll-absolute-layer-with-reflection-expected.png: Removed.
* platform/gtk/fast/repaint/scroll-fixed-layer-with-no-visible-content-expected.png: Removed.
* platform/gtk/fast/repaint/scroll-fixed-layer-with-reflection-expected.png: Removed.
* platform/gtk/fast/repaint/scroll-fixed-reflected-layer-expected.png: Removed.
* platform/gtk/fast/repaint/scroll-in-clipped-layer-expected.png: Removed.
* platform/gtk/fast/repaint/scroll-in-fixed-layer-expected.png: Removed.
* platform/gtk/fast/repaint/subtree-root-clip-2-expected.png: Removed.
* platform/gtk/fast/repaint/subtree-root-clip-3-expected.png: Removed.
* platform/gtk/fast/repaint/subtree-root-clip-expected.png: Removed.
* platform/gtk/fast/repaint/table-cell-vertical-overflow-expected.txt: Removed.
* platform/gtk/fast/repaint/table-col-background-expected.png: Removed.
* platform/gtk/fast/repaint/table-outer-border-expected.png: Removed.
* platform/gtk/fast/repaint/table-overflow-auto-in-overflow-auto-scrolled-expected.png: Removed.
* platform/gtk/fast/repaint/table-overflow-hidden-in-overflow-hidden-scrolled-expected.png: Removed.
* platform/gtk/fast/repaint/table-overflow-scroll-in-overflow-scroll-scrolled-expected.png: Removed.
* platform/gtk/fast/repaint/table-row-expected.png: Removed.
* platform/gtk/fast/repaint/table-section-overflow-expected.png: Removed.
* platform/gtk/fast/repaint/transform-layout-repaint-expected.txt: Removed.
* platform/gtk/fast/repaint/view-background-from-body-1-expected.png: Removed.
* platform/gtk/fast/repaint/view-background-from-body-2-expected.png: Removed.
* platform/mac-wk2/fast/repaint/table-cell-collapsed-border-scroll-expected.txt: Removed.
* platform/mac/fast/repaint/box-shadow-inset-repaint-expected.txt: Removed.
* platform/mac/fast/repaint/float-overflow-expected.txt: Removed.
* platform/mac/fast/repaint/float-overflow-right-expected.txt: Removed.
* platform/mac/fast/repaint/inline-horizontal-bt-overflow-expected.txt: Removed.
* platform/mac/fast/repaint/inline-vertical-lr-overflow-expected.txt: Removed.
* platform/mac/fast/repaint/inline-vertical-rl-overflow-expected.txt: Removed.
* platform/mac/fast/repaint/table-cell-vertical-overflow-expected.txt: Removed.
* platform/win/fast/repaint/table-cell-collapsed-border-scroll-expected.txt: Removed.

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

6 years agoSource/JavaScriptCore: Unreviewed, it is no longer necessary to call DisablePrettySta...
fpizlo@apple.com [Mon, 4 Nov 2013 03:21:41 +0000 (03:21 +0000)]
Source/JavaScriptCore: Unreviewed, it is no longer necessary to call DisablePrettyStackTrace.

* llvm/library/LLVMExports.cpp:
(initializeAndGetJSCLLVMAPI):

WebKitLibraries: Update binary drops to a version that includes my pretty stack trace changes.

* LLVMIncludesMountainLion.tar.bz2:
* LLVMLibrariesMountainLion.tar.bz2:

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

6 years ago[Cocoa] Wrappers' -copyWithZone: should copy if the collection is mutable
mitz@apple.com [Mon, 4 Nov 2013 03:01:01 +0000 (03:01 +0000)]
[Cocoa] Wrappers' -copyWithZone: should copy if the collection is mutable
https://bugs.webkit.org/show_bug.cgi?id=123707

Reviewed by Geoff Garen and Anders Carlsson.

* Shared/Cocoa/WKNSArray.mm:
(-[WKNSArray copyWithZone:]): If the array is mutable, make a copy.
* Shared/Cocoa/WKNSDictionary.mm:
(-[WKNSDictionary copyWithZone:]): If the dictionary is mutable, make a copy.
* Shared/ImmutableArray.h:
(WebKit::ImmutableArray::entries): Added this accessor.

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

6 years agoReverted r158538.
mitz@apple.com [Mon, 4 Nov 2013 02:57:56 +0000 (02:57 +0000)]
Reverted r158538.

* Shared/Cocoa/WKNSArray.mm:
(-[WKNSArray copyWithZone:]):
* Shared/Cocoa/WKNSDictionary.mm:
(-[WKNSDictionary copyWithZone:]):
* Shared/ImmutableArray.h:

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

6 years agoRenderTextFragment: Tighten first-letter logic.
akling@apple.com [Mon, 4 Nov 2013 00:39:21 +0000 (00:39 +0000)]
RenderTextFragment: Tighten first-letter logic.
<https://webkit.org/b/123714>

Reviewed by Antti Koivisto.

* editing/TextIterator.cpp:
(WebCore::firstRenderTextInFirstLetter):

    Use iterator helper to find first RenderText child.

(WebCore::TextIterator::handleTextNodeFirstLetter):

    Tightening through type inference.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::updateFirstLetterStyle):
(WebCore::RenderBlock::createFirstLetterRenderer):
* rendering/RenderTextFragment.h:

    The first letter renderer is always a RenderBoxModelObject,
    so make the code deal in that instead of RenderObject.

* rendering/RenderChildIterator.h:
(WebCore::RenderChildIteratorAdapter::first):
(WebCore::RenderChildIteratorAdapter::last):

    Remove excess ampersands that were keeping this from building.

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

6 years agoOptimize baselines: fast/forms
akling@apple.com [Mon, 4 Nov 2013 00:35:27 +0000 (00:35 +0000)]
Optimize baselines: fast/forms

Unreviewed; run "webkit-patch optimize-baselines fast/forms"

* fast/forms/fieldset-legend-padding-unclipped-fieldset-border-expected.txt:
* fast/forms/fieldset-with-float-expected.txt: Renamed from LayoutTests/platform/efl/fast/forms/fieldset-with-float-expected.txt.
* fast/forms/input-no-renderer-expected.txt: Renamed from LayoutTests/platform/efl/fast/forms/input-no-renderer-expected.txt.
* fast/forms/label/labelable-elements-expected.txt: Renamed from LayoutTests/platform/gtk/fast/forms/label/labelable-elements-expected.txt.
* fast/forms/range/slider-thumb-stylability-expected.png: Renamed from LayoutTests/platform/efl/fast/forms/range/slider-thumb-stylability-expected.png.
* fast/forms/select-listbox-multiple-no-focusring-expected.txt: Renamed from LayoutTests/platform/efl/fast/forms/select-listbox-multiple-no-focusring-expected.txt.
* fast/forms/select-overflow-scroll-expected.txt: Renamed from LayoutTests/platform/efl/fast/forms/select-overflow-scroll-expected.txt.
* fast/forms/select-overflow-scroll-inherited-expected.txt: Renamed from LayoutTests/platform/efl/fast/forms/select-overflow-scroll-inherited-expected.txt.
* fast/forms/textfield-overflow-by-value-update-expected.png: Renamed from LayoutTests/platform/efl/fast/forms/textfield-overflow-by-value-update-expected.png.
* fast/forms/textfield-overflow-by-value-update-expected.txt: Renamed from LayoutTests/platform/efl/fast/forms/textfield-overflow-by-value-update-expected.txt.
* platform/efl-wk2/fast/forms/validation-message-appearance-expected.png: Renamed from LayoutTests/platform/efl/fast/forms/validation-message-appearance-expected.png.
* platform/gtk/fast/forms/fieldset-with-float-expected.txt: Removed.
* platform/gtk/fast/forms/input-no-renderer-expected.txt: Removed.
* platform/gtk/fast/forms/range/slider-thumb-stylability-expected.png: Removed.
* platform/gtk/fast/forms/select-listbox-multiple-no-focusring-expected.txt: Removed.
* platform/gtk/fast/forms/select-overflow-scroll-expected.txt: Removed.
* platform/gtk/fast/forms/select-overflow-scroll-inherited-expected.txt: Removed.
* platform/gtk/fast/forms/textfield-overflow-by-value-update-expected.png: Removed.
* platform/mac/fast/forms/fieldset-legend-padding-unclipped-fieldset-border-expected.txt: Removed.
* platform/mac/fast/forms/label/labelable-elements-expected.txt: Removed.
* platform/mac/fast/forms/textfield-overflow-by-value-update-expected.txt: Removed.
* platform/win-7sp0/fast/forms/cursor-at-editable-content-boundary-expected.txt: Renamed from LayoutTests/platform/win/fast/forms/cursor-at-editable-content-boundary-expected.txt.
* platform/win-7sp0/fast/forms/implicit-submission-expected.txt: Renamed from LayoutTests/platform/win/fast/forms/implicit-submission-expected.txt.
* platform/win-7sp0/fast/forms/range/slider-mouse-events-expected.txt: Renamed from LayoutTests/platform/win/fast/forms/range/slider-mouse-events-expected.txt.
* platform/win-7sp0/fast/forms/select-popup-pagekeys-expected.txt: Renamed from LayoutTests/platform/win/fast/forms/select-popup-pagekeys-expected.txt.
* platform/win/fast/forms/fieldset-legend-padding-unclipped-fieldset-border-expected.txt: Removed.

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

6 years agoCSSPrimitiveValue identifier constructors should return PassRef.
akling@apple.com [Mon, 4 Nov 2013 00:15:03 +0000 (00:15 +0000)]
CSSPrimitiveValue identifier constructors should return PassRef.
<https://webkit.org/b/123712>

Make CSSPrimitiveValue::createIdentifier() and the corresponding
CSSValuePool helper return PassRef<CSSPrimitiveValue>.

Reviewed by Antti Koivisto.

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

6 years agoUse RenderChildIterator in two more loops.
akling@apple.com [Mon, 4 Nov 2013 00:13:21 +0000 (00:13 +0000)]
Use RenderChildIterator in two more loops.
<https://webkit.org/b/123713>

Switch two more renderer child traversal loops to childrenOfType.

Reviewed by Antti Koivisto.

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

6 years agoOptimize baselines: editing
akling@apple.com [Sun, 3 Nov 2013 23:43:05 +0000 (23:43 +0000)]
Optimize baselines: editing

Unreviewed; run "webkit-patch optimize-baselines editing"

* editing/deleting/delete-3775172-fix-expected.png: Renamed from LayoutTests/platform/efl/editing/deleting/delete-3775172-fix-expected.png.
* editing/deleting/delete-after-span-ws-001-expected.txt: Renamed from LayoutTests/platform/efl/editing/deleting/delete-after-span-ws-001-expected.txt.
* editing/deleting/delete-after-span-ws-002-expected.txt: Renamed from LayoutTests/platform/efl/editing/deleting/delete-after-span-ws-002-expected.txt.
* editing/deleting/delete-after-span-ws-003-expected.txt: Renamed from LayoutTests/platform/efl/editing/deleting/delete-after-span-ws-003-expected.txt.
* editing/deleting/delete-at-start-or-end-expected.txt: Renamed from LayoutTests/platform/efl/editing/deleting/delete-at-start-or-end-expected.txt.
* editing/deleting/delete-br-002-expected.txt: Renamed from LayoutTests/platform/mac/editing/deleting/delete-br-002-expected.txt.
* editing/deleting/delete-br-004-expected.txt: Renamed from LayoutTests/platform/mac/editing/deleting/delete-br-004-expected.txt.
* editing/deleting/delete-br-005-expected.txt: Renamed from LayoutTests/platform/mac/editing/deleting/delete-br-005-expected.txt.
* editing/deleting/delete-br-006-expected.txt: Renamed from LayoutTests/platform/mac/editing/deleting/delete-br-006-expected.txt.
* editing/deleting/delete-line-end-ws-001-expected.txt: Renamed from LayoutTests/platform/efl/editing/deleting/delete-line-end-ws-001-expected.txt.
* editing/deleting/delete-line-end-ws-002-expected.txt: Renamed from LayoutTests/platform/efl/editing/deleting/delete-line-end-ws-002-expected.txt.
* editing/input/scroll-to-edge-if-line-break-at-end-of-document-contenteditable-expected.txt:
* editing/inserting/insert-3851164-fix-expected.png: Renamed from LayoutTests/platform/efl/editing/inserting/insert-3851164-fix-expected.png.
* editing/selection/5195166-1-expected.txt: Renamed from LayoutTests/platform/efl/editing/selection/5195166-1-expected.txt.
* editing/selection/editable-links-expected.txt: Renamed from LayoutTests/platform/efl/editing/selection/editable-links-expected.txt.
* editing/selection/focus-body-expected.txt: Renamed from LayoutTests/platform/efl/editing/selection/focus-body-expected.txt.
* editing/selection/select-all-001-expected.txt: Renamed from LayoutTests/platform/efl/editing/selection/select-all-001-expected.txt.
* editing/selection/select-all-002-expected.txt: Renamed from LayoutTests/platform/efl/editing/selection/select-all-002-expected.txt.
* editing/selection/select-all-003-expected.txt: Renamed from LayoutTests/platform/efl/editing/selection/select-all-003-expected.txt.
* editing/selection/select-all-004-expected.txt: Renamed from LayoutTests/platform/efl/editing/selection/select-all-004-expected.txt.
* editing/selection/unrendered-001-expected.txt: Renamed from LayoutTests/platform/efl/editing/selection/unrendered-001-expected.txt.
* editing/selection/unrendered-002-expected.txt: Renamed from LayoutTests/platform/efl/editing/selection/unrendered-002-expected.txt.
* editing/selection/unrendered-003-expected.txt: Renamed from LayoutTests/platform/efl/editing/selection/unrendered-003-expected.txt.
* editing/selection/unrendered-004-expected.txt: Renamed from LayoutTests/platform/efl/editing/selection/unrendered-004-expected.txt.
* editing/selection/unrendered-005-expected.txt: Renamed from LayoutTests/platform/efl/editing/selection/unrendered-005-expected.txt.
* editing/undo/5378473-expected.txt: Renamed from LayoutTests/platform/efl/editing/undo/5378473-expected.txt.
* editing/undo/undo-misspellings-expected.txt: Renamed from LayoutTests/platform/efl/editing/undo/undo-misspellings-expected.txt.
* editing/unsupported-content/table-delete-001-expected.txt: Renamed from LayoutTests/platform/efl/editing/unsupported-content/table-delete-001-expected.txt.
* editing/unsupported-content/table-delete-003-expected.png: Renamed from LayoutTests/platform/efl/editing/unsupported-content/table-delete-003-expected.png.
* editing/unsupported-content/table-delete-003-expected.txt: Renamed from LayoutTests/platform/efl/editing/unsupported-content/table-delete-003-expected.txt.
* platform/efl-wk2/editing/input/reveal-caret-of-multiline-contenteditable-expected.txt: Renamed from LayoutTests/platform/efl/editing/input/reveal-caret-of-multiline-contenteditable-expected.txt.
* platform/efl/editing/caret/caret-color-expected.txt: Renamed from LayoutTests/editing/caret/caret-color-expected.txt.
* platform/efl/editing/input/scroll-to-edge-if-line-break-at-end-of-document-contenteditable-expected.txt: Removed.
* platform/gtk/editing/deleting/delete-3775172-fix-expected.png: Removed.
* platform/gtk/editing/deleting/delete-after-span-ws-001-expected.txt: Removed.
* platform/gtk/editing/deleting/delete-after-span-ws-002-expected.txt: Removed.
* platform/gtk/editing/deleting/delete-after-span-ws-003-expected.txt: Removed.
* platform/gtk/editing/deleting/delete-line-end-ws-001-expected.txt: Removed.
* platform/gtk/editing/deleting/delete-line-end-ws-002-expected.txt: Removed.
* platform/gtk/editing/input/scroll-to-edge-if-line-break-at-end-of-document-contenteditable-expected.txt: Removed.
* platform/gtk/editing/inserting/insert-3851164-fix-expected.png: Removed.
* platform/gtk/editing/selection/editable-links-expected.txt: Removed.
* platform/gtk/editing/selection/focus-body-expected.txt: Removed.
* platform/gtk/editing/selection/select-all-001-expected.txt: Removed.
* platform/gtk/editing/selection/select-all-002-expected.txt: Removed.
* platform/gtk/editing/selection/select-all-003-expected.txt: Removed.
* platform/gtk/editing/selection/select-all-004-expected.txt: Removed.
* platform/gtk/editing/selection/unrendered-001-expected.txt: Removed.
* platform/gtk/editing/selection/unrendered-002-expected.txt: Removed.
* platform/gtk/editing/selection/unrendered-003-expected.txt: Removed.
* platform/gtk/editing/selection/unrendered-004-expected.txt: Removed.
* platform/gtk/editing/selection/unrendered-005-expected.txt: Removed.
* platform/mac/editing/deleting/delete-at-start-or-end-expected.txt: Removed.
* platform/mac/editing/input/scroll-to-edge-if-line-break-at-end-of-document-contenteditable-expected.txt: Removed.
* platform/mac/editing/inserting/insert-div-010-expected.txt: Renamed from LayoutTests/editing/inserting/insert-div-010-expected.txt.
* platform/mac/editing/selection/5195166-1-expected.txt: Removed.
* platform/mac/editing/style/unbold-in-bold-expected.txt: Renamed from LayoutTests/editing/style/unbold-in-bold-expected.txt.
* platform/mac/editing/undo/5378473-expected.txt: Removed.
* platform/mac/editing/undo/undo-misspellings-expected.txt: Removed.
* platform/mac/editing/unsupported-content/table-delete-001-expected.txt: Removed.
* platform/mac/editing/unsupported-content/table-delete-003-expected.png: Removed.
* platform/mac/editing/unsupported-content/table-delete-003-expected.txt: Removed.
* platform/win-7sp0/editing/selection/collapse-selection-in-bidi-expected.txt: Renamed from LayoutTests/platform/win/editing/selection/collapse-selection-in-bidi-expected.txt.
* platform/win-7sp0/editing/selection/drag-text-delay-expected.txt: Renamed from LayoutTests/platform/win/editing/selection/drag-text-delay-expected.txt.
* platform/win-7sp0/editing/selection/extend-selection-home-end-expected.txt: Renamed from LayoutTests/platform/win/editing/selection/extend-selection-home-end-expected.txt.
* platform/win/editing/deleting/delete-br-002-expected.txt: Removed.
* platform/win/editing/deleting/delete-br-004-expected.txt: Removed.
* platform/win/editing/deleting/delete-br-005-expected.txt: Removed.
* platform/win/editing/deleting/delete-br-006-expected.txt: Removed.
* platform/win/editing/deleting/delete-br-009-expected.txt: Removed.
* platform/win/editing/inserting/insert-3800346-fix-expected.txt: Removed.
* platform/win/editing/selection/anchor-focus2-expected.txt: Removed.
* platform/win/editing/selection/anchor-focus3-expected.txt: Removed.

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

6 years agoOptimize baselines: tables
akling@apple.com [Sun, 3 Nov 2013 23:32:48 +0000 (23:32 +0000)]
Optimize baselines: tables

Unreviewed; run "webkit-patch optimize-baselines tables"

* platform/gtk/tables/mozilla/bugs/adforce_imgis_com-expected.txt: Removed.
* platform/gtk/tables/mozilla/bugs/bug102145-1-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug102145-2-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug102145-3-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug102145-4-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug10269-1-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug10296-2-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug103533-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug11321-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug12908-2-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug13105-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug14159-3-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug149275-2-expected.txt: Removed.
* platform/gtk/tables/mozilla/bugs/bug1818-6-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug196870-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug222336-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug222467-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug23072-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug23151-expected.txt: Removed.
* platform/gtk/tables/mozilla/bugs/bug23994-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug26553-expected.txt: Removed.
* platform/gtk/tables/mozilla/bugs/bug269566-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug27038-3-expected.txt: Removed.
* platform/gtk/tables/mozilla/bugs/bug275625-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug277062-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug2886-2-expected.txt: Removed.
* platform/gtk/tables/mozilla/bugs/bug28933-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug3037-1-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug3037-2-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug32447-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug34538-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug56405-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug641-2-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug75250-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug8032-2-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug8361-expected.png: Removed.
* platform/gtk/tables/mozilla/bugs/bug9024-expected.png: Removed.
* platform/gtk/tables/mozilla/core/col_widths_fix_autoFixPer-expected.png: Removed.
* platform/gtk/tables/mozilla/marvin/table_overflow_hidden_td-expected.txt: Removed.
* platform/gtk/tables/mozilla_expected_failures/bugs/bug128876-expected.png: Removed.
* platform/gtk/tables/mozilla_expected_failures/bugs/bug178855-expected.png: Removed.
* platform/gtk/tables/mozilla_expected_failures/bugs/bug3517-expected.png: Removed.
* platform/gtk/tables/mozilla_expected_failures/marvin/table_overflow_dirty_reflow-expected.png: Removed.
* platform/gtk/tables/mozilla_expected_failures/marvin/table_overflow_hidden_table-expected.txt: Removed.
* platform/gtk/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.txt: Removed.
* platform/gtk/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.txt: Removed.
* platform/gtk/tables/mozilla_expected_failures/marvin/table_overflow_style_reflow_cell_sibling-expected.txt: Removed.
* platform/gtk/tables/mozilla_expected_failures/marvin/table_overflow_style_reflow_row-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug120107-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug1271-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug12908-2-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug12910-2-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug131020-2-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug13169-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug137388-1-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug137388-2-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug137388-3-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug157890-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug1818-3-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug1818-6-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug196870-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug222336-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug222467-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug269566-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug277062-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug28933-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug29314-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug2954-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug50695-2-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug56201-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug8032-2-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug9024-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/bugs/bug92647-2-expected.txt: Removed.
* platform/mac-mountainlion/tables/mozilla/core/col_widths_fix_autoFixPer-expected.txt: Removed.
* platform/mac/tables/mozilla/bugs/bug27038-3-expected.txt: Removed.
* platform/mac/tables/mozilla/core/row_span-expected.txt: Removed.
* platform/mac/tables/mozilla_expected_failures/bugs/bug131020-3-expected.txt: Removed.
* platform/win-future/tables/mozilla/core/bloomberg-expected.txt: Renamed from LayoutTests/tables/mozilla/core/bloomberg-expected.txt.
* platform/win-future/tables/mozilla_expected_failures/collapsing_borders/bug41262-1-expected.txt: Renamed from LayoutTests/tables/mozilla_expected_failures/collapsing_borders/bug41262-1-expected.txt.
* platform/win/tables/mozilla/bugs/bug133756-1-expected.txt: Removed.
* platform/win/tables/mozilla/bugs/bug133756-2-expected.txt: Removed.
* platform/win/tables/mozilla/bugs/bug220536-expected.txt: Removed.
* platform/win/tables/mozilla/bugs/bug8858-expected.txt: Removed.
* platform/win/tables/mozilla/core/row_span-expected.txt: Removed.
* platform/win/tables/mozilla_expected_failures/bugs/bug131020-3-expected.txt: Removed.
* platform/win/tables/mozilla_expected_failures/bugs/bug65372-expected.txt: Removed.
* tables/mozilla/bugs/adforce_imgis_com-expected.txt: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/adforce_imgis_com-expected.txt.
* tables/mozilla/bugs/bug102145-1-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug102145-1-expected.png.
* tables/mozilla/bugs/bug102145-2-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug102145-2-expected.png.
* tables/mozilla/bugs/bug102145-3-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug102145-3-expected.png.
* tables/mozilla/bugs/bug102145-4-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug102145-4-expected.png.
* tables/mozilla/bugs/bug10269-1-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug10269-1-expected.png.
* tables/mozilla/bugs/bug10296-2-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug10296-2-expected.png.
* tables/mozilla/bugs/bug103533-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug103533-expected.png.
* tables/mozilla/bugs/bug11321-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug11321-expected.png.
* tables/mozilla/bugs/bug12908-2-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug12908-2-expected.png.
* tables/mozilla/bugs/bug13105-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug13105-expected.png.
* tables/mozilla/bugs/bug133756-1-expected.txt: Renamed from LayoutTests/platform/mac/tables/mozilla/bugs/bug133756-1-expected.txt.
* tables/mozilla/bugs/bug133756-2-expected.txt: Renamed from LayoutTests/platform/mac/tables/mozilla/bugs/bug133756-2-expected.txt.
* tables/mozilla/bugs/bug14159-3-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug14159-3-expected.png.
* tables/mozilla/bugs/bug149275-2-expected.txt: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug149275-2-expected.txt.
* tables/mozilla/bugs/bug1818-6-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug1818-6-expected.png.
* tables/mozilla/bugs/bug196870-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug196870-expected.png.
* tables/mozilla/bugs/bug220536-expected.txt: Renamed from LayoutTests/platform/mac/tables/mozilla/bugs/bug220536-expected.txt.
* tables/mozilla/bugs/bug222336-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug222336-expected.png.
* tables/mozilla/bugs/bug222467-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug222467-expected.png.
* tables/mozilla/bugs/bug23072-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug23072-expected.png.
* tables/mozilla/bugs/bug23151-expected.txt: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug23151-expected.txt.
* tables/mozilla/bugs/bug23994-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug23994-expected.png.
* tables/mozilla/bugs/bug26553-expected.txt: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug26553-expected.txt.
* tables/mozilla/bugs/bug269566-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug269566-expected.png.
* tables/mozilla/bugs/bug27038-3-expected.txt: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug27038-3-expected.txt.
* tables/mozilla/bugs/bug275625-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug275625-expected.png.
* tables/mozilla/bugs/bug277062-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug277062-expected.png.
* tables/mozilla/bugs/bug2886-2-expected.txt: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug2886-2-expected.txt.
* tables/mozilla/bugs/bug28933-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug28933-expected.png.
* tables/mozilla/bugs/bug3037-1-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug3037-1-expected.png.
* tables/mozilla/bugs/bug3037-2-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug3037-2-expected.png.
* tables/mozilla/bugs/bug32447-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug32447-expected.png.
* tables/mozilla/bugs/bug34538-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug34538-expected.png.
* tables/mozilla/bugs/bug56405-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug56405-expected.png.
* tables/mozilla/bugs/bug641-2-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug641-2-expected.png.
* tables/mozilla/bugs/bug75250-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug75250-expected.png.
* tables/mozilla/bugs/bug8032-2-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug8032-2-expected.png.
* tables/mozilla/bugs/bug8361-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug8361-expected.png.
* tables/mozilla/bugs/bug8858-expected.txt: Renamed from LayoutTests/platform/mac/tables/mozilla/bugs/bug8858-expected.txt.
* tables/mozilla/bugs/bug9024-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/bugs/bug9024-expected.png.
* tables/mozilla/core/col_widths_fix_autoFixPer-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla/core/col_widths_fix_autoFixPer-expected.png.
* tables/mozilla/core/row_span-expected.txt:
* tables/mozilla/marvin/table_overflow_hidden_td-expected.txt: Renamed from LayoutTests/platform/efl/tables/mozilla/marvin/table_overflow_hidden_td-expected.txt.
* tables/mozilla_expected_failures/bugs/bug128876-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla_expected_failures/bugs/bug128876-expected.png.
* tables/mozilla_expected_failures/bugs/bug131020-3-expected.txt:
* tables/mozilla_expected_failures/bugs/bug178855-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla_expected_failures/bugs/bug178855-expected.png.
* tables/mozilla_expected_failures/bugs/bug3517-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla_expected_failures/bugs/bug3517-expected.png.
* tables/mozilla_expected_failures/bugs/bug65372-expected.txt: Renamed from LayoutTests/platform/mac/tables/mozilla_expected_failures/bugs/bug65372-expected.txt.
* tables/mozilla_expected_failures/marvin/table_overflow_dirty_reflow-expected.png: Renamed from LayoutTests/platform/efl/tables/mozilla_expected_failures/marvin/table_overflow_dirty_reflow-expected.png.
* tables/mozilla_expected_failures/marvin/table_overflow_hidden_table-expected.txt: Renamed from LayoutTests/platform/efl/tables/mozilla_expected_failures/marvin/table_overflow_hidden_table-expected.txt.
* tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.txt: Renamed from LayoutTests/platform/efl/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tbody-expected.txt.
* tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.txt: Renamed from LayoutTests/platform/efl/tables/mozilla_expected_failures/marvin/table_overflow_hidden_tr-expected.txt.
* tables/mozilla_expected_failures/marvin/table_overflow_style_reflow_cell_sibling-expected.txt: Renamed from LayoutTests/platform/efl/tables/mozilla_expected_failures/marvin/table_overflow_style_reflow_cell_sibling-expected.txt.
* tables/mozilla_expected_failures/marvin/table_overflow_style_reflow_row-expected.txt: Renamed from LayoutTests/platform/efl/tables/mozilla_expected_failures/marvin/table_overflow_style_reflow_row-expected.txt.

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

6 years agoPrecision errors in Math.cbrt() on GTK, EFL
commit-queue@webkit.org [Sun, 3 Nov 2013 22:26:47 +0000 (22:26 +0000)]
Precision errors in Math.cbrt() on GTK, EFL
https://bugs.webkit.org/show_bug.cgi?id=123624

Patch by Zan Dobersek <zdobersek@igalia.com> on 2013-11-03
Reviewed by Csaba Osztrogon√°c.

Calculate cube roots of 8 and -8, expecting 2 and -2, respectively. Cube roots of those two
numbers don't contain precision errors on the GTK and EFL ports as is the case with 27 and -27.

* js/math-expected.txt:
* js/script-tests/math.js:

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

6 years agoCSSShadowValue constructor should return PassRef.
akling@apple.com [Sun, 3 Nov 2013 22:18:58 +0000 (22:18 +0000)]
CSSShadowValue constructor should return PassRef.
<https://webkit.org/b/123711>

Make CSSShadowValue::create() return a PassRef since it will never
return null.

Reviewed by Sam Weinig.

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

6 years agoCSSLineBoxContainValue constructor should return PassRef.
akling@apple.com [Sun, 3 Nov 2013 22:17:28 +0000 (22:17 +0000)]
CSSLineBoxContainValue constructor should return PassRef.
<https://webkit.org/b/123710>

Make CSSLineBoxContainValue::create() return a PassRef since it
will never return null.

Reviewed by Sam Weinig.

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

6 years agoOptimize baselines: fast/frames
akling@apple.com [Sun, 3 Nov 2013 22:17:25 +0000 (22:17 +0000)]
Optimize baselines: fast/frames

Unreviewed; run "webkit-patch optimize-baselines fast/frames"

* fast/frames/002-expected.png: Renamed from LayoutTests/platform/efl/fast/frames/002-expected.png.
* fast/frames/empty-cols-attribute-expected.png: Renamed from LayoutTests/platform/efl/fast/frames/empty-cols-attribute-expected.png.
* fast/frames/flattening/frameset-flattening-subframesets-expected.txt: Renamed from LayoutTests/platform/efl/fast/frames/flattening/frameset-flattening-subframesets-expected.txt.
* fast/frames/frame-set-whitespace-attributes-expected.png: Renamed from LayoutTests/platform/efl/fast/frames/frame-set-whitespace-attributes-expected.png.
* fast/frames/no-frame-borders-expected.png: Renamed from LayoutTests/platform/efl/fast/frames/no-frame-borders-expected.png.
* platform/gtk/fast/frames/002-expected.png: Removed.
* platform/gtk/fast/frames/empty-cols-attribute-expected.png: Removed.
* platform/gtk/fast/frames/flattening/frameset-flattening-subframesets-expected.txt: Removed.
* platform/gtk/fast/frames/frame-set-whitespace-attributes-expected.png: Removed.
* platform/gtk/fast/frames/no-frame-borders-expected.png: Removed.

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

6 years agoAssertion failure in non-JIT'ed LLInt on ARM Thumb.
mark.lam@apple.com [Sun, 3 Nov 2013 21:52:56 +0000 (21:52 +0000)]
Assertion failure in non-JIT'ed LLInt on ARM Thumb.
https://bugs.webkit.org/show_bug.cgi?id=97569.

Reviewed by Geoffrey Garen.

* assembler/MacroAssemblerCodeRef.h:
- Thumb2 alignment assertions do not apply to the C Loop LLINT because
  the arguments passed to those assertions are actually OpcodeIDs
  masquerading as addresses.
* llint/LLIntOfflineAsmConfig.h:
- Some of the #defines belong in the !ENABLE(LLINT_C_LOOP) section.
  Moving them there.
* llint/LowLevelInterpreter.cpp:
- Keep the compiler happy from some unreferenced C Loop labels.

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

6 years agoLiveNodeLists should have non-null ContainerNode as root
antti@apple.com [Sun, 3 Nov 2013 21:32:00 +0000 (21:32 +0000)]
LiveNodeLists should have non-null ContainerNode as root
https://bugs.webkit.org/show_bug.cgi?id=123709

Reviewed by Andreas Kling.

After moving ChildNodeList off from LiveNodeList the root is now always at least a ContainerNode.

* dom/ContainerNode.cpp:
(WebCore::ContainerNode::getElementsByTagName):
(WebCore::ContainerNode::getElementsByTagNameNS):
(WebCore::ContainerNode::getElementsByName):
(WebCore::ContainerNode::getElementsByClassName):
(WebCore::ContainerNode::radioNodeList):

    Also these move from Node to ContainerNode to make tighter typing work.

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

6 years agoOptimize baselines: fast/table
akling@apple.com [Sun, 3 Nov 2013 21:08:33 +0000 (21:08 +0000)]
Optimize baselines: fast/table

Unreviewed; run "webkit-patch optimize-baselines fast/table"

* fast/table/022-expected.txt: Renamed from LayoutTests/platform/efl/fast/table/022-expected.txt.
* fast/table/024-expected.png: Renamed from LayoutTests/platform/efl/fast/table/024-expected.png.
* fast/table/031-expected.png: Renamed from LayoutTests/platform/efl/fast/table/031-expected.png.
* fast/table/032-expected.png: Renamed from LayoutTests/platform/efl/fast/table/032-expected.png.
* fast/table/034-expected.txt: Renamed from LayoutTests/platform/efl/fast/table/034-expected.txt.
* fast/table/auto-100-percent-width-expected.png: Renamed from LayoutTests/platform/efl/fast/table/auto-100-percent-width-expected.png.
* fast/table/border-collapsing/cached-change-cell-sl-border-color-expected.png: Renamed from LayoutTests/platform/efl/fast/table/border-collapsing/cached-change-cell-sl-border-color-expected.png.
* fast/table/div-as-col-span-expected.png: Renamed from LayoutTests/platform/efl/fast/table/div-as-col-span-expected.png.
* fast/table/fixed-table-with-percent-width-inside-extra-large-div-expected.txt: Renamed from LayoutTests/platform/efl/fast/table/fixed-table-with-percent-width-inside-extra-large-div-expected.txt.
* fast/table/giantCellspacing-expected.png: Renamed from LayoutTests/platform/efl/fast/table/giantCellspacing-expected.png.
* fast/table/giantCellspacing-expected.txt: Renamed from LayoutTests/platform/efl/fast/table/giantCellspacing-expected.txt.
* fast/table/giantRowspan-expected.txt: Renamed from LayoutTests/platform/efl/fast/table/giantRowspan-expected.txt.
* fast/table/giantRowspan2-expected.txt: Renamed from LayoutTests/platform/mac/fast/table/giantRowspan2-expected.txt.
* fast/table/percent-widths-stretch-vertical-expected.png: Renamed from LayoutTests/platform/efl/fast/table/percent-widths-stretch-vertical-expected.png.
* fast/table/table-before-child-style-update-expected.png: Renamed from LayoutTests/platform/efl/fast/table/table-before-child-style-update-expected.png.
* fast/table/table-row-before-child-style-update-expected.png: Renamed from LayoutTests/platform/efl/fast/table/table-row-before-child-style-update-expected.png.
* fast/table/table-row-style-not-updated-expected.png: Renamed from LayoutTests/platform/efl/fast/table/table-row-style-not-updated-expected.png.
* fast/table/table-row-style-not-updated-with-after-content-expected.png: Renamed from LayoutTests/platform/efl/fast/table/table-row-style-not-updated-with-after-content-expected.png.
* fast/table/table-row-style-not-updated-with-before-content-expected.png: Renamed from LayoutTests/platform/efl/fast/table/table-row-style-not-updated-with-before-content-expected.png.
* fast/table/table-style-not-updated-expected.png: Renamed from LayoutTests/platform/efl/fast/table/table-style-not-updated-expected.png.
* fast/table/vertical-align-baseline-readjust-expected.png: Renamed from LayoutTests/platform/efl/fast/table/vertical-align-baseline-readjust-expected.png.
* platform/gtk/fast/table/022-expected.txt: Removed.
* platform/gtk/fast/table/024-expected.png: Removed.
* platform/gtk/fast/table/031-expected.png: Removed.
* platform/gtk/fast/table/032-expected.png: Removed.
* platform/gtk/fast/table/034-expected.txt: Removed.
* platform/gtk/fast/table/auto-100-percent-width-expected.png: Removed.
* platform/gtk/fast/table/border-collapsing/cached-change-cell-sl-border-color-expected.png: Removed.
* platform/gtk/fast/table/div-as-col-span-expected.png: Removed.
* platform/gtk/fast/table/fixed-table-with-percent-width-inside-extra-large-div-expected.txt: Removed.
* platform/gtk/fast/table/giantCellspacing-expected.png: Removed.
* platform/gtk/fast/table/giantCellspacing-expected.txt: Removed.
* platform/gtk/fast/table/giantRowspan-expected.txt: Removed.
* platform/gtk/fast/table/percent-widths-stretch-vertical-expected.png: Removed.
* platform/gtk/fast/table/table-before-child-style-update-expected.png: Removed.
* platform/gtk/fast/table/table-row-before-child-style-update-expected.png: Removed.
* platform/gtk/fast/table/table-row-style-not-updated-expected.png: Removed.
* platform/gtk/fast/table/table-row-style-not-updated-with-after-content-expected.png: Removed.
* platform/gtk/fast/table/table-row-style-not-updated-with-before-content-expected.png: Removed.
* platform/gtk/fast/table/table-style-not-updated-expected.png: Removed.
* platform/gtk/fast/table/vertical-align-baseline-readjust-expected.png: Removed.
* platform/mac/fast/table/022-expected.txt: Removed.
* platform/mac/fast/table/giantCellspacing-expected.txt: Removed.
* platform/mac/fast/table/giantRowspan-expected.txt: Removed.
* platform/win/fast/table/giantRowspan-expected.txt: Removed.
* platform/win/fast/table/giantRowspan2-expected.txt: Removed.

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

6 years ago[Cocoa] Wrappers' -copyWithZone: should copy if the collection is mutable
mitz@apple.com [Sun, 3 Nov 2013 20:41:01 +0000 (20:41 +0000)]
[Cocoa] Wrappers' -copyWithZone: should copy if the collection is mutable
https://bugs.webkit.org/show_bug.cgi?id=123707

Reviewed by Geoff Garen.

* Shared/Cocoa/WKNSArray.mm:
(-[WKNSArray copyWithZone:]): If the array is mutable, make a copy.
* Shared/Cocoa/WKNSDictionary.mm:
(-[WKNSDictionary copyWithZone:]): If the dictionary is mutable, make a copy.
* Shared/ImmutableArray.h:
(WebKit::ImmutableArray::entries): Added this accessor.

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

6 years agoSwitch createContextualFragment to element iterator
antti@apple.com [Sun, 3 Nov 2013 20:19:52 +0000 (20:19 +0000)]
Switch createContextualFragment to element iterator
https://bugs.webkit.org/show_bug.cgi?id=123704

Reviewed by Andreas Kling.

* editing/FrameSelection.cpp:
(WebCore::scanForForm):

    Use type helpers instead of hasTagName

* editing/markup.cpp:
(WebCore::collectElementsToRemoveFromFragment):
(WebCore::removeElementFromFragmentPreservingChildren):
(WebCore::createContextualFragment):
* html/HTMLFormElement.cpp:
(WebCore::HTMLFormElement::formElementIndex):

    Use type helpers instead of hasTagName

* html/HTMLTagNames.in:

    Generate type helpers for <html>.

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

6 years agoChildNodeList should not be LiveNodeList
antti@apple.com [Sun, 3 Nov 2013 19:52:40 +0000 (19:52 +0000)]
ChildNodeList should not be LiveNodeList
https://bugs.webkit.org/show_bug.cgi?id=123708

Reviewed by Sam Weinig.

ChildNodeList is a poor fit to be a LiveNodeList. It is heavily special-cased. It is also
the only subtype that returns non-Elements thus preventing tightening.

* bindings/js/JSNodeListCustom.cpp:
(WebCore::JSNodeListOwner::isReachableFromOpaqueRoots):

    Support new types.

* dom/ChildNodeList.cpp:
(WebCore::EmptyNodeList::~EmptyNodeList):
(WebCore::ChildNodeList::ChildNodeList):
(WebCore::ChildNodeList::~ChildNodeList):
(WebCore::ChildNodeList::length):
(WebCore::childFromFirst):
(WebCore::childFromLast):
(WebCore::ChildNodeList::nodeBeforeCached):
(WebCore::ChildNodeList::nodeAfterCached):
(WebCore::ChildNodeList::item):
(WebCore::ChildNodeList::namedItem):
(WebCore::ChildNodeList::invalidateCache):

    Implement the same caching optimizations as LiveNodeList with tighter, less generic code.

* dom/ChildNodeList.h:

    Inherit ChildNodeList directly from NodeList.

    Add new EmptyNodeList type. This is only ever used if NodeList is requested for a non-container node.
    It allows tighter typing in ChildNodeList.

* dom/LiveNodeList.cpp:
(WebCore::LiveNodeList::namedItem):
* dom/LiveNodeList.h:
(WebCore::LiveNodeListBase::LiveNodeListBase):
(WebCore::LiveNodeListBase::~LiveNodeListBase):
(WebCore::LiveNodeList::LiveNodeList):

    Remove ChildNodeList specific code and branches.

* dom/Node.cpp:
(WebCore::Node::childNodes):

    Return EmptyNodeList for non-containers.

* dom/NodeList.h:
(WebCore::NodeList::~NodeList):
(WebCore::NodeList::isLiveNodeList):
(WebCore::NodeList::isChildNodeList):
(WebCore::NodeList::isEmptyNodeList):

    For isReachableFromOpaqueRoots.

* dom/NodeRareData.h:
(WebCore::NodeListsNodeData::ensureChildNodeList):
(WebCore::NodeListsNodeData::removeChildNodeList):
(WebCore::NodeListsNodeData::ensureEmptyChildNodeList):
(WebCore::NodeListsNodeData::removeEmptyChildNodeList):
(WebCore::NodeListsNodeData::NodeListsNodeData):
(WebCore::NodeListsNodeData::deleteThisAndUpdateNodeRareDataIfAboutToRemoveLastList):

    EmptyNodeList support.

* html/CollectionType.h:
* html/HTMLCollection.cpp:
(WebCore::shouldOnlyIncludeDirectChildren):
(WebCore::rootTypeFromCollectionType):
(WebCore::invalidationTypeExcludingIdAndNameAttributes):
(WebCore::isMatchingElement):
(WebCore::LiveNodeListBase::itemBefore):
(WebCore::LiveNodeListBase::traverseLiveNodeListFirstElement):
(WebCore::LiveNodeListBase::traverseLiveNodeListForwardToOffset):
(WebCore::LiveNodeListBase::item):
(WebCore::LiveNodeListBase::itemBeforeOrAfterCachedItem):

    Remove ChildNodeList specific code and branches.

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

6 years agoFTL should use LLVM intrinsics for OSR exit, watchpoints, inline caches, and stack...
fpizlo@apple.com [Sun, 3 Nov 2013 18:24:20 +0000 (18:24 +0000)]
FTL should use LLVM intrinsics for OSR exit, watchpoints, inline caches, and stack layout
https://bugs.webkit.org/show_bug.cgi?id=122318

Reviewed by Geoffrey Garen.

This all now works. This patch just updates our implementation to work with LLVM trunk,
and removes all of the old code that tried to do OSR exits and heap accesses without
the benefit of those intrinsics.

In particular:

- StackMaps parsing now uses the new, less compact, but more future-proof, format.

- Remove the ftlUsesStackmaps() option and hard-code ftlUsesStackmaps = true. Remove
  all code for ftlUsesStackmaps = false, since that was only there for back when we
  didn't have the intrinsics.

- Remove the other experimental OSR options (useLLVMOSRExitIntrinsic,
  ftlTrapsOnOSRExit, and FTLOSRExitOmitsMarshalling).

- Remove LowerDFGToLLVM's use of the ExitThunkGenerator since we don't need to generate
  the exit thunks until after we parse the stackmaps.

- Remove all of the exit thunk and compiler code for the no-stackmaps case.

* dfg/DFGDriver.cpp:
(JSC::DFG::compileImpl):
* ftl/FTLCompile.cpp:
(JSC::FTL::mmAllocateDataSection):
* ftl/FTLExitThunkGenerator.cpp:
(JSC::FTL::ExitThunkGenerator::emitThunk):
* ftl/FTLIntrinsicRepository.h:
* ftl/FTLLocation.cpp:
(JSC::FTL::Location::forStackmaps):
* ftl/FTLLowerDFGToLLVM.cpp:
(JSC::FTL::LowerDFGToLLVM::LowerDFGToLLVM):
(JSC::FTL::LowerDFGToLLVM::lower):
(JSC::FTL::LowerDFGToLLVM::compileGetById):
(JSC::FTL::LowerDFGToLLVM::compileInvalidationPoint):
(JSC::FTL::LowerDFGToLLVM::appendOSRExit):
(JSC::FTL::LowerDFGToLLVM::emitOSRExitCall):
(JSC::FTL::LowerDFGToLLVM::callStackmap):
(JSC::FTL::LowerDFGToLLVM::addExitArgumentForNode):
* ftl/FTLOSRExitCompilationInfo.h:
(JSC::FTL::OSRExitCompilationInfo::OSRExitCompilationInfo):
* ftl/FTLOSRExitCompiler.cpp:
(JSC::FTL::compileStub):
(JSC::FTL::compileFTLOSRExit):
* ftl/FTLStackMaps.cpp:
(JSC::FTL::StackMaps::Location::parse):
(JSC::FTL::StackMaps::parse):
(WTF::printInternal):
* ftl/FTLStackMaps.h:
* ftl/FTLThunks.cpp:
(JSC::FTL::osrExitGenerationThunkGenerator):
* ftl/FTLThunks.h:
(JSC::FTL::Thunks::getOSRExitGenerationThunk):
* runtime/Options.h:

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

6 years agoAdd test for ListHashSet::removeLast()
paroga@webkit.org [Sun, 3 Nov 2013 17:51:21 +0000 (17:51 +0000)]
Add test for ListHashSet::removeLast()
https://bugs.webkit.org/show_bug.cgi?id=121810

Reviewed by Anders Carlsson.

* TestWebKitAPI/Tests/WTF/ListHashSet.cpp:
(TestWebKitAPI::TEST):

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

6 years ago[WINCE] Replace OwnPtr with GDIObject
paroga@webkit.org [Sun, 3 Nov 2013 17:48:56 +0000 (17:48 +0000)]
[WINCE] Replace OwnPtr with GDIObject
https://bugs.webkit.org/show_bug.cgi?id=123670

Reviewed by Anders Carlsson.

Source/WebCore:

* page/win/FrameGdiWin.cpp:
(WebCore::imageFromRect):
* platform/graphics/wince/FontPlatformData.cpp:
(WebCore::FixedSizeFontData::create):
(WebCore::FontPlatformData::hfont):
(WebCore::FontPlatformData::getScaledFontHandle):
* platform/graphics/wince/GraphicsContextWinCE.cpp:
(WebCore::createPen):
(WebCore::createBrush):
(WebCore::GraphicsContext::drawRect):
(WebCore::GraphicsContext::drawLine):
(WebCore::GraphicsContext::drawEllipse):
(WebCore::GraphicsContext::drawConvexPolygon):
(WebCore::GraphicsContext::fillRect):
(WebCore::GraphicsContext::clip):
(WebCore::GraphicsContext::strokeRect):
(WebCore::GraphicsContext::fillRoundedRect):
(WebCore::GraphicsContext::drawRoundCorner):
(WebCore::GraphicsContext::fillPath):
(WebCore::GraphicsContext::strokePath):
(WebCore::GraphicsContext::drawText):
* platform/graphics/wince/ImageWinCE.cpp:
(WebCore::BitmapImage::getHBITMAPOfSize):
* platform/graphics/wince/SharedBitmap.cpp:
(WebCore::SharedBitmap::createHandle):
(WebCore::SharedBitmap::draw):
(WebCore::SharedBitmap::clipBitmap):
(WebCore::drawPatternSimple):
(WebCore::SharedBitmap::drawPattern):
(WebCore::SharedBitmap::DCProvider::getDC):
* platform/graphics/wince/SharedBitmap.h:

Source/WebKit/wince:

* WebView.cpp:
(WebView::paint):
(WebView::handlePaint):
* WebView.h:

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

6 years ago[EFL][WK1] Some tests of editing/selection fail to render properly
commit-queue@webkit.org [Sun, 3 Nov 2013 14:55:47 +0000 (14:55 +0000)]
[EFL][WK1] Some tests of editing/selection fail to render properly
https://bugs.webkit.org/show_bug.cgi?id=117574

Unreviewed, EFL gardening.

These tests are passed in wk1(and wk2), but skipped in wk1.
These tests have been reviewed since those are added.
Now these tests are operating properly, so those need to update the test expectations.
Also 'editing/selection/caret-and-focus-ring.html' is already changed a reason of failure by Bug no.123696

Patch by Sun-woo Nam <sunny.nam@samsung.com> on 2013-11-03

* platform/efl-wk1/TestExpectations:

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

6 years agoOptimize baselines: fast/text
akling@apple.com [Sun, 3 Nov 2013 11:19:29 +0000 (11:19 +0000)]
Optimize baselines: fast/text

Unreviewed; run "webkit-patch optimize-baselines fast/text"

* fast/text/decorations-transformed-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/decorations-transformed-expected.txt.
* fast/text/fixed-pitch-control-characters-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/fixed-pitch-control-characters-expected.txt.
* fast/text/international/001-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/international/001-expected.txt.
* fast/text/international/vertical-text-glyph-test-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/international/vertical-text-glyph-test-expected.txt.
* fast/text/international/vertical-text-metrics-test-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/international/vertical-text-metrics-test-expected.txt.
* fast/text/international/wrap-CJK-001-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/international/wrap-CJK-001-expected.txt.
* fast/text/justify-ideograph-complex-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/justify-ideograph-complex-expected.txt.
* fast/text/justify-ideograph-simple-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/justify-ideograph-simple-expected.txt.
* fast/text/justify-ideograph-vertical-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/justify-ideograph-vertical-expected.txt.
* fast/text/selection-painted-separately-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/selection-painted-separately-expected.txt.
* fast/text/soft-hyphen-2-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/soft-hyphen-2-expected.txt.
* fast/text/soft-hyphen-3-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/soft-hyphen-3-expected.txt.
* fast/text/stripNullFromText-expected.png: Renamed from LayoutTests/platform/efl/fast/text/stripNullFromText-expected.png.
* fast/text/updateNewFont-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/updateNewFont-expected.txt.
* fast/text/whitespace/001-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/whitespace/001-expected.txt.
* fast/text/whitespace/013-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/whitespace/013-expected.txt.
* fast/text/whitespace/014-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/whitespace/014-expected.txt.
* fast/text/whitespace/017-expected.png: Renamed from LayoutTests/platform/efl/fast/text/whitespace/017-expected.png.
* fast/text/whitespace/017-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/whitespace/017-expected.txt.
* fast/text/whitespace/029-expected.png: Renamed from LayoutTests/platform/efl/fast/text/whitespace/029-expected.png.
* fast/text/whitespace/029-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/whitespace/029-expected.txt.
* fast/text/whitespace/pre-newline-box-test-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/whitespace/pre-newline-box-test-expected.txt.
* fast/text/whitespace/tab-character-basics-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/whitespace/tab-character-basics-expected.txt.
* platform/efl-wk1/fast/text/complex-text-opacity-expected.png: Renamed from LayoutTests/platform/efl/fast/text/complex-text-opacity-expected.png.
* platform/efl-wk1/fast/text/complex-text-opacity-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/complex-text-opacity-expected.txt.
* platform/efl-wk1/fast/text/international/bidi-layout-across-linebreak-expected.png: Renamed from LayoutTests/platform/efl/fast/text/international/bidi-layout-across-linebreak-expected.png.
* platform/efl-wk1/fast/text/international/bidi-layout-across-linebreak-expected.txt: Renamed from LayoutTests/platform/efl/fast/text/international/bidi-layout-across-linebreak-expected.txt.
* platform/efl-wk2/fast/text/atsui-pointtooffset-calls-cg-expected.png: Renamed from LayoutTests/platform/efl/fast/text/atsui-pointtooffset-calls-cg-expected.png.
* platform/efl-wk2/fast/text/atsui-rtl-override-selection-expected.png: Renamed from LayoutTests/platform/efl/fast/text/atsui-rtl-override-selection-expected.png.
* platform/efl-wk2/fast/text/atsui-small-caps-punctuation-size-expected.png: Renamed from LayoutTests/platform/efl/fast/text/atsui-small-caps-punctuation-size-expected.png.
* platform/efl-wk2/fast/text/hyphenate-character-expected.png: Renamed from LayoutTests/platform/efl/fast/text/hyphenate-character-expected.png.
* platform/efl-wk2/fast/text/hyphenate-first-word-expected.png: Renamed from LayoutTests/platform/efl/fast/text/hyphenate-first-word-expected.png.
* platform/efl-wk2/fast/text/hyphenate-limit-before-after-expected.png: Renamed from LayoutTests/platform/efl/fast/text/hyphenate-limit-before-after-expected.png.
* platform/efl-wk2/fast/text/hyphenate-limit-lines-expected.png: Renamed from LayoutTests/platform/efl/fast/text/hyphenate-limit-lines-expected.png.
* platform/efl-wk2/fast/text/hyphens-expected.png: Renamed from LayoutTests/platform/efl/fast/text/hyphens-expected.png.
* platform/efl-wk2/fast/text/midword-break-before-surrogate-pair-2-expected.png: Renamed from LayoutTests/platform/efl/fast/text/midword-break-before-surrogate-pair-2-expected.png.
* platform/gtk/fast/text/decorations-transformed-expected.txt: Removed.
* platform/gtk/fast/text/fixed-pitch-control-characters-expected.txt: Removed.
* platform/gtk/fast/text/international/001-expected.txt: Removed.
* platform/gtk/fast/text/international/vertical-text-glyph-test-expected.txt: Removed.
* platform/gtk/fast/text/international/vertical-text-metrics-test-expected.txt: Removed.
* platform/gtk/fast/text/international/wrap-CJK-001-expected.txt: Removed.
* platform/gtk/fast/text/justify-ideograph-complex-expected.txt: Removed.
* platform/gtk/fast/text/justify-ideograph-simple-expected.txt: Removed.
* platform/gtk/fast/text/justify-ideograph-vertical-expected.txt: Removed.
* platform/gtk/fast/text/selection-painted-separately-expected.txt: Removed.
* platform/gtk/fast/text/soft-hyphen-2-expected.txt: Removed.
* platform/gtk/fast/text/soft-hyphen-3-expected.txt: Removed.
* platform/gtk/fast/text/stripNullFromText-expected.png: Removed.
* platform/gtk/fast/text/updateNewFont-expected.txt: Removed.
* platform/gtk/fast/text/whitespace/001-expected.txt: Removed.
* platform/gtk/fast/text/whitespace/017-expected.png: Removed.
* platform/gtk/fast/text/whitespace/017-expected.txt: Removed.
* platform/gtk/fast/text/whitespace/029-expected.png: Removed.
* platform/gtk/fast/text/whitespace/029-expected.txt: Removed.
* platform/gtk/fast/text/whitespace/pre-newline-box-test-expected.txt: Removed.
* platform/gtk/fast/text/whitespace/tab-character-basics-expected.txt: Removed.
* platform/mac/fast/text/decorations-transformed-expected.txt: Removed.
* platform/mac/fast/text/fixed-pitch-control-characters-expected.txt: Removed.
* platform/mac/fast/text/selection-painted-separately-expected.txt: Removed.
* platform/mac/fast/text/soft-hyphen-2-expected.txt: Removed.
* platform/mac/fast/text/soft-hyphen-3-expected.txt: Removed.
* platform/mac/fast/text/whitespace/001-expected.txt: Removed.
* platform/mac/fast/text/whitespace/013-expected.txt: Removed.
* platform/mac/fast/text/whitespace/014-expected.txt: Removed.
* platform/mac/fast/text/whitespace/017-expected.txt: Removed.

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

6 years agoAdd helpers for partial descendant traversal to element iterators
antti@apple.com [Sun, 3 Nov 2013 11:13:53 +0000 (11:13 +0000)]
Add helpers for partial descendant traversal to element iterators
https://bugs.webkit.org/show_bug.cgi?id=123703

Reviewed by Andreas Kling.

* dom/ElementAncestorIterator.h:
(WebCore::lineageOfType):

    lineageOfType definition didn't match the declaration.

* dom/ElementDescendantIterator.h:
(WebCore::::find):
(WebCore::::from):

    Add find and from for getting begin iterator for partial traversals.

* editing/FrameSelection.cpp:
(WebCore::scanForForm):
(WebCore::FrameSelection::currentForm):
* html/HTMLFormElement.cpp:
(WebCore::HTMLFormElement::formElementIndex):
(WebCore::HTMLFormElement::findClosestFormAncestor):

    Use them in a few places.

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

6 years agoInline RenderStyle functions for getting/setting pseudo style bits.
akling@apple.com [Sun, 3 Nov 2013 09:54:10 +0000 (09:54 +0000)]
Inline RenderStyle functions for getting/setting pseudo style bits.
<https://webkit.org/b/123702>

hasPseudoStyle() actually shows up on html5-full-render.html,
and it's pretty crazy to eat the cost of a function call just
to do some basic bit twiddling.

Reviewed by Antti Koivisto.

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

6 years agoOptimize baselines: fast/canvas
akling@apple.com [Sun, 3 Nov 2013 09:41:04 +0000 (09:41 +0000)]
Optimize baselines: fast/canvas

Unreviewed; run "webkit-patch optimize-baselines fast/canvas"

* fast/canvas/canvas-empty-image-pattern-expected.png: Renamed from LayoutTests/platform/efl/fast/canvas/canvas-empty-image-pattern-expected.png.
* fast/canvas/canvas-incremental-repaint-2-expected.png: Renamed from LayoutTests/platform/efl/fast/canvas/canvas-incremental-repaint-2-expected.png.
* fast/canvas/canvas-render-layer-expected.png: Renamed from LayoutTests/platform/efl/fast/canvas/canvas-render-layer-expected.png.
* fast/canvas/set-colors-expected.txt: Renamed from LayoutTests/platform/efl/fast/canvas/set-colors-expected.txt.
* platform/gtk/fast/canvas/canvas-empty-image-pattern-expected.png: Removed.
* platform/gtk/fast/canvas/canvas-incremental-repaint-2-expected.png: Removed.
* platform/gtk/fast/canvas/canvas-render-layer-expected.png: Removed.
* platform/gtk/fast/canvas/set-colors-expected.txt: Removed.
* platform/win-7sp0/fast/canvas/canvas-draw-canvas-on-canvas-shadow-expected.txt: Renamed from LayoutTests/platform/win/fast/canvas/canvas-draw-canvas-on-canvas-shadow-expected.txt.
* platform/win-7sp0/fast/canvas/canvas-fillRect-gradient-shadow-expected.txt: Renamed from LayoutTests/platform/win/fast/canvas/canvas-fillRect-gradient-shadow-expected.txt.
* platform/win-7sp0/fast/canvas/canvas-render-layer-expected.txt: Renamed from LayoutTests/platform/win/fast/canvas/canvas-render-layer-expected.txt.
* platform/win-7sp0/fast/canvas/canvas-strokeRect-alpha-shadow-expected.txt: Renamed from LayoutTests/platform/win/fast/canvas/canvas-strokeRect-alpha-shadow-expected.txt.
* platform/win-xp/fast/canvas/set-colors-expected.txt: Removed.

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

6 years agoRemove HTMLMediaElement.initialTime
calvaris@igalia.com [Sun, 3 Nov 2013 09:30:40 +0000 (09:30 +0000)]
Remove HTMLMediaElement.initialTime
https://bugs.webkit.org/show_bug.cgi?id=123572

Reviewed by Eric Carlson.

Source/WebCore:

Patch based on one by: philipj@opera.com
Blink review URL: https://codereview.chromium.org/35033002

initialTime has been removed from the HTMLMediaElement.

* bindings/gobject/WebKitDOMCustom.cpp:
(webkit_dom_html_media_element_get_initial_time):
* bindings/gobject/WebKitDOMCustom.h:
* bindings/gobject/WebKitDOMCustom.symbols: Added phony function.
* html/HTMLMediaElement.cpp:
* html/HTMLMediaElement.h:
* html/HTMLMediaElement.idl: Removed HTMLMediaElement::initialTime.

LayoutTests:

Blink review URL: https://codereview.chromium.org/35033002

Removed presence of initialTime in the tests.

* media/media-fragments/TC0001-expected.txt:
* media/media-fragments/TC0002-expected.txt:
* media/media-fragments/TC0003-expected.txt:
* media/media-fragments/TC0004-expected.txt:
* media/media-fragments/TC0005-expected.txt:
* media/media-fragments/TC0006-expected.txt:
* media/media-fragments/TC0009-expected.txt:
* media/media-fragments/TC0011-expected.txt:
* media/media-fragments/TC0012-expected.txt:
* media/media-fragments/TC0014-expected.txt:
* media/media-fragments/TC0015-expected.txt:
* media/media-fragments/TC0017-expected.txt:
* media/media-fragments/TC0024-expected.txt:
* media/media-fragments/TC0027-expected.txt:
* media/media-fragments/TC0028-expected.txt:
* media/media-fragments/TC0029-expected.txt:
* media/media-fragments/TC0030-expected.txt:
* media/media-fragments/TC0031-expected.txt:
* media/media-fragments/TC0032-expected.txt:
* media/media-fragments/TC0033-expected.txt:
* media/media-fragments/TC0034-expected.txt:
* media/media-fragments/TC0035-expected.txt:
* media/media-fragments/TC0036-expected.txt:
* media/media-fragments/TC0037-expected.txt:
* media/media-fragments/TC0038-expected.txt:
* media/media-fragments/TC0039-expected.txt:
* media/media-fragments/TC0044-expected.txt:
* media/media-fragments/TC0051-expected.txt:
* media/media-fragments/TC0052-expected.txt:
* media/media-fragments/TC0053-expected.txt:
* media/media-fragments/TC0054-expected.txt:
* media/media-fragments/TC0055-expected.txt:
* media/media-fragments/TC0058-expected.txt:
* media/media-fragments/TC0059-expected.txt:
* media/media-fragments/TC0061-expected.txt:
* media/media-fragments/TC0062-expected.txt:
* media/media-fragments/TC0063-expected.txt:
* media/media-fragments/TC0064-expected.txt:
* media/media-fragments/TC0065-expected.txt:
* media/media-fragments/TC0066-expected.txt:
* media/media-fragments/TC0067-expected.txt:
* media/media-fragments/TC0068-expected.txt:
* media/media-fragments/TC0069-expected.txt:
* media/media-fragments/TC0070-expected.txt:
* media/media-fragments/TC0071-expected.txt:
* media/media-fragments/TC0072-expected.txt:
* media/media-fragments/TC0073-expected.txt:
* media/media-fragments/TC0074-expected.txt:
* media/media-fragments/TC0075-expected.txt:
* media/media-fragments/TC0076-expected.txt:
* media/media-fragments/TC0077-expected.txt:
* media/media-fragments/TC0078-expected.txt:
* media/media-fragments/TC0079-expected.txt:
* media/media-fragments/TC0080-expected.txt:
* media/media-fragments/TC0081-expected.txt:
* media/media-fragments/TC0082-expected.txt:
* media/media-fragments/TC0083-expected.txt:
* media/media-fragments/TC0084-expected.txt:
* media/media-fragments/TC0085-expected.txt:
* media/media-fragments/TC0086-expected.txt:
* media/media-fragments/TC0087-expected.txt:
* media/media-fragments/TC0088-expected.txt:
* media/media-fragments/TC0089-expected.txt:
* media/media-fragments/TC0090-expected.txt:
* media/media-fragments/TC0091-expected.txt:
* media/media-fragments/TC0092-expected.txt:
* media/media-fragments/TC0093-expected.txt:
* media/media-fragments/TC0094-expected.txt:
* media/media-fragments/media-fragments.js:
(canplaythrough): Removed check for initialTime
* media/media-initialTime-expected.txt: Removed.
* media/media-initialTime.html: Removed.

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

6 years agoImplement generateKey for HMAC and AES-CBC
ap@apple.com [Sun, 3 Nov 2013 06:58:53 +0000 (06:58 +0000)]
Implement generateKey for HMAC and AES-CBC
https://bugs.webkit.org/show_bug.cgi?id=123669

Reviewed by Dan Bernstein.

Source/WebCore:

Tests: crypto/subtle/aes-cbc-generate-key.html
       crypto/subtle/hmac-generate-key.html

* WebCore.xcodeproj/project.pbxproj: Added new files.

* bindings/js/JSCryptoAlgorithmDictionary.cpp:
(WebCore::createAesKeyGenParams): Added bindings for AesKeyGenParams.
(WebCore::JSCryptoAlgorithmDictionary::createParametersForGenerateKey): Handle
algorithms that generate AES and HMAC keys.

* bindings/js/JSSubtleCryptoCustom.cpp: (WebCore::JSSubtleCrypto::generateKey): Added.

* crypto/CryptoAlgorithmAesKeyGenParams.h: Added.

* crypto/CryptoKey.cpp: (WebCore::CryptoKey::randomData):
* crypto/CryptoKey.h:
* crypto/CryptoKeyMac.cpp: Added
Expose a function that produces random data for symmetric crypto keys. Cross-platform
implementation uses ARC4 code from WTF, while Mac uses a system function that
provides a FIPS validated random number generator.

* crypto/CryptoKeyAES.cpp: (WebCore::CryptoKeyAES::generate):
* crypto/CryptoKeyAES.h:
Added a function that creates AES keys.

* crypto/SubtleCrypto.idl: Added generateKey.

* crypto/algorithms/CryptoAlgorithmAES_CBC.cpp:
(WebCore::CryptoAlgorithmAES_CBC::generateKey): Added.

* crypto/algorithms/CryptoAlgorithmHMAC.cpp:
(WebCore::CryptoAlgorithmHMAC::generateKey): Added.

* crypto/keys/CryptoKeyHMAC.cpp: (WebCore::CryptoKeyHMAC::generate):
* crypto/keys/CryptoKeyHMAC.h:
Added a function that creates HMAC keys.

* crypto/mac/CryptoAlgorithmAES_CBCMac.cpp: Removed generateKey stub, the implementation
ended up in cross-platform file.

* crypto/mac/CryptoAlgorithmHMACMac.cpp: Ditto.

LayoutTests:

* crypto/subtle/aes-cbc-generate-key-expected.txt: Added.
* crypto/subtle/aes-cbc-generate-key.html: Added.
* crypto/subtle/hmac-generate-key-expected.txt: Added.
* crypto/subtle/hmac-generate-key.html: Added.

* crypto/subtle/sha-1-expected.txt: Now that crypto.webkitSubtle.generateKey exists,
a different exception is raised.

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

6 years agoOptimize baselines: css3
akling@apple.com [Sun, 3 Nov 2013 06:50:39 +0000 (06:50 +0000)]
Optimize baselines: css3

Unreviewed; run "webkit-patch optimize-baselines css3"

* css3/images/cross-fade-background-size-expected.txt: Renamed from LayoutTests/platform/efl/css3/images/cross-fade-background-size-expected.txt.
* css3/images/cross-fade-blending-expected.png: Renamed from LayoutTests/platform/efl/css3/images/cross-fade-blending-expected.png.
* css3/images/cross-fade-blending-expected.txt: Renamed from LayoutTests/platform/efl/css3/images/cross-fade-blending-expected.txt.
* css3/images/cross-fade-invalidation-expected.txt: Renamed from LayoutTests/platform/efl/css3/images/cross-fade-invalidation-expected.txt.
* css3/images/cross-fade-simple-expected.txt: Renamed from LayoutTests/platform/efl/css3/images/cross-fade-simple-expected.txt.
* css3/images/cross-fade-sizing-expected.txt: Renamed from LayoutTests/platform/efl/css3/images/cross-fade-sizing-expected.txt.
* css3/images/cross-fade-tiled-expected.txt: Renamed from LayoutTests/platform/efl/css3/images/cross-fade-tiled-expected.txt.
* css3/selectors3/html/css3-modsel-17-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/html/css3-modsel-17-expected.png.
* css3/selectors3/html/css3-modsel-177a-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/html/css3-modsel-177a-expected.png.
* css3/selectors3/html/css3-modsel-18c-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/html/css3-modsel-18c-expected.png.
* css3/selectors3/html/css3-modsel-27a-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/html/css3-modsel-27a-expected.png.
* css3/selectors3/html/css3-modsel-27b-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/html/css3-modsel-27b-expected.png.
* css3/selectors3/html/css3-modsel-61-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/html/css3-modsel-61-expected.png.
* css3/selectors3/xhtml/css3-modsel-123b-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xhtml/css3-modsel-123b-expected.png.
* css3/selectors3/xhtml/css3-modsel-17-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xhtml/css3-modsel-17-expected.png.
* css3/selectors3/xhtml/css3-modsel-177a-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xhtml/css3-modsel-177a-expected.png.
* css3/selectors3/xhtml/css3-modsel-18c-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xhtml/css3-modsel-18c-expected.png.
* css3/selectors3/xhtml/css3-modsel-27a-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xhtml/css3-modsel-27a-expected.png.
* css3/selectors3/xhtml/css3-modsel-27b-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xhtml/css3-modsel-27b-expected.png.
* css3/selectors3/xhtml/css3-modsel-61-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xhtml/css3-modsel-61-expected.png.
* css3/selectors3/xhtml/css3-modsel-91-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xhtml/css3-modsel-91-expected.png.
* css3/selectors3/xhtml/css3-modsel-92-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xhtml/css3-modsel-92-expected.png.
* css3/selectors3/xml/css3-modsel-123b-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xml/css3-modsel-123b-expected.png.
* css3/selectors3/xml/css3-modsel-167-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xml/css3-modsel-167-expected.png.
* css3/selectors3/xml/css3-modsel-167a-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xml/css3-modsel-167a-expected.png.
* css3/selectors3/xml/css3-modsel-17-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xml/css3-modsel-17-expected.png.
* css3/selectors3/xml/css3-modsel-177a-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xml/css3-modsel-177a-expected.png.
* css3/selectors3/xml/css3-modsel-18c-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xml/css3-modsel-18c-expected.png.
* css3/selectors3/xml/css3-modsel-27a-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xml/css3-modsel-27a-expected.png.
* css3/selectors3/xml/css3-modsel-27b-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xml/css3-modsel-27b-expected.png.
* css3/selectors3/xml/css3-modsel-61-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xml/css3-modsel-61-expected.png.
* css3/selectors3/xml/css3-modsel-91-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xml/css3-modsel-91-expected.png.
* css3/selectors3/xml/css3-modsel-92-expected.png: Renamed from LayoutTests/platform/efl/css3/selectors3/xml/css3-modsel-92-expected.png.
* platform/efl-wk1/css3/flexbox/flexbox-baseline-expected.png: Renamed from LayoutTests/platform/efl/css3/flexbox/flexbox-baseline-expected.png.
* platform/efl-wk1/css3/flexbox/flexbox-baseline-expected.txt: Renamed from LayoutTests/platform/efl/css3/flexbox/flexbox-baseline-expected.txt.
* platform/gtk/css3/images/cross-fade-blending-expected.png: Removed.
* platform/gtk/css3/images/cross-fade-blending-expected.txt: Removed.
* platform/gtk/css3/images/cross-fade-invalidation-expected.txt: Removed.
* platform/gtk/css3/images/cross-fade-simple-expected.txt: Removed.
* platform/gtk/css3/images/cross-fade-sizing-expected.txt: Removed.
* platform/gtk/css3/images/cross-fade-tiled-expected.txt: Removed.
* platform/gtk/css3/selectors3/html/css3-modsel-17-expected.png: Removed.
* platform/gtk/css3/selectors3/html/css3-modsel-177a-expected.png: Removed.
* platform/gtk/css3/selectors3/html/css3-modsel-18c-expected.png: Removed.
* platform/gtk/css3/selectors3/html/css3-modsel-27a-expected.png: Removed.
* platform/gtk/css3/selectors3/html/css3-modsel-27b-expected.png: Removed.
* platform/gtk/css3/selectors3/html/css3-modsel-61-expected.png: Removed.
* platform/gtk/css3/selectors3/xhtml/css3-modsel-123b-expected.png: Removed.
* platform/gtk/css3/selectors3/xhtml/css3-modsel-17-expected.png: Removed.
* platform/gtk/css3/selectors3/xhtml/css3-modsel-177a-expected.png: Removed.
* platform/gtk/css3/selectors3/xhtml/css3-modsel-18c-expected.png: Removed.
* platform/gtk/css3/selectors3/xhtml/css3-modsel-27a-expected.png: Removed.
* platform/gtk/css3/selectors3/xhtml/css3-modsel-27b-expected.png: Removed.
* platform/gtk/css3/selectors3/xhtml/css3-modsel-61-expected.png: Removed.
* platform/gtk/css3/selectors3/xhtml/css3-modsel-91-expected.png: Removed.
* platform/gtk/css3/selectors3/xhtml/css3-modsel-92-expected.png: Removed.
* platform/gtk/css3/selectors3/xml/css3-modsel-123b-expected.png: Removed.
* platform/gtk/css3/selectors3/xml/css3-modsel-167-expected.png: Removed.
* platform/gtk/css3/selectors3/xml/css3-modsel-167a-expected.png: Removed.
* platform/gtk/css3/selectors3/xml/css3-modsel-17-expected.png: Removed.
* platform/gtk/css3/selectors3/xml/css3-modsel-177a-expected.png: Removed.
* platform/gtk/css3/selectors3/xml/css3-modsel-18c-expected.png: Removed.
* platform/gtk/css3/selectors3/xml/css3-modsel-27a-expected.png: Removed.
* platform/gtk/css3/selectors3/xml/css3-modsel-27b-expected.png: Removed.
* platform/gtk/css3/selectors3/xml/css3-modsel-61-expected.png: Removed.
* platform/gtk/css3/selectors3/xml/css3-modsel-91-expected.png: Removed.
* platform/gtk/css3/selectors3/xml/css3-modsel-92-expected.png: Removed.
* platform/mac/css3/images/cross-fade-background-size-expected.txt: Removed.
* platform/mac/css3/images/cross-fade-blending-expected.txt: Removed.
* platform/mac/css3/images/cross-fade-invalidation-expected.txt: Removed.
* platform/mac/css3/images/cross-fade-simple-expected.txt: Removed.
* platform/mac/css3/images/cross-fade-sizing-expected.txt: Removed.
* platform/mac/css3/images/cross-fade-tiled-expected.txt: Removed.
* platform/win/css3/filters/effect-reference-expected.txt: Removed.
* platform/win/css3/filters/effect-reference-hw-expected.txt: Removed.

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

6 years agoOptimize baselines: css2.1
akling@apple.com [Sun, 3 Nov 2013 06:25:27 +0000 (06:25 +0000)]
Optimize baselines: css2.1

Unreviewed; run "webkit-patch optimize-baselines css2.1"

* css2.1/20110323/absolute-replaced-height-036-expected.png: Renamed from LayoutTests/platform/efl/css2.1/20110323/absolute-replaced-height-036-expected.png.
* css2.1/20110323/block-non-replaced-height-011-expected.png: Renamed from LayoutTests/platform/efl/css2.1/20110323/block-non-replaced-height-011-expected.png.
* css2.1/20110323/block-non-replaced-height-013-expected.png: Renamed from LayoutTests/platform/efl/css2.1/20110323/block-non-replaced-height-013-expected.png.
* css2.1/20110323/empty-inline-001-expected.png: Renamed from LayoutTests/platform/efl/css2.1/20110323/empty-inline-001-expected.png.
* css2.1/20110323/replaced-intrinsic-002-expected.png: Renamed from LayoutTests/platform/efl/css2.1/20110323/replaced-intrinsic-002-expected.png.
* css2.1/20110323/replaced-intrinsic-002-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/20110323/replaced-intrinsic-002-expected.txt.
* css2.1/20110323/replaced-intrinsic-ratio-001-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/20110323/replaced-intrinsic-ratio-001-expected.txt.
* css2.1/t040105-atkeyw-00-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t040105-atkeyw-00-b-expected.png.
* css2.1/t040105-atkeyw-01-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t040105-atkeyw-01-b-expected.png.
* css2.1/t040105-atkeyw-02-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t040105-atkeyw-02-b-expected.png.
* css2.1/t040105-atrule-00-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t040105-atrule-00-b-expected.png.
* css2.1/t040105-atrule-01-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t040105-atrule-01-b-expected.png.
* css2.1/t040105-atrule-02-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t040105-atrule-02-b-expected.png.
* css2.1/t040105-atrule-03-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t040105-atrule-03-b-expected.png.
* css2.1/t040105-atrule-04-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t040105-atrule-04-b-expected.png.
* css2.1/t040105-import-00-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t040105-import-00-b-expected.png.
* css2.1/t040105-import-01-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t040105-import-01-b-expected.png.
* css2.1/t040105-import-10-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t040105-import-10-b-expected.png.
* css2.1/t0402-syntax-01-f-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0402-syntax-01-f-expected.png.
* css2.1/t0402-syntax-02-f-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0402-syntax-02-f-expected.png.
* css2.1/t0402-syntax-03-f-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0402-syntax-03-f-expected.png.
* css2.1/t0402-syntax-04-f-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0402-syntax-04-f-expected.png.
* css2.1/t0402-syntax-05-f-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0402-syntax-05-f-expected.png.
* css2.1/t0402-syntax-06-f-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0402-syntax-06-f-expected.png.
* css2.1/t040307-syntax-01-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t040307-syntax-01-b-expected.png.
* css2.1/t0505-c16-descendant-02-e-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0505-c16-descendant-02-e-expected.png.
* css2.1/t0509-id-sel-syntax-01-f-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0509-id-sel-syntax-01-f-expected.png.
* css2.1/t0509-id-sel-syntax-02-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0509-id-sel-syntax-02-b-expected.png.
* css2.1/t0511-c21-pseud-link-00-e-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0511-c21-pseud-link-00-e-expected.png.
* css2.1/t0511-c21-pseud-link-01-e-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0511-c21-pseud-link-01-e-expected.png.
* css2.1/t0511-c21-pseud-link-02-e-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0511-c21-pseud-link-02-e-expected.png.
* css2.1/t0511-c21-pseud-link-03-e-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0511-c21-pseud-link-03-e-expected.png.
* css2.1/t051103-c21-focus-ln-00-e-i-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t051103-c21-focus-ln-00-e-i-expected.png.
* css2.1/t051103-c21-hover-ln-00-e-i-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t051103-c21-hover-ln-00-e-i-expected.png.
* css2.1/t0803-c5504-mrgn-l-02-c-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0803-c5504-mrgn-l-02-c-expected.png.
* css2.1/t0805-c5511-brdr-tw-02-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0805-c5511-brdr-tw-02-b-expected.png.
* css2.1/t0805-c5512-brdr-rw-02-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0805-c5512-brdr-rw-02-b-expected.png.
* css2.1/t0805-c5513-brdr-bw-02-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0805-c5513-brdr-bw-02-b-expected.png.
* css2.1/t0805-c5514-brdr-lw-02-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0805-c5514-brdr-lw-02-b-expected.png.
* css2.1/t0805-c5515-brdr-w-02-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t0805-c5515-brdr-w-02-b-expected.png.
* css2.1/t1001-abs-pos-cb-01-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-01-b-expected.png.
* css2.1/t1001-abs-pos-cb-01-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-01-b-expected.txt.
* css2.1/t1001-abs-pos-cb-02-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-02-b-expected.png.
* css2.1/t1001-abs-pos-cb-02-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-02-b-expected.txt.
* css2.1/t1001-abs-pos-cb-03-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-03-b-expected.png.
* css2.1/t1001-abs-pos-cb-03-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-03-b-expected.txt.
* css2.1/t1001-abs-pos-cb-04-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-04-b-expected.png.
* css2.1/t1001-abs-pos-cb-04-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-04-b-expected.txt.
* css2.1/t1001-abs-pos-cb-05-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-05-b-expected.png.
* css2.1/t1001-abs-pos-cb-05-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-05-b-expected.txt.
* css2.1/t1001-abs-pos-cb-06-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-06-b-expected.png.
* css2.1/t1001-abs-pos-cb-06-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-06-b-expected.txt.
* css2.1/t1001-abs-pos-cb-07-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-07-b-expected.png.
* css2.1/t1001-abs-pos-cb-07-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-07-b-expected.txt.
* css2.1/t1001-abs-pos-cb-08-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-08-b-expected.png.
* css2.1/t1001-abs-pos-cb-08-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-08-b-expected.txt.
* css2.1/t1001-abs-pos-cb-09-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-09-b-expected.png.
* css2.1/t1001-abs-pos-cb-09-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1001-abs-pos-cb-09-b-expected.txt.
* css2.1/t1205-c566-list-stl-01-c-g-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1205-c566-list-stl-01-c-g-expected.txt.
* css2.1/t140201-c532-bgcolor-01-b-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t140201-c532-bgcolor-01-b-expected.png.
* css2.1/t140201-c533-bgimage-01-b-g-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t140201-c533-bgimage-01-b-g-expected.png.
* css2.1/t140201-c536-bgpos-01-b-ag-expected.png: Renamed from LayoutTests/platform/efl/css2.1/t140201-c536-bgpos-01-b-ag-expected.png.
* css2.1/t1508-c527-font-00-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1508-c527-font-00-b-expected.txt.
* css2.1/t1508-c527-font-01-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1508-c527-font-01-b-expected.txt.
* css2.1/t1508-c527-font-02-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1508-c527-font-02-b-expected.txt.
* css2.1/t1508-c527-font-03-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1508-c527-font-03-b-expected.txt.
* css2.1/t1508-c527-font-04-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1508-c527-font-04-b-expected.txt.
* css2.1/t1508-c527-font-05-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1508-c527-font-05-b-expected.txt.
* css2.1/t1508-c527-font-07-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1508-c527-font-07-b-expected.txt.
* css2.1/t1508-c527-font-08-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1508-c527-font-08-b-expected.txt.
* css2.1/t1508-c527-font-09-b-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1508-c527-font-09-b-expected.txt.
* css2.1/t1508-c527-font-10-c-expected.txt: Renamed from LayoutTests/platform/efl/css2.1/t1508-c527-font-10-c-expected.txt.
* platform/gtk/css2.1/20110323/absolute-replaced-height-036-expected.png: Removed.
* platform/gtk/css2.1/20110323/block-non-replaced-height-011-expected.png: Removed.
* platform/gtk/css2.1/20110323/block-non-replaced-height-013-expected.png: Removed.
* platform/gtk/css2.1/20110323/empty-inline-001-expected.png: Removed.
* platform/gtk/css2.1/20110323/replaced-intrinsic-002-expected.png: Removed.
* platform/gtk/css2.1/20110323/replaced-intrinsic-002-expected.txt: Removed.
* platform/gtk/css2.1/20110323/replaced-intrinsic-ratio-001-expected.txt: Removed.
* platform/gtk/css2.1/t040105-atkeyw-00-b-expected.png: Removed.
* platform/gtk/css2.1/t040105-atkeyw-01-b-expected.png: Removed.
* platform/gtk/css2.1/t040105-atkeyw-02-b-expected.png: Removed.
* platform/gtk/css2.1/t040105-atrule-00-b-expected.png: Removed.
* platform/gtk/css2.1/t040105-atrule-01-b-expected.png: Removed.
* platform/gtk/css2.1/t040105-atrule-02-b-expected.png: Removed.
* platform/gtk/css2.1/t040105-atrule-03-b-expected.png: Removed.
* platform/gtk/css2.1/t040105-atrule-04-b-expected.png: Removed.
* platform/gtk/css2.1/t040105-import-00-b-expected.png: Removed.
* platform/gtk/css2.1/t040105-import-01-b-expected.png: Removed.
* platform/gtk/css2.1/t040105-import-10-b-expected.png: Removed.
* platform/gtk/css2.1/t0402-syntax-01-f-expected.png: Removed.
* platform/gtk/css2.1/t0402-syntax-02-f-expected.png: Removed.
* platform/gtk/css2.1/t0402-syntax-03-f-expected.png: Removed.
* platform/gtk/css2.1/t0402-syntax-04-f-expected.png: Removed.
* platform/gtk/css2.1/t0402-syntax-05-f-expected.png: Removed.
* platform/gtk/css2.1/t0402-syntax-06-f-expected.png: Removed.
* platform/gtk/css2.1/t040307-syntax-01-b-expected.png: Removed.
* platform/gtk/css2.1/t0505-c16-descendant-02-e-expected.png: Removed.
* platform/gtk/css2.1/t0509-id-sel-syntax-01-f-expected.png: Removed.
* platform/gtk/css2.1/t0509-id-sel-syntax-02-b-expected.png: Removed.
* platform/gtk/css2.1/t0511-c21-pseud-link-00-e-expected.png: Removed.
* platform/gtk/css2.1/t0511-c21-pseud-link-01-e-expected.png: Removed.
* platform/gtk/css2.1/t0511-c21-pseud-link-02-e-expected.png: Removed.
* platform/gtk/css2.1/t0511-c21-pseud-link-03-e-expected.png: Removed.
* platform/gtk/css2.1/t051103-c21-focus-ln-00-e-i-expected.png: Removed.
* platform/gtk/css2.1/t051103-c21-hover-ln-00-e-i-expected.png: Removed.
* platform/gtk/css2.1/t0803-c5504-mrgn-l-02-c-expected.png: Removed.
* platform/gtk/css2.1/t0805-c5511-brdr-tw-02-b-expected.png: Removed.
* platform/gtk/css2.1/t0805-c5512-brdr-rw-02-b-expected.png: Removed.
* platform/gtk/css2.1/t0805-c5513-brdr-bw-02-b-expected.png: Removed.
* platform/gtk/css2.1/t0805-c5514-brdr-lw-02-b-expected.png: Removed.
* platform/gtk/css2.1/t0805-c5515-brdr-w-02-b-expected.png: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-01-b-expected.png: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-01-b-expected.txt: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-02-b-expected.png: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-02-b-expected.txt: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-03-b-expected.png: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-03-b-expected.txt: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-04-b-expected.png: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-04-b-expected.txt: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-05-b-expected.png: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-05-b-expected.txt: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-06-b-expected.png: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-06-b-expected.txt: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-07-b-expected.png: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-07-b-expected.txt: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-08-b-expected.png: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-08-b-expected.txt: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-09-b-expected.png: Removed.
* platform/gtk/css2.1/t1001-abs-pos-cb-09-b-expected.txt: Removed.
* platform/gtk/css2.1/t1205-c566-list-stl-01-c-g-expected.txt: Removed.
* platform/gtk/css2.1/t140201-c532-bgcolor-01-b-expected.png: Removed.
* platform/gtk/css2.1/t140201-c533-bgimage-01-b-g-expected.png: Removed.
* platform/gtk/css2.1/t140201-c536-bgpos-01-b-ag-expected.png: Removed.
* platform/gtk/css2.1/t1508-c527-font-00-b-expected.txt: Removed.
* platform/gtk/css2.1/t1508-c527-font-01-b-expected.txt: Removed.
* platform/gtk/css2.1/t1508-c527-font-02-b-expected.txt: Removed.
* platform/gtk/css2.1/t1508-c527-font-03-b-expected.txt: Removed.
* platform/gtk/css2.1/t1508-c527-font-04-b-expected.txt: Removed.
* platform/gtk/css2.1/t1508-c527-font-05-b-expected.txt: Removed.
* platform/gtk/css2.1/t1508-c527-font-07-b-expected.txt: Removed.
* platform/gtk/css2.1/t1508-c527-font-08-b-expected.txt: Removed.
* platform/gtk/css2.1/t1508-c527-font-09-b-expected.txt: Removed.
* platform/gtk/css2.1/t1508-c527-font-10-c-expected.txt: Removed.
* platform/mac/css2.1/t1508-c527-font-00-b-expected.txt: Removed.

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

6 years agoOptimize baselines: fast/dom
akling@apple.com [Sun, 3 Nov 2013 06:04:36 +0000 (06:04 +0000)]
Optimize baselines: fast/dom

Unreviewed; run "webkit-patch optimize-baselines fast/dom"

* fast/dom/HTMLHeadElement/textInHead1-expected.txt: Renamed from LayoutTests/platform/efl/fast/dom/HTMLHeadElement/textInHead1-expected.txt.
* fast/dom/HTMLHeadElement/textInHead2-expected.txt: Renamed from LayoutTests/platform/efl/fast/dom/HTMLHeadElement/textInHead2-expected.txt.
* fast/dom/HTMLHeadElement/textInHead3-expected.txt: Renamed from LayoutTests/platform/efl/fast/dom/HTMLHeadElement/textInHead3-expected.txt.
* fast/dom/HTMLHeadElement/textInHead4-expected.txt: Renamed from LayoutTests/platform/efl/fast/dom/HTMLHeadElement/textInHead4-expected.txt.
* fast/dom/HTMLHeadElement/textInHead5-expected.txt: Renamed from LayoutTests/platform/efl/fast/dom/HTMLHeadElement/textInHead5-expected.txt.
* fast/dom/HTMLMeterElement/meter-element-expected.txt: Renamed from LayoutTests/platform/efl/fast/dom/HTMLMeterElement/meter-element-expected.txt.
* fast/dom/HTMLMeterElement/meter-element-repaint-on-update-value-expected.txt: Renamed from LayoutTests/platform/efl/fast/dom/HTMLMeterElement/meter-element-repaint-on-update-value-expected.txt.
* fast/dom/anchor-text-expected.txt: Renamed from LayoutTests/platform/efl/fast/dom/anchor-text-expected.txt.
* fast/dom/comment-not-documentElement-expected.txt: Renamed from LayoutTests/platform/efl/fast/dom/comment-not-documentElement-expected.txt.
* fast/dom/delete-contents-expected.png: Renamed from LayoutTests/platform/efl/fast/dom/delete-contents-expected.png.
* fast/dom/scroll-reveal-left-overflow-expected.txt: Renamed from LayoutTests/platform/efl/fast/dom/scroll-reveal-left-overflow-expected.txt.
* fast/dom/scroll-reveal-top-overflow-expected.txt: Renamed from LayoutTests/platform/efl/fast/dom/scroll-reveal-top-overflow-expected.txt.
* platform/gtk/fast/dom/HTMLHeadElement/textInHead1-expected.txt: Removed.
* platform/gtk/fast/dom/HTMLHeadElement/textInHead2-expected.txt: Removed.
* platform/gtk/fast/dom/HTMLHeadElement/textInHead3-expected.txt: Removed.
* platform/gtk/fast/dom/HTMLHeadElement/textInHead4-expected.txt: Removed.
* platform/gtk/fast/dom/HTMLHeadElement/textInHead5-expected.txt: Removed.
* platform/gtk/fast/dom/HTMLMeterElement/meter-element-expected.txt: Removed.
* platform/gtk/fast/dom/HTMLMeterElement/meter-element-repaint-on-update-value-expected.txt: Removed.
* platform/gtk/fast/dom/anchor-text-expected.txt: Removed.
* platform/gtk/fast/dom/comment-not-documentElement-expected.txt: Removed.
* platform/gtk/fast/dom/delete-contents-expected.png: Removed.
* platform/gtk/fast/dom/scroll-reveal-left-overflow-expected.txt: Removed.
* platform/gtk/fast/dom/scroll-reveal-top-overflow-expected.txt: Removed.
* platform/win-7sp0/fast/dom/horizontal-scrollbar-in-rtl-expected.txt: Renamed from LayoutTests/platform/win/fast/dom/horizontal-scrollbar-in-rtl-expected.txt.
* platform/win-7sp0/fast/dom/vertical-scrollbar-in-rtl-expected.txt: Renamed from LayoutTests/platform/win/fast/dom/vertical-scrollbar-in-rtl-expected.txt.

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

6 years agoUnreviewed, EFL gardening. Add missing baselines to EFL wk1 TestExpectation.
gyuyoung.kim@samsung.com [Sun, 3 Nov 2013 05:35:40 +0000 (05:35 +0000)]
Unreviewed, EFL gardening. Add missing baselines to EFL wk1 TestExpectation.

* platform/efl-wk1/TestExpectations: Need to add new baseline since upgrading base OS.

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

6 years agoEnforceRange doesn't enforce range of a short
ch.dumez@samsung.com [Sun, 3 Nov 2013 04:13:43 +0000 (04:13 +0000)]
EnforceRange doesn't enforce range of a short
https://bugs.webkit.org/show_bug.cgi?id=123661

Reviewed by Alexey Proskuryakov.

Source/WebCore:

Handle Web IDL short / unsigned short types as per the
specification:
- http://www.w3.org/TR/WebIDL/#es-short
- http://www.w3.org/TR/WebIDL/#es-unsigned-short

Specifically, we used to treat short / unsigned short as 32bit
integers, which was wrong. We now properly handle them as 16bit
integers.

No new tests, added test cases to js/dom/webidl-type-mapping.html.

* WebCore.exp.in:
* bindings/js/JSDOMBinding.cpp:
(WebCore::toSmallerInt):
(WebCore::toSmallerUInt):
(WebCore::toInt8):
(WebCore::toUInt8):
(WebCore::toInt16):
(WebCore::toUInt16):
* bindings/js/JSDOMBinding.h:
* bindings/scripts/CodeGeneratorJS.pm:
(JSValueToNative):
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::setJSTestObjShortAttr):
(WebCore::setJSTestObjUnsignedShortAttr):
* testing/TypeConversions.h:
(WebCore::TypeConversions::testShort):
(WebCore::TypeConversions::setTestShort):
(WebCore::TypeConversions::testEnforceRangeShort):
(WebCore::TypeConversions::setTestEnforceRangeShort):
(WebCore::TypeConversions::testUnsignedShort):
(WebCore::TypeConversions::setTestUnsignedShort):
(WebCore::TypeConversions::testEnforceRangeUnsignedShort):
(WebCore::TypeConversions::setTestEnforceRangeUnsignedShort):
* testing/TypeConversions.idl:

Source/WebKit:

Export symbols to fix Windows build.

* WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:

LayoutTests:

Extend js/dom/webidl-type-mapping.html layout test to validate
Web IDL type mapping for short / unsigned short.

* js/dom/webidl-type-mapping-expected.txt:
* js/dom/webidl-type-mapping.html:

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

6 years agoFix compilation of DateMath.cpp with MSVC
paroga@webkit.org [Sun, 3 Nov 2013 03:25:06 +0000 (03:25 +0000)]
Fix compilation of DateMath.cpp with MSVC
https://bugs.webkit.org/show_bug.cgi?id=123680

Reviewed by Darin Adler.

* wtf/DateMath.cpp:
(WTF::appendTwoDigitNumber): Help the compiler finding the
correct overload by casting the characters to LChar.

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

6 years agoCleanup OpenTypeUtilities
paroga@webkit.org [Sun, 3 Nov 2013 03:24:47 +0000 (03:24 +0000)]
Cleanup OpenTypeUtilities
https://bugs.webkit.org/show_bug.cgi?id=123686

Reviewed by Darin Adler.

Merge the WinCE specific code into the general Windows code to
make the compilation of WinCE port on WinNT easier.

* platform/graphics/opentype/OpenTypeUtilities.cpp:
(WebCore::renameFont):
(WebCore::renameAndActivateFont):
* platform/graphics/opentype/OpenTypeUtilities.h:
* platform/graphics/win/FontCustomPlatformData.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/win/FontCustomPlatformDataCairo.cpp:
(WebCore::createFontCustomPlatformData):
* platform/graphics/wince/FontCustomPlatformData.cpp:
(WebCore::createFontCustomPlatformData):

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

6 years agoAdd missing getHostCallReturnValue() for MSVC ARM
paroga@webkit.org [Sun, 3 Nov 2013 03:19:32 +0000 (03:19 +0000)]
Add missing getHostCallReturnValue() for MSVC ARM
https://bugs.webkit.org/show_bug.cgi?id=123685

Reviewed by Darin Adler.

* jit/JITStubsARM.h:

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

6 years agoOptimize baselines: fast/css
akling@apple.com [Sun, 3 Nov 2013 03:18:08 +0000 (03:18 +0000)]
Optimize baselines: fast/css

Unreviewed; run "webkit-patch optimize-baselines fast/css"

* fast/css/background-image-with-baseurl-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/background-image-with-baseurl-expected.txt.
* fast/css/caption-width-absolute-position-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/caption-width-absolute-position-expected.txt.
* fast/css/caption-width-absolute-position-offset-top-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/caption-width-absolute-position-offset-top-expected.txt.
* fast/css/caption-width-fixed-position-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/caption-width-fixed-position-expected.txt.
* fast/css/caption-width-fixed-position-offset-top-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/caption-width-fixed-position-offset-top-expected.txt.
* fast/css/caption-width-relative-position-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/caption-width-relative-position-expected.txt.
* fast/css/caption-width-relative-position-offset-top-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/caption-width-relative-position-offset-top-expected.txt.
* fast/css/font-face-default-font-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/font-face-default-font-expected.txt.
* fast/css/font-face-in-media-rule-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/font-face-in-media-rule-expected.txt.
* fast/css/font-size-negative-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/font-size-negative-expected.txt.
* fast/css/imageTileOpacity-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/imageTileOpacity-expected.txt.
* fast/css/import_with_baseurl-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/import_with_baseurl-expected.txt.
* fast/css/line-height-determined-by-primary-font-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/line-height-determined-by-primary-font-expected.txt.
* fast/css/line-height-font-order-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/line-height-font-order-expected.txt.
* fast/css/line-height-negative-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/line-height-negative-expected.txt.
* fast/css/max-height-none-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/max-height-none-expected.txt.
* fast/css/min-width-with-spanned-cell-expected.png: Renamed from LayoutTests/platform/efl/fast/css/min-width-with-spanned-cell-expected.png.
* fast/css/min-width-with-spanned-cell-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/min-width-with-spanned-cell-expected.txt.
* fast/css/min-width-with-spanned-cell-fixed-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/min-width-with-spanned-cell-fixed-expected.txt.
* fast/css/pseudo-first-line-border-width-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/pseudo-first-line-border-width-expected.txt.
* fast/css/replaced-element-implicit-size-expected.png: Renamed from LayoutTests/platform/efl/fast/css/replaced-element-implicit-size-expected.png.
* fast/css/vertical-align-lengths-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/vertical-align-lengths-expected.txt.
* fast/css/visibility-hit-test-expected.txt: Renamed from LayoutTests/platform/efl/fast/css/visibility-hit-test-expected.txt.
* platform/efl-wk2/fast/css/font-smoothing-expected.png: Renamed from LayoutTests/platform/efl/fast/css/font-smoothing-expected.png.
* platform/efl-wk2/fast/css/font-weight-1-expected.png: Renamed from LayoutTests/platform/efl/fast/css/font-weight-1-expected.png.
* platform/efl-wk2/fast/css/input-search-padding-expected.png: Renamed from LayoutTests/platform/efl/fast/css/input-search-padding-expected.png.
* platform/gtk/fast/css/background-image-with-baseurl-expected.txt: Removed.
* platform/gtk/fast/css/caption-width-absolute-position-expected.txt: Removed.
* platform/gtk/fast/css/caption-width-absolute-position-offset-top-expected.txt: Removed.
* platform/gtk/fast/css/caption-width-fixed-position-expected.txt: Removed.
* platform/gtk/fast/css/caption-width-fixed-position-offset-top-expected.txt: Removed.
* platform/gtk/fast/css/caption-width-relative-position-expected.txt: Removed.
* platform/gtk/fast/css/caption-width-relative-position-offset-top-expected.txt: Removed.
* platform/gtk/fast/css/font-face-in-media-rule-expected.txt: Removed.
* platform/gtk/fast/css/font-size-negative-expected.txt: Removed.
* platform/gtk/fast/css/imageTileOpacity-expected.txt: Removed.
* platform/gtk/fast/css/import_with_baseurl-expected.txt: Removed.
* platform/gtk/fast/css/line-height-determined-by-primary-font-expected.txt: Removed.
* platform/gtk/fast/css/line-height-font-order-expected.txt: Removed.
* platform/gtk/fast/css/line-height-negative-expected.txt: Removed.
* platform/gtk/fast/css/max-height-none-expected.txt: Removed.
* platform/gtk/fast/css/min-width-with-spanned-cell-expected.png: Removed.
* platform/gtk/fast/css/min-width-with-spanned-cell-expected.txt: Removed.
* platform/gtk/fast/css/min-width-with-spanned-cell-fixed-expected.txt: Removed.
* platform/gtk/fast/css/pseudo-first-line-border-width-expected.txt: Removed.
* platform/gtk/fast/css/replaced-element-implicit-size-expected.png: Removed.
* platform/gtk/fast/css/vertical-align-lengths-expected.txt: Removed.
* platform/gtk/fast/css/visibility-hit-test-expected.txt: Removed.
* platform/mac/fast/css/caption-width-absolute-position-expected.txt: Removed.
* platform/mac/fast/css/caption-width-absolute-position-offset-top-expected.txt: Removed.
* platform/mac/fast/css/caption-width-fixed-position-expected.txt: Removed.
* platform/mac/fast/css/caption-width-fixed-position-offset-top-expected.txt: Removed.
* platform/mac/fast/css/caption-width-relative-position-expected.txt: Removed.
* platform/mac/fast/css/caption-width-relative-position-offset-top-expected.txt: Removed.
* platform/mac/fast/css/font-face-default-font-expected.txt: Removed.
* platform/mac/fast/css/font-face-in-media-rule-expected.txt: Removed.
* platform/mac/fast/css/min-width-with-spanned-cell-expected.txt: Removed.
* platform/mac/fast/css/min-width-with-spanned-cell-fixed-expected.txt: Removed.
* platform/mac/fast/css/pseudo-first-line-border-width-expected.txt: Removed.
* platform/win/fast/css/zoom-body-scroll-expected.txt: Removed.

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

6 years agoFix MSVC warning about unary minus operator
paroga@webkit.org [Sun, 3 Nov 2013 03:16:59 +0000 (03:16 +0000)]
Fix MSVC warning about unary minus operator
https://bugs.webkit.org/show_bug.cgi?id=123674

Reviewed by Darin Adler.

Change some static_cast<> to silence the following warning of Microsoft compiler:
warning C4146: unary minus operator applied to unsigned type, result still unsigned

* jit/Repatch.cpp:
(JSC::emitPutTransitionStub):

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

6 years agoCSSFontFaceSrcValue constructors should return PassRef.
akling@apple.com [Sun, 3 Nov 2013 02:36:07 +0000 (02:36 +0000)]
CSSFontFaceSrcValue constructors should return PassRef.
<https://webkit.org/b/123692>

Make functions that return non-null CSSFontFaceSrcValues return
PassRef instead of PassRefPtr. Tweak some call sites to be
slightly more efficient.

Reviewed by Anders Carlsson.

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

6 years agoCSSStyleSheet::contents() should return a reference.
akling@apple.com [Sun, 3 Nov 2013 02:33:19 +0000 (02:33 +0000)]
CSSStyleSheet::contents() should return a reference.
<https://webkit.org/b/123689>

Make CSSStyleSheet::contents() return a StyleSheetContents& instead
of a pointer. The object was already stored in a Ref.

Reviewed by Anders Carlsson.

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

6 years agoCSSReflectValue constructor should return PassRef.
akling@apple.com [Sun, 3 Nov 2013 02:14:53 +0000 (02:14 +0000)]
CSSReflectValue constructor should return PassRef.
<https://webkit.org/b/123963>

Make CSSReflectValue::create() return a PassRef. Tweak one call
site to be slightly more efficient.

Reviewed by Anders Carlsson.

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

6 years agoCSSFontFeatureValue constructor should return PassRef.
akling@apple.com [Sun, 3 Nov 2013 02:12:40 +0000 (02:12 +0000)]
CSSFontFeatureValue constructor should return PassRef.
<https://webkit.org/b/123691>

Make CSSFontFeatureValue::create() return PassRef, since it never
returns null. Tweak one call site to be slightly more efficient.

Reviewed by Anders Carlsson.

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

6 years agoTighten typing in SVGResources::buildCachedResources().
akling@apple.com [Sun, 3 Nov 2013 02:04:21 +0000 (02:04 +0000)]
Tighten typing in SVGResources::buildCachedResources().
<https://webkit.org/b/123690>

Make this function take a RenderElement&/SVGRenderStyle& pair instead
of a RenderObject*/SVGRenderStyle* pair. Also tweaked the code a bit,
removing ampersands and asserts as appropriate.

Reviewed by Anders Carlsson.

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