WebKit-https.git
12 years ago Bug 22466: REGRESSION (35867): Many resources missing when saving webarchive...
ddkilzer@apple.com [Tue, 2 Dec 2008 00:53:35 +0000 (00:53 +0000)]
    Bug 22466: REGRESSION (35867): Many resources missing when saving webarchive of webkit.org

        <https://bugs.webkit.org/show_bug.cgi?id=22466>
        <rdar://problem/6403593>

        Reviewed by Brady Eidson.

WebCore:

        Test: http/tests/webarchive/test-preload-resources.html

        * loader/archive/cf/LegacyWebArchive.cpp:
        (WebCore::LegacyWebArchive::create): Check the WebCore cache for
        resources if DocumentLoader::subresource() doesn't return them.
        Note that the DocumentLoader::subresource() method returned
        preloaded resources before r35867, but this caused a regression in
        Mail.

WebKitTools:

        * DumpRenderTree/mac/DumpRenderTree.mm:
        (normalizeHTTPResponseHeaderFields): Added.  Normalizes Date, Etag,
        Keep-Alive, Last-Modified and Server header fields to prevent false
        positive test failures.
        (convertWebResourceResponseToDictionary): Call
        normalizeHTTPResponseHeaderFields() to noramlize HTTP response
        header fields.

LayoutTests:

        * http/tests/webarchive/resources/test-preload-resources.css: Added.
        * http/tests/webarchive/test-preload-resources-expected.webarchive: Added.
        * http/tests/webarchive/test-preload-resources.html: Added.
        * platform/qt/Skipped: Added http/tests/webarchive and grouped the
        skipped list of other webarchive tests together.
        * platform/win/Skipped: Added http/tests/webarchive.

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

12 years ago2008-12-01 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 2 Dec 2008 00:51:04 +0000 (00:51 +0000)]
2008-12-01  Anders Carlsson  <andersca@apple.com>

        Reviewed by Dan Bernstein.

        Move instantiatePlugin to NetscapePluginHostManager.

        * Plugins/Hosted/NetscapePluginHostManager.h:
        * Plugins/Hosted/NetscapePluginHostManager.mm:
        (WebKit::NetscapePluginHostManager::instantiatePlugin):
        * Plugins/Hosted/NetscapePluginHostProxy.h:
        * Plugins/Hosted/NetscapePluginHostProxy.mm:
        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
        (-[WebHostedNetscapePluginView createPlugin]):

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

12 years ago2008-12-01 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 2 Dec 2008 00:36:25 +0000 (00:36 +0000)]
2008-12-01  Anders Carlsson  <andersca@apple.com>

        Reviewed by Dan Bernstein.

        Pass the plug-in host port directly to the instance proxy.

        * Plugins/Hosted/NetscapePluginHostProxy.mm:
        (WebKit::NetscapePluginHostProxy::instantiatePlugin):
        * Plugins/Hosted/NetscapePluginInstanceProxy.h:
        (WebKit::NetscapePluginInstanceProxy::create):
        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
        (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy):
        (WebKit::NetscapePluginInstanceProxy::resize):
        (WebKit::NetscapePluginInstanceProxy::destroy):
        (WebKit::NetscapePluginInstanceProxy::focusChanged):
        (WebKit::NetscapePluginInstanceProxy::windowFocusChanged):
        (WebKit::NetscapePluginInstanceProxy::windowFrameChanged):
        (WebKit::NetscapePluginInstanceProxy::startTimers):
        (WebKit::NetscapePluginInstanceProxy::mouseEvent):
        (WebKit::NetscapePluginInstanceProxy::stopTimers):

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

12 years ago2008-12-01 Julien Chaffraix <jchaffraix@webkit.org>
jchaffraix@webkit.org [Tue, 2 Dec 2008 00:10:33 +0000 (00:10 +0000)]
2008-12-01  Julien Chaffraix  <jchaffraix@webkit.org>

        Reviewed by Eric Seidel.

        Bug 22564: Make HTML elements' constructors take a QualifiedName
        https://bugs.webkit.org/show_bug.cgi?id=22564

        - Modified the remaining HTML elements' constructors to take a QualifiedName.

        - Added an assertion that the QualifiedName given corresponds to the element constructed.

        * bindings/js/JSAudioConstructor.cpp:
        (WebCore::constructAudio):
        * html/HTMLAudioElement.cpp:
        (WebCore::HTMLAudioElement::HTMLAudioElement):
        * html/HTMLAudioElement.h:
        * html/HTMLBRElement.cpp:
        (WebCore::HTMLBRElement::HTMLBRElement):
        * html/HTMLBRElement.h:
        * html/HTMLElement.cpp:
        (WebCore::HTMLElement::setInnerText):
        * html/HTMLElementFactory.cpp:
        (WebCore::brConstructor):
        (WebCore::quoteConstructor):
        (WebCore::marqueeConstructor):
        (WebCore::audioConstructor):
        (WebCore::videoConstructor):
        (WebCore::sourceConstructor):
        * html/HTMLMarqueeElement.cpp:
        (WebCore::HTMLMarqueeElement::HTMLMarqueeElement):
        * html/HTMLMarqueeElement.h:
        * html/HTMLQuoteElement.cpp:
        (WebCore::HTMLQuoteElement::HTMLQuoteElement):
        * html/HTMLQuoteElement.h:
        * html/HTMLSourceElement.cpp:
        (WebCore::HTMLSourceElement::HTMLSourceElement):
        * html/HTMLSourceElement.h:
        * html/HTMLVideoElement.cpp:
        (WebCore::HTMLVideoElement::HTMLVideoElement):
        * html/HTMLVideoElement.h:
        * rendering/RenderTextControl.cpp:
        (WebCore::RenderTextControl::updateFromElement):

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

12 years ago2008-12-01 Pamela Greene <pam@chromium.org>
pam@chromium.org [Mon, 1 Dec 2008 23:58:49 +0000 (23:58 +0000)]
2008-12-01  Pamela Greene  <pam@chromium.org>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=22464
        Add a test for a potential crash when performing a same-origin
        check on a subframe reloaded with about:blank.

        * fast/js/same-origin-subframe-about-blank-expected.txt: Added.
        * fast/js/same-origin-subframe-about-blank.html: Added.

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

12 years ago2008-12-01 Pierre-Olivier Latour <pol@apple.com>
pol@apple.com [Mon, 1 Dec 2008 23:37:16 +0000 (23:37 +0000)]
2008-12-01  Pierre-Olivier Latour  <pol@apple.com>

        Reviewed by Dan Bernstein.

        Fixed <video> layout tests so that DRT is notified they are done only when the video frames
        are effectively rendered in the page. This requires using a timeout since there is no <video>
        event that fires when the first frame has been drawn (the closest even fires when the element
        is ready to render and will eventually draw at some unknown point in the future).
        Thanks to this change, these tests now pass in --pixel mode as well.

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

        * media/video-aspect-ratio.html:
        * media/video-controls-rendering.html:
        * media/video-display-toggle.html:
        * media/video-layer-crash.html:
        * media/video-paint-test.js:
        (init):
        * media/video-transformed.html:
        * platform/mac/media/video-aspect-ratio-expected.checksum:
        * platform/mac/media/video-aspect-ratio-expected.png:
        * platform/mac/media/video-controls-rendering-expected.checksum:
        * platform/mac/media/video-controls-rendering-expected.png:
        * platform/mac/media/video-display-toggle-expected.checksum:
        * platform/mac/media/video-display-toggle-expected.png:
        * platform/mac/media/video-layer-crash-expected.checksum:
        * platform/mac/media/video-layer-crash-expected.png:
        * platform/mac/media/video-transformed-expected.checksum:
        * platform/mac/media/video-transformed-expected.png:

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

12 years ago2008-12-01 Julien Chaffraix <jchaffraix@webkit.org>
jchaffraix@webkit.org [Mon, 1 Dec 2008 23:07:04 +0000 (23:07 +0000)]
2008-12-01  Julien Chaffraix  <jchaffraix@webkit.org>

        Reviewed by Antti Koivisto.

        Bug 22441: Bridge the gap between the generated ElementFactory and HTMLElementFactory
        https://bugs.webkit.org/show_bug.cgi?id=22441

        Add an assertion to the modified HTML elements' constructor
        to check that the QualifiedName parameter is the one that
        matches the Element's.

        * html/HTMLBaseElement.cpp:
        (WebCore::HTMLBaseElement::HTMLBaseElement):
        * html/HTMLBlockquoteElement.cpp:
        (WebCore::HTMLBlockquoteElement::HTMLBlockquoteElement):
        * html/HTMLBodyElement.cpp:
        (WebCore::HTMLBodyElement::HTMLBodyElement):
        * html/HTMLButtonElement.cpp:
        (WebCore::HTMLButtonElement::HTMLButtonElement):
        * html/HTMLDListElement.cpp:
        (WebCore::HTMLDListElement::HTMLDListElement):
        * html/HTMLDirectoryElement.cpp:
        (WebCore::HTMLDirectoryElement::HTMLDirectoryElement):
        * html/HTMLDivElement.cpp:
        (WebCore::HTMLDivElement::HTMLDivElement):
        * html/HTMLFieldSetElement.cpp:
        (WebCore::HTMLFieldSetElement::HTMLFieldSetElement):
        * html/HTMLFormElement.cpp:
        (WebCore::HTMLFormElement::HTMLFormElement):
        * html/HTMLFrameElement.cpp:
        (WebCore::HTMLFrameElement::HTMLFrameElement):
        * html/HTMLFrameSetElement.cpp:
        (WebCore::HTMLFrameSetElement::HTMLFrameSetElement):
        * html/HTMLHeadElement.cpp:
        (WebCore::HTMLHeadElement::HTMLHeadElement):
        * html/HTMLHtmlElement.cpp:
        (WebCore::HTMLHtmlElement::HTMLHtmlElement):
        * html/HTMLIFrameElement.cpp:
        (WebCore::HTMLIFrameElement::HTMLIFrameElement):
        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::HTMLInputElement):
        * html/HTMLIsIndexElement.cpp:
        (WebCore::HTMLIsIndexElement::HTMLIsIndexElement):
        * html/HTMLKeygenElement.cpp:
        (WebCore::HTMLKeygenElement::HTMLKeygenElement):
        * html/HTMLLIElement.cpp:
        (WebCore::HTMLLIElement::HTMLLIElement):
        * html/HTMLLabelElement.cpp:
        (WebCore::HTMLLabelElement::HTMLLabelElement):
        * html/HTMLLegendElement.cpp:
        (WebCore::HTMLLegendElement::HTMLLegendElement):
        * html/HTMLLinkElement.cpp:
        (WebCore::HTMLLinkElement::HTMLLinkElement):
        * html/HTMLMenuElement.cpp:
        (WebCore::HTMLMenuElement::HTMLMenuElement):
        * html/HTMLMetaElement.cpp:
        (WebCore::HTMLMetaElement::HTMLMetaElement):
        * html/HTMLOListElement.cpp:
        (WebCore::HTMLOListElement::HTMLOListElement):
        * html/HTMLOptGroupElement.cpp:
        (WebCore::HTMLOptGroupElement::HTMLOptGroupElement):
        * html/HTMLOptionElement.cpp:
        (WebCore::HTMLOptionElement::HTMLOptionElement):
        * html/HTMLSelectElement.cpp:
        (WebCore::HTMLSelectElement::HTMLSelectElement):
        * html/HTMLStyleElement.cpp:
        (WebCore::HTMLStyleElement::HTMLStyleElement):
        * html/HTMLTextAreaElement.cpp:
        (WebCore::HTMLTextAreaElement::HTMLTextAreaElement):
        * html/HTMLTitleElement.cpp:
        (WebCore::HTMLTitleElement::HTMLTitleElement):
        * html/HTMLUListElement.cpp:
        (WebCore::HTMLUListElement::HTMLUListElement):

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

