WebKit-https.git
10 years ago2010-07-01 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Thu, 1 Jul 2010 22:23:37 +0000 (22:23 +0000)]
2010-07-01  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Anders Carlsson.

        Get accelerated compositing working with webkit2
        https://bugs.webkit.org/show_bug.cgi?id=41084

        Add a new kind of DrawingArea, which is a LayerBackedDrawingArea, which will be used
        when the page goes into accelerated compositing mode. It is not wired up yet.

        * Shared/CoreIPCSupport/DrawingAreaProxyMessageKinds.h: New 'attach' and 'detach' messages
        related to accelerated compositing.

        * UIProcess/API/mac/WKView.mm:
        (-[WKView _startAcceleratedCompositing:]):
        (-[WKView _stopAcceleratedCompositing]):
        * UIProcess/API/mac/WKViewInternal.h:
        Add a subview of the WKView which has layer-backing enabled, and put the drawing area's
        layer inside of that.

        * UIProcess/ChunkedUpdateDrawingAreaProxy.h:
        (WebKit::ChunkedUpdateDrawingAreaProxy::attachCompositingContext):
        (WebKit::ChunkedUpdateDrawingAreaProxy::detachCompositingContext): These methods will never be called
        on the ChunkedUpdateDrawingArea. Stub them out.

        * UIProcess/DrawingAreaProxy.h:
        Add attachCompositingContext() and detachCompositingContext() methods, and a new drawing area
        type to the enum.

        * UIProcess/LayerBackedDrawingAreaProxy.cpp: Added.
        * UIProcess/LayerBackedDrawingAreaProxy.h: Added.
        * UIProcess/mac/LayerBackedDrawingAreaProxyMac.mm: Added.

        * WebKit2.xcodeproj/project.pbxproj: Add LayerBackedDrawingArea files.

        * WebProcess/WebPage/ChunkedUpdateDrawingArea.h: Add virtual methods stubs.

        * WebProcess/WebPage/DrawingArea.cpp:
        (WebKit::DrawingArea::create): Create a LayerBackedDrawingArea if asked.
        * WebProcess/WebPage/DrawingArea.h: New LayerBackedDrawingAreaType type, and new virtual
        methods related to accelerated compositing.

        * WebProcess/WebPage/LayerBackedDrawingArea.cpp: Added.
        * WebProcess/WebPage/LayerBackedDrawingArea.h: Added.
        * WebProcess/WebPage/mac/LayerBackedDrawingAreaMac.mm: Added.

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

10 years ago2010-07-01 Andy Estes <aestes@apple.com>
aestes@apple.com [Thu, 1 Jul 2010 22:17:03 +0000 (22:17 +0000)]
2010-07-01  Andy Estes  <aestes@apple.com>

        Reviewed by Darin Adler.

        <rdar://problem/8113003> Correctly fire beforeload events for images
        added to the DOM using .innerHTML.
        https://bugs.webkit.org/show_bug.cgi?id=40919

        Test: fast/dom/beforeload/image-before-load-innerHTML.html

        * html/LegacyHTMLDocumentParser.cpp:
        (WebCore::LegacyHTMLDocumentParser::write): Do not fire synchronous
        image beforeload events immediately after parsing a document fragment.
        Let the events fire later, giving the fragment time to potentially be
        inserted into the document.
2010-07-01  Andy Estes  <aestes@apple.com>

        Reviewed by Darin Adler.

        <rdar://problem/8113003> Test that beforeload fires correctly on images
        inserted into the DOM using .innerHTML.
        https://bugs.webkit.org/show_bug.cgi?id=40919

        * fast/dom/beforeload/image-before-load-innerHTML-expected.txt: Added.
        * fast/dom/beforeload/image-before-load-innerHTML.html: Added.

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

10 years agoImprove reentrancy logic in polymorphic cache stubs
oliver@apple.com [Thu, 1 Jul 2010 22:02:59 +0000 (22:02 +0000)]
Improve reentrancy logic in polymorphic cache stubs
<https://bugs.webkit.org/show_bug.cgi?id=41482>
<rdar://problem/8094380>

Reviewed by Geoff Garen.

JavaScriptCore:

Make the polymorphic cache stubs handle reentrancy
better.

* jit/JITStubs.cpp:
(JSC::DEFINE_STUB_FUNCTION):
(JSC::getPolymorphicAccessStructureListSlot):

LayoutTests:

Test cases for cache reentry in the cache code.

* fast/js/reentrant-caching-expected.txt: Added.
* fast/js/reentrant-caching.html: Added.
* fast/js/script-tests/reentrant-caching.js: Added.

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

10 years ago2010-07-01 Andreas Kling <andreas.kling@nokia.com>
commit-queue@webkit.org [Thu, 1 Jul 2010 21:56:47 +0000 (21:56 +0000)]
2010-07-01  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Tor Arne Vestbø.

        Canvas: bezierCurveTo() and quadraticCurveTo() must ensure subpaths
        https://bugs.webkit.org/show_bug.cgi?id=41192

        Unskipped two tests:
        - canvas/philip/tests/2d.path.bezierCurveTo.ensuresubpath.2.html
        - canvas/philip/tests/2d.path.quadraticCurveTo.ensuresubpath.2.html

        fast/canvas/canvas-modify-emptyPath.html was updated to expect the new behavior.

        Spec links:
        http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-beziercurveto
        http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-quadraticcurveto

        * canvas/philip/tests/2d.path.bezierCurveTo.ensuresubpath.2-expected.txt:
        * canvas/philip/tests/2d.path.quadraticCurveTo.ensuresubpath.2-expected.txt:
        * fast/canvas/canvas-modify-emptyPath-expected.txt:
        * fast/canvas/script-tests/canvas-modify-emptyPath.js:
        * platform/mac/Skipped:
        * platform/qt/Skipped:
2010-07-01  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Tor Arne Vestbø.

        Canvas: bezierCurveTo() and quadraticCurveTo() must ensure subpaths
        https://bugs.webkit.org/show_bug.cgi?id=41192

        If the current path is empty, bezierCurveTo() and quadraticCurveTo() will now
        move to the (first) control point before adding the curve.

        Spec links:
        http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-beziercurveto
        http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-quadraticcurveto

        * html/canvas/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::quadraticCurveTo):
        (WebCore::CanvasRenderingContext2D::bezierCurveTo):

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

10 years ago2010-07-01 Andreas Kling <andreas.kling@nokia.com>
commit-queue@webkit.org [Thu, 1 Jul 2010 21:44:33 +0000 (21:44 +0000)]
2010-07-01  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Darin Adler.

        Add test for checking that canvas elements can't have a negative width or height.
        https://bugs.webkit.org/show_bug.cgi?id=39149

        Unskipped 2 canvas/philip/ tests that now pass.

        Spec link:
        http://www.whatwg.org/specs/web-apps/current-work/#attr-canvas-width

        * canvas/philip/tests/size.attributes.parse.minus-expected.txt:
        * canvas/philip/tests/size.attributes.setAttribute.minus-expected.txt:
        * fast/canvas/canvas-negative-size-expected.txt: Added.
        * fast/canvas/canvas-negative-size.html: Added.
        * fast/canvas/script-tests/canvas-negative-size.js: Added.
        (createFromMarkup):
        (trySettingWidth):
        (trySettingHeight):
        (trySettingWidthAttribute):
        (trySettingHeightAttribute):
        (tryCreatingCanvasWithWidth):
        (tryCreatingCanvasWithHeight):
        (tryWidth):
        (tryHeight):
        (checkDefaultWidth):
        (checkDefaultHeight):
        * platform/mac/Skipped:
        * platform/qt/Skipped:
2010-07-01  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Darin Adler.

        Canvas element cannot have negative width or height (HTML5 spec 4.8.11)
        https://bugs.webkit.org/show_bug.cgi?id=39149

        If assigned a negative value, it should default to 300 for width and 150 for height.

        Spec link:
        http://www.whatwg.org/specs/web-apps/current-work/#attr-canvas-width

        Test: fast/canvas/canvas-negative-size.html

        * html/HTMLCanvasElement.cpp:
        (WebCore::HTMLCanvasElement::reset):

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

10 years ago[Qt] Make context menus show up in the right place in QTestBrowser
vestbo@webkit.org [Thu, 1 Jul 2010 21:02:55 +0000 (21:02 +0000)]
[Qt] Make context menus show up in the right place in QTestBrowser

Reviewed by Kenneth Rohde Christiansen.

Context menus were shown at scene-relative coordinates for
QGraphicsWebView while QMenu expects them to be global. The
change to the QWidget case was to get rid of the mapToGlobal.

* QtTestBrowser/webview.cpp:

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

10 years agoExport symbols on Linux with GCC, like JSC does.
tonikitoo@webkit.org [Thu, 1 Jul 2010 20:53:22 +0000 (20:53 +0000)]
Export symbols on Linux with GCC, like JSC does.

Rubberstamped by Sam Weinig.
Patch by Kenneth Christiansen <kenneth@webkit.org>

* UIProcess/API/C/WKBase.h:
* WebProcess/InjectedBundle/API/c/WKBundleBase.h:

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

10 years ago2010-07-01 Robert Hogan <robert@webkit.org>
robert@webkit.org [Thu, 1 Jul 2010 20:53:12 +0000 (20:53 +0000)]
2010-07-01  Robert Hogan <robert@webkit.org>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] dump frames in ascending alphabetical order of title

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

        Unskip:
        http/tests/navigation/metaredirect-frames.html
        http/tests/navigation/redirect302-frames.html
        http/tests/navigation/redirect302-subframeload.html
        http/tests/navigation/timerredirect-frames.html

        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
        (DumpRenderTreeSupportQt::getChildHistoryItems):
        * WebCoreSupport/DumpRenderTreeSupportQt.h:
        * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
        (WebCore::dumpHistoryItem):
        * platform/qt/Skipped:

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

10 years agoInitial WebKit2 implementation https://bugs.webkit.org/show_bug.cgi?id=40233
tonikitoo@webkit.org [Thu, 1 Jul 2010 20:44:53 +0000 (20:44 +0000)]
Initial WebKit2 implementation https://bugs.webkit.org/show_bug.cgi?id=40233

Reviewed by Antti Koivisto.
Patch by Kenneth Christiansen <kenneth@webkit.org>

Add implementation of the UI and loader client for Qt.

* UIProcess/API/qt/qwkpage.cpp:
* UIProcess/API/qt/ClientImpl.cpp: Added.
(toQWKPage):
(qt_wk_didStartProvisionalLoadForFrame):
(qt_wk_didReceiveServerRedirectForProvisionalLoadForFrame):
(qt_wk_didFailProvisionalLoadWithErrorForFrame):
(qt_wk_didCommitLoadForFrame):
(qt_wk_didFinishLoadForFrame):
(qt_wk_didFailLoadWithErrorForFrame):
(qt_wk_didReceiveTitleForFrame):
(qt_wk_didFirstLayoutForFrame):
(qt_wk_didFirstVisuallyNonEmptyLayoutForFrame):
(qt_wk_didStartProgress):
(qt_wk_didChangeProgress):
(qt_wk_didFinishProgress):
(qt_wk_didBecomeUnresponsive):
(qt_wk_didBecomeResponsive):
(qt_wk_createNewPage):
(qt_wk_showPage):
(qt_wk_close):
(qt_wk_runJavaScriptAlert):
* UIProcess/API/qt/ClientImpl.h: Added.

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

10 years agoUnreviewed more ChangeLog mess up fix caused by bad resolve-ChangeLogs merges.
tonikitoo@webkit.org [Thu, 1 Jul 2010 20:37:17 +0000 (20:37 +0000)]
Unreviewed more ChangeLog mess up fix caused by bad resolve-ChangeLogs merges.

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

10 years ago2010-07-01 Kinuko Yasuda <kinuko@chromium.org>
kinuko@chromium.org [Thu, 1 Jul 2010 20:21:51 +0000 (20:21 +0000)]
2010-07-01  Kinuko Yasuda  <kinuko@chromium.org>

        Unreviewed. Update chromium tests expectations for flaky tests.

        * platform/chromium/test_expectations.txt:

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