12 years agoDisable WREC for x86_64 since memory allocated by the system allocator is not marked...
mrowe@apple.com [Mon, 1 Dec 2008 22:50:37 +0000 (22:50 +0000)]
Disable WREC for x86_64 since memory allocated by the system allocator is not marked executable,
which causes 64-bit debug builds to crash.  Once we have a dedicated allocator for executable
memory we can turn this back on.

Rubber-stamped by Anders Carlsson.

* wtf/Platform.h:

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

12 years ago2008-12-01 Chris Marrin <cmarrin@apple.com>
cmarrin@apple.com [Mon, 1 Dec 2008 22:50:14 +0000 (22:50 +0000)]
2008-12-01  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Darin Adler.

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

        Fixed another case of crashing because the animation object is getting deleted when
        it's in the middle of a callback. I actually moved where I am retaining the pointer
        up out of the lower level AnimationBase code and into the timer callback that calls
        them. So now the pointer is valid throughout the entire sequence of callback code.

        The testcase for https://bugs.webkit.org/show_bug.cgi?id=22052 also exhibits a
        crash which this patch fixes.

        * page/animation/AnimationBase.cpp:
        (WebCore::AnimationBase::updateStateMachine):
        (WebCore::AnimationBase::animationTimerCallbackFired):
        * page/animation/CompositeAnimation.cpp:
        (WebCore::CompositeAnimationPrivate::setAnimationStartTime):
        (WebCore::CompositeAnimationPrivate::setTransitionStartTime):
        (WebCore::CompositeAnimationPrivate::styleAvailable):
        * page/animation/ImplicitAnimation.cpp:
        (WebCore::ImplicitAnimation::sendTransitionEvent):
        * page/animation/KeyframeAnimation.cpp:
        (WebCore::KeyframeAnimation::sendAnimationEvent):
        (WebCore::KeyframeAnimation::resumeOverriddenAnimations):

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

12 years ago2008-12-01 Antti Koivisto <antti@apple.com>
antti@apple.com [Mon, 1 Dec 2008 22:23:29 +0000 (22:23 +0000)]
2008-12-01  Antti Koivisto  <antti@apple.com>

        Reviewed by Maciej Stachowiak.

        Restore inline buffer after vector is shrunk back below its inline capacity.

        * wtf/Vector.h:
        (WTF::):
        (WTF::VectorBuffer::restoreInlineBufferIfNeeded):
        (WTF::::shrinkCapacity):

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

12 years ago2008-12-01 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Mon, 1 Dec 2008 22:18:15 +0000 (22:18 +0000)]
2008-12-01  Anders Carlsson  <andersca@apple.com>

        Try to fix the Tiger build.

        * Plugins/WebNetscapePluginView.mm:

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

12 years ago Reviewed by Adam Roben.
eric@webkit.org [Mon, 1 Dec 2008 22:09:36 +0000 (22:09 +0000)]
    Reviewed by Adam Roben.

        NULL-check documentFrameView() and topDocumentFrameView() it's possible
        for either of these methods to return NULL, and this was seen to cause
        crashes in Chromium.
        https://bugs.webkit.org/show_bug.cgi?id=22572

        * AccessibleBase.cpp:
        (AccessibleBase::get_accParent):
        (AccessibleBase::accLocation):
        (AccessibleBase::accHitTest):

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

12 years ago2008-12-01 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Mon, 1 Dec 2008 22:00:50 +0000 (22:00 +0000)]
2008-12-01  Anders Carlsson  <andersca@apple.com>

        Rename _layer to _pluginLayer where I forgot to do so.

        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
        (-[WebHostedNetscapePluginView destroyPlugin]):
        * Plugins/WebNetscapePluginView.h:
        * Plugins/WebNetscapePluginView.mm:
        (-[WebNetscapePluginView createPlugin]):
        (-[WebNetscapePluginView setLayer:]):
        (-[WebNetscapePluginView destroyPlugin]):

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

12 years agoVersioning.
mrowe@apple.com [Mon, 1 Dec 2008 21:56:00 +0000 (21:56 +0000)]
Versioning.

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

12 years agoFix ChangeLog
andersca@apple.com [Mon, 1 Dec 2008 21:45:40 +0000 (21:45 +0000)]
Fix ChangeLog

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

12 years ago2008-12-01 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Mon, 1 Dec 2008 21:44:41 +0000 (21:44 +0000)]
2008-12-01  Anders Carlsson  <andersca@apple.com>

        Reviewed by Adam Roben.

        Make sure to re-insert layers as needed so they won't be lost when the layer backed
        view is removed from the view hierarchy.

        * Plugins/Hosted/WebHostedNetscapePluginView.h:
        Add _layer ivar.

        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
        (-[WebHostedNetscapePluginView createPlugin]):
        Don't add the layer here.

        (-[WebHostedNetscapePluginView setLayer:]):
        Instead, add it here.

        (-[WebHostedNetscapePluginView destroyPlugin]):
        Set _layer to 0.

        * Plugins/WebNetscapePluginView.mm:
        (-[WebNetscapePluginView createPlugin]):
        Don't add the layer here.

        (-[WebNetscapePluginView setLayer:]):
        Do it here.

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

12 years ago2008-12-01 Pamela Greene <pam@chromium.org>
pam@chromium.org [Mon, 1 Dec 2008 21:23:32 +0000 (21:23 +0000)]
2008-12-01  Pamela Greene  <pam@chromium.org>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=22463
        Add a test for accessing navigator.cookieEnabled after navigation.

        * fast/dom/navigator-cookieEnabled-no-crash-expected.txt: Added.
        * fast/dom/navigator-cookieEnabled-no-crash.html: Added.
        * fast/dom/resources/test-successful-destination.html: Added.

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

12 years ago2008-11-30 Antti Koivisto <antti@apple.com>
antti@apple.com [Mon, 1 Dec 2008 21:14:06 +0000 (21:14 +0000)]
2008-11-30  Antti Koivisto  <antti@apple.com>

        Reviewed by Mark Rowe.

        Try to return free pages in the current thread cache too.

        * wtf/FastMalloc.cpp:
        (WTF::TCMallocStats::releaseFastMallocFreeMemory):

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

12 years ago2008-12-01 Pamela Greene <pam@chromium.org>
pam@chromium.org [Mon, 1 Dec 2008 20:59:38 +0000 (20:59 +0000)]
2008-12-01  Pamela Greene  <pam@chromium.org>

        Reviewed by Sam Weinig.

        https://bugs.webkit.org/show_bug.cgi?id=22365
        Add a test to verify behavior of DOM node constructors.

        * fast/dom/dom-constructors-expected.txt: Added.
        * fast/dom/dom-constructors.html: Added.

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

12 years ago Bug 22559: Report builds left to test in bisect-builds (like git-bisect)
ddkilzer@apple.com [Mon, 1 Dec 2008 20:52:29 +0000 (20:52 +0000)]
    Bug 22559: Report builds left to test in bisect-builds (like git-bisect)

        <https://bugs.webkit.org/show_bug.cgi?id=22559>

        Reviewed by Adam Roben.

        * Scripts/bisect-builds: Updated status message to report the
        maximum number of builds left to test after the current one.
        (max): Added.

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

12 years ago2008-12-01 Pamela Greene <pam@chromium.org>
pam@chromium.org [Mon, 1 Dec 2008 20:48:19 +0000 (20:48 +0000)]
2008-12-01  Pamela Greene  <pam@chromium.org>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=22358
        Add a test for crash on "Copy" after showing a tooltip.

        * editing/pasteboard/copy-crash-expected.txt: Added.
        * editing/pasteboard/copy-crash.html: Added.

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

12 years ago Rubber-stamped by Mark Rowe.
ap@webkit.org [Mon, 1 Dec 2008 20:03:15 +0000 (20:03 +0000)]
    Rubber-stamped by Mark Rowe.

        https://bugs.webkit.org/show_bug.cgi?id=22531
        Stack overflow on PowerPC on fast/workers/use-machine-stack.html

        Disabling the test until the problem can be investigated.

        * fast/workers/use-machine-stack.html: Removed.
        * fast/workers/use-machine-stack.html-disabled: Copied from fast/workers/use-machine-stack.html.

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

12 years ago2008-12-01 Xan Lopez <xan@gnome.org>
christian@webkit.org [Mon, 1 Dec 2008 17:25:41 +0000 (17:25 +0000)]
2008-12-01  Xan Lopez  <xan@gnome.org>

        Reviewed by Holger Freyther.

        http://bugs.webkit.org/show_bug.cgi?id=22553
        Remove unneeded GObject casts.

        Remove unneeded casts to GObject in functions that take a gpointer
        argument.

        * WebCoreSupport/ChromeClientGtk.cpp:
        (WebKit::ChromeClient::setWindowRect):
        (WebKit::ChromeClient::createWindow):
        (WebKit::ChromeClient::setToolbarsVisible):
        (WebKit::ChromeClient::toolbarsVisible):
        (WebKit::ChromeClient::setStatusbarVisible):
        (WebKit::ChromeClient::statusbarVisible):
        (WebKit::ChromeClient::setScrollbarsVisible):
        (WebKit::ChromeClient::scrollbarsVisible):
        (WebKit::ChromeClient::setMenubarVisible):
        (WebKit::ChromeClient::menubarVisible):
        (WebKit::ChromeClient::setToolTip):
        * WebCoreSupport/InspectorClientGtk.cpp:
        (WebKit::InspectorClient::createPage):
        * webkit/webkitwebframe.cpp:
        * webkit/webkitwebview.cpp:
        * webkit/webkitwebwindowfeatures.cpp:
        (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_new_from_core_features):

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

12 years agoMake it clearer in ChangeLog entry that the last change only affected debug builds.
ap@webkit.org [Mon, 1 Dec 2008 14:24:34 +0000 (14:24 +0000)]
Make it clearer in ChangeLog entry that the last change only affected debug builds.

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

12 years ago2008-12-01 David Levin <levin@chromium.org>
ap@webkit.org [Mon, 1 Dec 2008 14:19:35 +0000 (14:19 +0000)]
2008-12-01  David Levin  <levin@chromium.org>

        Reviewed by Alexey Proskuryakov.

        https://bugs.webkit.org/show_bug.cgi?id=22567
        Make HashTable work as expected with respect to threads. Specifically, it has class-level
        thread safety and constant methods work on constant objects without synchronization.

        No observable change in behavior, so no test.

        * wtf/HashTable.cpp:
        (WTF::hashTableStatsMutex):
        (WTF::HashTableStats::~HashTableStats):
        (WTF::HashTableStats::recordCollisionAtCount):
        Guarded variable access with a mutex.

        * wtf/HashTable.h:
        (WTF::::lookup):
        (WTF::::lookupForWriting):
        (WTF::::fullLookupForWriting):
        (WTF::::add):
        (WTF::::reinsert):
        (WTF::::remove):
        (WTF::::rehash):
        Changed increments of static variables to use atomicIncrement.

        (WTF::::invalidateIterators):
        (WTF::addIterator):
        (WTF::removeIterator):
        Guarded mutable access with a mutex.

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

12 years ago2008-12-01 Tor Arne Vestbø <tavestbo@trolltech.com>
vestbo@webkit.org [Mon, 1 Dec 2008 09:25:48 +0000 (09:25 +0000)]
2008-12-01  Tor Arne Vestbø  <tavestbo@trolltech.com>

        Reviewed by Simon Hausmann.

        [Qt/Mac] Initialize NPAPI plugins before getting their entry points

        The old behavior (calling NP_GetEntryPoints before NP_Initialize) was
        copied from Windows, but caused Silverlight on Mac to crash when loaded.

        Apparently the call order of NP_Initialize and NP_GetEntryPoints is
        reversed on Mac. See https://bugzilla.mozilla.org/show_bug.cgi?id=344425

Reported-by: Peter Johnson <peter@zattoo.com>
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@38858 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago2008-11-29 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Mon, 1 Dec 2008 09:18:36 +0000 (09:18 +0000)]
2008-11-29  Gavin Barraclough  <barraclough@apple.com>

        Reviewed by Camron Zwarich.

        Enable WREC on PLATFORM(X86_64).  This change predominantly requires changes to the
        WREC::Generator::generateEnter method to support the x86-64 ABI, and addition of
        support for a limited number of quadword operations in the X86Assembler.

        This patch will cause the JS heap to be allocated with RWX permissions on 64-bit Mac
        platforms.  This is a regression with respect to previous 64-bit behaviour, but is no
        more permissive than on 32-bit builds.  This issue should be addressed at some point.
        (This is tracked by bug #21783.)

        https://bugs.webkit.org/show_bug.cgi?id=22554
        Greater than 4x speedup on regexp-dna, on x86-64.

        * assembler/MacroAssembler.h:
        (JSC::MacroAssembler::addPtr):
        (JSC::MacroAssembler::loadPtr):
        (JSC::MacroAssembler::storePtr):
        (JSC::MacroAssembler::pop):
        (JSC::MacroAssembler::push):
        (JSC::MacroAssembler::move):
        * assembler/X86Assembler.h:
        (JSC::X86Assembler::):
        (JSC::X86Assembler::movq_rr):
        (JSC::X86Assembler::addl_i8m):
        (JSC::X86Assembler::addl_i32r):
        (JSC::X86Assembler::addq_i8r):
        (JSC::X86Assembler::addq_i32r):
        (JSC::X86Assembler::movq_mr):
        (JSC::X86Assembler::movq_rm):
        * wrec/WREC.h:
        * wrec/WRECGenerator.cpp:
        (JSC::WREC::Generator::generateEnter):
        (JSC::WREC::Generator::generateReturnSuccess):
        (JSC::WREC::Generator::generateReturnFailure):
        * wtf/Platform.h:
        * wtf/TCSystemAlloc.cpp:

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

12 years ago2008-12-01 Cameron Zwarich <zwarich@apple.com>
cwzwarich@webkit.org [Mon, 1 Dec 2008 09:07:07 +0000 (09:07 +0000)]
2008-12-01  Cameron Zwarich  <zwarich@apple.com>

        Reviewed by Sam Weinig.

        Preliminary work for bug 20340: SegmentedVector segment allocations can lead to unsafe use of temporary registers
        <https://bugs.webkit.org/show_bug.cgi?id=20340>

        SegmentedVector currently frees segments and reallocates them when used
        as a stack. This can lead to unsafe use of pointers into freed segments.

        In order to fix this problem, SegmentedVector will be changed to only
        grow and never shrink, with the sole exception of clearing all of its
        data, a capability that is required by Lexer. This patch changes the
        public interface to only allow for these capabilities.

        * bytecompiler/BytecodeGenerator.cpp:
        (JSC::BytecodeGenerator::BytecodeGenerator): Use reserveCapacity()
        instead of resize() for m_globals and m_parameters.
        * bytecompiler/SegmentedVector.h:
        (JSC::SegmentedVector::resize): Removed.
        (JSC::SegmentedVector::reserveCapacity): Added.
        (JSC::SegmentedVector::clear): Added.
        (JSC::SegmentedVector::shrink): Removed.
        (JSC::SegmentedVector::grow): Removed.
        * parser/Lexer.cpp:
        (JSC::Lexer::clear): Use clear() instead of resize(0).

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

12 years agoBug 22510: Crash at WebCore::AccessibilityRenderObject::activeDescendant() on Google...
cfleizach@apple.com [Mon, 1 Dec 2008 05:35:44 +0000 (05:35 +0000)]
Bug 22510: Crash at WebCore::AccessibilityRenderObject::activeDescendant() on Google Reader with ARIA
https://bugs.webkit.org/show_bug.cgi?id=22510

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

12 years ago2008-11-30 Sam Weinig <sam@webkit.org>
weinig@apple.com [Sun, 30 Nov 2008 22:28:56 +0000 (22:28 +0000)]
2008-11-30  Sam Weinig  <sam@webkit.org>

        Reviewed by Mark Rowe.

        Renames jumps to m_jumps in JumpList.

        * assembler/MacroAssembler.h:
        (JSC::MacroAssembler::JumpList::link):
        (JSC::MacroAssembler::JumpList::linkTo):
        (JSC::MacroAssembler::JumpList::append):

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

12 years agoJavaScriptCore:
antti@apple.com [Sun, 30 Nov 2008 22:19:42 +0000 (22:19 +0000)]
JavaScriptCore:

2008-11-30  Antti Koivisto  <antti@apple.com>

        Reviewed by Mark Rowe.

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

        Report free size in central and thread caches too.

        * wtf/FastMalloc.cpp:
        (WTF::TCMallocStats::fastMallocStatistics):
        * wtf/FastMalloc.h:

WebKit/mac:

2008-11-30  Antti Koivisto  <antti@apple.com>

        Reviewed by Mark Rowe.

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

        Report free size in central and thread caches too.

        * Misc/WebCoreStatistics.mm:
        (+[WebCoreStatistics memoryStatistics]):

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

12 years ago2008-11-30 Antti Koivisto <antti@apple.com>
antti@apple.com [Sun, 30 Nov 2008 20:09:08 +0000 (20:09 +0000)]
2008-11-30  Antti Koivisto  <antti@apple.com>

        Another Windows build fix.

        * WebCoreStatistics.cpp:
        (WebCoreStatistics::javaScriptObjectsCount):

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

12 years ago2008-11-30 Antti Koivisto <antti@apple.com>
antti@apple.com [Sun, 30 Nov 2008 20:07:07 +0000 (20:07 +0000)]
2008-11-30  Antti Koivisto  <antti@apple.com>

        Windows build fix.

        * WebJavaScriptCollector.cpp:
        (WebJavaScriptCollector::objectCount):

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

12 years ago Reviewed by Dan Bernstein.
ap@webkit.org [Sun, 30 Nov 2008 08:31:11 +0000 (08:31 +0000)]
    Reviewed by Dan Bernstein.

        https://bugs.webkit.org/show_bug.cgi?id=22530
        Assertion failures seen on buildbot due to uninitialized WorkerThread::m_threadID

        * dom/WorkerThread.cpp:
        (WebCore::WorkerThread::start): Protect worker startup with a mutex to ensure that this
        function runs to completion before the thread begins execution.
        (WebCore::WorkerThread::workerThread): Updated comments.
        (WebCore::WorkerThread::stop): Ditto.
        * dom/WorkerThread.h: Renamed m_workerContextMutex to m_threadCreationMutex, because it now
        protects startup as a whole.

        * storage/DatabaseThread.cpp:
        * storage/DatabaseThread.h:
        * storage/LocalStorageThread.cpp:
        * storage/LocalStorageThread.h:
        Fixed the same m_threadID problem.

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

12 years agoJavaScriptCore:
antti@apple.com [Sun, 30 Nov 2008 07:09:50 +0000 (07:09 +0000)]
JavaScriptCore:

2008-11-29  Antti Koivisto  <antti@apple.com>

        Reviewed by Dan Bernstein.

        https://bugs.webkit.org/show_bug.cgi?id=22557
        Add statistics for JavaScript GC heap.

        * JavaScriptCore.exp:
        * runtime/Collector.cpp:
        (JSC::Heap::objectCount):
        (JSC::addToStatistics):
        (JSC::Heap::statistics):
        * runtime/Collector.h:

WebKit/mac:

2008-11-29  Antti Koivisto  <antti@apple.com>

        Reviewed by Dan Bernstein.

        https://bugs.webkit.org/show_bug.cgi?id=22557
        Add statistics for JavaScript GC heap.

        * Misc/WebCoreStatistics.mm:
        (+[WebCoreStatistics javaScriptObjectsCount]):
        (+[WebCoreStatistics memoryStatistics]):

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

12 years ago2008-11-29 Antti Koivisto <antti@apple.com>
antti@apple.com [Sun, 30 Nov 2008 00:39:57 +0000 (00:39 +0000)]
2008-11-29  Antti Koivisto  <antti@apple.com>

        Fix debug build by adding a stub method.

        * wtf/FastMalloc.cpp:
        (WTF::fastMallocStatistics):

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

12 years agoWebCore:
pewtermoose@webkit.org [Sat, 29 Nov 2008 23:44:49 +0000 (23:44 +0000)]
WebCore:

2008-11-29  Brent Fulgham  <bfulgham@gmail.com>

        Reviewed by Alexey Proskuryakov.

        Remove Visual Studio project dependencies on non-redistributable
        components in the Debug_Cairo and Release_Cairo build targets.
        See https://bugs.webkit.org/show_bug.cgi?id=22527

        * WebCore.vcproj/WebCore.vcproj:

WebKit/win:

2008-11-29  Brent Fulgham  <bfulgham@gmail.com>

        Reviewed by Alexey Proskuryakov.

        Remove Visual Studio project dependencies on non-redistributable
        components in the Debug_Cairo and Release_Cairo build targets.
        See https://bugs.webkit.org/show_bug.cgi?id=22527

        * WebKit.vcproj/WebKit.vcproj:
        * WebKit.vcproj/WebKit.sln: Instruct Cairo builds to not bother
          building the unused QuickTime support library.

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

12 years ago2008-11-29 Sam Weinig <sam@webkit.org>
weinig@apple.com [Sat, 29 Nov 2008 22:35:04 +0000 (22:35 +0000)]
2008-11-29  Sam Weinig  <sam@webkit.org>

        Rubber-stamped by Alexey Proskuryakov.

        Fix some sorting

        * WebCore.xcodeproj/project.pbxproj:

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

12 years agoWebCore:
weinig@apple.com [Sat, 29 Nov 2008 22:33:49 +0000 (22:33 +0000)]
WebCore:

2008-11-28  Sam Weinig  <sam@webkit.org>

        Reviewed by Alexey Proskuryakov.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=21063
        NULL pointer crash in dispatchEvent(null);

        Test: fast/events/dispatchEvent-crash.html

        * dom/MessagePort.cpp:
        (WebCore::MessagePort::dispatchEvent):
        * dom/Worker.cpp:
        (WebCore::Worker::dispatchEvent):
        * dom/WorkerContext.cpp:
        (WebCore::WorkerContext::dispatchEvent):
        * loader/appcache/DOMApplicationCache.cpp:
        (WebCore::DOMApplicationCache::dispatchEvent):
        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::dispatchEvent):
        * xml/XMLHttpRequestUpload.cpp:
        (WebCore::XMLHttpRequestUpload::dispatchEvent):