10 years agoUnreviewed ChangeLog mess up fix cause by bad resolve-ChangeLogs merges.
tonikitoo@webkit.org [Thu, 1 Jul 2010 20:13:09 +0000 (20:13 +0000)]
Unreviewed ChangeLog mess up fix cause by bad resolve-ChangeLogs merges.

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

10 years agoTurn on adoptRef assertion for TreeShared.
darin@apple.com [Thu, 1 Jul 2010 20:10:25 +0000 (20:10 +0000)]
Turn on adoptRef assertion for TreeShared.

Reviewed by Steve Falkenburg.

* platform/TreeShared.h: Remove LOOSE_TREE_SHARED and all the ifdefs.
Actually, I used LOOSE_REF_COUNTED by accident in a few places, but
removing them all now.

* rendering/ShadowElement.cpp:
(WebCore::ShadowBlockElement::create): Added adoptRef. This was a
storage leak before, probably recently introduced r61324.
(WebCore::ShadowInputElement::create): Ditto.

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

10 years ago2010-07-01 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 1 Jul 2010 20:04:18 +0000 (20:04 +0000)]
2010-07-01  Anders Carlsson  <andersca@apple.com>

        Reviewed by Dan Bernstein.

        Change the CoreIPC connection identifier to be a HANDLE on Windows
        https://bugs.webkit.org/show_bug.cgi?id=41479

        * Platform/CoreIPC/Connection.h:
        * Platform/CoreIPC/win/ConnectionWin.cpp:
        (CoreIPC::Connection::createServerAndClientIdentifiers):
        New function that creates a server and client HANDLE.

        (CoreIPC::Connection::platformInitialize):
        Don't open the connections here.

        (CoreIPC::Connection::readEventHandler):
        (CoreIPC::Connection::open):

        * UIProcess/Launcher/win/WebProcessLauncher.cpp:
        (WebKit::webThreadBody):
        Get the handle from the thread.

        (WebKit::launchWebProcess):
        Mark the client identifier as inheritable and pass it along to the web process.

        * WebProcess/win/WebProcessMain.cpp:
        (WebKit::CommandLine::CommandLine):
        (WebKit::CommandLine::parse):
        (WebKit::CommandLine::operator[]):
        Add simple command line parser.

        (WebKit::WebProcessMain):
        Get the handle identifier from the command line.

        * WebProcess/win/WebProcessMain.h:

* WebKit.pri:

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

10 years ago[Qt] Doc improvements for QDeclarativeWebView
hausmann@webkit.org [Thu, 1 Jul 2010 20:00:42 +0000 (20:00 +0000)]
[Qt] Doc improvements for QDeclarativeWebView

Patch by Bea Lam <bea.lam@nokia.com> on 2010-07-01
Reviewed by Simon Hausmann.

* declarative/qdeclarativewebview.cpp:

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

10 years ago2010-07-01 Kenneth Russell <kbr@google.com>
kbr@google.com [Thu, 1 Jul 2010 19:44:46 +0000 (19:44 +0000)]
2010-07-01  Kenneth Russell  <kbr@google.com>

        Reviewed by Dimitri Glazkov.

        Stop linking against opengl32.lib in Windows Chromium port
        https://bugs.webkit.org/show_bug.cgi?id=41424

        * WebKit.gyp:
        * src/WebGraphicsContext3DDefaultImpl.cpp:
        (WebKit::WebGraphicsContext3DDefaultImpl::~WebGraphicsContext3DDefaultImpl):
        (WebKit::WebGraphicsContext3DDefaultImpl::initialize):
        (WebKit::WebGraphicsContext3DDefaultImpl::makeContextCurrent):
        * src/WebGraphicsContext3DDefaultImpl.h:

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

10 years agoInitial WebKit2 implementation https://bugs.webkit.org/show_bug.cgi?id=40233
tonikitoo@webkit.org [Thu, 1 Jul 2010 19:44:22 +0000 (19:44 +0000)]
Initial WebKit2 implementation https://bugs.webkit.org/show_bug.cgi?id=40233

Reviewed by Antti Koivisto.
Patch by Kenneth Christiansen <kenneth@webkit.org>

Add initial Qt API for WebKit2

* UIProcess/API/qt/WKView.h: Added.
* UIProcess/API/qt/qgraphicswkview.cpp: Added.
(QGraphicsWKViewPrivate::pageRef):
(QGraphicsWKView::QGraphicsWKView):
(QGraphicsWKView::~QGraphicsWKView):
(QGraphicsWKView::page):
(QGraphicsWKView::paint):
(QGraphicsWKView::setGeometry):
(QGraphicsWKView::load):
(QGraphicsWKView::setUrl):
(QGraphicsWKView::url):
(QGraphicsWKView::title):
(QGraphicsWKView::triggerPageAction):
(QGraphicsWKView::back):
(QGraphicsWKView::forward):
(QGraphicsWKView::reload):
(QGraphicsWKView::stop):
(QGraphicsWKView::itemChange):
(QGraphicsWKView::event):
(QGraphicsWKView::sizeHint):
(QGraphicsWKView::inputMethodQuery):
(QGraphicsWKView::keyPressEvent):
(QGraphicsWKView::keyReleaseEvent):
(QGraphicsWKView::hoverMoveEvent):
(QGraphicsWKView::mouseMoveEvent):
(QGraphicsWKView::mousePressEvent):
(QGraphicsWKView::mouseReleaseEvent):
(QGraphicsWKView::mouseDoubleClickEvent):
(QGraphicsWKView::wheelEvent):
(QGraphicsWKViewPrivate::QGraphicsWKViewPrivate):
(QGraphicsWKView::visibleRect):
* UIProcess/API/qt/qgraphicswkview.h: Added.
* UIProcess/API/qt/qwkpage.cpp: Added.
(QWKPagePrivate::QWKPagePrivate):
(QWKPagePrivate::~QWKPagePrivate):
(QWKPagePrivate::init):
(QWKPagePrivate::toolTipChanged):
(QWKPagePrivate::paint):
(QWKPagePrivate::keyPressEvent):
(QWKPagePrivate::keyReleaseEvent):
(QWKPagePrivate::mouseMoveEvent):
(QWKPagePrivate::mousePressEvent):
(QWKPagePrivate::mouseReleaseEvent):
(QWKPagePrivate::mouseDoubleClickEvent):
(QWKPagePrivate::wheelEvent):
(QWKPagePrivate::updateAction):
(QWKPagePrivate::updateNavigationActions):
(QWKPagePrivate::_q_webActionTriggered):
(QWKPage::QWKPage):
(QWKPage::~QWKPage):
(QWKPage::pageRef):
(QWKPage::setCreateNewPageFunction):
(QWKPage::load):
(QWKPage::setUrl):
(QWKPage::url):
(QWKPage::title):
(QWKPage::setViewportSize):
(QWKPage::requestZoomRect):
(QWKPage::triggerAction):
(QWKPage::action):
* UIProcess/API/qt/qwkpage.h: Added.
* UIProcess/API/qt/qwkpage_p.h: Added.
(QWKPagePrivate::get):
(QWKPagePrivate::processDidExit):
(QWKPagePrivate::processDidRevive):
(QWKPagePrivate::takeFocus):

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

10 years ago2010-07-01 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Thu, 1 Jul 2010 19:38:21 +0000 (19:38 +0000)]
2010-07-01  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Darin Adler.

        Get accelerated compositing working with webkit2
        https://bugs.webkit.org/show_bug.cgi?id=41084

        Step 2: add a  method, syncCompositingStateForThisLayerOnly(), to GraphicsLayer to commit
        batched changes non-recursively. This allows us to use GraphicsLayer in places where we
        don't want to kick off a recursive commit of the entire tree.

        * platform/graphics/GraphicsLayer.h:
        (WebCore::GraphicsLayer::syncCompositingStateForThisLayerOnly):
        * platform/graphics/mac/GraphicsLayerCA.h:
        * platform/graphics/mac/GraphicsLayerCA.mm:
        (WebCore::GraphicsLayerCA::syncCompositingStateForThisLayerOnly):
        * WebCore.AcceleratedCompositing.exp: Export the new method for use in WebKit2.

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

10 years ago2010-07-01 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Thu, 1 Jul 2010 19:34:26 +0000 (19:34 +0000)]
2010-07-01  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Gustavo Noronha.

        Only include the geolocation IDL in the GObject DOM bindings set
        if geolocation is enabled.

        * GNUmakefile.am:

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

10 years agoProvide a WebView preference to disable DNS prefetching.
timothy@apple.com [Thu, 1 Jul 2010 19:32:15 +0000 (19:32 +0000)]
Provide a WebView preference to disable DNS prefetching.

https://bugs.webkit.org/show_bug.cgi?id=28825
rdar://problem/7181249

Reviewed by Darin Adler.

WebCore:

* WebCore.base.exp: Added Settings::setDNSPrefetchingEnabled.
* dom/Document.cpp:
(WebCore::Document::initDNSPrefetch): Check settings->dnsPrefetchingEnabled().
* page/Settings.cpp:
(WebCore::Settings::Settings): Set m_dnsPrefetchingEnabled to true.
(WebCore::Settings::setDNSPrefetchingEnabled): Added. Set m_dnsPrefetchingEnabled.
* page/Settings.h:
(WebCore::Settings::dnsPrefetchingEnabled): Added. Return m_dnsPrefetchingEnabled.

WebKit/mac:

* WebView/WebPreferenceKeysPrivate.h: Added WebKitDNSPrefetchingEnabledPreferenceKey.
* WebView/WebPreferences.mm:
(+[WebPreferences initialize]): Set WebKitDNSPrefetchingEnabledPreferenceKey to YES.
(-[WebPreferences isDNSPrefetchingEnabled]): Added. Return WebKitDNSPrefetchingEnabledPreferenceKey's value.
(-[WebPreferences setDNSPrefetchingEnabled:]): Added. Set WebKitDNSPrefetchingEnabledPreferenceKey's value.
* WebView/WebPreferencesPrivate.h: Added isDNSPrefetchingEnabled and setDNSPrefetchingEnabled:.
* WebView/WebView.mm:
(-[WebView _preferencesChangedNotification:]): Call WebCore::Settings::setDNSPrefetchingEnabled.

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

10 years ago2010-07-01 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Thu, 1 Jul 2010 19:30:02 +0000 (19:30 +0000)]
2010-07-01  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Sam Weinig.

        Get accelerated compositing working with webkit2
        https://bugs.webkit.org/show_bug.cgi?id=41084

        Step 1: add a new .exp file for WebCore, which exports symbols only when USE(ACCELERATED_COMPOSITING)
        is defined.

        Also export WebCore::FloatSize::FloatSize(WebCore::IntSize const&) from WebCore.

        * DerivedSources.make:
        * WebCore.AcceleratedCompositing.exp: Added.
        * WebCore.base.exp:
        * WebCore.xcodeproj/project.pbxproj:

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

10 years ago2010-07-01 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 1 Jul 2010 19:23:28 +0000 (19:23 +0000)]
2010-07-01  Martin Robinson  <mrobinson@igalia.com>

        Unreviewed.

        Fix the GTK+ build after r62278.

        * Scripts/webkitdirs.pm: If the make arguments have already been specified,
        let them override the automatic CPU detection for autotools builds.

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

10 years ago* mac/WebKit2.exp:
sullivan@apple.com [Thu, 1 Jul 2010 19:14:38 +0000 (19:14 +0000)]
* mac/WebKit2.exp:
Added _WKFramePolicyListenerDownload and _WKFramePolicyListenerIgnore.

Rubber-stamped by Anders Carlsson.

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