LayoutTests:

2008-11-28  Sam Weinig  <sam@webkit.org>

        Reviewed by Alexey Proskuryakov.

        Test for https://bugs.webkit.org/show_bug.cgi?id=21063
        NULL pointer crash in dispatchEvent(null);

        * fast/events/dispatchEvent-crash-expected.txt: Added.
        * fast/events/dispatchEvent-crash.html: Added.

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

12 years agoJavaScriptCore:
antti@apple.com [Sat, 29 Nov 2008 22:10:16 +0000 (22:10 +0000)]
JavaScriptCore:

2008-11-29  Antti Koivisto  <antti@apple.com>

        Reviewed by Alexey Proskuryakov.

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

        Add function for getting basic statistics from FastMalloc.

        * JavaScriptCore.exp:
        * wtf/FastMalloc.cpp:
        (WTF::DLL_Length):
        (WTF::TCMalloc_PageHeap::ReturnedBytes):
        (WTF::TCMallocStats::fastMallocStatistics):
        * wtf/FastMalloc.h:

WebKit/mac:

2008-11-29  Antti Koivisto  <antti@apple.com>

        Reviewed by Alexey Proskuryakov.

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

        - Add purgeable memory statistics to cache statistics.
        - Add method for getting fastMalloc statistics.
        - Add method to force returning free memory back to system.

        * Misc/WebCache.mm:
        (+[WebCache statistics]):
        * Misc/WebCoreStatistics.h:
        * Misc/WebCoreStatistics.mm:
        (+[WebCoreStatistics stopIgnoringWebCoreNodeLeaks]):
        (+[WebCoreStatistics memoryStatistics]):
        (+[WebCoreStatistics returnFreeMemoryToSystem]):

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

12 years agoWebCore:
mitz@apple.com [Sat, 29 Nov 2008 21:40:23 +0000 (21:40 +0000)]
WebCore:

        Reviewed by Alexey Proskuryakov.

        - fix https://bugs.webkit.org/show_bug.cgi?id=22454
          <rdar://problem/6405550> REGRESSION (3.2-TOT): Crash below FontFallbackList::fontDataAt on jacobian.org

        Test: http/tests/misc/font-face-in-multiple-segmented-faces.html

        The crash happened because style recalculation was invoked by
        CSSFontSelector after one CSSSegmentedFontFace had pruned its tables but
        before another CSSSegmentedFontFace using the same CSSFontFace had done
        so. The fix is to let all CSSSegmentedFontFaces using the CSSFontFace
        prune their tables before telling the CSSFontSelector to recalc style.

        * css/CSSFontFace.cpp:
        (WebCore::CSSFontFace::fontLoaded):
        * css/CSSFontSelector.cpp:
        (WebCore::CSSFontSelector::fontLoaded):
        * css/CSSFontSelector.h:
        * css/CSSSegmentedFontFace.cpp:
        (WebCore::CSSSegmentedFontFace::fontLoaded):

LayoutTests:

        Reviewed by Alexey Proskuryakov.

        - test for https://bugs.webkit.org/show_bug.cgi?id=22454
          <rdar://problem/6405550> REGRESSION (3.2-TOT): Crash below FontFallbackList::fontDataAt on jacobian.org

        * http/tests/misc/font-face-in-multiple-segmented-faces-expected.txt: Added.
        * http/tests/misc/font-face-in-multiple-segmented-faces.html: Added.

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

12 years ago Reviewed by Eric Seidel.
ap@webkit.org [Sat, 29 Nov 2008 18:29:10 +0000 (18:29 +0000)]
    Reviewed by Eric Seidel.

        https://bugs.webkit.org/show_bug.cgi?id=14968
        document.open() erroneously returns void instead of the new Document

        Test: fast/dom/HTMLDocument/document-open-return-value.html

        * bindings/js/JSHTMLDocumentCustom.cpp: (WebCore::JSHTMLDocument::open):
        Return the document on which this method was invoked, per HTML5.

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

12 years ago2008-11-29 Christian Dywan <christian@twotoasts.de>
christian@webkit.org [Sat, 29 Nov 2008 12:14:27 +0000 (12:14 +0000)]
2008-11-29  Christian Dywan  <christian@twotoasts.de>

        Reviewed by Holger Freyther.

        http://bugs.webkit.org/show_bug.cgi?id=17122
        [GTK] Bad font default settings

        Implement a property "enforce-96-dpi" in WebKitWebSettings
        that can be enabled to force the view to assume 96 DPI.

        * webkit/webkitwebsettings.cpp:
        (_WebKitWebSettingsPrivate::):
        (_WebKitWebSettingsPrivate::webkit_web_settings_class_init):
        (_WebKitWebSettingsPrivate::webkit_web_settings_set_property):
        (_WebKitWebSettingsPrivate::webkit_web_settings_get_property):
        * webkit/webkitwebview.cpp:

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

12 years ago2008-11-29 Cameron Zwarich <zwarich@apple.com>
cwzwarich@webkit.org [Sat, 29 Nov 2008 12:07:29 +0000 (12:07 +0000)]
2008-11-29  Cameron Zwarich  <zwarich@apple.com>

        Not reviewed.

        The C++ standard does not automatically grant the friendships of an
        enclosing class to its nested subclasses, so we should do so explicitly.
        This fixes the GCC 4.0 build, although both GCC 4.2 and Visual C++ 2005
        accept the incorrect code as it is.

        * assembler/MacroAssembler.h:

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

12 years ago2008-11-29 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Sat, 29 Nov 2008 11:10:35 +0000 (11:10 +0000)]
2008-11-29  Gavin Barraclough  <barraclough@apple.com>

        Reviewed by Camron Zwarich.

        Add the class MacroAssembler to provide some abstraction of code generation,
        and change WREC to make use of this class, rather than directly accessing
        the X86Assembler.

        This patch also allows WREC to be compiled without the rest of the JIT enabled.

        * JavaScriptCore.xcodeproj/project.pbxproj:
        * assembler/MacroAssembler.h: Added.
        (JSC::MacroAssembler::):
        (JSC::MacroAssembler::MacroAssembler):
        (JSC::MacroAssembler::copyCode):
        (JSC::MacroAssembler::Address::Address):
        (JSC::MacroAssembler::ImplicitAddress::ImplicitAddress):
        (JSC::MacroAssembler::BaseIndex::BaseIndex):
        (JSC::MacroAssembler::Label::Label):
        (JSC::MacroAssembler::Jump::Jump):
        (JSC::MacroAssembler::Jump::link):
        (JSC::MacroAssembler::Jump::linkTo):
        (JSC::MacroAssembler::JumpList::link):
        (JSC::MacroAssembler::JumpList::linkTo):
        (JSC::MacroAssembler::JumpList::append):
        (JSC::MacroAssembler::Imm32::Imm32):
        (JSC::MacroAssembler::add32):
        (JSC::MacroAssembler::or32):
        (JSC::MacroAssembler::sub32):
        (JSC::MacroAssembler::loadPtr):
        (JSC::MacroAssembler::load32):
        (JSC::MacroAssembler::load16):
        (JSC::MacroAssembler::storePtr):
        (JSC::MacroAssembler::store32):
        (JSC::MacroAssembler::pop):
        (JSC::MacroAssembler::push):
        (JSC::MacroAssembler::peek):
        (JSC::MacroAssembler::poke):
        (JSC::MacroAssembler::move):
        (JSC::MacroAssembler::compareImm32ForBranch):
        (JSC::MacroAssembler::compareImm32ForBranchEquality):
        (JSC::MacroAssembler::jae32):
        (JSC::MacroAssembler::je32):
        (JSC::MacroAssembler::je16):
        (JSC::MacroAssembler::jg32):
        (JSC::MacroAssembler::jge32):
        (JSC::MacroAssembler::jl32):
        (JSC::MacroAssembler::jle32):
        (JSC::MacroAssembler::jne32):
        (JSC::MacroAssembler::jump):
        (JSC::MacroAssembler::breakpoint):
        (JSC::MacroAssembler::ret):
        * assembler/X86Assembler.h:
        (JSC::X86Assembler::cmpw_rm):
        * interpreter/Interpreter.cpp:
        (JSC::Interpreter::Interpreter):
        * interpreter/Interpreter.h:
        (JSC::Interpreter::assemblerBuffer):
        * runtime/RegExp.cpp:
        (JSC::RegExp::RegExp):
        * wrec/WREC.cpp:
        (JSC::WREC::Generator::compileRegExp):
        * wrec/WREC.h:
        * wrec/WRECFunctors.cpp:
        (JSC::WREC::GeneratePatternCharacterFunctor::generateAtom):
        (JSC::WREC::GenerateCharacterClassFunctor::generateAtom):
        (JSC::WREC::GenerateBackreferenceFunctor::generateAtom):
        (JSC::WREC::GenerateParenthesesNonGreedyFunctor::generateAtom):
        * wrec/WRECFunctors.h:
        (JSC::WREC::GenerateParenthesesNonGreedyFunctor::GenerateParenthesesNonGreedyFunctor):
        * wrec/WRECGenerator.cpp:
        (JSC::WREC::Generator::generateEnter):
        (JSC::WREC::Generator::generateReturnSuccess):
        (JSC::WREC::Generator::generateSaveIndex):
        (JSC::WREC::Generator::generateIncrementIndex):
        (JSC::WREC::Generator::generateLoadCharacter):
        (JSC::WREC::Generator::generateJumpIfEndOfInput):
        (JSC::WREC::Generator::generateJumpIfNotEndOfInput):
        (JSC::WREC::Generator::generateReturnFailure):
        (JSC::WREC::Generator::generateBacktrack1):
        (JSC::WREC::Generator::generateBacktrackBackreference):
        (JSC::WREC::Generator::generateBackreferenceQuantifier):
        (JSC::WREC::Generator::generateNonGreedyQuantifier):
        (JSC::WREC::Generator::generateGreedyQuantifier):
        (JSC::WREC::Generator::generatePatternCharacter):
        (JSC::WREC::Generator::generateCharacterClassInvertedRange):
        (JSC::WREC::Generator::generateCharacterClassInverted):
        (JSC::WREC::Generator::generateCharacterClass):
        (JSC::WREC::Generator::generateParentheses):
        (JSC::WREC::Generator::generateParenthesesNonGreedy):
        (JSC::WREC::Generator::generateParenthesesResetTrampoline):
        (JSC::WREC::Generator::generateAssertionBOL):
        (JSC::WREC::Generator::generateAssertionEOL):
        (JSC::WREC::Generator::generateAssertionWordBoundary):
        (JSC::WREC::Generator::generateBackreference):
        (JSC::WREC::Generator::terminateAlternative):
        (JSC::WREC::Generator::terminateDisjunction):
        * wrec/WRECGenerator.h:
        (JSC::WREC::Generator::Generator):
        * wrec/WRECParser.cpp:
        (JSC::WREC::Parser::parsePatternCharacterQualifier):
        (JSC::WREC::Parser::parseCharacterClassQuantifier):
        (JSC::WREC::Parser::parseBackreferenceQuantifier):
        (JSC::WREC::Parser::parseParentheses):
        (JSC::WREC::Parser::parseCharacterClass):
        (JSC::WREC::Parser::parseOctalEscape):
        (JSC::WREC::Parser::parseEscape):
        (JSC::WREC::Parser::parseTerm):
        (JSC::WREC::Parser::parseDisjunction):
        * wrec/WRECParser.h:
        (JSC::WREC::Parser::Parser):
        (JSC::WREC::Parser::parsePattern):
        (JSC::WREC::Parser::parseAlternative):
        * wtf/Platform.h:

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