10 years ago2010-07-01 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 1 Jul 2010 19:12:48 +0000 (19:12 +0000)]
2010-07-01  Martin Robinson  <mrobinson@igalia.com>

        Unreviewed.

        Fix the Windows build after r62278.

        * Scripts/num-cpus: Use FindBin to add the Scripts directory to the list of library directories.

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

10 years agoWebCore:
ap@apple.com [Thu, 1 Jul 2010 18:47:57 +0000 (18:47 +0000)]
WebCore:
        Reviewed by Darin Adler.

        <rdar://problem/8148656> <https://bugs.webkit.org/show_bug.cgi?id=41431>
        REGRESSION (r49411): Various crashes due to JavaScript execution during plug-in destruction

        Test: plugins/write-xssauditor-from-destroy.html

        Fix specific known cases that also crash in same process case. I don't know if there is
        any rule for when documentLoader should be checked for being null, it looks like a mess.

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::referrer):
        * page/XSSAuditor.cpp:
        (WebCore::XSSAuditor::findInRequest):

WebKit:

        <rdar://problem/8148656> <https://bugs.webkit.org/show_bug.cgi?id=41431>
        REGRESSION (r49411): Various crashes due to JavaScript execution during plug-in destruction

        Strengthen m_inDestroy "swipe under the carpet" fix.

        * Plugins/Hosted/NetscapePluginInstanceProxy.h: Added a long comment about m_inDestroy, and
        changed it to static.

        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
        (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy): m_inDestroy is now
        static, so we don't initialize it in constructor.
        (WebKit::NetscapePluginInstanceProxy::destroy): Assert that we aren't already destroying
        some plug-in.
        (WebKit::NetscapePluginInstanceProxy::evaluate): This function accidentally lacked an
        m_inDestroy check in r42789.

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

10 years ago2010-07-01 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 1 Jul 2010 18:42:58 +0000 (18:42 +0000)]
2010-07-01  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Gustavo Noronha Silva.

        [GTK] build-webkit does not detect the number of CPUs
        https://bugs.webkit.org/show_bug.cgi?id=41469

        Pass the appropriate -j<#> flag to make when building autotools builds.
        This causes make to spawn that many number of child processes for doing
        parallel builds.

        * Scripts/num-cpus: Use the newly abstracted numberOfCPUs to return the number
        of CPUs. This makes the script work across more platforms.
        * Scripts/webkitdirs.pm: Create a numberOfCPUs/determineNumberOfCPUs to determine the
        number of CPUs across several platforms. Use this new function to determine the appropriate
        arguments to pass to make for doing parallel builds with autotools build files.

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

10 years ago2010-07-01 Andreas Kling <andreas.kling@nokia.com>
commit-queue@webkit.org [Thu, 1 Jul 2010 18:42:55 +0000 (18:42 +0000)]
2010-07-01  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Darin Adler.

        The HTML5 canvas 2d.drawImage.zerocanvas test does not pass
        https://bugs.webkit.org/show_bug.cgi?id=40271

        Unskipped canvas/philip/tests/2d.drawImage.zerocanvas.html

        * canvas/philip/tests/2d.drawImage.zerocanvas-expected.txt:
        * platform/mac/Skipped:
        * platform/qt/Skipped:
2010-07-01  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Darin Adler.

        The HTML5 canvas 2d.drawImage.zerocanvas test does not pass
        https://bugs.webkit.org/show_bug.cgi?id=40271

        Throw INVALID_STATE_ERR when attempting to draw a canvas with zero width or height.

        Spec link:
        http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-drawimage

        * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
        (WebCore::JSCanvasRenderingContext2D::drawImage): Call setDOMException after drawImage(canvas, x, y)
        * html/canvas/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::drawImage):

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

10 years ago2010-07-01 Andreas Kling <andreas.kling@nokia.com>
commit-queue@webkit.org [Thu, 1 Jul 2010 18:28:23 +0000 (18:28 +0000)]
2010-07-01  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Oliver Hunt.

        [Qt] Canvas: clip() should use non-zero winding rule
        https://bugs.webkit.org/show_bug.cgi?id=41466

        Use non-zero winding number rule when clipping a GraphicsContext from canvas.
        Fixes appearance of the "pill" in the web inspector.

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

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

10 years ago2010-07-01 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Thu, 1 Jul 2010 17:45:32 +0000 (17:45 +0000)]
2010-07-01  Yury Semikhatsky  <yurys@chromium.org>

        Unreviewed. Update Chromium test expectations for svg/W3C-SVG-1.1/filters-conv-01-f.svg
        which is timing out on Linux and Windows.

        * platform/chromium/test_expectations.txt:

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