12 years agoReviewed by Cameron Zwarich.
zimmermann@webkit.org [Sat, 29 Nov 2008 04:00:20 +0000 (04:00 +0000)]
Reviewed by Cameron Zwarich.

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

Add <timer> element support. It provides a way to execute a task with a delay.
The user is notified by firing the task associated with the <card>'s ontimer attribute.
Only one timer element is allowed per <card> (fix wrong error message in reportWMLError)

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

12 years agoReviewed by Holger Freyther.
zimmermann@webkit.org [Sat, 29 Nov 2008 02:52:04 +0000 (02:52 +0000)]
Reviewed by Holger Freyther.

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

Add <do> element support. It provides a way to bind a task element to a <template>/<card> element.
Changes numerous of layout tests which contain <do> elements, as they render as buttons now.

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

12 years ago2008-11-28 Holger Hans Peter Freyther <zecke@selfish.org>
zecke@webkit.org [Sat, 29 Nov 2008 01:23:48 +0000 (01:23 +0000)]
2008-11-28  Holger Hans Peter Freyther  <zecke@selfish.org>

        Reviewed by Nikolas Zimmermann.

        Simplify the code. There is no reason to have code like
        if (true) return false; which is using temporary variables.

        * webkit/webkitwebview.cpp:

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

12 years ago2008-11-28 Holger Hans Peter Freyther <zecke@selfish.org>
zecke@webkit.org [Sat, 29 Nov 2008 01:23:09 +0000 (01:23 +0000)]
2008-11-28  Holger Hans Peter Freyther  <zecke@selfish.org>

        Reviewed by Nikolas Zimmermann.

        Remove bogus null checks. The WebKitWebView own's a WebCore::Page
        which is owning a WebCore::ChromeClient. There is no way that a
        WebCore::ChromeClient is still around when the WebKitWebView is gone.

        m_webView can only be null when a ChromeClient gets constructed with
        a null WebKitWebView which is not allowed.

        * WebCoreSupport/ChromeClientGtk.cpp:
        (WebKit::ChromeClient::ChromeClient):
        (WebKit::ChromeClient::windowRect):
        (WebKit::ChromeClient::setWindowRect):
        (WebKit::ChromeClient::pageRect):
        (WebKit::ChromeClient::focus):
        (WebKit::ChromeClient::unfocus):
        (WebKit::ChromeClient::show):
        (WebKit::ChromeClient::setToolbarsVisible):
        (WebKit::ChromeClient::toolbarsVisible):
        (WebKit::ChromeClient::setStatusbarVisible):
        (WebKit::ChromeClient::statusbarVisible):
        (WebKit::ChromeClient::setScrollbarsVisible):
        (WebKit::ChromeClient::setMenubarVisible):
        (WebKit::ChromeClient::menubarVisible):
        (WebKit::ChromeClient::canTakeFocus):
        (WebKit::ChromeClient::repaint):
        (WebKit::ChromeClient::scroll):
        (WebKit::ChromeClient::platformWindow):

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

12 years ago2008-11-28 Gustavo Noronha Silva <gns@gnome.org>
zecke@webkit.org [Sat, 29 Nov 2008 00:20:56 +0000 (00:20 +0000)]
2008-11-28  Gustavo Noronha Silva  <gns@gnome.org>

        Reviewed and slightly modified by Holger Freyther.

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

        ChromeClient::createWindow and friends need to be implemented

        Code from Gustavo Noronha and Marco Barisione
        <marco.barisione@collabora.co.uk> in this change set.

        Implemented all the ChromeClient interfaces needed to have new
        window creation functioning and exposed to client code. We
        implemented a mirror GObject to the WindowFeatures object provided
        by WebCore.

        * WebCoreSupport/ChromeClientGtk.cpp:
        (WebKit::ChromeClient::windowRect):
        (WebKit::ChromeClient::setWindowRect):
        (WebKit::ChromeClient::unfocus):
        (WebKit::ChromeClient::createWindow):
        (WebKit::ChromeClient::show):
        (WebKit::ChromeClient::setToolbarsVisible):
        (WebKit::ChromeClient::toolbarsVisible):
        (WebKit::ChromeClient::setStatusbarVisible):
        (WebKit::ChromeClient::statusbarVisible):
        (WebKit::ChromeClient::setScrollbarsVisible):
        (WebKit::ChromeClient::scrollbarsVisible):
        (WebKit::ChromeClient::setMenubarVisible):
        (WebKit::ChromeClient::menubarVisible):
        (WebKit::ChromeClient::setResizable):
        * WebCoreSupport/FrameLoaderClientGtk.cpp:
        (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
        (WebKit::FrameLoaderClient::dispatchShow):
        (WebKit::FrameLoaderClient::dispatchCreatePage):
        * webkit/webkit.h:
        * webkit/webkitdefines.h:
        * webkit/webkitprivate.h:
        * webkit/webkitwebview.cpp:
        * webkit/webkitwebview.h:
        * webkit/webkitwebwindowfeatures.cpp: Added.
        (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_class_init):
        (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_init):
        (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_finalize):
        (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_set_property):
        (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_get_property):
        (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_new):
        (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_new_from_core_features):
        (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_equal):
        * webkit/webkitwebwindowfeatures.h: Added.

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

12 years agoReviewed by Sam Weinig.
zimmermann@webkit.org [Fri, 28 Nov 2008 21:36:13 +0000 (21:36 +0000)]
Reviewed by Sam Weinig.

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

Add onenterforward/onenterbackward/ontimer support for <card> elements.

No testing possible at the moment because WMLGoElement is not yet implemented.
After that we can add tests covering the <card> event handling.

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

12 years ago2008-11-27 Laszlo Gombos <laszlo.1.gombos@nokia.com>
vestbo@webkit.org [Fri, 28 Nov 2008 18:14:02 +0000 (18:14 +0000)]
2008-11-27  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

       Reviewed by Tor Arne Vestbø.

       Regression seen on QtWebKit - causes a build failure on Win using MinGW

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

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

12 years ago2008-11-28 Simon Hausmann <hausmann@webkit.org>
hausmann@webkit.org [Fri, 28 Nov 2008 15:19:09 +0000 (15:19 +0000)]
2008-11-28  Simon Hausmann  <hausmann@webkit.org>

        Reviewed by Tor Arne Vestbø.

        Fix compilation on Windows CE

        Port away from the use of errno after calling strtol(), instead
        detect conversion errors by checking the result and the stop
        position.

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

12 years ago2008-11-28 Joerg Bornemann <joerg.bornemann@trolltech.com>
hausmann@webkit.org [Fri, 28 Nov 2008 15:19:01 +0000 (15:19 +0000)]
2008-11-28  Joerg Bornemann  <joerg.bornemann@trolltech.com>

        Reviewed by Simon Hausmann.

        Implement lowResUTCTime() on Windows CE using GetSystemTime as _ftime() is not available.

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

12 years ago2008-11-28 Simon Hausmann <hausmann@webkit.org>
hausmann@webkit.org [Fri, 28 Nov 2008 15:18:53 +0000 (15:18 +0000)]
2008-11-28  Simon Hausmann  <hausmann@webkit.org>

        Reviewed by Tor Arne Vestbø.

        Fix compilation and linking on Windows CE.

        Use WIN_OS instead of WIN and therefore exclude determineModuleVersionFromDescription()
        from the Windows'ish build.

        Link against the newly required mmtimer.

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

12 years ago2008-11-28 Simon Hausmann <hausmann@webkit.org>
hausmann@webkit.org [Fri, 28 Nov 2008 15:18:45 +0000 (15:18 +0000)]
2008-11-28  Simon Hausmann  <hausmann@webkit.org>

        Rubber-stamped by Tor Arne Vestbø.

        Removed unnecessary inclusion of errno.h, which also fixes compilation on Windows CE.

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

12 years ago2008-11-28 David Levin <levin@chromium.org>
ap@webkit.org [Fri, 28 Nov 2008 10:23:41 +0000 (10:23 +0000)]
2008-11-28  David Levin  <levin@chromium.org>

        Reviewed by Alexey Proskuryakov.

        http://bugs.webkit.org/show_bug.cgi?id=22524

        Made static initializations in XMLHttpRequest.cpp thread-safe in preparation for usage
        of XMLHttpRequest by Workers (on threads).

        No observable change in behavior, so no test.

        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequestStaticData::XMLHttpRequestStaticData):
        (WebCore::PreflightResultCacheItem::allowsCrossSiteMethod):
        (WebCore::PreflightResultCacheItem::allowsCrossSiteHeaders):
        (WebCore::PreflightResultCacheItem::allowsRequest):
        (WebCore::createXMLHttpRequestStaticData):
        (WebCore::initializeXMLHttpRequestStaticData):
        (WebCore::XMLHttpRequest::XMLHttpRequest):
        (WebCore::XMLHttpRequest::isSafeRequestHeader):
        (WebCore::XMLHttpRequest::isOnAccessControlResponseHeaderWhitelist):
        * xml/XMLHttpRequest.h:

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