10 years ago2010-07-01 Sheriff Bot <webkit.review.bot@gmail.com>
yurys@chromium.org [Thu, 1 Jul 2010 17:40:35 +0000 (17:40 +0000)]
2010-07-01  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r62246.
        http://trac.webkit.org/changeset/62246
        https://bugs.webkit.org/show_bug.cgi?id=41470

        "Worker tests are broken in Chromium" (Requested by yurys on
        #webkit).

        * fast/events/popup-blocked-from-fake-user-gesture-expected.txt: Removed.
        * fast/events/popup-blocked-from-fake-user-gesture.html: Removed.
        * http/tests/inspector/change-iframe-src-expected.txt: Removed.
        * http/tests/inspector/change-iframe-src.html: Removed.
2010-07-01  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r62246.
        http://trac.webkit.org/changeset/62246
        https://bugs.webkit.org/show_bug.cgi?id=41470

        "Worker tests are broken in Chromium" (Requested by yurys on
        #webkit).

        * bindings/v8/ScriptController.cpp:
        (WebCore::ScriptController::processingUserGesture):
        * bindings/v8/V8AbstractEventListener.cpp:
        (WebCore::V8AbstractEventListener::invokeEventHandler):
        * bindings/v8/V8HiddenPropertyName.h:
        * bindings/v8/custom/V8DOMWindowCustom.cpp:
        (WebCore::V8DOMWindow::eventAccessorGetter):
        (WebCore::V8DOMWindow::eventAccessorSetter):
2010-07-01  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r62246.
        http://trac.webkit.org/changeset/62246
        https://bugs.webkit.org/show_bug.cgi?id=41470

        "Worker tests are broken in Chromium" (Requested by yurys on
        #webkit).

        * src/WebBindings.cpp:
        (WebKit::getEvent):

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

10 years ago2010-07-01 Andreas Kling <andreas.kling@nokia.com>
commit-queue@webkit.org [Thu, 1 Jul 2010 17:29:31 +0000 (17:29 +0000)]
2010-07-01  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Tor Arne Vestbø.

        Canvas: Exception erroneously thrown for drawImage() when image.complete=false
        https://bugs.webkit.org/show_bug.cgi?id=33968

        Added a test to verify that CRC2D does nothing when calling drawImage()
        with an incomplete image or video.

        Spec link:
        http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-drawimage

        * fast/canvas/canvas-drawImage-incomplete-expected.txt: Added.
        * fast/canvas/canvas-drawImage-incomplete.html: Added.
        * fast/canvas/script-tests/canvas-drawImage-incomplete.js: Added.
2010-07-01  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Tor Arne Vestbø.

        Canvas: Exception erroneously thrown for drawImage() when image.complete=false
        https://bugs.webkit.org/show_bug.cgi?id=33968

        Do nothing in drawImage() if called with an image whose 'complete'
        attribute is false, or a video whose readyState is either HAVE_NOTHING
        or HAVE_METADATA.

        Spec link:
        http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-drawimage

        Test: fast/canvas/canvas-drawImage-incomplete.html

        * html/canvas/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::drawImage):

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

10 years ago2010-07-01 David Holloway <dhollowa@chromium.org>
commit-queue@webkit.org [Thu, 1 Jul 2010 17:14:53 +0000 (17:14 +0000)]
2010-07-01  David Holloway  <dhollowa@chromium.org>

        Reviewed by Darin Fisher.

        [chromium] Consolidates AutoFill and Autocomplete popup menus into a single popup menu.

        This change combines SuggestionsPopupMenuClient, AutoFillPopupMenuClient, and
        AutocompletePopupMenuClient classes into a single consolidated AutoFillPopupMenuClient class.
        Prior to this change the contents of the AutoFill popup menu only included AutoFill
        suggestions and similarly the Autocomplete popup menu only included Autocomplete
        suggestions.  With this consolidation, both AutoFill and Autocomplete suggestions can
        now be displayed in a single menu.

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

        * WebKit.gyp:
        * public/WebFrame.h:
        * public/WebView.h:
        * src/AutoFillPopupMenuClient.cpp:
        (WebKit::AutoFillPopupMenuClient::AutoFillPopupMenuClient):
        (WebKit::AutoFillPopupMenuClient::~AutoFillPopupMenuClient):
        (WebKit::AutoFillPopupMenuClient::valueChanged):
        (WebKit::AutoFillPopupMenuClient::selectionCleared):
        (WebKit::AutoFillPopupMenuClient::itemText):
        (WebKit::AutoFillPopupMenuClient::itemStyle):
        (WebKit::AutoFillPopupMenuClient::menuStyle):
        (WebKit::AutoFillPopupMenuClient::clientPaddingLeft):
        (WebKit::AutoFillPopupMenuClient::clientPaddingRight):
        (WebKit::AutoFillPopupMenuClient::popupDidHide):
        (WebKit::AutoFillPopupMenuClient::setTextFromItem):
        (WebKit::AutoFillPopupMenuClient::fontSelector):
        (WebKit::AutoFillPopupMenuClient::hostWindow):
        (WebKit::AutoFillPopupMenuClient::createScrollbar):
        (WebKit::AutoFillPopupMenuClient::initialize):
        (WebKit::AutoFillPopupMenuClient::getWebView):
        (WebKit::AutoFillPopupMenuClient::textFieldStyle):
        * src/AutoFillPopupMenuClient.h:
        (WebKit::AutoFillPopupMenuClient::itemToolTip):
        (WebKit::AutoFillPopupMenuClient::itemAccessibilityText):
        (WebKit::AutoFillPopupMenuClient::itemIsEnabled):
        (WebKit::AutoFillPopupMenuClient::clientInsetLeft):
        (WebKit::AutoFillPopupMenuClient::clientInsetRight):
        (WebKit::AutoFillPopupMenuClient::listSize):
        (WebKit::AutoFillPopupMenuClient::selectedIndex):
        (WebKit::AutoFillPopupMenuClient::itemIsLabel):
        (WebKit::AutoFillPopupMenuClient::itemIsSelected):
        (WebKit::AutoFillPopupMenuClient::shouldPopOver):
        (WebKit::AutoFillPopupMenuClient::valueShouldChangeOnHotTrack):
        (WebKit::AutoFillPopupMenuClient::setAutocompleteMode):
        (WebKit::AutoFillPopupMenuClient::getTextField):
        (WebKit::AutoFillPopupMenuClient::getSelectedIndex):
        (WebKit::AutoFillPopupMenuClient::setSelectedIndex):
        * src/AutocompletePopupMenuClient.cpp: Removed.
        * src/AutocompletePopupMenuClient.h: Removed.
        * src/EditorClientImpl.cpp:
        (WebKit::EditorClientImpl::textFieldDidEndEditing):
        (WebKit::EditorClientImpl::doAutofill):
        (WebKit::EditorClientImpl::onAutocompleteSuggestionAccepted):
        * src/SuggestionsPopupMenuClient.cpp: Removed.
        * src/SuggestionsPopupMenuClient.h: Removed.
        * src/WebFrameImpl.cpp:
        (WebKit::WebFrameImpl::currentHistoryItem):
        (WebKit::WebFrameImpl::notifiyPasswordListenerOfAutocomplete):
        * src/WebFrameImpl.h:
        * src/WebViewImpl.cpp:
        (WebKit::):
        (WebKit::WebViewImpl::WebViewImpl):
        (WebKit::WebViewImpl::mouseDown):
        (WebKit::WebViewImpl::mouseUp):
        (WebKit::WebViewImpl::selectPopupHandleKeyEvent):
        (WebKit::WebViewImpl::autocompleteHandleKeyEvent):
        (WebKit::WebViewImpl::hideAutoFillPopup):
        (WebKit::WebViewImpl::setFocus):
        (WebKit::WebViewImpl::applyAutoFillSuggestions):
        (WebKit::WebViewImpl::applyAutocompleteSuggestions):
        (WebKit::WebViewImpl::hidePopups):
        (WebKit::WebViewImpl::refreshAutoFillPopup):
        * src/WebViewImpl.h:
        (WebKit::WebViewImpl::autoFillPopupDidHide):

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

10 years ago2010-07-01 Justin Schuh <jschuh@chromium.org>
jschuh@chromium.org [Thu, 1 Jul 2010 16:55:06 +0000 (16:55 +0000)]
2010-07-01  Justin Schuh  <jschuh@chromium.org>

        Reviewed by Dan Bernstein.

        Prevent crash on counter destruction
        https://bugs.webkit.org/show_bug.cgi?id=40032

        Added counter destruction to RenderWidget::destroy()

        Test: fast/css/counters/destroy-counter-crash.html

        * rendering/RenderWidget.cpp:
        (WebCore::RenderWidget::destroy):
2010-07-01  Justin Schuh  <jschuh@chromium.org>

        Reviewed by Dan Bernstein.

        Prevent crash on counter destruction
        https://bugs.webkit.org/show_bug.cgi?id=40032

        * fast/css/counters/destroy-counter-crash-expected.txt: Added.
        * fast/css/counters/destroy-counter-crash.html: Added.

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

10 years ago2010-07-01 Sheriff Bot <webkit.review.bot@gmail.com>
weinig@apple.com [Thu, 1 Jul 2010 16:41:03 +0000 (16:41 +0000)]
2010-07-01  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r62267.
        http://trac.webkit.org/changeset/62267
        https://bugs.webkit.org/show_bug.cgi?id=41468

        broke stuff (Requested by weinig on #webkit).

        * UIProcess/API/C/WKBase.h:
        * WebProcess/InjectedBundle/API/c/WKBundleBase.h:

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

10 years ago2010-07-01 Lucas De Marchi <lucas.demarchi@profusion.mobi>
leandro@webkit.org [Thu, 1 Jul 2010 16:26:25 +0000 (16:26 +0000)]
2010-07-01  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Unreviewed build fix after r62215.

        No new functionality, so no new tests.

        * CMakeLists.txt: Add missing files and re-sort.

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

10 years ago* mac/WebKit2.exp:
sullivan@apple.com [Thu, 1 Jul 2010 16:25:03 +0000 (16:25 +0000)]
* mac/WebKit2.exp:
Added _WKFramePolicyListenerRelease and _WKFramePolicyListenerRetain.

Rubber-stamped by Sam Weinig.

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

10 years ago2010-07-01 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
commit-queue@webkit.org [Thu, 1 Jul 2010 16:16:47 +0000 (16:16 +0000)]
2010-07-01  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>

        Reviewed by Antti Koivisto.

        Export symbols on Linux with GCC

        * UIProcess/API/C/WKBase.h:
        * WebProcess/InjectedBundle/API/c/WKBundleBase.h:

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

10 years ago[Qt] Fix a comment in WebKit.pri.
jocelyn.turcotte@nokia.com [Thu, 1 Jul 2010 16:10:46 +0000 (16:10 +0000)]
[Qt] Fix a comment in WebKit.pri.

Reviewed by Simon Hausmann.

* WebKit.pri:

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

10 years ago[Qt] Remove an unneeded assert.
jocelyn.turcotte@nokia.com [Thu, 1 Jul 2010 16:09:53 +0000 (16:09 +0000)]
[Qt] Remove an unneeded assert.

Reviewed by Kenneth Rohde Christiansen.

This assert is triggered for example while showing the falling leaves demo.
GraphicsLayerQtImpl::toGraphicsLayerQtImpl asserts that its input
pointer is null. Looking at the uses of this method it seems like
it is expected to return null if a null pointer is given to it.

* platform/graphics/qt/GraphicsLayerQt.cpp:
(WebCore::toGraphicsLayerQtImpl):

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

10 years ago[Qt] Fix qmake vcproj generation for QtWebKit.
jocelyn.turcotte@nokia.com [Thu, 1 Jul 2010 16:08:50 +0000 (16:08 +0000)]
[Qt] Fix qmake vcproj generation for QtWebKit.

Reviewed by Simon Hausmann.

qmake use TARGET=/LIBS+= -lTARGET to create dependencies
between projects in a subdir template.

Since when compiling outside of Qt we hijack the target name of
QtWebKit to add the configuration and version suffix to the binary
filename, qmake can't establish the WebCore project as a dependency
to QtTestBrowser.

This patch makes sure that the target is not hijacked on the
first of the three passes where the dependencies are determined.

.:

* WebKit.pri:

WebCore:

* WebCore.pro:

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

10 years ago2010-07-01 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
commit-queue@webkit.org [Thu, 1 Jul 2010 16:04:45 +0000 (16:04 +0000)]
2010-07-01  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>

        Reviewed by Antti Koivisto.

        [Qt] Initial WebKit2 implementation
        https://bugs.webkit.org/show_bug.cgi?id=40233

        Add our event factory for converting Qt events to something WebKit2
        understands.

        * Shared/qt/WebEventFactoryQt.cpp: Added.
        (WebKit::mouseButtonForEvent):
        (WebKit::webEventTypeForEvent):
        (WebKit::modifiersForEvent):
        (WebKit::WebEventFactory::createWebMouseEvent):
        (WebKit::WebEventFactory::createWebWheelEvent):
        (WebKit::WebEventFactory::createWebKeyboardEvent):
        * Shared/qt/WebEventFactoryQt.h: Added.

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

10 years ago2010-07-01 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 1 Jul 2010 16:03:05 +0000 (16:03 +0000)]
2010-07-01  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] Convert WebKitWebView's private draggingDataObjects member to a pointer
        https://bugs.webkit.org/show_bug.cgi?id=40333

        Convert draggingDataObjects to a pointer. The constructor and destructor of the
        HashMap should be called explicitly. GObject memory allocation does not do this.

        * WebCoreSupport/DragClientGtk.cpp:
        (WebKit::DragClient::startDrag):
        * webkit/webkitprivate.h:
        * webkit/webkitwebview.cpp:
        (webkit_web_view_dispose):
        (webkit_web_view_drag_end):
        (webkit_web_view_drag_data_get):
        (webkit_web_view_init):

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

10 years ago[Qt] Initial WebKit2 implementation
antti.j.koivisto@nokia.com [Thu, 1 Jul 2010 15:27:01 +0000 (15:27 +0000)]
[Qt] Initial WebKit2 implementation
https://bugs.webkit.org/show_bug.cgi?id=40233

Reviewed by Kenneth Rohde Christiansen.

Add UpdateChunk. This one is mmap based, using Qt abstractions.

* Shared/qt: Added.
* Shared/qt/UpdateChunk.cpp: Added.
(WebKit::MappedMemory::markUsed):
(WebKit::MappedMemory::markFree):
(WebKit::MappedMemory::isFree):
(WebKit::mapMemory):
(WebKit::mapFile):
(WebKit::UpdateChunk::UpdateChunk):
(WebKit::UpdateChunk::~UpdateChunk):
(WebKit::UpdateChunk::data):
(WebKit::UpdateChunk::encode):
(WebKit::UpdateChunk::decode):
(WebKit::UpdateChunk::createImage):
* Shared/qt/UpdateChunk.h: Added.
(WebKit::UpdateChunk::rect):
(WebKit::UpdateChunk::size):

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

10 years ago[Qt] Initial WebKit2 implementation
antti.j.koivisto@nokia.com [Thu, 1 Jul 2010 14:36:56 +0000 (14:36 +0000)]
[Qt] Initial WebKit2 implementation
https://bugs.webkit.org/show_bug.cgi?id=40233

Reviewed by Kenneth Rohde Christiansen.

Include some stdlib headers to fix linux build.

* Platform/CoreIPC/ArgumentDecoder.cpp:
* Platform/CoreIPC/ArgumentEncoder.cpp:
* UIProcess/WebLoaderClient.cpp:
* UIProcess/WebPageProxy.cpp:
* UIProcess/WebUIClient.cpp:

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

10 years ago2010-07-01 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Thu, 1 Jul 2010 14:25:42 +0000 (14:25 +0000)]
2010-07-01  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        SVGRenderStyle::diff() is missing
        https://bugs.webkit.org/show_bug.cgi?id=41455

        Don't just return StyleDifferenceLayout when two SVGRenderStyle objects differ.
        Figure out when to repaint, and as last resort do a relayout.

        Lively Kernel doesn't do any relayouts anymore, same for lots of demos in the IE9 testcenter.

        * rendering/style/RenderStyle.cpp:
        (WebCore::RenderStyle::diff):
        * rendering/style/SVGRenderStyle.cpp:
        (WebCore::SVGRenderStyle::diff):
        * rendering/style/SVGRenderStyle.h:

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

10 years ago2010-07-01 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Thu, 1 Jul 2010 14:16:56 +0000 (14:16 +0000)]
2010-07-01  Yury Semikhatsky  <yurys@chromium.org>

        Unreviewed. Update Chromium test expectations.

        * platform/chromium-mac/html5lib/runner-expected.txt:
        * platform/chromium-mac/svg/W3C-SVG-1.1/filters-conv-01-f-expected.checksum: Added.
        * platform/chromium-mac/svg/W3C-SVG-1.1/filters-conv-01-f-expected.png: Added.
        * platform/chromium/test_expectations.txt:

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

10 years ago[Qt] Initial WebKit2 implementation
antti.j.koivisto@nokia.com [Thu, 1 Jul 2010 13:49:48 +0000 (13:49 +0000)]
[Qt] Initial WebKit2 implementation
https://bugs.webkit.org/show_bug.cgi?id=40233

Reviewed by Kenneth Rohde Christiansen.

Implement CoreIPC::Connection and PlatformProcessIdentifier for Qt. Not built yet.

* Platform/CoreIPC/Connection.h:
* Platform/CoreIPC/qt: Added.
* Platform/CoreIPC/qt/ConnectionQt.cpp: Added.
(CoreIPC::Connection::platformInitialize):
(CoreIPC::Connection::platformInvalidate):
(CoreIPC::Connection::newConnectionHandler):
(CoreIPC::Connection::readyReadHandler):
(CoreIPC::Connection::openConnection):
(CoreIPC::Connection::open):
(CoreIPC::Connection::sendOutgoingMessage):
* Platform/PlatformProcessIdentifier.h:

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

10 years ago[Qt] Initial WebKit2 implementation
antti.j.koivisto@nokia.com [Thu, 1 Jul 2010 13:18:31 +0000 (13:18 +0000)]
[Qt] Initial WebKit2 implementation
https://bugs.webkit.org/show_bug.cgi?id=40233

Reviewed by Kenneth Rohde Christiansen.

Implement WorkQueue for Qt. Not built yet.

* Platform/WorkQueue.h:
* Platform/qt/WorkQueueQt.cpp: Added.
(WorkQueue::WorkItemQt::WorkItemQt):
(WorkQueue::WorkItemQt::~WorkItemQt):
(WorkQueue::WorkItemQt::execute):
(WorkQueue::WorkItemQt::timerEvent):
(WorkQueue::connectSignal):
(WorkQueue::disconnectSignal):
(WorkQueue::platformInitialize):
(WorkQueue::platformInvalidate):
(WorkQueue::scheduleWork):

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

10 years ago2010-07-01 Satish Sampath <satish@chromium.org>
yurys@chromium.org [Thu, 1 Jul 2010 13:10:04 +0000 (13:10 +0000)]
2010-07-01  Satish Sampath  <satish@chromium.org>

        Reviewed by Yury Semikhatsky.

        Fix wrong style comment in chromium test expectations file.
        https://bugs.webkit.org/show_bug.cgi?id=41460

        * platform/chromium/test_expectations.txt:

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