12 years ago2008-11-27 Cameron Zwarich <zwarich@apple.com>
cwzwarich@webkit.org [Fri, 28 Nov 2008 05:03:46 +0000 (05:03 +0000)]
2008-11-27  Cameron Zwarich  <zwarich@apple.com>

        Not reviewed.

        r38825 made JSFunction::m_body private, but some inspector code in
        WebCore sets the field. Add setters for it, and update the inspector
        code to use the new getters and setters.

        JavaScriptCore:

        * runtime/JSFunction.h:
        (JSC::JSFunction::setBody):

        WebCore:

        * inspector/JavaScriptDebugServer.cpp:
        (WebCore::JavaScriptDebugServer::recompileAllJSFunctions):

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

12 years ago2008-11-27 Sam Weinig <sam@webkit.org>
weinig@apple.com [Fri, 28 Nov 2008 02:24:20 +0000 (02:24 +0000)]
2008-11-27  Sam Weinig  <sam@webkit.org>

        Reviewed by Cameron Zwarich.

        Fix FIXME by adding accessor for JSFunction's m_body property.

        * interpreter/Interpreter.cpp:
        (JSC::Interpreter::cti_op_call_JSFunction):
        (JSC::Interpreter::cti_vm_dontLazyLinkCall):
        (JSC::Interpreter::cti_vm_lazyLinkCall):
        * profiler/Profiler.cpp:
        (JSC::createCallIdentifierFromFunctionImp):
        * runtime/Arguments.h:
        (JSC::Arguments::getArgumentsData):
        (JSC::Arguments::Arguments):
        * runtime/FunctionPrototype.cpp:
        (JSC::functionProtoFuncToString):
        * runtime/JSFunction.h:
        (JSC::JSFunction::JSFunction):
        (JSC::JSFunction::body):

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

12 years ago2008-11-27 Julien Chaffraix <jchaffraix@webkit.org>
jchaffraix@webkit.org [Fri, 28 Nov 2008 01:43:51 +0000 (01:43 +0000)]
2008-11-27  Julien Chaffraix  <jchaffraix@webkit.org>

        Reviewed by Eric Seidel.

        Bug 22468: Coding style: config.h should only be included in implementation files, not in header
        https://bugs.webkit.org/show_bug.cgi?id=22468

        Clarified the rules about config.h inclusion and added 2 new examples to illustrate it. Also
        added an explanation about the implementation files.

        * coding/coding-style.html:

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

12 years ago2008-11-27 Sam Weinig <sam@webkit.org>
weinig@apple.com [Fri, 28 Nov 2008 01:26:18 +0000 (01:26 +0000)]
2008-11-27  Sam Weinig  <sam@webkit.org>

        Reviewed by Oliver Hunt.

        Remove unused member variables from ProgramNode.

        * parser/Nodes.h:

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

12 years ago2008-11-26 Brent Fulgham <bfulgham@gmail.com>
dsmith@webkit.org [Thu, 27 Nov 2008 23:30:56 +0000 (23:30 +0000)]
2008-11-26  Brent Fulgham  <bfulgham@gmail.com>

        Reviewed by Alexey Proskuryakov.

        Enable mouse panning feaure on Windows Cairo build.
        See http://bugs.webkit.org/show_bug.cgi?id=22525

        * wtf/Platform.h: Enable mouse panning feaure on Windows Cairo build.

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

12 years ago Reviewed by Dan Bernstein.
ap@webkit.org [Thu, 27 Nov 2008 18:03:06 +0000 (18:03 +0000)]
    Reviewed by Dan Bernstein.

        https://bugs.webkit.org/show_bug.cgi?id=22529
        Crashes seen on buildbots due to trying to stop a worker thread twice

        * dom/WorkerMessagingProxy.cpp: (WebCore::WorkerMessagingProxy::workerObjectDestroyed):
        Don't try to stop the thread if it's already stopping.

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

12 years agoWebCore:
hausmann@webkit.org [Thu, 27 Nov 2008 16:13:54 +0000 (16:13 +0000)]
WebCore:
    2008-11-27  Kent Hansen  <khansen@trolltech.com>

            Reviewed by Simon Hausmann.

            Make JavaScript bindings for Qt plugin widgets work again
            this was a regression; need to handle non-NPAPI plugins as in 4.4.

WebKit:
    2008-11-27  Kent Hansen  <khansen@trolltech.com>

            Reviewed by Simon Hausmann.

            Added auto tests for making JavaScript bindings for Qt plugin widgets
            work again.

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

12 years ago2008-11-27 Alp Toker <alp@nuanti.com>
alp@webkit.org [Thu, 27 Nov 2008 13:07:08 +0000 (13:07 +0000)]
2008-11-27  Alp Toker  <alp@nuanti.com>

        Change recently introduced C++ comments in Platform.h to C comments to
        fix the minidom build with traditional C.

        Build GtkLauncher and minidom with the '-ansi' compiler flag to detect
        API header breakage at build time.

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

12 years agoFixed ChangeLog dates.
ddkilzer@apple.com [Thu, 27 Nov 2008 12:21:28 +0000 (12:21 +0000)]
Fixed ChangeLog dates.

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

12 years ago2008-11-27 Alp Toker <alp@nuanti.com>
alp@webkit.org [Thu, 27 Nov 2008 12:14:09 +0000 (12:14 +0000)]
2008-11-27  Alp Toker  <alp@nuanti.com>

        Remove C++ comment from JavaScriptCore API headers (introduced r35449).
        Fixes build for ANSI C applications using the public API.

        * API/WebKitAvailability.h:

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

12 years agoReviewed by George Staikos.
zimmermann@webkit.org [Thu, 27 Nov 2008 05:07:45 +0000 (05:07 +0000)]
Reviewed by George Staikos.

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

Catch WML errors (invalid variable name/reference, multiple access elements, etc)
while parsing the document, and stop parsing immediately and wrap the document
fragment in a XHTML error document, just like it's done from XML parsing errors.

Until now all card elements were hidden by default (no renderer created), and
WMLDocument::finishedParsing() took care of showing the right card (either the first,
or any named card in the document, specified by document URL reference). Change this
behaviour to support displaying partially parsed WML document fragments: Mark the first
WMLCardElement inserted into the document as visible. If the document parsing finishes
without problems, WMLDocument::finishedParsing() will be called, which takes care of
showing the desired card (common case: first card in the document, which is already
visible, so nothing actually has to be done). If an error occours, the document is
correctly rendered until the error happened - wrapped in a XHTML document.

Fixes: fast/wml/err-event-binding-conflict.wml
       fast/wml/err-invalid-variable-name.wml
       fast/wml/err-multi-access.wml
       fast/wml/err-unallowed-task-in-anchor.wml

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

12 years agoNot reviewed. Forgot to include this layout test update in the last commit.
zimmermann@webkit.org [Thu, 27 Nov 2008 05:04:37 +0000 (05:04 +0000)]
Not reviewed. Forgot to include this layout test update in the last commit.

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

12 years agoFix the Tiger build.
mrowe@apple.com [Thu, 27 Nov 2008 03:47:12 +0000 (03:47 +0000)]
Fix the Tiger build.

mig.h does not always define __MigTypeCheck on Tiger, which leads to problems when the generated
code is built with -Wundef.

* Plugins/Hosted/WebKitPluginHostTypes.h:

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

12 years agoBuild fix. Fix up the references to files under WebKit/mac/Plugins/Hosted.
mrowe@apple.com [Thu, 27 Nov 2008 03:23:50 +0000 (03:23 +0000)]
Build fix.  Fix up the references to files under WebKit/mac/Plugins/Hosted.

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

12 years ago2008-11-26 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 27 Nov 2008 03:14:49 +0000 (03:14 +0000)]
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Fix build.

        * Configurations/Base.xcconfig:

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

12 years ago2008-11-26 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 27 Nov 2008 03:14:32 +0000 (03:14 +0000)]
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Mark Rowe.

        Move WebHostedNetscapePluginView.{h|mm} to Plugins/Hosted.

        (-[WebHostedNetscapePluginView handleMouseMoved:]):
        (-[WebHostedNetscapePluginView setAttributeKeys:andValues:]):
        Fix a leak.

        (-[WebHostedNetscapePluginView createPlugin]):
        Instantiate the plug-in, store the plug-in proxy in the _proxy ivar.

        (-[WebHostedNetscapePluginView loadStream]):
        (-[WebHostedNetscapePluginView shouldStop]):
        Add stubs for these.

        (-[WebHostedNetscapePluginView updateAndSetWindow]):
        (-[WebHostedNetscapePluginView windowFocusChanged:]):
        (-[WebHostedNetscapePluginView destroyPlugin]):
        (-[WebHostedNetscapePluginView startTimers]):
        (-[WebHostedNetscapePluginView stopTimers]):
        (-[WebHostedNetscapePluginView focusChanged]):
        (-[WebHostedNetscapePluginView windowFrameDidChange:]):
        (-[WebHostedNetscapePluginView mouseDown:]):
        (-[WebHostedNetscapePluginView mouseUp:]):
        (-[WebHostedNetscapePluginView mouseDragged:]):
        (-[WebHostedNetscapePluginView mouseEntered:]):
        (-[WebHostedNetscapePluginView mouseExited:]):
        Call the proxy.

        (-[WebHostedNetscapePluginView addWindowObservers]):
        (-[WebHostedNetscapePluginView removeWindowObservers]):
        Add/remove observers for when the window frame changes.

        * Plugins/WebHostedNetscapePluginView.h: Removed.
        * Plugins/WebHostedNetscapePluginView.mm: Removed.

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

12 years ago2008-11-26 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 27 Nov 2008 03:00:55 +0000 (03:00 +0000)]
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Mark Rowe.

        Add plug-in host related files to the Xcode project.

        * WebKit.xcodeproj/project.pbxproj:

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