10 years agoRevert accidental commit.
antti.j.koivisto@nokia.com [Thu, 1 Jul 2010 12:49:27 +0000 (12:49 +0000)]
Revert accidental commit.

JavaScriptCore:

* runtime/Collector.cpp:
(JSC::Heap::allocateBlock):

WebCore:

* platform/network/qt/ResourceRequestQt.cpp:
(WebCore::ResourceRequest::toNetworkRequest):

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

10 years ago[Qt] Initial WebKit2 implementation
antti.j.koivisto@nokia.com [Thu, 1 Jul 2010 12:42:54 +0000 (12:42 +0000)]
[Qt] Initial WebKit2 implementation
https://bugs.webkit.org/show_bug.cgi?id=40233

Reviewed by Kenneth Rohde Christiansen.

Implement RunLoop for Qt. Not built yet.

* Platform/RunLoop.h:
* Platform/qt: Added.
* Platform/qt/RunLoopQt.cpp: Added.
(RunLoop::TimerObject::TimerObject):
(RunLoop::TimerObject::performWork):
(RunLoop::TimerObject::wakeUp):
(RunLoop::TimerObject::timerEvent):
(RunLoop::run):
(RunLoop::stop):
(RunLoop::RunLoop):
(RunLoop::~RunLoop):
(RunLoop::wakeUp):
(RunLoop::TimerBase::timerFired):
(RunLoop::TimerBase::TimerBase):
(RunLoop::TimerBase::~TimerBase):
(RunLoop::TimerBase::start):
(RunLoop::TimerBase::stop):
(RunLoop::TimerBase::isActive):

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

10 years ago2010-07-01 Patrick Gansterer <paroga@paroga.com>
commit-queue@webkit.org [Thu, 1 Jul 2010 12:28:41 +0000 (12:28 +0000)]
2010-07-01  Patrick Gansterer  <paroga@paroga.com>

        Reviewed by Dirk Schulze.

        Buildfix for !ENABLE(FILTERS) after r62238.
        https://bugs.webkit.org/show_bug.cgi?id=41456

        * rendering/SVGRenderSupport.cpp:
        (WebCore::SVGRenderSupport::prepareToRenderSVGContent):

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

10 years ago2010-07-01 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
jocelyn.turcotte@nokia.com [Thu, 1 Jul 2010 12:17:13 +0000 (12:17 +0000)]
2010-07-01  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Create QComboBoxes when clicked and destroy on hide.
        https://bugs.webkit.org/show_bug.cgi?id=41451

        Currently a QComboBox is created for each RenderMenuList and
        it gets destroyed either when the RenderMenuList or the
        QWebView (its Qt parent) is destroyed. This cause a crash
        when the QWebView is destroyed before the render tree (which
        is kept in cache).

        This patch aim to destroy the QComboBox as soon as its popup
        gets hidden, and likewise, create it only when the popup is
        requested to be shown.
        It also removes the unneeded reference to the QGraphicsProxyWidget,
        destroying the QComboBox automatically destroys its bound
        proxywidget.

        * WebCoreSupport/QtFallbackWebPopup.cpp:
        (WebCore::QtFallbackWebPopupCombo::hidePopup):
        (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
        (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
        (WebCore::QtFallbackWebPopup::show):
        (WebCore::QtFallbackWebPopup::hide):
        (WebCore::QtFallbackWebPopup::destroyPopup):
        (WebCore::QtFallbackWebPopup::populate):
        * WebCoreSupport/QtFallbackWebPopup.h:

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

10 years ago2010-07-01 MORITA Hajime <morrita@google.com>
morrita@google.com [Thu, 1 Jul 2010 11:39:14 +0000 (11:39 +0000)]
2010-07-01  MORITA Hajime  <morrita@google.com>

        Unreviewed build fix.

        * rendering/RenderInputSpeech.cpp:
        (WebCore::RenderInputSpeech::paintInputFieldSpeechButton):
        * rendering/RenderInputSpeech.h:
        * rendering/RenderTheme.cpp:
        (WebCore::RenderTheme::paintInputFieldSpeechButton):
        * rendering/RenderTheme.h:

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

10 years ago2010-07-01 Satish Sampath <satish@chromium.org>
commit-queue@webkit.org [Thu, 1 Jul 2010 11:11:01 +0000 (11:11 +0000)]
2010-07-01  Satish Sampath  <satish@chromium.org>

        Reviewed by Kent Tamura.

        Rendering the speech button in input elements.
        https://bugs.webkit.org/show_bug.cgi?id=40984

        input-appearance-speechbutton.html checks the appearances of various sizes of speech buttons.
        input-appearance-searchandspeech.html checks input type='search' field with speech button.
        input-appearance-numberandspeech.html checks input type='number' field with speech button.

        * fast/forms/input-appearance-numberandspeech-expected.txt: Added.
        * fast/forms/input-appearance-numberandspeech.html: Added.
        * fast/forms/input-appearance-searchandspeech-expected.txt: Added.
        * fast/forms/input-appearance-searchandspeech.html: Added.
        * fast/forms/input-appearance-speechbutton-expected.txt: Added.
        * fast/forms/input-appearance-speechbutton.html: Added.
        * platform/chromium/test_expectations.txt: Skipped all these new tests as the speech input feature is disabled by default.
        * platform/gtk/Skipped:
        * platform/mac/fast/forms/input-appearance-numberandspeech-expected.checksum: Added.
        * platform/mac/fast/forms/input-appearance-numberandspeech-expected.png: Added.
        * platform/mac/fast/forms/input-appearance-searchandspeech-expected.checksum: Added.
        * platform/mac/fast/forms/input-appearance-searchandspeech-expected.png: Added.
        * platform/mac/fast/forms/input-appearance-speechbutton-expected.checksum: Added.
        * platform/mac/fast/forms/input-appearance-speechbutton-expected.png: Added.
        * platform/mac/Skipped:
        * platform/qt/Skipped:
        * platform/win/Skipped:
2010-07-01  Satish Sampath  <satish@chromium.org>

        Reviewed by Kent Tamura.

        Rendering the speech button in input elements.
        https://bugs.webkit.org/show_bug.cgi?id=40984

        The button currently has only one state and rendered as an image on all platforms. Subsequent
        patches will add user input handling and more states + rendering code to the button. The
        button's appearance can be customized by individual ports in their RenderTheme implementation
        if required.

        Tests: platform/mac/fast/forms/input-appearance-numberandspeech.html
               platform/mac/fast/forms/input-appearance-searchandspeech.html
               platform/mac/fast/forms/input-appearance-speechbutton.html

        * GNUmakefile.am:
        * Resources/inputSpeech.png: Added.
        * Resources/inputSpeech.tiff: Added. Used by the Mac implementation.
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.qrc:
        * WebCore.xcodeproj/project.pbxproj:
        * platform/graphics/qt/ImageQt.cpp:
        (loadResourcePixmap): Load the speech button images for Qt port.
        * rendering/RenderInputSpeech.cpp: Added.
        (WebCore::RenderInputSpeech::adjustInputFieldSpeechButtonStyle): Sets the button's dimensions.
        (WebCore::RenderInputSpeech::paintInputFieldSpeechButton):
        * rendering/RenderInputSpeech.h: Added.
        * rendering/RenderTextControlSingleLine.cpp:
        (WebCore::RenderTextControlSingleLine::layout):
        (WebCore::RenderTextControlSingleLine::forwardEvent):
        (WebCore::RenderTextControlSingleLine::createSubtreeIfNeeded): Create the speech button.
        (WebCore::RenderTextControlSingleLine::createInnerBlockStyle):
        * rendering/RenderTheme.cpp:
        (WebCore::RenderTheme::adjustStyle):
        (WebCore::RenderTheme::paint):
        (WebCore::RenderTheme::adjustInputFieldSpeechButtonStyle):
        (WebCore::RenderTheme::paintInputFieldSpeechButton):
        * rendering/RenderTheme.h:
        * rendering/RenderThemeMac.mm:
        (WebCore::RenderThemeMac::paintSearchFieldCancelButton): Get cancel button to render to the left of
        speech button when enabled.
2010-07-01  Satish Sampath  <satish@chromium.org>

        Reviewed by Kent Tamura.

        Rendering the speech button in input elements.
        https://bugs.webkit.org/show_bug.cgi?id=40984

        * Api/qwebsettings.cpp:
        (graphics):
        * Api/qwebsettings.h:

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

10 years ago2010-07-01 Mario Sanchez Prada <msanchez@igalia.com>
commit-queue@webkit.org [Thu, 1 Jul 2010 10:50:33 +0000 (10:50 +0000)]
2010-07-01  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] Extra nullcheck needed at SelectionControllerGtk.cpp
        https://bugs.webkit.org/show_bug.cgi?id=41447

        Extra null check added.

        * editing/gtk/SelectionControllerGtk.cpp:
        (WebCore::SelectionController::notifyAccessibilityForSelectionChange):

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

10 years ago[Qt][Symbian] Bumped up the maximum heap size to 96MB
hausmann@webkit.org [Thu, 1 Jul 2010 10:39:13 +0000 (10:39 +0000)]
[Qt][Symbian] Bumped up the maximum heap size to 96MB

Rubber-stamped by Laszlo Gombos.

.:

* WebKit.pri:

WebKitTools:

* QtTestBrowser/QtTestBrowser.pro: Removed explicit heap size declaration
and use the one from WebKit.pri instead.

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

10 years ago2010-07-01 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Thu, 1 Jul 2010 10:05:27 +0000 (10:05 +0000)]
2010-07-01  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Adam Barth.

        [v8] Web Inspector: inspected page crashes on attempt to change iframe's src attribute
        https://bugs.webkit.org/show_bug.cgi?id=41350

        * fast/events/popup-blocked-from-fake-user-gesture-expected.txt: Added.
        * fast/events/popup-blocked-from-fake-user-gesture.html: Added.
        * http/tests/inspector/change-iframe-src-expected.txt: Added.
        * http/tests/inspector/change-iframe-src.html: Added.
2010-07-01  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Adam Barth.

        [v8] Web Inspector: inspected page crashes on attempt to change iframe's src attribute
        https://bugs.webkit.org/show_bug.cgi?id=41350

        Tests: fast/events/popup-blocked-from-fake-user-gesture.html
               http/tests/inspector/change-iframe-src.html

        * bindings/v8/ScriptController.cpp:
        (WebCore::ScriptController::processingUserGesture): use V8Proxy from the ScriptController instead of one
        from the call stack. Get event directly from hidden property to avoid unnecessary checks.
        * bindings/v8/V8AbstractEventListener.cpp:
        (WebCore::V8AbstractEventListener::invokeEventHandler):
        * bindings/v8/V8HiddenPropertyName.h:
        * bindings/v8/custom/V8DOMWindowCustom.cpp:
        (WebCore::V8DOMWindow::eventAccessorGetter):
        (WebCore::V8DOMWindow::eventAccessorSetter):
2010-07-01  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Adam Barth.

        [v8] Web Inspector: inspected page crashes on attempt to change iframe's src attribute
        https://bugs.webkit.org/show_bug.cgi?id=41350

        * src/WebBindings.cpp:
        (WebKit::getEvent):

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

10 years ago2010-07-01 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Thu, 1 Jul 2010 09:55:39 +0000 (09:55 +0000)]
2010-07-01  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Promote webkit-patch land-safely to main help
        https://bugs.webkit.org/show_bug.cgi?id=41446

        I've been using this command a bunch and recommending it to folks.  We
        should show it in main help as it's past the experimental phase.

        * Scripts/webkitpy/tool/commands/upload.py:

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

10 years ago2010-07-01 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Thu, 1 Jul 2010 09:47:01 +0000 (09:47 +0000)]
2010-07-01  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        RenderSVGContainer/RenderSVGRoot report wrong strokeBoundingBox()
        https://bugs.webkit.org/show_bug.cgi?id=41450

        strokeBoundingBox() was reporting the repaintRectInLocalCoordinates() for children of a container,
        instead of the actual strokeBoundingBox(). Only visible in WebInspector when looking at a container
        which has a resource applied and contains a children which also has a resource applied.

        Doesn't affect any test results.

        * rendering/RenderSVGContainer.cpp:
        (WebCore::RenderSVGContainer::objectBoundingBox):
        (WebCore::RenderSVGContainer::strokeBoundingBox):
        (WebCore::RenderSVGContainer::repaintRectInLocalCoordinates):
        * rendering/RenderSVGRoot.cpp:
        (WebCore::RenderSVGRoot::objectBoundingBox): Deinlined this functions, it's virtual so there's no gain.
        (WebCore::RenderSVGRoot::strokeBoundingBox): Ditto.
        (WebCore::RenderSVGRoot::repaintRectInLocalCoordinates):
        * rendering/RenderSVGRoot.h:
        * rendering/SVGRenderSupport.cpp:
        (WebCore::SVGRenderSupport::computeContainerBoundingBox):
        * rendering/SVGRenderSupport.h: Add enum controlling the mode of container bounding box mode calculation.

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

10 years agoWebCore: Implementing feConvolveMatrix svg filter
zherczeg@webkit.org [Thu, 1 Jul 2010 09:45:31 +0000 (09:45 +0000)]
WebCore: Implementing feConvolveMatrix svg filter
https://bugs.webkit.org/show_bug.cgi?id=5861

Reviewed by Nikolas Zimmermann.

The implementation is optimized for speed, and uses
multiple algorithms for different parts of the image.
See SVGFEConvolveMatrixElement.cpp for a detailed
description.

* svg/SVGFEConvolveMatrixElement.cpp:
(WebCore::SVGFEConvolveMatrixElement::build):
* svg/graphics/filters/SVGFEConvolveMatrix.cpp:
(WebCore::clampRGBAValue):
(WebCore::FEConvolveMatrix::fastSetInteriorPixels):
(WebCore::FEConvolveMatrix::getPixelValue):
(WebCore::FEConvolveMatrix::fastSetOuterPixels):
(WebCore::FEConvolveMatrix::setInteriorPixels):
(WebCore::FEConvolveMatrix::setOuterPixels):
(WebCore::FEConvolveMatrix::apply):
* svg/graphics/filters/SVGFEConvolveMatrix.h:
(WebCore::FEConvolveMatrix::uniteChildEffectSubregions):

LayoutTests: Updating expected values for feConvolveMatrix
https://bugs.webkit.org/show_bug.cgi?id=5861

Reviewed by Nikolas Zimmermann.

* platform/mac-leopard/svg/W3C-SVG-1.1/filters-conv-01-f-expected.checksum:
* platform/mac-leopard/svg/W3C-SVG-1.1/filters-conv-01-f-expected.png:

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

10 years ago2010-07-01 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Thu, 1 Jul 2010 09:41:55 +0000 (09:41 +0000)]
2010-07-01  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Abstract 'a'-'z' checks into a function
        https://bugs.webkit.org/show_bug.cgi?id=41438

        Hopefully this version is more readable.

        * html/HTMLTokenizer.cpp:
        (WebCore::HTMLTokenizer::nextToken):

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

10 years ago2010-07-01 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Thu, 1 Jul 2010 09:29:20 +0000 (09:29 +0000)]
2010-07-01  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Parameter names in frame src URLs parsed incorrectly if resembles HTML entity code followed by underscore
        https://bugs.webkit.org/show_bug.cgi?id=41345

        Add some more HTML entity test coverage for when the trailing semicolon
        character is required.

        * html5lib/resources/entities02.dat:
2010-07-01  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Parameter names in frame src URLs parsed incorrectly if resembles HTML entity code followed by underscore
        https://bugs.webkit.org/show_bug.cgi?id=41345

        Apparently whether an HTML entity requires a trailing semicolon varies
        depending on the entity.  The full table is in the spec:

        http://www.whatwg.org/specs/web-apps/current-work/multipage/named-character-references.html#named-character-references

        I believe branch added in this patch is accurate.  At some point, I'll
        add a full test suite for all the named entities.

        * html/HTMLEntityParser.cpp:
        (WebCore::consumeHTMLEntity):

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

10 years ago2010-07-01 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Thu, 1 Jul 2010 09:06:32 +0000 (09:06 +0000)]
2010-07-01  Yury Semikhatsky  <yurys@chromium.org>

        Unreviewed. Update Chromium test expectations.

        * platform/chromium-mac/html5lib/runner-expected.txt:
        * platform/chromium-win/html5lib/runner-expected.txt:

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

10 years ago2010-07-01 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 1 Jul 2010 08:36:54 +0000 (08:36 +0000)]
2010-07-01  Eric Seidel  <eric@webkit.org>

        Unreviewed.  Fix paste-o in Gtk build file.

        Split out HTMLFormattingElementList into its own file
        https://bugs.webkit.org/show_bug.cgi?id=41440

        * GNUmakefile.am:

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

10 years ago2010-07-01 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Thu, 1 Jul 2010 08:33:13 +0000 (08:33 +0000)]
2010-07-01  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Eric Seidel & Dirk Schulze.

        Performance regression for setting content of <text> in SVG
        https://bugs.webkit.org/show_bug.cgi?id=36564

        Dramatically reducing the number of repaintRectInLocalCoordinates() calls needed while painting.
        Do not pass the repaintRect to prepareToRenderSVGContent, only calculate it if opacity < 1 or -webkit-svg-shadow is set.
        Most noticeable is that RenderSVGRoot had to visit all children, before actually painting, just to calculate the repaint rect.
        And as RenderSVGRoot never carries shadow or opacity it was completly useless.

        RenderSVGContainer also called repaintRectInLocalCoordinates, but the result is only needed when painting outlines, which is a rare case.
        These modifications fix the performance regression and the number of repaintRectInLocalCoordinate calls for the complex example in
        the bug report with 500 runs shrinks from 1.7 million calls to less than 105.000.

        50 runs without the patch: ~ 520.8ms
        50 runs with the patch   : ~ 501.8ms

        The test calls setTimeout(0) 50 times, that already accounts for the 500ms. So setting the content of a <text>
        element withs clippers applied, is very cheap now.

        Also remove the need to pass in a filter argument to prepareToRenderSVGContent/finishRenderSVGContent, it can easily be grabbed
        of the cache - just like all other resources are handled, simplifying the code.

        * rendering/RenderPath.cpp:
        (WebCore::RenderPath::paint):
        * rendering/RenderSVGContainer.cpp:
        (WebCore::RenderSVGContainer::paint):
        (WebCore::RenderSVGContainer::repaintRectInLocalCoordinates):
        * rendering/RenderSVGImage.cpp:
        (WebCore::RenderSVGImage::paint):
        * rendering/RenderSVGRoot.cpp:
        (WebCore::RenderSVGRoot::paint):
        * rendering/SVGInlineFlowBox.cpp:
        (WebCore::SVGInlineFlowBox::paint):
        * rendering/SVGRenderSupport.cpp:
        (WebCore::SVGRenderSupport::prepareToRenderSVGContent):
        (WebCore::SVGRenderSupport::finishRenderSVGContent):
        * rendering/SVGRenderSupport.h:
        * rendering/SVGRootInlineBox.cpp:
        (WebCore::SVGRootInlineBox::paint):

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

10 years ago2010-07-01 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 1 Jul 2010 08:20:01 +0000 (08:20 +0000)]
2010-07-01  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Make html5lib/runner dump failure details by default
        https://bugs.webkit.org/show_bug.cgi?id=41436

        This makes it much easier to see our result changes
        in patch reviews.  Especially when we change behavior
        but don't necessarily fix entire subtests.

        This patch was previously rolled out due to a bogus comment
        in tests1.dat causing a EOF (null) to be emitted in the
        results, causing diff to treat the file as binary (and thus
        make it impossible to see differences).

        The EOF/NULL bug was resolved by bug 41439, so relanding.

        * html5lib/runner-expected-html5.txt:
        * html5lib/runner-expected.txt:
        * html5lib/runner.html:

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

10 years ago2010-06-28 MORITA Hajime <morrita@google.com>
morrita@google.com [Thu, 1 Jul 2010 08:14:54 +0000 (08:14 +0000)]
2010-06-28  MORITA Hajime  <morrita@google.com>

        Reviewed by Shinichiro Hamaji.

        rebaseline-chromium-webkit-tests doesn't do diffs right with a Git checkout of WebKit
        https://bugs.webkit.org/show_bug.cgi?id=38775

        - Introduced SCM.show_head() and SCM.diff_for_file().
        - Replaced direct svn invocations with newly implement SCM methods.

        * Scripts/webkitpy/common/checkout/scm.py:
        * Scripts/webkitpy/common/checkout/scm_unittest.py:
        * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py:

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

10 years ago2010-07-01 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 1 Jul 2010 08:07:59 +0000 (08:07 +0000)]
2010-07-01  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Split out HTMLFormattingElementList into its own file
        https://bugs.webkit.org/show_bug.cgi?id=41440

        No functional changes, thus no tests.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * html/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::processEndTag):
        (WebCore::HTMLTreeBuilder::indexOfFirstUnopenFormattingElement):
        (WebCore::HTMLTreeBuilder::reconstructTheActiveFormattingElements):
        * html/HTMLTreeBuilder.h:

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

10 years ago2010-07-01 Aaron Boodman <aa@chromium.org>
aa@chromium.org [Thu, 1 Jul 2010 07:53:26 +0000 (07:53 +0000)]
2010-07-01  Aaron Boodman  <aa@chromium.org>

        Reviewed by Darin Fisher.

        Make the user script API static. This makes it more convenient to use
        if you don't have a WebView instance yet.

        Added static versions of the three methods and re-route current ones
        temporarily through the static versions. Will remove the non-static
        versions once Chromium has been updated.

        Also, expose the URLPattern configuration for user stylesheets, since
        they were not before.

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

        * public/WebView.h:
        (WebKit::WebView::addUserScript):
        (WebKit::WebView::addUserStyleSheet):
        * src/WebViewImpl.cpp:
        (WebKit::WebView::addUserScript):
        (WebKit::WebView::addUserStyleSheet):
        (WebKit::WebView::removeAllUserContent):

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

10 years ago2010-07-01 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Thu, 1 Jul 2010 07:39:52 +0000 (07:39 +0000)]
2010-07-01  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        BogusCommentState should come in from the cold
        https://bugs.webkit.org/show_bug.cgi?id=41439

        Test progression => :)

        * html5lib/runner-expected.txt:
        * html5lib/webkit-resumer-expected.txt:
2010-07-01  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        BogusCommentState should come in from the cold
        https://bugs.webkit.org/show_bug.cgi?id=41439

        The BogusCommentState has always been wrong.  The proximate issue is
        that it didn't handle resuming correctly when parsing a partial input
        stream.  Now that we have EOF working properly, we can actually
        implement this state correctly.

        We need to distinguish when we enter this state from when we continue
        in this state.  We could do that with a branch for each character, but
        it seemed easier to split the state in two, even though that leaves us
        with one more state in our tokenizer than we have in the HTML5 spec.

        * html/HTMLTokenizer.cpp:
        (WebCore::HTMLTokenizer::nextToken):
        * html/HTMLTokenizer.h:
        (WebCore::HTMLTokenizer::):

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

10 years ago2010-07-01 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 1 Jul 2010 07:12:01 +0000 (07:12 +0000)]
2010-07-01  Eric Seidel  <eric@webkit.org>

        Unreviewed, rolling out r62231.
        http://trac.webkit.org/changeset/62231
        https://bugs.webkit.org/show_bug.cgi?id=41436

        diff thinks runner-expected.txt is binary which makes the
        results impossible to read

        * html5lib/runner-expected-html5.txt:
        * html5lib/runner-expected.txt:
        * html5lib/runner.html:

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