12 years ago2008-11-26 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 27 Nov 2008 02:48:27 +0000 (02:48 +0000)]
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Mark Rowe.

        Add the plug-in host proxy and plug-in instance proxy objects.

        These are just simple objects that forward their calls to the plug-in host.

        * Plugins/Hosted/NetscapePluginHostProxy.h: Added.
        (WebKit::NetscapePluginHostProxy::create):
        (WebKit::NetscapePluginHostProxy::port):
        * Plugins/Hosted/NetscapePluginHostProxy.mm: Added.
        (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy):
        (WebKit::NetscapePluginHostProxy::instantiatePlugin):
        * Plugins/Hosted/NetscapePluginInstanceProxy.h: Added.
        (WebKit::NetscapePluginInstanceProxy::create):
        (WebKit::NetscapePluginInstanceProxy::renderContextID):
        (WebKit::NetscapePluginInstanceProxy::useSoftwareRenderer):
        * Plugins/Hosted/NetscapePluginInstanceProxy.mm: Added.
        (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy):
        (WebKit::NetscapePluginInstanceProxy::resize):
        (WebKit::NetscapePluginInstanceProxy::destroy):
        (WebKit::NetscapePluginInstanceProxy::focusChanged):
        (WebKit::NetscapePluginInstanceProxy::windowFocusChanged):
        (WebKit::NetscapePluginInstanceProxy::windowFrameChanged):
        (WebKit::NetscapePluginInstanceProxy::startTimers):
        (WebKit::NetscapePluginInstanceProxy::mouseEvent):
        (WebKit::NetscapePluginInstanceProxy::stopTimers):

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

12 years ago2008-11-26 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 27 Nov 2008 02:32:50 +0000 (02:32 +0000)]
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Dan Bernstein, Mark Rowe and Kevin Decker.

        Add the plug-in host manager singleton.

        * Plugins/Hosted/NetscapePluginHostManager.h: Added.
        * Plugins/Hosted/NetscapePluginHostManager.mm: Added.

        (WebKit::NetscapePluginHostManager::hostForPackage):
        If there's an existing host proxy available, just return it. Otherwise spawn a new plug-in host and
        create a new plug-in host proxy from the new plug-in host port.

        (WebKit::NetscapePluginHostManager::spawnPluginHost):
        Pass the plug-in host path and the preferred CPU type to the plug-in agent. When the plug-in host has
        finished launching, pass it the path to the plug-in bundle.

        (WebKit::NetscapePluginHostManager::initializeVendorPort):
        Check in with the plug-in agent and get the new plug-in vendor port back.

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

12 years agoRubber stamped by Mark Rowe.
zimmermann@webkit.org [Thu, 27 Nov 2008 02:26:47 +0000 (02:26 +0000)]
Rubber stamped by Mark Rowe.
Fix nine failing tests on the build bot. Update mac-tiger results.

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

12 years ago2008-11-10 Glenn Wilson <gwilson@chromium.org>
darin@chromium.org [Thu, 27 Nov 2008 01:45:57 +0000 (01:45 +0000)]
2008-11-10  Glenn Wilson  <gwilson@chromium.org>

        Reviewed by Dan Bernstein.

        Fixed bug http://bugs.webkit.org/show_bug.cgi?id=21953

        This fixes the crash when the small-caps font variant is used
        on a lower-case glyph that does not have a corresponding
        upper-case glyph defined in the set of available fonts.

        This changes Font.cpp to check if the font being used exists before trying to apply the small-caps variant.

        Test: fast/css/small-caps-crash.html

        * platform/graphics/Font.cpp:
        (WebCore::Font::glyphDataForCharacter):

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

12 years ago2008-10-31 Tony Chang <tony@chromium.org>
darin@chromium.org [Thu, 27 Nov 2008 01:31:56 +0000 (01:31 +0000)]
2008-10-31  Tony Chang  <tony@chromium.org>

        Reviewed by Oliver Hunt.

        Add a new platform specific method cleanupAfterSystemDrag
        that platforms can ue to clean up drag state after a
        system drag.  Use this method on PLAFORM(MAC).
        https://bugs.webkit.org/show_bug.cgi?id=21956

        * ChangeLog:
        * page/DragController.cpp:
        (WebCore::DragController::doSystemDrag):
        * page/DragController.h:
        * page/gtk/DragControllerGtk.cpp:
        (WebCore::DragController::cleanupAfterSystemDrag):
        * page/mac/DragControllerMac.mm:
        (WebCore::DragController::cleanupAfterSystemDrag):
        * page/qt/DragControllerQt.cpp:
        (WebCore::DragController::cleanupAfterSystemDrag):
        * page/win/DragControllerWin.cpp:
        (WebCore::DragController::cleanupAfterSystemDrag):
        * page/wx/DragControllerWx.cpp:
      (WebCore::DragController::cleanupAfterSystemDrag):

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

12 years ago2008-11-26 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 27 Nov 2008 01:25:37 +0000 (01:25 +0000)]
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Mark Rowe.

        * Plugins/Hosted/WebKitPluginHostTypes.h:
        Add copyright headers and fix the spacing around the *'s.

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

12 years ago2008-11-26 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 27 Nov 2008 01:23:23 +0000 (01:23 +0000)]
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Dan Bernstein.

        * Plugins/Hosted/WebKitPluginHost.defs:
        Add copyright headers.

        * Plugins/Hosted/WebKitPluginHostTypes.h: Added.
        Forgot to add this.

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

12 years ago2008-11-26 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 27 Nov 2008 01:20:17 +0000 (01:20 +0000)]
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Dan Bernstein.

        Add plug-in host .defs.

        * Plugins/Hosted/WebKitPluginAgent.defs: Added.
        * Plugins/Hosted/WebKitPluginAgentReply.defs: Added.
        * Plugins/Hosted/WebKitPluginClient.defs: Added.
        * Plugins/Hosted/WebKitPluginHost.defs: Added.
        * Plugins/Hosted/WebKitPluginHostTypes.defs: Added.

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

12 years agoAdded a folder for hosted plug-ins
mitz@apple.com [Thu, 27 Nov 2008 01:18:32 +0000 (01:18 +0000)]
Added a folder for hosted plug-ins

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

12 years ago Reviewed by Nikolas Zimmermann and Mark Rowe.
eric@webkit.org [Thu, 27 Nov 2008 01:07:08 +0000 (01:07 +0000)]
    Reviewed by Nikolas Zimmermann and Mark Rowe.

        Add support for build-webkit --chromium
        https://bugs.webkit.org/show_bug.cgi?id=22515
        More cleanups changing isCygwin calls to isAppleWinWebKit and deploying isAppleWebKit where necessary.

        * Scripts/build-dumprendertree:
        * Scripts/build-jsc:
        * Scripts/build-webkit:
        * Scripts/gdb-safari:
        * Scripts/run-webkit-tests:
        * Scripts/webkitdirs.pm:

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

12 years ago Reviewed by Nikolas Zimmermann.
eric@webkit.org [Thu, 27 Nov 2008 01:07:00 +0000 (01:07 +0000)]
    Reviewed by Nikolas Zimmermann.

        Add support for build-webkit --chromium (tested on mac)
        https://bugs.webkit.org/show_bug.cgi?id=22515
        Also simplified some code using checkArgv

        * Scripts/build-webkit:
        * Scripts/webkitdirs.pm:

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

12 years ago Reviewed by Nikolas Zimmermann.
eric@webkit.org [Thu, 27 Nov 2008 01:06:53 +0000 (01:06 +0000)]
    Reviewed by Nikolas Zimmermann.

        More pre-work for adding a build-webkit --chromium which works on Mac and Windows
        https://bugs.webkit.org/show_bug.cgi?id=22515
        Change a few calls to isCygwin to isAppleWinWebKit and a few calls to isAppleMacWebKit to isDarwin
        in preparation for having a chromium cygwin and chromium mac build

        * Scripts/build-webkit:
        * Scripts/webkitdirs.pm:

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

12 years ago Reviewed by Nikolas Zimmermann.
eric@webkit.org [Thu, 27 Nov 2008 01:06:46 +0000 (01:06 +0000)]
    Reviewed by Nikolas Zimmermann.

        Pre-work for getting build-webkit --chromium to work
        https://bugs.webkit.org/show_bug.cgi?id=22515
        Rename isOSX to isAppleMacWebKit to match what the code does, and add isChromium()

        * Scripts/build-dumprendertree:
        * Scripts/build-jsc:
        * Scripts/build-webkit:
        * Scripts/gdb-safari:
        * Scripts/run-javascriptcore-tests:
        * Scripts/run-webkit-tests:
        * Scripts/webkitdirs.pm:

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

12 years ago No review, build fix only.
eric@webkit.org [Thu, 27 Nov 2008 01:06:38 +0000 (01:06 +0000)]
    No review, build fix only.

        Fix the JSC Chromium Mac build by adding JavaScriptCore/icu into the include path

        * JavaScriptCore.scons:

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

12 years ago2008-11-26 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 27 Nov 2008 00:50:37 +0000 (00:50 +0000)]
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Mark Rowe and Kevin Decker.

        Minor plug-in changes.

        * Plugins/WebBaseNetscapePluginView.h:
        Add add/remove observer method declarations.

        * Plugins/WebBaseNetscapePluginView.mm:
        (-[WebBaseNetscapePluginView isFlipped]):
        Move this down from WebNetscapePluginView.

        * Plugins/WebNetscapePluginPackage.h:
        * Plugins/WebNetscapePluginPackage.m:
        (-[WebNetscapePluginPackage pluginHostArchitecture]):
        Getter for the plug-in host architecture.

        * Plugins/WebNetscapePluginView.mm:

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

12 years agoReviewed by Oliver Hunt.
zimmermann@webkit.org [Thu, 27 Nov 2008 00:44:19 +0000 (00:44 +0000)]
Reviewed by Oliver Hunt.

Fix path to string logic, correctly taking closed (sub-)paths into account.
Code was just broken on cg, observed by Dirk Schulze.

QPainterPath doesn't seem to expose any functionality to detect closed sub paths,
using the elementAt() function. There might be a workaround - Dirk will investigate.

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

12 years ago2008-11-26 Darin Fisher <darin@chromium.org>
darin@chromium.org [Thu, 27 Nov 2008 00:26:52 +0000 (00:26 +0000)]
2008-11-26  Darin Fisher  <darin@chromium.org>

        Reviewed by Eric Seidel.

        https://bugs.webkit.org/show_bug.cgi?id=22519
        Remove unnecessary include.

        * dom/XMLTokenizer.cpp:

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

12 years agoReviewed by Oliver Hunt.
zimmermann@webkit.org [Wed, 26 Nov 2008 23:40:39 +0000 (23:40 +0000)]
Reviewed by Oliver Hunt.
Add <noop> element support, completing the task element support.

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