10 years ago2010-06-30 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 1 Jul 2010 06:42:55 +0000 (06:42 +0000)]
2010-06-30  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Make html5lib/runner dump failure details by default
        https://bugs.webkit.org/show_bug.cgi?id=41436

        This makes it much easier to see our result changes
        in patch reviews.  Especially when we change behavior
        but don't necessarily fix entire subtests.

        * html5lib/runner-expected-html5.txt:
        * html5lib/runner-expected.txt:
        * html5lib/runner.html:

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

10 years ago2010-06-30 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 1 Jul 2010 06:24:55 +0000 (06:24 +0000)]
2010-06-30  Martin Robinson  <mrobinson@igalia.com>

        Unreviewed, rolling out r62226.
        http://trac.webkit.org/changeset/62226
        https://bugs.webkit.org/show_bug.cgi?id=40333

        This change caused 13 new crashers.

        * WebCoreSupport/DragClientGtk.cpp:
        (WebKit::DragClient::startDrag):
        * webkit/webkitprivate.h:
        * webkit/webkitwebview.cpp:
        (webkit_web_view_dispose):
        (webkit_web_view_drag_end):
        (webkit_web_view_drag_data_get):
        (webkit_web_view_init):

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

10 years ago2010-06-30 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Thu, 1 Jul 2010 06:22:32 +0000 (06:22 +0000)]
2010-06-30  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        HTMLTokenizer's whitespace checks are very redundant
        https://bugs.webkit.org/show_bug.cgi?id=41434

        This patch adds isTokenizerWhitespace, which replaces a lot of
        redundant logic in nextToken.

        * html/HTMLTokenizer.cpp:
        (WebCore::HTMLTokenizer::nextToken):

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

10 years ago2010-06-30 Andreas Kling <andreas.kling@nokia.com>
commit-queue@webkit.org [Thu, 1 Jul 2010 06:07:30 +0000 (06:07 +0000)]
2010-06-30  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Crash when uploading document to Google Docs
        https://bugs.webkit.org/show_bug.cgi?id=40795

        Fix bug where the local file wasn't opened (for POSTing)
        if it were the first element in the form.

        * platform/network/qt/QNetworkReplyHandler.cpp:
        (WebCore::FormDataIODevice::FormDataIODevice):
        (WebCore::FormDataIODevice::moveToNextElement):
        (WebCore::FormDataIODevice::openFileForCurrentElement):
        * platform/network/qt/QNetworkReplyHandler.h:

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

10 years ago2010-06-30 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 1 Jul 2010 05:53:48 +0000 (05:53 +0000)]
2010-06-30  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Implement generateImpliedEndTags and deploy to steps which were blocked on it
        https://bugs.webkit.org/show_bug.cgi?id=41432

        * html5lib/runner-expected-html5.txt:
         - Test 2.28 is now fixed.
2010-06-30  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Implement generateImpliedEndTags and deploy to steps which were blocked on it
        https://bugs.webkit.org/show_bug.cgi?id=41432

        This fixes one subtest in html5lib/runner.html and positively
        effects a couple others.

        More code sharing will be needed here.  For the moment
        we're using copy/paste code, but that will soon be shared.

        * html/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::processEndTag):
        (WebCore::HTMLTreeBuilder::generateImpliedEndTagsWithExclusion):
        (WebCore::HTMLTreeBuilder::generateImpliedEndTags):
        * html/HTMLTreeBuilder.h:

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

10 years ago2010-06-30 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 1 Jul 2010 05:44:51 +0000 (05:44 +0000)]
2010-06-30  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] Convert WebKitWebView's private draggingDataObjects member to a pointer
        https://bugs.webkit.org/show_bug.cgi?id=40333

        Convert draggingDataObjects to a pointer. The constructor and destructor of the
        HashMap should be called explicitly. GObject memory allocation does not do this.

        * WebCoreSupport/DragClientGtk.cpp:
        (WebKit::DragClient::startDrag):
        * webkit/webkitprivate.h:
        * webkit/webkitwebview.cpp:
        (webkit_web_view_dispose):
        (webkit_web_view_drag_end):
        (webkit_web_view_drag_data_get):
        (webkit_web_view_init):

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

10 years ago2010-06-30 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Thu, 1 Jul 2010 05:38:00 +0000 (05:38 +0000)]
2010-06-30  Martin Robinson  <mrobinson@igalia.com>

        Unreviewed.

        Update GTK+ expected results after r62215.

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

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

10 years ago2010-06-30 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Thu, 1 Jul 2010 05:26:52 +0000 (05:26 +0000)]
2010-06-30  Adam Barth  <abarth@webkit.org>

        Unreviewed.

        Fix Sam's brokeness.

        AFAIK, this new expected result is ok (especially given that it still
        says PASS).

        * fast/dom/Window/window-postmessage-clone-expected.txt:

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

10 years agoUnreviewed fix. Update Qt specific expected files after r62215.
ossy@webkit.org [Thu, 1 Jul 2010 00:26:03 +0000 (00:26 +0000)]
Unreviewed fix. Update Qt specific expected files after r62215.

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

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

10 years agoUnreviewed buildfix after r62196 and r62214.
ossy@webkit.org [Thu, 1 Jul 2010 00:07:18 +0000 (00:07 +0000)]
Unreviewed buildfix after r62196 and r62214.

* html/HTMLElementStack.cpp: Put !ENABLE(SVG) guard instead of
!ENABLE(SVG_FOREIGN_OBJECT) around include of SVGNames.h.

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

10 years agoReally fix the windows build.
weinig@apple.com [Thu, 1 Jul 2010 00:05:07 +0000 (00:05 +0000)]
Really fix the windows build.

* bindings/js/JSBindingsAllInOne.cpp:

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

10 years agoAnother Chromium build fix.
weinig@apple.com [Thu, 1 Jul 2010 00:00:47 +0000 (00:00 +0000)]
Another Chromium build fix.

* page/DOMWindow.idl:

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

10 years agoFix Chromium build.
weinig@apple.com [Wed, 30 Jun 2010 23:59:32 +0000 (23:59 +0000)]
Fix Chromium build.

* WebCore.gyp/WebCore.gyp:

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

10 years agoFix Windows build.
weinig@apple.com [Wed, 30 Jun 2010 23:52:49 +0000 (23:52 +0000)]
Fix Windows build.

* bindings/js/JSBindingsAllInOne.cpp:

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

10 years agoAdded chromium-mac specific results due to new tests added in r62200.
levin@chromium.org [Wed, 30 Jun 2010 23:50:07 +0000 (23:50 +0000)]
Added chromium-mac specific results due to new tests added in r62200.

Reviewed by NOBODY (baseline updates corresponding to newly added tests).

* platform/chromium-mac/fast/borders/borderRadiusDashed04-expected.checksum: Added.
* platform/chromium-mac/fast/borders/borderRadiusDotted06-expected.checksum: Added.
* platform/chromium/test_expectations.txt: Added failures due to bug 41311.

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

10 years agoFix Gtk build.
weinig@apple.com [Wed, 30 Jun 2010 23:39:19 +0000 (23:39 +0000)]
Fix Gtk build.

* GNUmakefile.am:

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

10 years agoWebCore: Patch for https://bugs.webkit.org/show_bug.cgi?id=41146
weinig@apple.com [Wed, 30 Jun 2010 23:15:15 +0000 (23:15 +0000)]
WebCore: Patch for https://bugs.webkit.org/show_bug.cgi?id=41146
<rdar://problem/8126069>
Implement the .dataset DOM property

Reviewed by Dan Bernstein.

Tests: fast/dom/dataset-xhtml.xhtml
       fast/dom/dataset.html

* DerivedSources.cpp:
* DerivedSources.make:
* GNUmakefile.am:
* WebCore.gypi:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSDOMStringMapCustom.cpp: Added.
(WebCore::JSDOMStringMap::canGetItemsForName):
(WebCore::JSDOMStringMap::nameGetter):
(WebCore::JSDOMStringMap::getOwnPropertyNames):
(WebCore::JSDOMStringMap::deleteProperty):
(WebCore::JSDOMStringMap::putDelegate):
* bindings/js/JSDOMStringMapCustom.h: Added.
* dom/DOMStringMap.cpp: Added.
(WebCore::DOMStringMap::~DOMStringMap):
* dom/DOMStringMap.h: Added.
(WebCore::DOMStringMap::DOMStringMap):
* dom/DOMStringMap.idl: Added.
* dom/DatasetDOMStringMap.cpp: Added.
(WebCore::isValidAttributeName):
(WebCore::convertAttributeNameToPropertyName):
(WebCore::propertyNameMatchesAttributeName):
(WebCore::isValidPropertyName):
(WebCore::convertPropertyNameToAttributeName):
(WebCore::DatasetDOMStringMap::ref):
(WebCore::DatasetDOMStringMap::deref):
(WebCore::DatasetDOMStringMap::getNames):
(WebCore::DatasetDOMStringMap::item):
(WebCore::DatasetDOMStringMap::contains):
(WebCore::DatasetDOMStringMap::setItem):
(WebCore::DatasetDOMStringMap::deleteItem):
* dom/DatasetDOMStringMap.h: Added.
(WebCore::DatasetDOMStringMap::create):
(WebCore::DatasetDOMStringMap::DatasetDOMStringMap):
* dom/Element.cpp:
(WebCore::Element::dataset):
* dom/Element.h:
* dom/Element.idl:
* dom/ElementRareData.h:
* page/DOMWindow.idl:

LayoutTests: Test changes for https://bugs.webkit.org/show_bug.cgi?id=41146
<rdar://problem/8126069>
Implement the .dataset DOM property

Reviewed by Dan Bernstein.

* fast/dom/Window/window-properties-expected.txt:
* fast/dom/Window/window-property-descriptors-expected.txt:
* fast/dom/dataset-expected.txt: Added.
* fast/dom/dataset-xhtml-expected.txt: Added.
* fast/dom/dataset-xhtml.xhtml: Added.
* fast/dom/dataset.html: Added.
* fast/dom/domListEnumeration-expected.txt:
* fast/dom/prototype-inheritance-2-expected.txt:
* fast/dom/prototype-inheritance-expected.txt:
* fast/dom/script-tests/dataset-xhtml.js: Added.
* fast/dom/script-tests/dataset.js: Added.
* fast/dom/script-tests/domListEnumeration.js:
* fast/js/global-constructors-expected.txt:

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

10 years agoMore Qt build fix.
darin@apple.com [Wed, 30 Jun 2010 23:10:05 +0000 (23:10 +0000)]
More Qt build fix.

* html/HTMLElementStack.cpp: Put !ENABLE(SVG_FOREIGN_OBJECT) around
include of SVGNames.h too.

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

10 years ago2010-06-30 Darin Adler <darin@apple.com>
darin@apple.com [Wed, 30 Jun 2010 23:09:06 +0000 (23:09 +0000)]
2010-06-30  Darin Adler  <darin@apple.com>

        Reviewed by Adam Barth.

        Add assertion, off by default, for when you forget to do adoptRef
        https://bugs.webkit.org/show_bug.cgi?id=41422

        * wtf/PassRefPtr.h: Tweaked formatting. Added a new adopted
        function, called on the pointer by adoptRef, with an empty inline
        default version, meant to be overloaded. Unified the inlining
        with a macro named REF_DEREF_INLINE to make it clearer what's
        going on in the refIfNotNull/derefIfNotNull functions. Renamed
        releaseRef to leakRef, but left the old name in for compatibility
        for now.

        * wtf/RefCounted.h: Added code to require adoption and assert if
        you don't call adoptRef. For now, it is turned off because of the
        LOOSE_REF_COUNTED define in this header. Later we can turn it on
        once we get everything working without asserting.
2010-06-30  Darin Adler  <darin@apple.com>

        Reviewed by Adam Barth.

        Add assertion, off by default, for when you forget to do adoptRef
        https://bugs.webkit.org/show_bug.cgi?id=41422

        * platform/TreeShared.h: Added code to require adoption and assert if
        you don't call adoptRef. For now, it is turned off because of the
        LOOSE_TREE_SHARED define in this header. Later we can turn it on
        once we get everything working without asserting. Note also that it
        only works for objects with an initial reference count of 1.

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

10 years agoPatch for https://bugs.webkit.org/show_bug.cgi?id=41426
weinig@apple.com [Wed, 30 Jun 2010 22:58:57 +0000 (22:58 +0000)]
Patch for https://bugs.webkit.org/show_bug.cgi?id=41426
Add ImmutableArray class and WKArrayRef API to go with it. This will be used
in a few follow up patches.

Reviewed by Darin Adler.

* Shared/ImmutableArray.cpp: Added.
(WebKit::ImmutableArray::ImmutableArray):
(WebKit::ImmutableArray::~ImmutableArray):
* Shared/ImmutableArray.h: Added.
* UIProcess/API/C/WKAPICast.h:
* UIProcess/API/C/WKArray.cpp: Added.
* UIProcess/API/C/WKArray.h: Added.
* UIProcess/API/C/WKBase.h:
* WebKit2.xcodeproj/project.pbxproj:
* mac/WebKit2.exp:
* win/WebKit2.vcproj:

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

10 years ago2010-06-30 Albert J. Wong <ajwong@chromium.org>
ajwong@chromium.org [Wed, 30 Jun 2010 22:57:27 +0000 (22:57 +0000)]
2010-06-30  Albert J. Wong  <ajwong@chromium.org>

        Not reviewed. Chromium: Disable flaky test.

        Add an IMAGE failure to linux standalone-image-drag-to-editable.html.
        Test has been flaky on build.

        * platform/chromium/test_expectations.txt:

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

10 years ago2010-06-30 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Wed, 30 Jun 2010 22:48:05 +0000 (22:48 +0000)]
2010-06-30  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Sam Weinig.

        Allow MiniBrowser to open local files
        https://bugs.webkit.org/show_bug.cgi?id=41104

        Wire up the openDocument: message with an NSOpenPanel, so we can open
        local files.

        Also change the xib so that the window remembers its size.

        * MiniBrowser/mac/AppDelegate.m:
        (-[BrowserAppDelegate frontmostBrowserWindowController]):
        (-[BrowserAppDelegate openDocument:]):
        (-[BrowserAppDelegate openPanelDidEnd:returnCode:contextInfo:]):
        * MiniBrowser/mac/English.lproj/BrowserWindow.xib:

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

10 years ago2010-06-30 Patrick Gansterer <paroga@paroga.com>
commit-queue@webkit.org [Wed, 30 Jun 2010 22:24:53 +0000 (22:24 +0000)]
2010-06-30  Patrick Gansterer  <paroga@paroga.com>

        Reviewed by Darin Adler.

        Buildfix for !ENABLE(SVG_FOREIGN_OBJECT) after r62196.
        https://bugs.webkit.org/show_bug.cgi?id=41429

        * html/HTMLElementStack.cpp:

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

10 years ago2010-06-30 Eric Seidel <eric@webkit.org>
eric@webkit.org [Wed, 30 Jun 2010 21:45:19 +0000 (21:45 +0000)]
2010-06-30  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Add new popUntil(tagName) function and deploy
        https://bugs.webkit.org/show_bug.cgi?id=41405

        Add a new popUntil function to share some common code
        between states.  There is more code to share here, but this
        is a start.

        I also filled in a couple similar states to these with the
        hope of sharing more code, but decided to wait for a later
        patch.

        No test changes, since this code doesn't do enough yet to
        pass any more subtests.  Lack of generateImpliedEndTags is the main
        blocking issue.

        * html/HTMLElementStack.cpp:
        (WebCore::HTMLElementStack::popUntil):
        * html/HTMLElementStack.h:
        * html/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::processEndTag):

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

10 years ago2010-06-30 Kenneth Russell <kbr@google.com>
kbr@google.com [Wed, 30 Jun 2010 21:44:26 +0000 (21:44 +0000)]
2010-06-30  Kenneth Russell  <kbr@google.com>

        Reviewed by Dimitri Glazkov.

        Roll forward Chromium DEPS to r51287
        https://bugs.webkit.org/show_bug.cgi?id=41430

        * DEPS:

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

10 years ago20 tests to (at least temporarily) satisfy https://bugs.webkit.org/show_bug.cgi?id...
bdakin@apple.com [Wed, 30 Jun 2010 20:49:16 +0000 (20:49 +0000)]
20 tests to (at least temporarily) satisfy https://bugs.webkit.org/show_bug.cgi?id=41303 Need way more border-radius tests

Reviewed by Dan Bernstein.

* fast/borders/border-radius-circle.html: Added.
* fast/borders/border-radius-groove-01.html: Added.
* fast/borders/border-radius-groove-02.html: Added.
* fast/borders/border-radius-groove-03.html: Added.
* fast/borders/border-radius-wide-border-01.html: Added.
* fast/borders/border-radius-wide-border-02.html: Added.
* fast/borders/border-radius-wide-border-03.html: Added.
* fast/borders/border-radius-wide-border-04.html: Added.
* fast/borders/borderRadiusDashed04.html: Added.
* fast/borders/borderRadiusDashed05.html: Added.
* fast/borders/borderRadiusDashed06.html: Added.
* fast/borders/borderRadiusDotted04.html: Added.
* fast/borders/borderRadiusDotted05.html: Added.
* fast/borders/borderRadiusDotted06.html: Added.
* fast/borders/borderRadiusDouble04.html: Added.
* fast/borders/borderRadiusDouble05.html: Added.
* fast/borders/borderRadiusDouble06.html: Added.
* fast/borders/borderRadiusDouble07.html: Added.
* fast/borders/borderRadiusDouble08.html: Added.
* fast/borders/borderRadiusDouble09.html: Added.
* platform/mac/fast/borders/border-radius-circle-expected.checksum: Added.
* platform/mac/fast/borders/border-radius-circle-expected.png: Added.
* platform/mac/fast/borders/border-radius-circle-expected.txt: Added.
* platform/mac/fast/borders/border-radius-groove-01-expected.checksum: Added.
* platform/mac/fast/borders/border-radius-groove-01-expected.png: Added.
* platform/mac/fast/borders/border-radius-groove-01-expected.txt: Added.
* platform/mac/fast/borders/border-radius-groove-02-expected.checksum: Added.
* platform/mac/fast/borders/border-radius-groove-02-expected.png: Added.
* platform/mac/fast/borders/border-radius-groove-02-expected.txt: Added.
* platform/mac/fast/borders/border-radius-groove-03-expected.checksum: Added.
* platform/mac/fast/borders/border-radius-groove-03-expected.png: Added.
* platform/mac/fast/borders/border-radius-groove-03-expected.txt: Added.
* platform/mac/fast/borders/border-radius-wide-border-01-expected.checksum: Added.
* platform/mac/fast/borders/border-radius-wide-border-01-expected.png: Added.
* platform/mac/fast/borders/border-radius-wide-border-01-expected.txt: Added.
* platform/mac/fast/borders/border-radius-wide-border-02-expected.checksum: Added.
* platform/mac/fast/borders/border-radius-wide-border-02-expected.png: Added.
* platform/mac/fast/borders/border-radius-wide-border-02-expected.txt: Added.
* platform/mac/fast/borders/border-radius-wide-border-03-expected.checksum: Added.
* platform/mac/fast/borders/border-radius-wide-border-03-expected.png: Added.
* platform/mac/fast/borders/border-radius-wide-border-03-expected.txt: Added.
* platform/mac/fast/borders/border-radius-wide-border-04-expected.checksum: Added.
* platform/mac/fast/borders/border-radius-wide-border-04-expected.png: Added.
* platform/mac/fast/borders/border-radius-wide-border-04-expected.txt: Added.
* platform/mac/fast/borders/borderRadiusDashed04-expected.checksum: Added.
* platform/mac/fast/borders/borderRadiusDashed04-expected.png: Added.
* platform/mac/fast/borders/borderRadiusDashed04-expected.txt: Added.
* platform/mac/fast/borders/borderRadiusDashed05-expected.checksum: Added.
* platform/mac/fast/borders/borderRadiusDashed05-expected.png: Added.
* platform/mac/fast/borders/borderRadiusDashed05-expected.txt: Added.
* platform/mac/fast/borders/borderRadiusDashed06-expected.checksum: Added.
* platform/mac/fast/borders/borderRadiusDashed06-expected.png: Added.
* platform/mac/fast/borders/borderRadiusDashed06-expected.txt: Added.
* platform/mac/fast/borders/borderRadiusDotted04-expected.checksum: Added.
* platform/mac/fast/borders/borderRadiusDotted04-expected.png: Added.
* platform/mac/fast/borders/borderRadiusDotted04-expected.txt: Added.
* platform/mac/fast/borders/borderRadiusDotted05-expected.checksum: Added.
* platform/mac/fast/borders/borderRadiusDotted05-expected.png: Added.
* platform/mac/fast/borders/borderRadiusDotted05-expected.txt: Added.
* platform/mac/fast/borders/borderRadiusDotted06-expected.checksum: Added.
* platform/mac/fast/borders/borderRadiusDotted06-expected.png: Added.
* platform/mac/fast/borders/borderRadiusDotted06-expected.txt: Added.
* platform/mac/fast/borders/borderRadiusDouble04-expected.checksum: Added.
* platform/mac/fast/borders/borderRadiusDouble04-expected.png: Added.
* platform/mac/fast/borders/borderRadiusDouble04-expected.txt: Added.
* platform/mac/fast/borders/borderRadiusDouble05-expected.checksum: Added.
* platform/mac/fast/borders/borderRadiusDouble05-expected.png: Added.
* platform/mac/fast/borders/borderRadiusDouble05-expected.txt: Added.
* platform/mac/fast/borders/borderRadiusDouble06-expected.checksum: Added.
* platform/mac/fast/borders/borderRadiusDouble06-expected.png: Added.
* platform/mac/fast/borders/borderRadiusDouble06-expected.txt: Added.
* platform/mac/fast/borders/borderRadiusDouble07-expected.checksum: Added.
* platform/mac/fast/borders/borderRadiusDouble07-expected.png: Added.
* platform/mac/fast/borders/borderRadiusDouble07-expected.txt: Added.
* platform/mac/fast/borders/borderRadiusDouble08-expected.checksum: Added.
* platform/mac/fast/borders/borderRadiusDouble08-expected.png: Added.
* platform/mac/fast/borders/borderRadiusDouble08-expected.txt: Added.
* platform/mac/fast/borders/borderRadiusDouble09-expected.checksum: Added.
* platform/mac/fast/borders/borderRadiusDouble09-expected.png: Added.
* platform/mac/fast/borders/borderRadiusDouble09-expected.txt: Added.

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

10 years agoAdd debug-webkittestrunner and cleanup related scripts.
weinig@apple.com [Wed, 30 Jun 2010 20:48:16 +0000 (20:48 +0000)]
Add debug-webkittestrunner and cleanup related scripts.

Rubber-stamped by Anders Carlsson.

* Scripts/debug-webkittestrunner: Added.
* Scripts/run-webkittestrunner:
* Scripts/webkitdirs.pm:

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

10 years agoWebCore:
xan@webkit.org [Wed, 30 Jun 2010 20:11:36 +0000 (20:11 +0000)]
WebCore:

2010-06-30  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Gustavo Noronha.

        [GTK] Unit test for DOM insertion methods
        https://bugs.webkit.org/show_bug.cgi?id=40495

        Fix typo in custom function detection method.

        * bindings/scripts/CodeGeneratorGObject.pm:

WebKit/gtk:

2010-06-30  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Gustavo Noronha.

        [GTK] Unit test for DOM insertion methods
        https://bugs.webkit.org/show_bug.cgi?id=40495

        Add unit test for webkit_dom_node_remove_child.

        * tests/testdomnode.c:
        (test_dom_node_insertion):

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