12 years ago2008-11-26 Julien Chaffraix <jchaffraix@webkit.org>
jchaffraix@webkit.org [Wed, 26 Nov 2008 23:07:45 +0000 (23:07 +0000)]
2008-11-26  Julien Chaffraix  <jchaffraix@webkit.org>

        Reviewed by Eric Seidel.

        Bug 22441: Bridge the gap between the generated ElementFactory and HTMLElementFactory
        https://bugs.webkit.org/show_bug.cgi?id=22441

        Make more HTML elements' constructors take a QualifiedName.

        * editing/DeleteButtonController.cpp:
        (WebCore::DeleteButtonController::createDeletionUI):
        * html/HTMLBlockquoteElement.cpp:
        (WebCore::HTMLBlockquoteElement::HTMLBlockquoteElement):
        * html/HTMLBlockquoteElement.h:
        * html/HTMLButtonElement.cpp:
        (WebCore::HTMLButtonElement::HTMLButtonElement):
        * html/HTMLButtonElement.h:
        * html/HTMLDListElement.cpp:
        (WebCore::HTMLDListElement::HTMLDListElement):
        * html/HTMLDListElement.h:
        * html/HTMLDirectoryElement.cpp:
        (WebCore::HTMLDirectoryElement::HTMLDirectoryElement):
        * html/HTMLDirectoryElement.h:
        * html/HTMLDivElement.cpp:
        (WebCore::HTMLDivElement::HTMLDivElement):
        * html/HTMLDivElement.h:
        * html/HTMLElementFactory.cpp:
        (WebCore::styleConstructor):
        (WebCore::titleConstructor):
        (WebCore::frameConstructor):
        (WebCore::framesetConstructor):
        (WebCore::iframeConstructor):
        (WebCore::formConstructor):
        (WebCore::buttonConstructor):
        (WebCore::inputConstructor):
        (WebCore::isindexConstructor):
        (WebCore::fieldsetConstructor):
        (WebCore::keygenConstructor):
        (WebCore::labelConstructor):
        (WebCore::legendConstructor):
        (WebCore::optgroupConstructor):
        (WebCore::optionConstructor):
        (WebCore::selectConstructor):
        (WebCore::textareaConstructor):
        (WebCore::dlConstructor):
        (WebCore::ulConstructor):
        (WebCore::olConstructor):
        (WebCore::dirConstructor):
        (WebCore::menuConstructor):
        (WebCore::liConstructor):
        (WebCore::blockquoteConstructor):
        (WebCore::divConstructor):
        (WebCore::headingConstructor):
        * html/HTMLFieldSetElement.cpp:
        * html/HTMLFieldSetElement.cpp:
        (WebCore::HTMLFieldSetElement::HTMLFieldSetElement):
        * html/HTMLFieldSetElement.h:
        * html/HTMLFormElement.cpp:
        (WebCore::HTMLFormElement::HTMLFormElement):
        * html/HTMLFormElement.h:
        * html/HTMLFrameElement.cpp:
        (WebCore::HTMLFrameElement::HTMLFrameElement):
        * html/HTMLFrameElement.h:
        * html/HTMLFrameSetElement.cpp:
        (WebCore::HTMLFrameSetElement::HTMLFrameSetElement):
        * html/HTMLFrameSetElement.h:
        * html/HTMLIFrameElement.cpp:
        (WebCore::HTMLIFrameElement::HTMLIFrameElement):
        * html/HTMLIFrameElement.h:
        * html/HTMLInputElement.cpp:
        * html/HTMLInputElement.h:
        * html/HTMLIsIndexElement.cpp:
        (WebCore::HTMLIsIndexElement::HTMLIsIndexElement):
        * html/HTMLIsIndexElement.h:
        * html/HTMLKeygenElement.cpp:
        (WebCore::HTMLKeygenElement::HTMLKeygenElement):
        * html/HTMLKeygenElement.h:
        * html/HTMLLIElement.cpp:
        (WebCore::HTMLLIElement::HTMLLIElement):
        * html/HTMLLIElement.h:
        * html/HTMLLabelElement.cpp:
        (WebCore::HTMLLabelElement::HTMLLabelElement):
        * html/HTMLLabelElement.h:
        * html/HTMLLegendElement.cpp:
        (WebCore::HTMLLegendElement::HTMLLegendElement):
        * html/HTMLLegendElement.h:
        * html/HTMLMenuElement.cpp:
        (WebCore::HTMLMenuElement::HTMLMenuElement):
        * html/HTMLMenuElement.h:
        * html/HTMLOListElement.cpp:
        (WebCore::HTMLOListElement::HTMLOListElement):
        * html/HTMLOListElement.h:
        * html/HTMLOptGroupElement.cpp:
        (WebCore::HTMLOptGroupElement::HTMLOptGroupElement):
        * html/HTMLOptGroupElement.h:
        * html/HTMLOptionElement.cpp:
        (WebCore::HTMLOptionElement::HTMLOptionElement):
        * html/HTMLOptionElement.h:
        * html/HTMLParser.cpp:
        (WebCore::HTMLParser::formCreateErrorCheck):
        (WebCore::HTMLParser::handleIsindex):
        * html/HTMLSelectElement.cpp:
        * html/HTMLSelectElement.h:
        * html/HTMLStyleElement.cpp:
        (WebCore::HTMLStyleElement::HTMLStyleElement):
        * html/HTMLStyleElement.h:
        * html/HTMLTextAreaElement.cpp:
        (WebCore::HTMLTextAreaElement::HTMLTextAreaElement):
        * html/HTMLTextAreaElement.h:
        * html/HTMLTitleElement.cpp:
        (WebCore::HTMLTitleElement::HTMLTitleElement):
        * html/HTMLTitleElement.h:
        * html/HTMLUListElement.cpp:
        (WebCore::HTMLUListElement::HTMLUListElement):
        * html/HTMLUListElement.h:
        * html/HTMLViewSourceDocument.cpp:
        (WebCore::HTMLViewSourceDocument::createContainingTable):
        * rendering/MediaControlElements.cpp:
        (WebCore::MediaControlShadowRootElement::MediaControlShadowRootElement):
        (WebCore::MediaControlInputElement::MediaControlInputElement):
        * rendering/RenderFileUploadControl.cpp:
        (WebCore::HTMLFileUploadInnerButtonElement::HTMLFileUploadInnerButtonElement):
        * rendering/RenderMedia.cpp:
        (WebCore::RenderMedia::createPanel):
        (WebCore::RenderMedia::createTimeDisplay):
        * rendering/RenderSlider.cpp:
        (WebCore::HTMLSliderThumbElement::HTMLSliderThumbElement):
        * rendering/TextControlInnerElements.cpp:
        (WebCore::TextControlInnerElement::TextControlInnerElement):

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

12 years agoReviewed by Sam Weinig.
zimmermann@webkit.org [Wed, 26 Nov 2008 22:23:33 +0000 (22:23 +0000)]
Reviewed by Sam Weinig.
Fix obvious problem in WMLPageState constructor, m_page was not set to the passed Page pointer.

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

12 years ago2008-11-26 Matt Perry <mpcomplete@gmail.com>
darin@chromium.org [Wed, 26 Nov 2008 21:48:42 +0000 (21:48 +0000)]
2008-11-26  Matt Perry  <mpcomplete@gmail.com>

        Fix Qt bustage.

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

        * platform/qt/RenderThemeQt.cpp:
        (WebCore::RenderThemeQt::extraDefaultStyleSheet):

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

12 years ago2008-11-26 Matt Perry <mpcomplete@gmail.com>
darin@chromium.org [Wed, 26 Nov 2008 21:07:03 +0000 (21:07 +0000)]
2008-11-26  Matt Perry  <mpcomplete@gmail.com>

        Reviewed by Maciej Stachowiak.

        Fix https://bugs.webkit.org/show_bug.cgi?id=22051
        Renderthemes should be able to supply additional CSS rules to the core
        ones.

        * DerivedSources.make:
        * css/CSSStyleSelector.cpp:
        (WebCore::parseUASheet):
        (WebCore::loadFullDefaultStyle):
        (WebCore::loadSimpleDefaultStyle):
        * css/themeWin.css: Added.
        * css/themeWinQuirks.css: Added.
        * platform/qt/RenderThemeQt.cpp:
        (WebCore::RenderThemeQt::extraDefaultStyleSheet):
        * platform/qt/RenderThemeQt.h:
        * rendering/RenderTheme.cpp:
        * rendering/RenderTheme.h:
        (WebCore::RenderTheme::extraDefaultStyleSheet):
        (WebCore::RenderTheme::extraQuirksStyleSheet):
        * rendering/RenderThemeWin.cpp:
        (WebCore::RenderThemeWin::extraDefaultStyleSheet):
        (WebCore::RenderThemeWin::extraQuirksStyleSheet):
        * rendering/RenderThemeWin.h:

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

12 years ago Make CSSStyleSheet::addSubresourceURLStrings() iterative
ddkilzer@apple.com [Wed, 26 Nov 2008 19:44:05 +0000 (19:44 +0000)]
    Make CSSStyleSheet::addSubresourceURLStrings() iterative

        Part of the fix for Bug 11850: Webarchive fails to save images referenced in CSS
        <https://bugs.webkit.org/show_bug.cgi?id=11850>

        Reviewed by Brady Eidson.

        * css/CSSStyleSheet.cpp:
        (WebCore::CSSStyleSheet::addSubresourceURLStrings): Switch algorithm
        from recursive to iterative for gathering the list of all CSS
        stylesheets referenced in @import statements.

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

12 years ago Bug 22488: Make DRT smarter about charset encoding when post-processing webar...
ddkilzer@apple.com [Wed, 26 Nov 2008 19:38:08 +0000 (19:38 +0000)]
    Bug 22488: Make DRT smarter about charset encoding when post-processing webarchive content

        <https://bugs.webkit.org/show_bug.cgi?id=22488>

        Reviewed by Brady Eidson.

        * DumpRenderTree/mac/DumpRenderTree.mm:
        (convertWebResourceDataToString): If an IANA charset encoding string
        is provided, convert it to a CFStringEncoding value and then to an
        NSStringEncoding value, else fall back to NSUTF8StringEncoding.  We
        also nil-check dataAsString, so the worst-case scenario is that the
        data won't be decoded to a string (versus crashing DumpRenderTree).

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

12 years ago2008-11-26 Dirk Schulze <krit@webkit.org>
krit@webkit.org [Wed, 26 Nov 2008 15:07:30 +0000 (15:07 +0000)]
2008-11-26  Dirk Schulze  <krit@webkit.org>

        Reviewed by Simon Hausmann.

        Transformations to the context shouldn't transform the currentPath.
        Fixed this on Qt.

        [QT] GraphicsContext's currenPath can be transformed
        https://bugs.webkit.org/show_bug.cgi?id=22163

        * platform/graphics/GraphicsContextPrivate.h:
        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::GraphicsContext::restorePlatformState):
        (WebCore::GraphicsContext::fillPath):
        (WebCore::GraphicsContext::strokePath):
        (WebCore::GraphicsContext::fillRect):
        (WebCore::GraphicsContext::translate):
        (WebCore::GraphicsContext::rotate):
        (WebCore::GraphicsContext::scale):
        (WebCore::GraphicsContext::concatCTM):

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

12 years ago2008-11-26 Jan Michael Alonzo <jmalonzo@webkit.org>
jmalonzo@webkit.org [Wed, 26 Nov 2008 11:31:54 +0000 (11:31 +0000)]
2008-11-26  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Reviewed by Holger Freyther.

        [Gtk] add/remove tests from Skipped and fix netscape plugin test
        https://bugs.webkit.org/show_bug.cgi?id=22484

        Add tests that needs confirmation of new results. Also, remove
        some tests that are already passing.

        * platform/gtk/Skipped:

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