WebKit-https.git
10 years ago2010-07-28 Victor Wang <victorw@chromium.org>
victorw@chromium.org [Wed, 28 Jul 2010 19:20:51 +0000 (19:20 +0000)]
2010-07-28  Victor Wang  <victorw@chromium.org>

        Unreviewed. Update chromium test expectations for tesst that
        may crash on mac or linux:
        fast/dom/prototype-inheritance-2.html

        * platform/chromium/test_expectations.txt:

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

10 years ago2010-07-28 Antonio Gomes <tonikitoo@webkit.org>
tonikitoo@webkit.org [Wed, 28 Jul 2010 19:16:01 +0000 (19:16 +0000)]
2010-07-28  Antonio Gomes  <tonikitoo@webkit.org>

        Rubber-stamped by Kenneth Christiansen.

        More Developer menu items reordering.

        Grouping related menu items together, visually and logically (in the code).

        No behavior change.

        * QtTestBrowser/main.cpp:

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

10 years ago2010-07-28 Victor Wang <victorw@chromium.org>
victorw@chromium.org [Wed, 28 Jul 2010 18:31:15 +0000 (18:31 +0000)]
2010-07-28  Victor Wang  <victorw@chromium.org>

        Unreviewed. Update chromium test expectations for test:
        storage/indexeddb/objectstore-basics.html

        * storage/indexeddb/objectstore-basics-expected.txt:

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

10 years ago2010-07-28 Tony Gentilcore <tonyg@chromium.org>
tonyg@chromium.org [Wed, 28 Jul 2010 17:54:19 +0000 (17:54 +0000)]
2010-07-28  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Pavel Feldman.

        Exclude DNS and SSL time from connect time
        https://bugs.webkit.org/show_bug.cgi?id=43083

        The ResourceLoadTiming API's definition of the connect phase includes
        DNS and SSL time. However, the Web Timing spec wants just the TCP time.
        So this patch subtracts those phases out.

        No new tests because ResourceLoadTiming fields are not populated by
        TestShell yet.

        * page/Timing.cpp:
        (WebCore::Timing::connectStart):
        (WebCore::Timing::connectEnd):

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

10 years ago2010-07-28 Andrei Popescu <andreip@google.com>
andreip@google.com [Wed, 28 Jul 2010 17:40:22 +0000 (17:40 +0000)]
2010-07-28  Andrei Popescu  <andreip@google.com>

        Reviewed by Jeremy Orlow.

        The text expectations for storage/objectore-basics.html are out of date
        https://bugs.webkit.org/show_bug.cgi?id=43126

        Following http://trac.webkit.org/changeset/64209
        the objectstore-basics-expected.txt file should be updated to reflect
        the new tests.

        * storage/indexeddb/objectstore-basics-expected.txt:

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

10 years ago2010-07-28 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Wed, 28 Jul 2010 17:17:09 +0000 (17:17 +0000)]
2010-07-28  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Dimitri Glazkov.

        Chromium DevTools: [REGRESSION] sourceURL is not respected.

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

        * src/js/DebuggerScript.js:

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

10 years ago2010-07-28 Andrei Popescu <andreip@google.com>
andreip@google.com [Wed, 28 Jul 2010 16:34:25 +0000 (16:34 +0000)]
2010-07-28  Andrei Popescu  <andreip@google.com>

        Reviewed by Jeremy Orlow.

        Skip IDBKeyRange from the prototype-inheritance layout test.
        IDBKeyRange is a DOM object and, with V8, it seems that such objects
        do not respect the prototype inheritance.

        Once IndexedDatabase is done, we should remove indexedDB and IDBKeyRange
        from the list of skipped window properties and we should update the
        Chromium and Android test expectations.

        fast/dom/prototype-inheritance.html fails from r64141
        https://bugs.webkit.org/show_bug.cgi?id=43067

        * fast/dom/script-tests/prototype-inheritance.js:
        * platform/chromium/test_expectations.txt:

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

10 years ago2010-07-28 Andrei Popescu <andreip@google.com>
andreip@google.com [Wed, 28 Jul 2010 16:27:28 +0000 (16:27 +0000)]
2010-07-28  Andrei Popescu  <andreip@google.com>

        Reviewed by Jeremy Orlow.

        [IndexedDB] WebDOMStringList default ctor does not initialize its m_private member
        variable so any attempt to append strings to a WebDOMStringList instance results in a crash.
        https://bugs.webkit.org/show_bug.cgi?id=43120

        * storage/indexeddb/script-tests/objectstore-basics.js:
        (openSuccess):
        (createSuccess):
2010-07-28  Andrei Popescu  <andreip@google.com>

        Reviewed by Jeremy Orlow.

        [IndexedDB] WebDOMStringList default ctor does not initialize its m_private member
        variable so any attempt to append strings to a WebDOMStringList instance results in a crash.
        https://bugs.webkit.org/show_bug.cgi?id=43120

        Makes the default WebKit::WebDOMStringList ctor actually create its wrapped
        WebCore::DOMStringList instance.

        * public/WebDOMStringList.h:
        * src/WebDOMStringList.cpp:
        (WebKit::WebDOMStringList::WebDOMStringList):

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

10 years ago2010-07-26 Steve Block <steveblock@google.com>
steveblock@google.com [Wed, 28 Jul 2010 16:13:30 +0000 (16:13 +0000)]
2010-07-26  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Page clients should be passed to Page constructor via structure of pointers
        https://bugs.webkit.org/show_bug.cgi?id=42834

        * src/WebViewImpl.cpp:
        (WebKit::WebViewImpl::WebViewImpl):
2010-07-26  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Page clients should be passed to Page constructor via structure of pointers
        https://bugs.webkit.org/show_bug.cgi?id=42834

        * Api/qwebpage.cpp:
        (QWebPagePrivate::QWebPagePrivate):
2010-07-26  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Page clients should be passed to Page constructor via structure of pointers
        https://bugs.webkit.org/show_bug.cgi?id=42834

        * webkit/webkitwebview.cpp:
        (webkit_web_view_init):
2010-07-26  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Page clients should be passed to Page constructor via structure of pointers
        https://bugs.webkit.org/show_bug.cgi?id=42834

        * WebView.cpp:
        (WebView::initWithFrame):
2010-07-26  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Page clients should be passed to Page constructor via structure of pointers
        https://bugs.webkit.org/show_bug.cgi?id=42834

        * WebView.cpp:
        (wxWebView::Create):
2010-07-26  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Page clients should be passed to Page constructor via structure of pointers
        https://bugs.webkit.org/show_bug.cgi?id=42834

        * WebView/WebView.mm:
        (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2010-07-26  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Page clients should be passed to Page constructor via structure of pointers
        https://bugs.webkit.org/show_bug.cgi?id=42834

        * ewk/ewk_view.cpp:
        (_ewk_view_priv_new):
2010-07-26  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Page clients should be passed to Page constructor via structure of pointers
        https://bugs.webkit.org/show_bug.cgi?id=42834

        No new tests, refactoring only.

        * WebCore.exp.in:
        * page/Page.cpp:
        (WebCore::Page::Page):
        * page/Page.h:
        (WebCore::Page::PageClients::PageClients):
        * svg/graphics/SVGImage.cpp:
        (WebCore::SVGImage::dataChanged):
2010-07-26  Steve Block  <steveblock@google.com>

       Reviewed by Jeremy Orlow.

       Page clients should be passed to Page constructor via structure of pointers
       https://bugs.webkit.org/show_bug.cgi?id=42834

       * WebKit2/WebProcess/WebPage/WebPage.cpp:
       (WebPage::WebPage):

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

10 years ago2010-07-28 Xianzhu Wang <phnixwxz@gmail.com>
commit-queue@webkit.org [Wed, 28 Jul 2010 16:00:55 +0000 (16:00 +0000)]
2010-07-28  Xianzhu Wang  <phnixwxz@gmail.com>

        Reviewed by Dan Bernstein.

        Line not wrapped at certain punctuations
        https://bugs.webkit.org/show_bug.cgi?id=37698

        * fast/text/line-breaks-after-closing-punctuations-expected.txt: Added.
        * fast/text/line-breaks-after-closing-punctuations.html: Added.
2010-07-28  Xianzhu Wang  <phnixwxz@gmail.com>

        Reviewed by Dan Bernstein.

        Line not wrapped at certain punctuations
        https://bugs.webkit.org/show_bug.cgi?id=37698
        Added a line breaking table for all printable ASCII chars to replace
        the original line breaking table for only '?'.

        Test: fast/text/line-breaks-after-closing-punctuations.html

        * rendering/break_lines.cpp:
        (WebCore::isBreakableSpace):
        (WebCore::):
        (WebCore::shouldBreakAfter):
        (WebCore::needsLineBreakIterator):

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

10 years ago2010-07-28 Lucas De Marchi <lucas.demarchi@profusion.mobi>
leandro@webkit.org [Wed, 28 Jul 2010 15:26:07 +0000 (15:26 +0000)]
2010-07-28  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Unreviewed build fix.

        Fix EFL build with SHARED_CORE=ON after r64124.

        * CMakeLists.txt:

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

10 years ago2010-07-28 Jay Civelli <jcivelli@chromium.org>
jcivelli@chromium.org [Wed, 28 Jul 2010 15:19:23 +0000 (15:19 +0000)]
2010-07-28  Jay Civelli  <jcivelli@chromium.org>

        Reviewed by Kent Tamura.

        [Chromium] The popup now layouts properly its rows by
        taking into account the label width.
        https://bugs.webkit.org/show_bug.cgi?id=42910

        * platform/chromium/PopupMenuChromium.cpp:
        (WebCore::PopupListBox::layout):

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

10 years ago2010-07-28 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Wed, 28 Jul 2010 14:59:02 +0000 (14:59 +0000)]
2010-07-28  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed: chromium tests fix.
        Chromium Dev Tools: [REGRESSION] Pause is not working.

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

        * src/js/DevTools.js:
        (InspectorBackend.pause):

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

10 years ago2010-07-28 Ilya Tikhonovsky <loislo@chromium.org>
loislo@chromium.org [Wed, 28 Jul 2010 14:32:26 +0000 (14:32 +0000)]
2010-07-28  Ilya Tikhonovsky  <loislo@chromium.org>

        Reviewed by Pavel Feldman.

        WebInspector: Navigating to anchor prior to opening WebInspector
        makes resource have 'other' type.
        https://bugs.webkit.org/show_bug.cgi?id=43110

        * inspector/InspectorResource.cpp:
        (WebCore::InspectorResource::type):
        (WebCore::InspectorResource::resourceData):
        * inspector/front-end/ResourceView.js:
        (WebInspector.ResourceView.prototype._innerSelectContentTab):

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

10 years ago2010-07-28 Andreas Kling <andreas.kling@nokia.com>
andreas.kling@nokia.com [Wed, 28 Jul 2010 12:55:25 +0000 (12:55 +0000)]
2010-07-28  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] putImageData(): Combine premultiplication and BGR->RGB
        https://bugs.webkit.org/show_bug.cgi?id=43114

        Further optimized putImageData() by doing BGR->RGB inside the
        premultiplication routine.

        * platform/graphics/qt/ImageBufferQt.cpp:
        (WebCore::premultiplyABGRtoARGB): Renamed from premultiply.
        (WebCore::putImageData):

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

10 years ago2010-07-28 Andrei Popescu <andreip@google.com>
andreip@google.com [Wed, 28 Jul 2010 12:37:20 +0000 (12:37 +0000)]
2010-07-28  Andrei Popescu  <andreip@google.com>

        Reviewed by Jeremy Orlow.

        [IndexedDB] IDBKeyRange should be a runtime-enabled feature.
        https://bugs.webkit.org/show_bug.cgi?id=43116

        IDBKeyRange should be enabled at runtime only when IndexedDB is also
        enabled.

        No new tests needed, functionality not changed.

        * bindings/generic/RuntimeEnabledFeatures.h:
        (WebCore::RuntimeEnabledFeatures::iDBKeyRangeEnabled):
        * page/DOMWindow.idl:

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

10 years ago2010-07-28 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 28 Jul 2010 11:20:21 +0000 (11:20 +0000)]
2010-07-28  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Forgot to land GNUmakefile.am changes, broke build in r64196.

        * GNUmakefile.am: Add SVGResources.* / SVGResourcesCache.* / SVGResourcesCycleSolver.* to build.

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

10 years ago2010-07-28 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 28 Jul 2010 11:16:54 +0000 (11:16 +0000)]
2010-07-28  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Fix two layout test failure on the windows slave. Remove win-xp specific results after the r64186 change.

        * platform/win-xp/fast/lists: Removed.
        * platform/win-xp/fast/lists/w3-css3-list-styles-alphabetic-expected.txt: Removed.
        * platform/win-xp/fast/lists/w3-css3-list-styles-numeric-expected.txt: Removed.

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

10 years ago2010-07-28 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 28 Jul 2010 11:14:13 +0000 (11:14 +0000)]
2010-07-28  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Fix layout test failure on Leopard Intel Debug slave. Remove leopard specific result after the r64186 change.

        * platform/mac-leopard/fast/lists: Removed.
        * platform/mac-leopard/fast/lists/w3-css3-list-styles-numeric-expected.txt: Removed.

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

10 years ago2010-07-28 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 28 Jul 2010 11:09:06 +0000 (11:09 +0000)]
2010-07-28  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        SVGMaskElement/SVGForeignObjectElement should not inherit from SVGURIReference
        https://bugs.webkit.org/show_bug.cgi?id=43113

        Remove wrong SVGURIReference inheritance for SVGMaskElement/SVGForeignObjectElement. Old copy/paste bug.

        * svg/SVGForeignObjectElement.cpp:
        (WebCore::SVGForeignObjectElement::synchronizeProperty):
        * svg/SVGForeignObjectElement.h:
        * svg/SVGMaskElement.cpp:
        (WebCore::SVGMaskElement::SVGMaskElement):
        (WebCore::SVGMaskElement::parseMappedAttribute):
        (WebCore::SVGMaskElement::svgAttributeChanged):
        (WebCore::SVGMaskElement::synchronizeProperty):
        * svg/SVGMaskElement.h:

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

10 years ago2010-07-28 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 28 Jul 2010 10:55:19 +0000 (10:55 +0000)]
2010-07-28  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        WebKit shouldn't ignore resource cycles, but break them as Opera does
        https://bugs.webkit.org/show_bug.cgi?id=43031

        Don't ignore resources containing cyclic references, but break them, as discussed on SVG WG mailing lists - to be compatible with Opera which already does that.

        We used to lookup RenderSVGResourceContainers objects, by extracting the URI reference from the SVGRenderStyle, then utilizing getElementById() to lookup the
        node, and access its renderer. Opera ignores such references, if they point to resources that contain cyclic references. Ignoring them would mean we have
        to mutate the render style to empty the resource strings. That obviously doesn't work, as it would break expectations (getComputedStyle, etc.).

        Introduce a SVGResources class that stores pointers to all resources, that can be applied to a RenderObject (clipper/filter/markers/masker).
        Add a SVGResourcesCache class, which is basically a HashMap<RenderObject*, SVGResources*>. Whenever a RenderObject receives style, we extract the URI references
        from the SVGRenderStyle, look up the RenderSVGResourceContainer* objects, and store them in a SVGResources* class. Then we execute a cycle detection logic,
        which detects cyclic references and breaks them. Breaking them means just nulling the pointer to the resource in the SVGResources object. Those SVGResources
        objects are cached, and used throughout the render tree to access resources. This way it's guaranteed that all cyclic references are resolved until layout/paint
        phase begins.

        This is the first chunk, which just adds the new SVGResources/SVGResourcesCache/SVGResourcesCycleSolver files, and does minor cleanups.
        It's not yet glued in and doesn't affect any tests.

        * Android.mk: Add SVGResources.* / SVGResourcesCache.* / SVGResourcesCycleSolver.* to build.
        * CMakeLists.txt: Ditto.
        * WebCore.gypi: Ditto.
        * WebCore.pro: Ditto.
        * WebCore.vcproj/WebCore.vcproj: Ditto.
        * WebCore.xcodeproj/project.pbxproj: Ditto.
        * rendering/RenderInline.h: Make styleDidChange protected, RenderSVGInline wants to override it.
        * rendering/RenderSVGAllInOne.cpp: Add SVGResources.* / SVGResourcesCache.* / SVGResourcesCycleSolver.* to build.
        * rendering/RenderSVGHiddenContainer.h:
        (WebCore::RenderSVGHiddenContainer::isSVGHiddenContainer): Make isSVGHiddenContainer() private and renderName() public.
        * rendering/RenderSVGResourceContainer.cpp: Added. Moved most methods from the header in the implementation file.
        (WebCore::RenderSVGResourceContainer::RenderSVGResourceContainer):
        (WebCore::RenderSVGResourceContainer::~RenderSVGResourceContainer):
        (WebCore::RenderSVGResourceContainer::idChanged):
        (WebCore::RenderSVGResourceContainer::transformOnNonScalingStroke):
        (WebCore::RenderSVGResourceContainer::containsCyclicReference):
        * rendering/RenderSVGResourceContainer.h: Add stubs, that SVGResourcesCache uses - a follow-up patch will add the logic.
        (WebCore::RenderSVGResourceContainer::addClient):
        (WebCore::RenderSVGResourceContainer::removeClient):
        * rendering/SVGResources.cpp: Added. Holds a list of resources applyable to a RenderObject (fill/stroke, mask/markers/clipper/filter)
        (WebCore::paintingResourceFromSVGPaint): Helper function looking up a RenderSVGResource for a SVGPaint object.
        (WebCore::registerPendingResource): Helper function that register a RenderSVGResource as pending in the SVGDocumentExtensions.
        (WebCore::SVGResources::buildCachedResources): Build a list of resources for a RenderObject/RenderStyle pair, handles pending resources, if needed.
        (WebCore::SVGResources::invalidateClient): Helper function that calls invalidateClient() on all resources.
        (WebCore::SVGResources::resourceDestroyed): Helper function that calls invalidateClients() on a certain resource, and nulls it.
        (WebCore::SVGResources::buildSetOfResources): Helper function that stashes all resources present in the SVGResources members in a HashSet, used in SVGResourcesCycleSolver.
        (WebCore::SVGResources::resetClipper): Helper methods nulling a resource.
        (WebCore::SVGResources::resetFilter): Ditto.
        (WebCore::SVGResources::resetMarkerStart): Ditto.
        (WebCore::SVGResources::resetMarkerMid): Ditto.
        (WebCore::SVGResources::resetMarkerEnd): Ditto.
        (WebCore::SVGResources::resetMasker): Ditto.
        (WebCore::SVGResources::resetFill): Ditto.
        (WebCore::SVGResources::resetStroke): Ditto.
        (WebCore::SVGResources::dump):
        * rendering/SVGResources.h: Added.
        (WebCore::SVGResources::clipper): Accesor of the cached m_foo variable.
        (WebCore::SVGResources::filter): Ditto.
        (WebCore::SVGResources::markerStart): Ditto.
        (WebCore::SVGResources::markerMid): Ditto.
        (WebCore::SVGResources::markerEnd): Ditto.
        (WebCore::SVGResources::masker): Ditto.
        (WebCore::SVGResources::fill): Ditto.
        (WebCore::SVGResources::stroke): Ditto.
        * rendering/SVGResourcesCache.cpp: Added. Holds a HashMap<RenderObject*, SVGResources*> and utility functions that update/invalidate the cache.
        (WebCore::SVGResourcesCache::SVGResourcesCache):
        (WebCore::SVGResourcesCache::~SVGResourcesCache):
        (WebCore::SVGResourcesCache::addResourcesFromRenderObject): Build a SVGResources object for a RenderObject and adds it to the cache, then detects & breaks cycles using SVGResourcesCycleSolver.
        (WebCore::SVGResourcesCache::removeResourcesFromRenderObject): Remove a SVGResources object from the cache.
        (WebCore::resourcesCacheFromRenderObject): Helper function, retrieving a SVGResourcesCache method from a RenderObject.
        (WebCore::SVGResourcesCache::cachedResourcesForRenderObject): Returns a SVGResources object from the cache.
        (WebCore::SVGResourcesCache::clientLayoutChanged): (static) Calls invalidateClient() on all resources that are used by the passed RenderObject.
        (WebCore::SVGResourcesCache::clientStyleChanged): (static) Updates the cache (calling removeResourceFromRenderObject/addResourcesFrom...) and invalidates resources in the ancestor chain.
        (WebCore::SVGResourcesCache::clientUpdatedFromElement): (static) Does the same, without invalidating the ancestor chain.
        (WebCore::SVGResourcesCache::clientDestroyed): (static) Calls removeResourcesFromRenderObject() on the SVGResourcesCache, for the given renderer.
        (WebCore::SVGResourcesCache::resourceDestroyed): (static) Updates all SVGResources objects in the cache, that refer to the given resource.
        * rendering/SVGResourcesCache.h: Added.
        * rendering/SVGResourcesCycleSolver.cpp: Added. Detects and breaks cyclic references, just the way Opera handles it. Break cycles as they are detected.
        (WebCore::SVGResourcesCycleSolver::SVGResourcesCycleSolver):
        (WebCore::SVGResourcesCycleSolver::~SVGResourcesCycleSolver):
        (WebCore::SVGResourcesCycleSolver::resourceContainsCycles): Operates only on the render tree
        (WebCore::targetReferenceFromResource): Helper method for chainableResourceContainsCycles().
        (WebCore::setFollowLinkForChainableResource): Ditto.
        (WebCore::SVGResourcesCycleSolver::chainableResourceContainsCycles): Handles cycles for resources that are chainable through xlink:href (filter/gradient/pattern).
        (WebCore::SVGResourcesCycleSolver::resolveCycles): Main method executing the cycle breaking logic, utilizing (chainableResource)resourceContainsCycles.
        (WebCore::SVGResourcesCycleSolver::breakCycle): Nulls a resource in the given SVGResources* object, to avoid using an invalid resource while rendering/layouting.
        * rendering/SVGResourcesCycleSolver.h: Added.
        * svg/SVGDocumentExtensions.cpp:
        (WebCore::SVGDocumentExtensions::SVGDocumentExtensions): Create SVGResourcesCache object once per SVGDocumentExtensions.
        * svg/SVGDocumentExtensions.h:
        (WebCore::SVGDocumentExtensions::resourcesCache): Expose accesor method for the SVGResourcesCache.

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

10 years ago2010-07-28 Jeremy Orlow <jorlow@chromium.org>
jorlow@chromium.org [Wed, 28 Jul 2010 10:12:22 +0000 (10:12 +0000)]
2010-07-28  Jeremy Orlow  <jorlow@chromium.org>

        Updating Chromium test expectations to expect 8 tests to fail since
        our "test shell" doesn't implement a method required by Daniel Bates'
        http://trac.webkit.org/changeset/64186/ change.

        Not reviewed.

        * platform/chromium/test_expectations.txt:

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

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

        Not reviewed. Rebaseline mac-leopard specific pixel test result after the path cleanup patch.

        * platform/mac-leopard/svg/custom/svg-fonts-in-html-expected.checksum:
        * platform/mac-leopard/svg/custom/svg-fonts-in-html-expected.png:

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

10 years ago2010-07-28 Andras Becsi <abecsi@webkit.org>
abecsi@webkit.org [Wed, 28 Jul 2010 09:50:58 +0000 (09:50 +0000)]
2010-07-28  Andras Becsi  <abecsi@webkit.org>

        Unreviewed trivial build fix.

        [Qt] Follow the API changes after r64172.

        * UIProcess/API/qt/qwkpage.cpp:
        (QWKPage::url):
        (QWKPage::title):

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

10 years agoSVGFilterElement & SVGFE*Element don't support dynamic invalidation, when attributes...
zherczeg@webkit.org [Wed, 28 Jul 2010 08:08:49 +0000 (08:08 +0000)]
SVGFilterElement & SVGFE*Element don't support dynamic invalidation, when attributes change
https://bugs.webkit.org/show_bug.cgi?id=42244

Reviewed by Nikolas Zimmermann.

WebCore:

Implementing svgAttributeChanged for SVGFEOffsetElement object.

Tests: svg/dynamic-updates/SVGFEOffsetElement-dom-dx-attr.html
       svg/dynamic-updates/SVGFEOffsetElement-dom-dy-attr.html
       svg/dynamic-updates/SVGFEOffsetElement-dom-in-attr.html
       svg/dynamic-updates/SVGFEOffsetElement-svgdom-dx-prop.html
       svg/dynamic-updates/SVGFEOffsetElement-svgdom-dy-prop.html
       svg/dynamic-updates/SVGFEOffsetElement-svgdom-in-prop.html

* svg/SVGFEOffsetElement.cpp:
(WebCore::SVGFEOffsetElement::svgAttributeChanged):
* svg/SVGFEOffsetElement.h:

LayoutTests:

* platform/mac/svg/dynamic-updates/SVGFEOffsetElement-dom-dx-attr-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEOffsetElement-dom-dx-attr-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEOffsetElement-dom-dy-attr-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEOffsetElement-dom-dy-attr-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEOffsetElement-dom-in-attr-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEOffsetElement-dom-in-attr-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEOffsetElement-svgdom-dx-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEOffsetElement-svgdom-dx-prop-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEOffsetElement-svgdom-dy-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEOffsetElement-svgdom-dy-prop-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEOffsetElement-svgdom-in-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEOffsetElement-svgdom-in-prop-expected.png: Added.
* svg/dynamic-updates/SVGFEOffsetElement-dom-dx-attr-expected.txt: Added.
* svg/dynamic-updates/SVGFEOffsetElement-dom-dx-attr.html: Added.
* svg/dynamic-updates/SVGFEOffsetElement-dom-dy-attr-expected.txt: Added.
* svg/dynamic-updates/SVGFEOffsetElement-dom-dy-attr.html: Added.
* svg/dynamic-updates/SVGFEOffsetElement-dom-in-attr-expected.txt: Added.
* svg/dynamic-updates/SVGFEOffsetElement-dom-in-attr.html: Added.
* svg/dynamic-updates/SVGFEOffsetElement-svgdom-dx-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEOffsetElement-svgdom-dx-prop.html: Added.
* svg/dynamic-updates/SVGFEOffsetElement-svgdom-dy-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEOffsetElement-svgdom-dy-prop.html: Added.
* svg/dynamic-updates/SVGFEOffsetElement-svgdom-in-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEOffsetElement-svgdom-in-prop.html: Added.
* svg/dynamic-updates/script-tests/SVGFEOffsetElement-dom-dx-attr.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEOffsetElement-dom-dy-attr.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEOffsetElement-dom-in-attr.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEOffsetElement-svgdom-dx-prop.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEOffsetElement-svgdom-dy-prop.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEOffsetElement-svgdom-in-prop.js: Added.
(executeTest):

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

10 years agoSVGFilterElement & SVGFE*Element don't support dynamic invalidation, when attributes...
zherczeg@webkit.org [Wed, 28 Jul 2010 08:03:57 +0000 (08:03 +0000)]
SVGFilterElement & SVGFE*Element don't support dynamic invalidation, when attributes change
https://bugs.webkit.org/show_bug.cgi?id=42244

Reviewed by Nikolas Zimmermann.

WebCore:

Implementing svgAttributeChanged for SVGFEDiffuseLightingElement object.

Tests: svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-diffuseConstant-attr.html
       svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-in-attr.html
       svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-lighting-color-attr.html
       svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-surfaceScale-attr.html
       svg/dynamic-updates/SVGFEDiffuseLightingElement-lighting-color-css-prop.html
       svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-diffuseConstant-prop.html
       svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-in-prop.html
       svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-surfaceScale-prop.html

* svg/SVGFEDiffuseLightingElement.cpp:
(WebCore::SVGFEDiffuseLightingElement::svgAttributeChanged):
* svg/SVGFEDiffuseLightingElement.h:

LayoutTests:

* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-diffuseConstant-attr-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-diffuseConstant-attr-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-in-attr-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-in-attr-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-lighting-color-attr-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-lighting-color-attr-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-surfaceScale-attr-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-surfaceScale-attr-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-lighting-color-css-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-lighting-color-css-prop-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-diffuseConstant-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-diffuseConstant-prop-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-in-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-in-prop-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-surfaceScale-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-surfaceScale-prop-expected.png: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-diffuseConstant-attr-expected.txt: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-diffuseConstant-attr.html: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-in-attr-expected.txt: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-in-attr.html: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-lighting-color-attr-expected.txt: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-lighting-color-attr.html: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-surfaceScale-attr-expected.txt: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-dom-surfaceScale-attr.html: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-lighting-color-css-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-lighting-color-css-prop.html: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-diffuseConstant-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-diffuseConstant-prop.html: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-in-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-in-prop.html: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-surfaceScale-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEDiffuseLightingElement-svgdom-surfaceScale-prop.html: Added.
* svg/dynamic-updates/script-tests/SVGFEDiffuseLightingElement-dom-diffuseConstant-attr.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEDiffuseLightingElement-dom-in-attr.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEDiffuseLightingElement-dom-lighting-color-attr.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEDiffuseLightingElement-dom-surfaceScale-attr.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEDiffuseLightingElement-lighting-color-css-prop.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEDiffuseLightingElement-svgdom-diffuseConstant-prop.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEDiffuseLightingElement-svgdom-in-prop.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEDiffuseLightingElement-svgdom-surfaceScale-prop.js: Added.
(executeTest):

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

10 years ago2010-07-27 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Wed, 28 Jul 2010 05:59:06 +0000 (05:59 +0000)]
2010-07-27  Martin Robinson  <mrobinson@igalia.com>

        Unreviewed build fix.

        Add missing webkitdomdefines.h header to the sources list.

        * GNUmakefile.am: Add missing header to the sources list.

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

10 years ago2010-07-27 Kinuko Yasuda <kinuko@chromium.org>
kinuko@chromium.org [Wed, 28 Jul 2010 05:16:18 +0000 (05:16 +0000)]
2010-07-27  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Ojan Vafai.

        Add FILE_SYSTEM build flag for FileSystem API
        https://bugs.webkit.org/show_bug.cgi?id=42915

        * Configurations/FeatureDefines.xcconfig:
2010-07-27  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Ojan Vafai.

        Add FILE_SYSTEM build flag for FileSystem API
        https://bugs.webkit.org/show_bug.cgi?id=42915

        * features.gypi:
2010-07-27  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Ojan Vafai.

        Add FILE_SYSTEM build flag for FileSystem API
        https://bugs.webkit.org/show_bug.cgi?id=42915

        * Configurations/FeatureDefines.xcconfig:
2010-07-27  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Ojan Vafai.

        Add FILE_SYSTEM build flag for FileSystem API
        https://bugs.webkit.org/show_bug.cgi?id=42915

        * win/tools/vsprops/FeatureDefines.vsprops:
        * win/tools/vsprops/FeatureDefinesCairo.vsprops:
2010-07-27  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Ojan Vafai.

        Add FILE_SYSTEM build flag for FileSystem API
        https://bugs.webkit.org/show_bug.cgi?id=42915

        * Configurations/FeatureDefines.xcconfig:
        * GNUmakefile.am:
        * WebCore.pri:
2010-07-27  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Ojan Vafai.

        Add FILE_SYSTEM build flag for FileSystem API
        https://bugs.webkit.org/show_bug.cgi?id=42915

        * configure.ac:
2010-07-27  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Ojan Vafai.

        Add FILE_SYSTEM build flag for FileSystem API
        https://bugs.webkit.org/show_bug.cgi?id=42915

        * Scripts/build-webkit:

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

10 years ago2010-07-27 Daniel Bates <dbates@rim.com>
dbates@webkit.org [Wed, 28 Jul 2010 04:09:22 +0000 (04:09 +0000)]
2010-07-27  Daniel Bates  <dbates@rim.com>

        Unreviewed; remove platform-specific expected results.
        https://bugs.webkit.org/show_bug.cgi?id=42803

        We no longer need the Qt an GTK platform-specific render tree dumps
        as we now dump text.

        * platform/gtk/fast/lists/alpha-boundary-values-expected.txt: Removed.
        * platform/gtk/fast/lists/w3-css3-list-styles-alphabetic-expected.txt: Removed.
        * platform/qt/fast/lists/alpha-boundary-values-expected.checksum: Removed.
        * platform/qt/fast/lists/alpha-boundary-values-expected.png: Removed.
        * platform/qt/fast/lists/alpha-boundary-values-expected.txt: Removed.
        * platform/qt/fast/lists/w3-css3-list-styles-numeric-expected.txt: Removed.
        * platform/qt/fast/lists/w3-list-styles-expected.txt: Removed.

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

10 years ago2010-07-26 Yuzo Fujishima <yuzo@google.com>
yuzo@google.com [Wed, 28 Jul 2010 03:48:36 +0000 (03:48 +0000)]
2010-07-26  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Shinichiro Hamaji.

        @page rules in media queries should be tested.
        Added tests for such rules.
        https://bugs.webkit.org/show_bug.cgi?id=42971

        * printing/page-rule-selection-expected.txt:
        * printing/page-rule-selection.html:
2010-07-26  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Shinichiro Hamaji.

        @page rules in media queries should be tested.
        https://bugs.webkit.org/show_bug.cgi?id=42971

        * page/PrintContext.cpp:
        (WebCore::PrintContext::pageProperty): Fixed to properly begin
        printing. Added support for size property.

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

10 years ago2010-07-27 Daniel Bates <dbates@rim.com>
dbates@webkit.org [Wed, 28 Jul 2010 03:44:53 +0000 (03:44 +0000)]
2010-07-27  Daniel Bates  <dbates@rim.com>

        Reviewed by Darin Adler.

        Convert DRT list tests from pixel-tests/render tree dumps to text
        https://bugs.webkit.org/show_bug.cgi?id=42803

        With the passing of Bug #37929 and Bug #37930, convert a subset of the
        DRT tests for lists from pixel-tests to text-based tests now that we
        can retrieve the list item marker text in both the Mac and Windows ports.

        * fast/lists/alpha-boundary-values-expected.txt: Added.
        * fast/lists/alpha-boundary-values.html: Modified to dump as text.
        * fast/lists/alpha-list-wrap-expected.txt: Added.
        * fast/lists/alpha-list-wrap.html: Modified to dump as text.
        * fast/lists/decimal-leading-zero-expected.txt: Added.
        * fast/lists/decimal-leading-zero.html: Modified to dump as text.
        * fast/lists/li-values-expected.txt: Added.
        * fast/lists/li-values.html: Modified to dump as text.
        * fast/lists/list-style-type-dynamic-change-expected.txt: Added.
        * fast/lists/list-style-type-dynamic-change.html: Modified to dump as text.
        * fast/lists/resources/dump-list.js:
        (dumpList): Modified to call processList.
        (filterListsWithReplacement): Added.
        (processList): Added.
        (dumpListItemAsHTML): Added.
        (printPassedIfEmptyString): Added.
        (printFailedIfListItemMarkerNotEqualListItemText): Added.
        * fast/lists/w3-css3-list-styles-alphabetic-expected.txt: Added.
        * fast/lists/w3-css3-list-styles-alphabetic.html: Modified to dump as text.
        * fast/lists/w3-css3-list-styles-numeric-expected.txt: Added.
        * fast/lists/w3-css3-list-styles-numeric.html: Modified to dump as text.
          Also, fix typos in the binary list-style-type results.
        * fast/lists/w3-list-styles-expected.txt: Added.
        * fast/lists/w3-list-styles.html: Modified to dump as text.
        * platform/mac/fast/lists/alpha-boundary-values-expected.checksum: Removed.
        * platform/mac/fast/lists/alpha-boundary-values-expected.png: Removed.
        * platform/mac/fast/lists/alpha-boundary-values-expected.txt: Removed.
        * platform/mac/fast/lists/alpha-list-wrap-expected.checksum: Removed.
        * platform/mac/fast/lists/alpha-list-wrap-expected.png: Removed.
        * platform/mac/fast/lists/alpha-list-wrap-expected.txt: Removed.
        * platform/mac/fast/lists/decimal-leading-zero-expected.checksum: Removed.
        * platform/mac/fast/lists/decimal-leading-zero-expected.png: Removed.
        * platform/mac/fast/lists/decimal-leading-zero-expected.txt: Removed.
        * platform/mac/fast/lists/li-values-expected.checksum: Removed.
        * platform/mac/fast/lists/li-values-expected.png: Removed.
        * platform/mac/fast/lists/li-values-expected.txt: Removed.
        * platform/mac/fast/lists/list-style-type-dynamic-change-expected.checksum: Removed.
        * platform/mac/fast/lists/list-style-type-dynamic-change-expected.png: Removed.
        * platform/mac/fast/lists/list-style-type-dynamic-change-expected.txt: Removed.
        * platform/mac/fast/lists/w3-css3-list-styles-alphabetic-expected.checksum: Removed.
        * platform/mac/fast/lists/w3-css3-list-styles-alphabetic-expected.png: Removed.
        * platform/mac/fast/lists/w3-css3-list-styles-alphabetic-expected.txt: Removed.
        * platform/mac/fast/lists/w3-css3-list-styles-numeric-expected.checksum: Removed.
        * platform/mac/fast/lists/w3-css3-list-styles-numeric-expected.png: Removed.
        * platform/mac/fast/lists/w3-css3-list-styles-numeric-expected.txt: Removed.
        * platform/mac/fast/lists/w3-list-styles-expected.checksum: Removed.
        * platform/mac/fast/lists/w3-list-styles-expected.png: Removed.
        * platform/mac/fast/lists/w3-list-styles-expected.txt: Removed.
        * platform/win/fast/lists: Removed.
        * platform/win/fast/lists/w3-css3-list-styles-alphabetic-expected.txt: Removed.
        * platform/win/fast/lists/w3-css3-list-styles-numeric-expected.txt: Removed.

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

10 years ago2010-07-27 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Wed, 28 Jul 2010 01:50:40 +0000 (01:50 +0000)]
2010-07-27  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by David Levin.

        Stylebot should not complain about NULL usage in calls to gdk_pixbuf_save_to
        https://bugs.webkit.org/show_bug.cgi?id=43090

        * Scripts/webkitpy/style/checkers/cpp.py: Add exemption for some GdkPixbuf methods.
        * Scripts/webkitpy/style/checkers/cpp_unittest.py: Added some tests for this behavior.

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

10 years agoTemporarily rolling out http://trac.webkit.org/changeset/64177,
barraclough@apple.com [Wed, 28 Jul 2010 00:36:56 +0000 (00:36 +0000)]
Temporarily rolling out trac.webkit.org/changeset/64177,
this seems to give QT ARM/Win a headache (specifically, looks
like structure layour differs, objects get too large -
"..\..\..\JavaScriptCore\runtime\ArrayPrototype.cpp:41:"
"error: size of array 'dummyclass_fits_in_cell' is negative").

* jit/JITPropertyAccess.cpp:
(JSC::JIT::emit_op_get_by_val):
(JSC::JIT::emit_op_put_by_val):
(JSC::JIT::privateCompilePatchGetArrayLength):
* jit/JITPropertyAccess32_64.cpp:
(JSC::JIT::emit_op_get_by_val):
(JSC::JIT::emit_op_put_by_val):
(JSC::JIT::privateCompilePatchGetArrayLength):
* runtime/ArrayPrototype.cpp:
(JSC::arrayProtoFuncShift):
(JSC::arrayProtoFuncSplice):
(JSC::arrayProtoFuncUnShift):
* runtime/JSArray.cpp:
(JSC::increasedVectorLength):
(JSC::JSArray::JSArray):
(JSC::JSArray::~JSArray):
(JSC::JSArray::getOwnPropertySlot):
(JSC::JSArray::getOwnPropertyDescriptor):
(JSC::JSArray::put):
(JSC::JSArray::putSlowCase):
(JSC::JSArray::deleteProperty):
(JSC::JSArray::getOwnPropertyNames):
(JSC::JSArray::increaseVectorLength):
(JSC::JSArray::setLength):
(JSC::JSArray::pop):
(JSC::JSArray::push):
(JSC::JSArray::sortNumeric):
(JSC::JSArray::sort):
(JSC::JSArray::fillArgList):
(JSC::JSArray::copyToRegisters):
(JSC::JSArray::compactForSorting):
(JSC::JSArray::subclassData):
(JSC::JSArray::setSubclassData):
(JSC::JSArray::checkConsistency):
* runtime/JSArray.h:
(JSC::JSArray::length):
(JSC::JSArray::canGetIndex):
(JSC::JSArray::getIndex):
(JSC::JSArray::setIndex):
(JSC::JSArray::uncheckedSetIndex):
(JSC::JSArray::markChildrenDirect):

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

10 years agoSpeculative build fix for Chromium/Win
barraclough@apple.com [Wed, 28 Jul 2010 00:30:34 +0000 (00:30 +0000)]
Speculative build fix for Chromium/Win

* wtf/Platform.h:

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

10 years agoOh! that makes more sense! Maybe C++-style comments are bringing teh bad mojo.
barraclough@apple.com [Wed, 28 Jul 2010 00:04:29 +0000 (00:04 +0000)]
Oh! that makes more sense!  Maybe C++-style comments are bringing teh bad mojo.

* wtf/Platform.h:

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

10 years agoFix Windows build.
andersca@apple.com [Wed, 28 Jul 2010 00:00:16 +0000 (00:00 +0000)]
Fix Windows build.

* WebProcess/Plugins/JSNPObject.cpp:
(WebKit::JSNPObject::propertyGetter):
Remove unreachable code.

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

10 years agoSpeculative build fix for GTK/64 ... seems to be barfing on a comment o_O
barraclough@apple.com [Tue, 27 Jul 2010 23:57:42 +0000 (23:57 +0000)]
Speculative build fix for GTK/64 ... seems to be barfing on a comment o_O

* wtf/Platform.h:

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

10 years ago2010-07-27 Andrew Scherkus <scherkus@chromium.org>
scherkus@chromium.org [Tue, 27 Jul 2010 23:41:01 +0000 (23:41 +0000)]
2010-07-27  Andrew Scherkus  <scherkus@chromium.org>

        Unreviewed.

        Marking media/controls-drag-timebar.html as flaky due to new seek behaviour.

        * platform/chromium/test_expectations.txt:

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

10 years ago2010-07-27 James Hawkins <jhawkins@chromium.org>
jhawkins@chromium.org [Tue, 27 Jul 2010 23:38:57 +0000 (23:38 +0000)]
2010-07-27  James Hawkins  <jhawkins@chromium.org>

        Unreviewed Build Fix.

        Add a missing itemIcon() method to TestPopupMenuClient.

        * tests/PopupMenuTest.cpp:
        (WebKit::TestPopupMenuClient::itemIcon):

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

10 years agoChanged the handling for removing and adding elements at the front
barraclough@apple.com [Tue, 27 Jul 2010 23:26:30 +0000 (23:26 +0000)]
Changed the handling for removing and adding elements at the front
of an array.  The code now keeps a bias that indicates the amount of
JSValue sized holes are prior to the ArrayStorage block.  This means
that shift operations are now memmove's of the header part of
the ArrayStorage and unshift operations are similar, but may require a
realloc first to create the space.  Similar operations are performed
for special cases of splice and slice.
Also optimized the new Array(size) case so that we don't allocate and
initialize array elements until the JS code starts using elements.
The array growth code is slightly more aggressive for initial growth
based on size growth of any previous array.

Patch by Michael Saboff <msaboff@apple.com> on 2010-07-27
Reviewed by Gavin Barraclough.

* Configurations/JavaScriptCore.xcconfig:
* jit/JITPropertyAccess.cpp:
(JSC::JIT::emit_op_get_by_val):
(JSC::JIT::emit_op_put_by_val):
(JSC::JIT::privateCompilePatchGetArrayLength):
* jit/JITPropertyAccess32_64.cpp:
(JSC::JIT::emit_op_get_by_val):
(JSC::JIT::emit_op_put_by_val):
(JSC::JIT::privateCompilePatchGetArrayLength):
* runtime/ArrayPrototype.cpp:
(JSC::arrayProtoFuncShift):
(JSC::arrayProtoFuncSplice):
(JSC::arrayProtoFuncUnShift):
* runtime/JSArray.cpp:
(JSC::JSArray::JSArray):
(JSC::JSArray::~JSArray):
(JSC::JSArray::getOwnPropertySlot):
(JSC::JSArray::getOwnPropertyDescriptor):
(JSC::JSArray::put):
(JSC::JSArray::putSlowCase):
(JSC::JSArray::deleteProperty):
(JSC::JSArray::getOwnPropertyNames):
(JSC::JSArray::getNewVectorLength):
(JSC::JSArray::increaseVectorLength):
(JSC::JSArray::increaseVectorPrefixLength):
(JSC::JSArray::setLength):
(JSC::JSArray::pop):
(JSC::JSArray::push):
(JSC::JSArray::shiftCount):
(JSC::JSArray::unshiftCount):
(JSC::JSArray::sortNumeric):
(JSC::JSArray::sort):
(JSC::JSArray::fillArgList):
(JSC::JSArray::copyToRegisters):
(JSC::JSArray::compactForSorting):
(JSC::JSArray::subclassData):
(JSC::JSArray::setSubclassData):
(JSC::JSArray::checkConsistency):
* runtime/JSArray.h:
(JSC::JSArray::length):
(JSC::JSArray::canGetIndex):
(JSC::JSArray::getIndex):
(JSC::JSArray::setIndex):
(JSC::JSArray::uncheckedSetIndex):
(JSC::JSArray::arrayStorage):
(JSC::JSArray::setArrayStorage):
(JSC::JSArray::markChildrenDirect):

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

10 years agoBug 43089 - Cleanup JIT related switched in Platform.h
barraclough@apple.com [Tue, 27 Jul 2010 23:19:29 +0000 (23:19 +0000)]
Bug 43089 - Cleanup JIT related switched in Platform.h

Reviewed by Oliver Hunt.

The code the enable to JIT checks every permutation of platform & OS individually, but
now the JIT is enabled on the majority much all x86/x86-64/ARM/MIPS systems.  It should
be cleaner to just enable by default on these platforms, and explicitly disable on configs
that don't aren't supported.

Also, rename ENABLE_JIT_OPTIMIZE_MOD to ENABLE_JIT_USE_SOFT_MODULO.  I always find this
confusing since enabling this "optimization" would be possible, but would be a regression
on x86/x86-64 systems!  I think it's clearer to reserve "JIT_OPTIMIZE" for compiler
technologies applicable to all platforms, and make a more optional behaviour like this a
"USE".

* jit/ExecutableAllocator.h:
(JSC::ExecutableAllocator::cacheFlush):
* jit/JIT.h:
* jit/JITArithmetic.cpp:
(JSC::JIT::emit_op_mod):
(JSC::JIT::emitSlow_op_mod):
* jit/JITArithmetic32_64.cpp:
(JSC::JIT::emit_op_mod):
(JSC::JIT::emitSlow_op_mod):
* jit/JITOpcodes.cpp:
(JSC::JIT::privateCompileCTIMachineTrampolines):
* jit/JITOpcodes32_64.cpp:
(JSC::JIT::privateCompileCTIMachineTrampolines):
* wtf/Platform.h:

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

10 years ago2010-07-27 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Tue, 27 Jul 2010 23:16:29 +0000 (23:16 +0000)]
2010-07-27  Kent Tamura  <tkent@chromium.org>

        Unreviewed, trivial typo fix.

        * Scripts/webkitpy/layout_tests/port/chromium.py:
          Fix a wrong method name committed by r64109.

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

10 years agoImplement JSNPObject::propertyGetter
andersca@apple.com [Tue, 27 Jul 2010 23:15:41 +0000 (23:15 +0000)]
Implement JSNPObject::propertyGetter
https://bugs.webkit.org/show_bug.cgi?id=43091

Reviewed by Sam Weinig.

WebKit2:

* WebProcess/Plugins/JSNPObject.cpp:
(WebKit::JSNPObject::propertyGetter):
Ask the NPObject for its property.

* WebProcess/Plugins/NPRuntimeObjectMap.cpp:
(WebKit::NPRuntimeObjectMap::jsNPObjectDestroyed):
Add a stub.

(WebKit::NPRuntimeObjectMap::convertNPVariantToValue):
Implement this for everything except objects.

LayoutTests:

* platform/mac-wk2/Skipped:
Add a test I forgot to add, and remove plugins/npruntime/embed-property.html because it passes now.

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

10 years ago2010-07-27 James Hawkins <jhawkins@chromium.org>
jhawkins@chromium.org [Tue, 27 Jul 2010 23:02:00 +0000 (23:02 +0000)]
2010-07-27  James Hawkins  <jhawkins@chromium.org>

        Reviewed by Darin Fisher.

        [Chromium] Add the ability to show right-aligned icons in the AutoFill popup.
        https://bugs.webkit.org/show_bug.cgi?id=43076

        * public/WebView.h:
        * src/AutoFillPopupMenuClient.cpp:
        (WebKit::AutoFillPopupMenuClient::getIcon):
        (WebKit::AutoFillPopupMenuClient::removeSuggestionAtIndex):
        (WebKit::AutoFillPopupMenuClient::itemIcon):
        (WebKit::AutoFillPopupMenuClient::initialize):
        (WebKit::AutoFillPopupMenuClient::setSuggestions):
        * src/AutoFillPopupMenuClient.h:
        * src/WebViewImpl.cpp:
        (WebKit::WebViewImpl::applyAutoFillSuggestions):
        (WebKit::WebViewImpl::applyAutocompleteSuggestions):
        * src/WebViewImpl.h:
2010-07-27  James Hawkins  <jhawkins@chromium.org>

        Reviewed by Darin Fisher.

        Add itemIcon() method to the PopupMenuClient, used by Chrome AutoFill
        to display right-aligned credit card icons in the suggestions popup.
        https://bugs.webkit.org/show_bug.cgi?id=43076

        No new tests as this is only used by the Chromium WebKit API.

        * platform/PopupMenuClient.h:
        * platform/chromium/PopupMenuChromium.cpp:
        (WebCore::PopupListBox::paintRow):
        * rendering/RenderMenuList.cpp:
        (WebCore::RenderMenuList::itemIcon):
        * rendering/RenderMenuList.h:
        * rendering/RenderTextControlSingleLine.cpp:
        (WebCore::RenderTextControlSingleLine::itemIcon):
        * rendering/RenderTextControlSingleLine.h:

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

10 years agoPatch for https://bugs.webkit.org/show_bug.cgi?id=43087
weinig@apple.com [Tue, 27 Jul 2010 22:47:50 +0000 (22:47 +0000)]
Patch for https://bugs.webkit.org/show_bug.cgi?id=43087
Clean up handling of strings at the WebKit2 API layer.

Reviewed by Anders Carlsson.

WebKit2:

- Always use the "copy" rule for functions that return WKStringRefs or WKURLRefs.
- Never return a null WKStringRef or WKURLRef.

* UIProcess/API/C/WKAPICast.h:
(toRef):
(toURLRef):
(toCopiedRef):
(toCopiedURLRef):
* UIProcess/API/C/WKBackForwardListItem.cpp:
(WKBackForwardListItemCopyOriginalURL):
(WKBackForwardListItemCopyURL):
(WKBackForwardListItemCopyTitle):
* UIProcess/API/C/WKBackForwardListItem.h:
* UIProcess/API/C/WKFrame.cpp:
(WKFrameIsMainFrame):
(WKFrameCopyProvisionalURL):
(WKFrameCopyURL):
(WKFrameGetPage):
(WKFrameRetain):
(WKFrameRelease):
* UIProcess/API/C/WKFrame.h:
* UIProcess/API/C/WKNavigationData.cpp:
(WKNavigationDataCopyTitle):
(WKNavigationDataCopyURL):
* UIProcess/API/C/WKNavigationData.h:
* UIProcess/API/C/WKPage.cpp:
(WKPageCopyTitle):
* UIProcess/API/C/WKPage.h:
* WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
(WKBundleFrameCopyURL):
(WKBundleFrameCopyName):
(WKBundleFrameCopyCounterValue):
(WKBundleFrameCopyMarkerText):
* WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
* WebProcess/InjectedBundle/API/c/WKBundleNode.cpp:
(WKBundleNodeCopyNodeName):
* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageCopyRenderTreeExternalRepresentation):

WebKitTools:

* MiniBrowser/mac/BrowserWindowController.m:
(runJavaScriptAlert):
(runJavaScriptConfirm):
(runJavaScriptPrompt):
(didNavigateWithNavigationData):
(-[BrowserWindowController updateProvisionalURLForFrame:]):
* MiniBrowser/mac/WebBundle/WebBundleMain.m:
(_didClearWindowForFrame):

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

10 years ago2010-07-27 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Tue, 27 Jul 2010 22:46:58 +0000 (22:46 +0000)]
2010-07-27  Martin Robinson  <mrobinson@igalia.com>

        Unreviewed.

        Unskip a test that is passing and add expected results to another.

        * platform/gtk/Skipped: Unskip passing test.
        * platform/gtk/fast/canvas/set-colors-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/canvas/set-colors-expected.txt.

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

10 years ago2010-07-27 James Robinson <jamesr@chromium.org>
jamesr@google.com [Tue, 27 Jul 2010 22:41:45 +0000 (22:41 +0000)]
2010-07-27  James Robinson  <jamesr@chromium.org>

        Reviewed by Darin Fisher.

        [chromium] Make PLATFORM(CHROMIUM) and not OS(MAC) turn USE(GLES2_RENDERING) on
        https://bugs.webkit.org/show_bug.cgi?id=43084

        This turns USE(GLES2_RENDERING) on for chromium on windows/linux.  This causes no
        change in behavior, that's all controlled by ENABLE() macros that are currently off.

        * wtf/Platform.h:

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

10 years agoExplicitly list all skipped tests in plugins/ so we can start removing passing tests.
andersca@apple.com [Tue, 27 Jul 2010 22:36:22 +0000 (22:36 +0000)]
Explicitly list all skipped tests in plugins/ so we can start removing passing tests.

Reviewed by Sam Weinig.

* platform/mac-wk2/Skipped:

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

10 years ago2010-07-27 Joseph Pecoraro <joepeck@webkit.org>
joepeck@webkit.org [Tue, 27 Jul 2010 22:23:38 +0000 (22:23 +0000)]
2010-07-27  Joseph Pecoraro  <joepeck@webkit.org>

        Reviewed by David Kilzer.

        Provide a Helpful Link for Web Inspector Bugs in Bugzilla
        https://bugs.webkit.org/show_bug.cgi?id=43065

        * template/en/custom/global/choose-product.html.tmpl: Added. Explicitly added a link for the Web Inspector.

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

10 years agoAdd JSNPObject, a JSObject that wraps an NPObject
andersca@apple.com [Tue, 27 Jul 2010 22:20:31 +0000 (22:20 +0000)]
Add JSNPObject, a JSObject that wraps an NPObject
https://bugs.webkit.org/show_bug.cgi?id=43079

Reviewed by Sam Weinig.

* WebKit2.xcodeproj/project.pbxproj:
Add JSNPObject.cpp and JSNPObject.h

* WebProcess/Plugins/JSNPObject.cpp: Added.
(WebKit::npIdentifierFromIdentifier):
(WebKit::JSNPObject::JSNPObject):
(WebKit::JSNPObject::~JSNPObject):
(WebKit::JSNPObject::getOwnPropertySlot):
Check if the NPObject has the given property.

(WebKit::JSNPObject::propertyGetter):
(WebKit::JSNPObject::throwInvalidAccessError):
* WebProcess/Plugins/JSNPObject.h: Added.
(WebKit::JSNPObject::createStructure):
* WebProcess/Plugins/NPJSObject.h:

* win/WebKit2.vcproj:
Add JSNPObject.cpp and JSNPObject.h

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

10 years ago2010-07-27 Victor Wang <victorw@chromium.org>
victorw@chromium.org [Tue, 27 Jul 2010 22:16:58 +0000 (22:16 +0000)]
2010-07-27  Victor Wang  <victorw@chromium.org>

        Unreviewed. Update chromium test expectations for failed test:
        fast/canvas/canvas-ImageData-behaviour.html

        * platform/chromium/test_expectations.txt:

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

10 years ago2010-07-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
commit-queue@webkit.org [Tue, 27 Jul 2010 22:16:09 +0000 (22:16 +0000)]
2010-07-27  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        Update the QScriptValue autotests suite.

        QScriptValue generated files were updated, changes are:
         - More tested values (for example QSE::newObject() and QSE::newArray())
         - Tested values are recreated before each test and are not reused.
         The change implies better code coverage and some expected result changes.
         - A new test to check copy and assign functions.
         - Tests are using standard QTestLib interface, without any custom macros.

        [Qt] Improve test coverage for the QScriptValue
        https://bugs.webkit.org/show_bug.cgi?id=42366

        * tests/qscriptvalue/tst_qscriptvalue.cpp:
        (tst_QScriptValue::tst_QScriptValue):
        (tst_QScriptValue::~tst_QScriptValue):
        (tst_QScriptValue::assignAndCopyConstruct_data):
        (tst_QScriptValue::assignAndCopyConstruct):
        * tests/qscriptvalue/tst_qscriptvalue.h:
        * tests/qscriptvalue/tst_qscriptvalue_generated_comparison.cpp:
        (tst_QScriptValue::equals_data):
        (tst_QScriptValue::equals):
        (tst_QScriptValue::strictlyEquals_data):
        (tst_QScriptValue::strictlyEquals):
        (tst_QScriptValue::instanceOf_data):
        (tst_QScriptValue::instanceOf):
        * tests/qscriptvalue/tst_qscriptvalue_generated_init.cpp:
        (tst_QScriptValue::initScriptValues):
        * tests/qscriptvalue/tst_qscriptvalue_generated_istype.cpp:
        (tst_QScriptValue::isValid_data):
        (tst_QScriptValue::isValid):
        (tst_QScriptValue::isBool_data):
        (tst_QScriptValue::isBool):
        (tst_QScriptValue::isBoolean_data):
        (tst_QScriptValue::isBoolean):
        (tst_QScriptValue::isNumber_data):
        (tst_QScriptValue::isNumber):
        (tst_QScriptValue::isFunction_data):
        (tst_QScriptValue::isFunction):
        (tst_QScriptValue::isNull_data):
        (tst_QScriptValue::isNull):
        (tst_QScriptValue::isString_data):
        (tst_QScriptValue::isString):
        (tst_QScriptValue::isUndefined_data):
        (tst_QScriptValue::isUndefined):
        (tst_QScriptValue::isObject_data):
        (tst_QScriptValue::isObject):
        (tst_QScriptValue::isArray_data):
        (tst_QScriptValue::isArray):
        (tst_QScriptValue::isError_data):
        (tst_QScriptValue::isError):
        * tests/qscriptvalue/tst_qscriptvalue_generated_totype.cpp:
        (tst_QScriptValue::toString_data):
        (tst_QScriptValue::toString):
        (tst_QScriptValue::toNumber_data):
        (tst_QScriptValue::toNumber):
        (tst_QScriptValue::toBool_data):
        (tst_QScriptValue::toBool):
        (tst_QScriptValue::toBoolean_data):
        (tst_QScriptValue::toBoolean):
        (tst_QScriptValue::toInteger_data):
        (tst_QScriptValue::toInteger):
        (tst_QScriptValue::toInt32_data):
        (tst_QScriptValue::toInt32):
        (tst_QScriptValue::toUInt32_data):
        (tst_QScriptValue::toUInt32):
        (tst_QScriptValue::toUInt16_data):
        (tst_QScriptValue::toUInt16):

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

10 years ago2010-07-27 Andreas Kling <andreas.kling@nokia.com>
andreas.kling@nokia.com [Tue, 27 Jul 2010 22:07:46 +0000 (22:07 +0000)]
2010-07-27  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] putImageData(): Fast premultiply() if alpha == 255

        * platform/graphics/qt/ImageBufferQt.cpp:
        (WebCore::premultiply): Do nothing for opaque pixels.

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

10 years agoREGRESSION: editing/style/remove-underline-from-stylesheet.html fails on Qt platform...
rniwa@webkit.org [Tue, 27 Jul 2010 21:52:11 +0000 (21:52 +0000)]
REGRESSION: editing/style/remove-underline-from-stylesheet.html fails on Qt platform after r64083
https://bugs.webkit.org/show_bug.cgi?id=43061

Reviewed by Justin Garcia.

Added a qt-specific test result because the final range and the generated DOM is same.

* platform/qt/editing/style/remove-underline-from-stylesheet-expected.txt: Added.

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

10 years agoEnhance FileThreadTask to support return type.
jianli@chromium.org [Tue, 27 Jul 2010 21:42:31 +0000 (21:42 +0000)]
Enhance FileThreadTask to support return type.
https://bugs.webkit.org/show_bug.cgi?id=43078

Reviewed by David Levin.

This is needed to support synchronous calls of FileStream methods in
addition to asynchronous calls via FileThreadTask.

* html/FileThreadTask.h:
(WebCore::createFileThreadTask):

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

10 years ago2010-07-27 James Robinson <jamesr@chromium.org>
jamesr@google.com [Tue, 27 Jul 2010 21:37:41 +0000 (21:37 +0000)]
2010-07-27  James Robinson  <jamesr@chromium.org>

        Reviewed by Darin Fisher.

        [chromium] Let PlatformContextSkia draw to a GLES2Canvas in addition to an SkCanvas
        https://bugs.webkit.org/show_bug.cgi?id=43070

        This adds a GLES2Canvas as drawing surface to PlatformContextSkia and lets callers
        issue draw commands to either.  The PlatformContextSkia keeps track of where
        rendering results are being accumulated and can blend the hardware and software
        backing stores into each other when necessary.

        Still just plumbing, no functionality change.

        * platform/graphics/chromium/GLES2Canvas.cpp:
        (WebCore::GLES2Canvas::GLES2Canvas):
        * platform/graphics/chromium/GLES2Canvas.h:
        * platform/graphics/skia/PlatformContextSkia.cpp:
        (PlatformContextSkia::PlatformContextSkia):
        (PlatformContextSkia::setGLES2Context):
        (PlatformContextSkia::preSoftwareDraw):
        (PlatformContextSkia::preHardwareDraw):
        (PlatformContextSkia::forceToSoftware):
        (PlatformContextSkia::uploadSoftwareToHardware):
        (PlatformContextSkia::readbackHardwareToSoftware):
        * platform/graphics/skia/PlatformContextSkia.h:
        (PlatformContextSkia::useGPU):
        (PlatformContextSkia::gpuCanvas):
        (PlatformContextSkia::preSoftwareDraw):
        (PlatformContextSkia::preHardwareDraw):
        (PlatformContextSkia::forceToSoftware):
        (PlatformContextSkia::):

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

10 years ago2010-07-27 Brett Wilson <brettw@chromium.org>
brettw@chromium.org [Tue, 27 Jul 2010 21:30:36 +0000 (21:30 +0000)]
2010-07-27  Brett Wilson  <brettw@chromium.org>

        Reviewed by Darin Fisher.

        Add the ability to select fonts and do basic text drawing to the
        Chromium WebKit API.
        https://bugs.webkit.org/show_bug.cgi?id=42999

        * WebKit.gyp:
        * public/WebFloatPoint.h: Added.
        (WebKit::WebFloatPoint::WebFloatPoint):
        (WebKit::WebFloatPoint::operator=):
        (WebKit::WebFloatPoint::operator WebCore::FloatPoint):
        (WebKit::operator==):
        (WebKit::operator!=):
        * public/WebFloatRect.h: Added.
        (WebKit::WebFloatRect::isEmpty):
        (WebKit::WebFloatRect::WebFloatRect):
        (WebKit::WebFloatRect::operator=):
        (WebKit::WebFloatRect::operator WebCore::FloatRect):
        (WebKit::operator==):
        (WebKit::operator!=):
        * public/WebFont.h: Added.
        * public/WebFontDescription.h: Added.
        (WebKit::WebFontDescription::):
        (WebKit::WebFontDescription::WebFontDescription):
        * public/WebTextRun.h: Added.
        (WebKit::WebTextRun::WebTextRun):
        * src/AssertMatchingEnums.cpp:
        * src/WebFontDescription.cpp: Added.
        (WebKit::WebFontDescription::WebFontDescription):
        (WebKit::WebFontDescription::operator WebCore::FontDescription):
        * src/WebFontImpl.cpp: Added.
        (WebKit::WebFont::Create):
        (WebKit::WebFontImpl::WebFontImpl):
        (WebKit::WebFontImpl::fontDescription):
        (WebKit::WebFontImpl::ascent):
        (WebKit::WebFontImpl::descent):
        (WebKit::WebFontImpl::height):
        (WebKit::WebFontImpl::lineSpacing):
        (WebKit::WebFontImpl::xHeight):
        (WebKit::WebFontImpl::drawText):
        (WebKit::WebFontImpl::computeWidth):
        (WebKit::WebFontImpl::offsetForPosition):
        (WebKit::WebFontImpl::selectionRectForText):
        * src/WebFontImpl.h: Added.
        * src/WebTextRun.cpp: Added.
        (WebKit::WebTextRun::operator WebCore::TextRun):

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

10 years ago2010-07-27 Victor Wang <victorw@chromium.org>
victorw@chromium.org [Tue, 27 Jul 2010 21:23:20 +0000 (21:23 +0000)]
2010-07-27  Victor Wang  <victorw@chromium.org>

        Unreviewed. Update chromium test expectations for failed test on mac:
        fast/dom/prototype-inheritance.html

        * platform/chromium/test_expectations.txt:

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

10 years ago2010-07-27 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Tue, 27 Jul 2010 21:18:02 +0000 (21:18 +0000)]
2010-07-27  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Darin Adler.

        Incomplete repaint of some Safari extension content which falls into a composited iframe
        <rdar://problem/8235044>

        syncCompositingStateRecursive() bails if it thinks that a layout is pending, because
        the layout may update layers and make this sync obsolete. However, it only checked for an
        active layout timer. This ignores other sources of pending style changes and layouts, like
        the document's style recalc timer. So use needsLayout(), which does check this.

        Unable to create a test because it depends on Safari extension behavior.

        * page/FrameView.cpp:
        (WebCore::FrameView::syncCompositingStateRecursive):

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

10 years ago2010-07-27 Andreas Kling <andreas.kling@nokia.com>
andreas.kling@nokia.com [Tue, 27 Jul 2010 21:17:44 +0000 (21:17 +0000)]
2010-07-27  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] putImageData() optimizations
        https://bugs.webkit.org/show_bug.cgi?id=43059

        - Single-pass premultiplication and BGR->RGB conversion
        - Use ARGB32PM for the temporary image so Qt calls the
          fast Source composition function

        * platform/graphics/qt/ImageBufferQt.cpp:
        (WebCore::premultiply): Added (static inline)
        (WebCore::putImageData):

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

10 years ago2010-07-23 Helder Correia <heldercorreia@codeaurora.org>
andreas.kling@nokia.com [Tue, 27 Jul 2010 21:11:35 +0000 (21:11 +0000)]
2010-07-23  Helder Correia  <heldercorreia@codeaurora.org>

        Reviewed by Darin Adler.

        Canvas tests 2d.imageData.object.round and 2d.imageData.object.wrap are
        failing. For canvas image data manipulation, the values passed should
        be truncated and wrapped. Also fix the canvas-ImageData-behaviour test
        to expect wrapping rather than clamping, and add some new checkings.
        https://bugs.webkit.org/show_bug.cgi?id=40272

        * runtime/JSByteArray.h:
        (JSC::JSByteArray::setIndex):
        (JSC::JSByteArray::JSByteArray):
2010-07-23  Helder Correia  <heldercorreia@codeaurora.org>

        Reviewed by Darin Adler.

        Canvas tests 2d.imageData.object.round and 2d.imageData.object.wrap are
        failing. For canvas image data manipulation, the values passed should
        be truncated and wrapped. Also fix the canvas-ImageData-behaviour test
        to expect wrapping rather than clamping, and add some new checkings.
        https://bugs.webkit.org/show_bug.cgi?id=40272

        * canvas/philip/tests/2d.imageData.object.round-expected.txt:
        * canvas/philip/tests/2d.imageData.object.round.html:
        * canvas/philip/tests/2d.imageData.object.wrap-expected.txt:
        * fast/canvas/canvas-ImageData-behaviour-expected.txt:
        * fast/canvas/canvas-ImageData-behaviour.js:
        * platform/mac/Skipped:
        * platform/qt/Skipped:

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

10 years agoFix PageClient ownership in WebPageProxy
aroben@apple.com [Tue, 27 Jul 2010 21:06:35 +0000 (21:06 +0000)]
Fix PageClient ownership in WebPageProxy

WKView now owns the PageClient, similar to how things work on Windows
(where the WebView is the PageClient).

Fixes <http://webkit.org/b/40185> WebPageProxy should keep a weak
reference to the PageClient

Reviewed by Anders Carlsson.

* UIProcess/API/mac/WKView.mm:
(-[WKView initWithFrame:pageNamespaceRef:]): Store the PageClientImpl
on our WKViewData object and pass it to the WebPageProxy.

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::setPageClient):
* UIProcess/WebPageProxy.h:
Removed Mac-specific code that put the PageClient in an OwnPtr. We now
store it in a bare pointer just like on Windows.

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

10 years agoExpose interface for returning the plug-in script JSObject
andersca@apple.com [Tue, 27 Jul 2010 20:55:29 +0000 (20:55 +0000)]
Expose interface for returning the plug-in script JSObject
https://bugs.webkit.org/show_bug.cgi?id=43074

Reviewed by Sam Weinig.

WebCore:

PluginViewBase::scriptObject should be a virtual function.

* plugins/PluginViewBase.h:
(WebCore::PluginViewBase::scriptObject):

WebKit2:

* WebProcess/Plugins/NPRuntimeObjectMap.cpp:
(WebKit::NPRuntimeObjectMap::getOrCreateJSObject):
Add empty stub.

* WebProcess/Plugins/NPRuntimeObjectMap.h:
* WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
(WebKit::NetscapePlugin::pluginScriptableNPObject):
Ask the plug-in for it's scriptable NPObject.

* WebProcess/Plugins/Netscape/NetscapePlugin.h:
* WebProcess/Plugins/Plugin.h:
Add pluginScritableNPObject.

* WebProcess/Plugins/PluginView.cpp:
(WebKit::PluginView::PluginView):
Call PluginViewBase constructor.

(WebKit::PluginView::scriptObject):
Ask the plug-in for its scriptable object and wrap it.

* WebProcess/Plugins/PluginView.h:
PluginView now inherits from PluginViewBase.

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

10 years ago2010-07-27 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Tue, 27 Jul 2010 20:23:47 +0000 (20:23 +0000)]
2010-07-27  Ojan Vafai  <ojan@chromium.org>

        Reviewed by Eric Seidel.

        webkit-patch post-commits is broken: AttributeError: Values instance has no attribute 'no_squash'
        https://bugs.webkit.org/show_bug.cgi?id=42984

        squash and no_squash have been intentionally erroring for a couple weeks now.
        But post-commits was just broken. Just remove squash/no_squash.

        * Scripts/webkitpy/tool/steps/abstractstep.py:
        * Scripts/webkitpy/tool/steps/options.py:

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

10 years agoAdd ScriptExecutionContext argument to File/Blob constructors.
jianli@chromium.org [Tue, 27 Jul 2010 20:18:30 +0000 (20:18 +0000)]
Add ScriptExecutionContext argument to File/Blob constructors.
https://bugs.webkit.org/show_bug.cgi?id=40587

Reviewed by David Levin.

Remove DragData::createClipboard and add Clipboard::create for it to be
called directly in DragController. This is because we need to pass
Frame pointer to Clipboard class and use it to get ScriptExecutionContext
in order to construct File objects in Clipboard::files().

* bindings/js/SerializedScriptValue.cpp:
(WebCore::DeserializingTreeWalker::convertIfTerminal):
* bindings/v8/SerializedScriptValue.cpp:
(WebCore::ZigZag::Reader::readBlob):
(WebCore::ZigZag::Reader::readFile):
(WebCore::ZigZag::Reader::readFileList):
* dom/Clipboard.h:
* editing/Editor.cpp:
(WebCore::Editor::dispatchCPPEvent):
* editing/Editor.h:
* editing/android/EditorAndroid.cpp:
(WebCore::Editor::newGeneralClipboard):
* editing/brew/EditorBrew.cpp:
(WebCore::Editor::newGeneralClipboard):
* editing/chromium/EditorChromium.cpp:
(WebCore::Editor::newGeneralClipboard):
* editing/haiku/EditorHaiku.cpp:
(WebCore::Editor::newGeneralClipboard):
* editing/mac/EditorMac.mm:
(WebCore::Editor::newGeneralClipboard):
* editing/qt/EditorQt.cpp:
(WebCore::Editor::newGeneralClipboard):
* editing/wx/EditorWx.cpp:
(WebCore::Editor::newGeneralClipboard):
* html/Blob.cpp:
(WebCore::Blob::Blob):
(WebCore::Blob::slice):
* html/Blob.h:
(WebCore::Blob::create):
* html/Blob.idl:
* html/BlobBuilder.cpp:
(WebCore::BlobBuilder::getBlob):
* html/BlobBuilder.h:
* html/BlobBuilder.idl:
* html/File.cpp:
(WebCore::File::File):
* html/File.h:
(WebCore::File::create):
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::appendFormData):
(WebCore::HTMLInputElement::setFileListFromRenderer):
* page/DragController.cpp:
(WebCore::DragController::dragExited):
(WebCore::DragController::performDrag):
(WebCore::DragController::tryDHTMLDrag):
* page/chromium/EventHandlerChromium.cpp:
(WebCore::EventHandler::createDraggingClipboard):
* page/gtk/EventHandlerGtk.cpp:
(WebCore::EventHandler::createDraggingClipboard):
* page/win/EventHandlerWin.cpp:
(WebCore::EventHandler::createDraggingClipboard):
* platform/DragData.h:
* platform/android/ClipboardAndroid.cpp:
(WebCore::Clipboard::create):
* platform/android/DragDataAndroid.cpp:
* platform/brew/ClipboardBrew.cpp:
(WebCore::Clipboard::create):
* platform/brew/DragDataBrew.cpp:
* platform/chromium/ClipboardChromium.cpp:
(WebCore::Clipboard::create):
(WebCore::ClipboardChromium::ClipboardChromium):
(WebCore::ClipboardChromium::create):
(WebCore::ClipboardChromium::files):
* platform/chromium/ClipboardChromium.h:
* platform/chromium/DragDataChromium.cpp:
* platform/efl/ClipboardEfl.cpp:
(WebCore::Editor::newGeneralClipboard):
(WebCore::Clipboard::create):
* platform/efl/DragDataEfl.cpp:
* platform/gtk/ClipboardGtk.cpp:
(WebCore::Editor::newGeneralClipboard):
(WebCore::Clipboard::create):
(WebCore::ClipboardGtk::ClipboardGtk):
(WebCore::ClipboardGtk::files):
* platform/gtk/ClipboardGtk.h:
(WebCore::ClipboardGtk::create):
* platform/gtk/DragDataGtk.cpp:
* platform/haiku/ClipboardHaiku.cpp:
(WebCore::Clipboard::create):
* platform/haiku/DragDataHaiku.cpp:
* platform/mac/ClipboardMac.mm:
(WebCore::Clipboard::create):
(WebCore::ClipboardMac::files):
* platform/mac/DragDataMac.mm:
* platform/qt/ClipboardQt.cpp:
(WebCore::Clipboard::create):
* platform/qt/DragDataQt.cpp:
* platform/win/ClipboardWin.cpp:
(WebCore::Clipboard::create):
(WebCore::ClipboardWin::ClipboardWin):
(WebCore::ClipboardWin::files):
* platform/win/ClipboardWin.h:
(WebCore::ClipboardWin::create):
* platform/win/DragDataWin.cpp:
* platform/win/EditorWin.cpp:
(WebCore::Editor::newGeneralClipboard):
* platform/wince/DragDataWince.cpp:
* platform/wince/EditorWince.cpp:
(WebCore::Editor::newGeneralClipboard):
* platform/wx/ClipboardWx.cpp:
(WebCore::Clipboard::create):
* platform/wx/DragDataWx.cpp:

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

10 years agoMove all WebSQLDatabases-specific code behind #if ENABLE(DATABASE).
dumi@chromium.org [Tue, 27 Jul 2010 20:07:42 +0000 (20:07 +0000)]
Move all WebSQLDatabases-specific code behind #if ENABLE(DATABASE).
https://bugs.webkit.org/show_bug.cgi?id=43035

Reviewed by David Levin.

WebCore:

Make Chromium compile with ENABLE_DATABASE=0. The #ifdefs in
DatabaseAuthorizer and ChromiumBridge are removed, because they're
used by non-HTML5 DBs too (the classes in WebCore/platform/sql/),
which are used by other features too. So they need to be compiled
in even if HTML5 DBs are disabled.

* bindings/v8/custom/V8DOMWindowCustom.cpp:
* page/DOMWindow.idl:
* platform/chromium/ChromiumBridge.h:
* storage/DatabaseAuthorizer.cpp:
* storage/chromium/DatabaseObserver.h:
* storage/chromium/DatabaseTrackerChromium.cpp:
* storage/chromium/QuotaTracker.cpp:
* storage/chromium/QuotaTracker.h:
* storage/chromium/SQLTransactionClientChromium.cpp:

WebKit/chromium:

Make Chromium compile with ENABLE_DATABASE=0.

* src/ChromiumBridge.cpp:
(WebCore::ChromiumBridge::databaseGetFileSize):
* src/DatabaseObserver.cpp:
* src/WebDatabase.cpp:
(WebCore::AbstractDatabase::stringIdentifier):
(WebCore::AbstractDatabase::displayName):
(WebCore::AbstractDatabase::estimatedSize):
(WebCore::AbstractDatabase::securityOrigin):
(WebKit::WebDatabase::updateDatabaseSize):
(WebKit::WebDatabase::closeDatabaseImmediately):

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

10 years ago[wx] Build fix after introduction of EXECUTABLE_ALLOCATOR_DEMAND.
kevino@webkit.org [Tue, 27 Jul 2010 19:48:00 +0000 (19:48 +0000)]
[wx] Build fix after introduction of EXECUTABLE_ALLOCATOR_DEMAND.

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

10 years agoAX: Misspellings not shown in AXAttributedStringForTextMarkerRange when selection...
cfleizach@apple.com [Tue, 27 Jul 2010 19:38:49 +0000 (19:38 +0000)]
AX: Misspellings not shown in AXAttributedStringForTextMarkerRange when selection is on word
https://bugs.webkit.org/show_bug.cgi?id=41817

Reviewed by David Kilzer.

WebCore:

Change how misspelled words are identified for accessibility. No longer rely on the
cached markers in Document. Calculate on the fly, which is more accurate in a variety of
circumstances (like when selection has not moved across words, of if the cursor is in the middle
of a misspelled word).

Test: platform/mac/accessibility/attributed-string-includes-misspelled-with-selection.html

* accessibility/mac/AccessibilityObjectWrapper.mm:
(AXAttributeStringSetSpelling):
(AXAttributedStringAppendText):
(-[AccessibilityObjectWrapper doAXAttributedStringForTextMarkerRange:]):

LayoutTests:

* platform/mac/accessibility/attributed-string-includes-misspelled-with-selection-expected.txt: Added.
* platform/mac/accessibility/attributed-string-includes-misspelled-with-selection.html: Added.

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

10 years ago2010-07-27 Victor Wang <victorw@chromium.org>
victorw@chromium.org [Tue, 27 Jul 2010 19:34:53 +0000 (19:34 +0000)]
2010-07-27  Victor Wang  <victorw@chromium.org>

        Unreviewed. Update chromium test expectations.

        * platform/chromium/test_expectations.txt:
        * storage/indexeddb/keyrange-expected.txt:

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

10 years agoMove NPJSObject out into separate files
andersca@apple.com [Tue, 27 Jul 2010 19:29:45 +0000 (19:29 +0000)]
Move NPJSObject out into separate files
https://bugs.webkit.org/show_bug.cgi?id=43068

Reviewed by Adam Roben.

* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/Plugins/NPJSObject.cpp: Added.
(WebKit::NPJSObject::create):
(WebKit::NPJSObject::NPJSObject):
(WebKit::NPJSObject::~NPJSObject):
(WebKit::NPJSObject::isNPJSObject):
(WebKit::NPJSObject::initialize):
(WebKit::identifierFromIdentifierRep):
(WebKit::NPJSObject::hasProperty):
(WebKit::NPJSObject::getProperty):
(WebKit::NPJSObject::npClass):
(WebKit::NPJSObject::NP_Allocate):
(WebKit::NPJSObject::NP_Deallocate):
(WebKit::NPJSObject::NP_HasProperty):
(WebKit::NPJSObject::NP_GetProperty):
* WebProcess/Plugins/NPJSObject.h: Added.
(WebKit::NPJSObject::jsObject):
(WebKit::NPJSObject::toNPJSObject):
* WebProcess/Plugins/NPRuntimeObjectMap.cpp:
(WebKit::NPRuntimeObjectMap::npJSObjectDestroyed):
(WebKit::NPRuntimeObjectMap::globalExec):
* WebProcess/Plugins/NPRuntimeObjectMap.h:
* win/WebKit2.vcproj:

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

10 years agoBug 42621 - Add a bump allocator for the YARR interpreter
barraclough@apple.com [Tue, 27 Jul 2010 19:14:40 +0000 (19:14 +0000)]
Bug 42621 - Add a bump allocator for the YARR interpreter

Reviewed by Oliver Hunt.

The regex engine requires lifo allocation, however currently uses the general purpose
malloc/free memory allocation.  A simple bump pointer allocator should provide a lower
overhead allocation solution.

JavaScriptCore:

When using YARR interpreter, 15% progression on v8-regex.

* JavaScriptCore.xcodeproj/project.pbxproj:
* runtime/JSGlobalData.h:
* runtime/RegExp.cpp:
(JSC::RegExp::compile):
* wtf/BumpPointerAllocator.h: Added.
(WTF::BumpPointerPool::ensureCapacity):
(WTF::BumpPointerPool::alloc):
(WTF::BumpPointerPool::dealloc):
(WTF::BumpPointerPool::operator new):
(WTF::BumpPointerPool::BumpPointerPool):
(WTF::BumpPointerPool::create):
(WTF::BumpPointerPool::shrink):
(WTF::BumpPointerPool::destroy):
(WTF::BumpPointerPool::ensureCapacityCrossPool):
(WTF::BumpPointerPool::deallocCrossPool):
(WTF::BumpPointerAllocator::BumpPointerAllocator):
(WTF::BumpPointerAllocator::~BumpPointerAllocator):
(WTF::BumpPointerAllocator::startAllocator):
(WTF::BumpPointerAllocator::stopAllocator):
* yarr/RegexInterpreter.cpp:
(JSC::Yarr::Interpreter::allocDisjunctionContext):
(JSC::Yarr::Interpreter::freeDisjunctionContext):
(JSC::Yarr::Interpreter::allocParenthesesDisjunctionContext):
(JSC::Yarr::Interpreter::freeParenthesesDisjunctionContext):
(JSC::Yarr::Interpreter::interpret):
(JSC::Yarr::Interpreter::Interpreter):
(JSC::Yarr::ByteCompiler::compile):
(JSC::Yarr::byteCompileRegex):
* yarr/RegexInterpreter.h:
(JSC::Yarr::BytecodePattern::BytecodePattern):

JavaScriptGlue:

* ForwardingHeaders/wtf/BumpPointerAllocator.h: Added.

WebCore:

* ForwardingHeaders/wtf/BumpPointerAllocator.h: Added.

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

10 years agoRename NPJSObjectMap to NPRuntimeObjectMap
andersca@apple.com [Tue, 27 Jul 2010 19:04:50 +0000 (19:04 +0000)]
Rename NPJSObjectMap to NPRuntimeObjectMap
https://bugs.webkit.org/show_bug.cgi?id=43066

Reviewed by Adam Roben.

* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/Plugins/NPJSObjectMap.cpp: Removed.
* WebProcess/Plugins/NPJSObjectMap.h: Removed.
* WebProcess/Plugins/NPRuntimeObjectMap.cpp: Added.
(WebKit::NPJSObject::NPJSObject):
(WebKit::NPJSObject::~NPJSObject):
(WebKit::NPJSObject::toNPJSObject):
(WebKit::NPJSObject::create):
(WebKit::NPJSObject::isNPJSObject):
(WebKit::NPJSObject::initialize):
(WebKit::identifierFromIdentifierRep):
(WebKit::NPJSObject::hasProperty):
(WebKit::NPJSObject::getProperty):
(WebKit::NPJSObject::npClass):
(WebKit::NPJSObject::NP_Allocate):
(WebKit::NPJSObject::NP_Deallocate):
(WebKit::NPJSObject::NP_HasProperty):
(WebKit::NPJSObject::NP_GetProperty):
(WebKit::NPRuntimeObjectMap::NPRuntimeObjectMap):
(WebKit::NPRuntimeObjectMap::getOrCreateNPObject):
(WebKit::NPRuntimeObjectMap::invalidate):
* WebProcess/Plugins/NPRuntimeObjectMap.h: Added.
* WebProcess/Plugins/PluginView.cpp:
(WebKit::PluginView::PluginView):
(WebKit::PluginView::~PluginView):
(WebKit::PluginView::windowScriptNPObject):
(WebKit::PluginView::pluginElementNPObject):
* WebProcess/Plugins/PluginView.h:
* win/WebKit2.vcproj:

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

10 years ago2010-07-27 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Tue, 27 Jul 2010 18:32:43 +0000 (18:32 +0000)]
2010-07-27  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Joseph Pecoraro.

        Web Inspector: render network timing as gant chart in popover.

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

        * inspector/InspectorResource.cpp:
        (WebCore::InspectorResource::buildObjectForTiming):
        * inspector/front-end/ResourcesPanel.js:
        (WebInspector.ResourcesPanel.prototype._showPopover):
        * inspector/front-end/inspector.css:
        (.resource-timing-row):
        (.resource-timing-bar):
        (.resource-timing-bar-title):
        * inspector/front-end/utilities.js:

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

10 years agoUnreviewed.
ossy@webkit.org [Tue, 27 Jul 2010 18:16:26 +0000 (18:16 +0000)]
Unreviewed.

[Qt] Add inspector/debugger-breakpoints-not-activated-on-reload.html (introduced in r64133) to the Skipped list.

* platform/qt/Skipped: inspector/debugger-breakpoints-not-activated-on-reload.html skipped.

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

10 years ago2010-07-27 Victor Wang <victorw@chromium.org>
victorw@chromium.org [Tue, 27 Jul 2010 18:14:31 +0000 (18:14 +0000)]
2010-07-27  Victor Wang  <victorw@chromium.org>

        Unreviewed, rolling out r64104.
        http://trac.webkit.org/changeset/64104
        https://bugs.webkit.org/show_bug.cgi?id=40768

        The patch causes chromium webkit socket laytest crashes on
        windows randomly

        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::addResource):
        (WebCore::InspectorController::removeResource):
        * inspector/InspectorController.h:
        * inspector/InspectorResource.cpp:
        (WebCore::InspectorResource::InspectorResource):
        (WebCore::InspectorResource::updateScriptObject):
        (WebCore::InspectorResource::cachedResource):
        (WebCore::InspectorResource::type):
        (WebCore::InspectorResource::resourceData):
        * inspector/InspectorResource.h:
        (WebCore::InspectorResource::):
        (WebCore::InspectorResource::create):
        * inspector/front-end/Resource.js:
        (WebInspector.Resource.Type.toString):
        (WebInspector.Resource.prototype.set type):
        (WebInspector.Resource.prototype._mimeTypeIsConsistentWithType):
        * inspector/front-end/ResourceView.js:
        (WebInspector.ResourceView.prototype._refreshRequestHeaders):
        (WebInspector.ResourceView.prototype._refreshResponseHeaders):
        (WebInspector.ResourceView.prototype._refreshHeaders):
        * inspector/front-end/inspector.css:
        (.resources-category-scripts, .resources-category-xhr, .resources-category-fonts, .resources-category-other):
        * inspector/front-end/inspector.js:
        (WebInspector.loaded):
        (WebInspector.updateResource):
        * websockets/WebSocketChannel.cpp:
        (WebCore::WebSocketChannel::WebSocketChannel):
        (WebCore::WebSocketChannel::disconnect):
        (WebCore::WebSocketChannel::didOpen):
        (WebCore::WebSocketChannel::didClose):
        (WebCore::WebSocketChannel::processBuffer):
        * websockets/WebSocketChannel.h:

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

10 years ago2010-07-27 Andrei Popescu <andreip@google.com>
andreip@google.com [Tue, 27 Jul 2010 18:04:20 +0000 (18:04 +0000)]
2010-07-27  Andrei Popescu  <andreip@google.com>

        Reviewed by Jeremy Orlow.

        [IndexedDB] Key range methods belong to the IDBKeyRange interface
        https://bugs.webkit.org/show_bug.cgi?id=43052

        * storage/indexeddb/script-tests/keyrange.js:
        (checkSingleKeyRange):
        (checkLeftBoundKeyRange):
        ():
2010-07-27  Andrei Popescu  <andreip@google.com>

        Reviewed by Jeremy Orlow.

        [IndexedDB] Key range methods belong to the IDBKeyRange interface
        https://bugs.webkit.org/show_bug.cgi?id=43052

        Move the key range methods from the IndexedDatabaseRequest interface
        to the IDBKeyRange interface. Also add a global IDBKeyRange object
        that can be used to access the IDBKeyRange constants and factory methods.

        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::clear):
        (WebCore::DOMWindow::iDBKeyRange):
        * page/DOMWindow.h:
        * page/DOMWindow.idl:
        * storage/IDBKeyRange.cpp:
        (WebCore::IDBKeyRange::only):
        (WebCore::IDBKeyRange::leftBound):
        (WebCore::IDBKeyRange::rightBound):
        (WebCore::IDBKeyRange::bound):
        * storage/IDBKeyRange.h:
        * storage/IDBKeyRange.idl:
        * storage/IndexedDatabaseRequest.cpp:
        * storage/IndexedDatabaseRequest.h:
        * storage/IndexedDatabaseRequest.idl:

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

10 years agoMake preferences APIs robust against web process crashes
aroben@apple.com [Tue, 27 Jul 2010 17:17:09 +0000 (17:17 +0000)]
Make preferences APIs robust against web process crashes

Fixes <http://webkit.org/b/43049> Crash in
WebPageNamespace::preferencesDidChange if preferences are changed
after the web process crashes

Reviewed by Anders Carlsson.

* UIProcess/WebContext.cpp:
(WebKit::WebContext::preferencesDidChange): Bail out if we don't have
a web process. The new preference values will get propogated to the
web process if and when it launches.

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

10 years agoAX: consolidate parentObjectIfExists() and parentObject() code
cfleizach@apple.com [Tue, 27 Jul 2010 17:14:12 +0000 (17:14 +0000)]
AX: consolidate parentObjectIfExists() and parentObject() code
https://bugs.webkit.org/show_bug.cgi?id=42981

Reviewed by Darin Adler.

Consolidate duplicate code in parentObject and parentObjectIfExists

No tests. No functionality changed.

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::renderParentObject):
(WebCore::AccessibilityRenderObject::parentObjectIfExists):
(WebCore::AccessibilityRenderObject::parentObject):
* accessibility/AccessibilityRenderObject.h:

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

10 years ago2010-07-26 ryuan choi <ryuan.choi@samsung.com>
leandro@webkit.org [Tue, 27 Jul 2010 16:44:31 +0000 (16:44 +0000)]
2010-07-26  ryuan choi  <ryuan.choi@samsung.com>

        Unreviewed build fix.

        [EFL]REGRESSION(r63952): build break because of InspectorBackendDispatcher.cpp
        https://bugs.webkit.org/show_bug.cgi?id=43021

        Modify cmake script to fix build break as adding InspectorBackendDispatcher.

        * cmake/WebKitGenerators.cmake:

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

10 years agoAX: replace m_renderer->document->axObjectCache() with just axObjectCache()
cfleizach@apple.com [Tue, 27 Jul 2010 16:33:37 +0000 (16:33 +0000)]
AX: replace m_renderer->document->axObjectCache() with just axObjectCache()
https://bugs.webkit.org/show_bug.cgi?id=42979

Reviewed by Adam Barth.

No new tests. Code cleanup only.

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::firstChild):
(WebCore::AccessibilityRenderObject::lastChild):
(WebCore::AccessibilityRenderObject::previousSibling):
(WebCore::AccessibilityRenderObject::nextSibling):
(WebCore::AccessibilityRenderObject::parentObjectIfExists):
(WebCore::AccessibilityRenderObject::parentObject):
(WebCore::AccessibilityRenderObject::menuForMenuButton):
(WebCore::AccessibilityRenderObject::menuButtonForMenu):
(WebCore::AccessibilityRenderObject::addRadioButtonGroupMembers):
(WebCore::AccessibilityRenderObject::axObjectCache):
(WebCore::AccessibilityRenderObject::contentChanged):
(WebCore::AccessibilityRenderObject::addChildren):

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

10 years ago2010-07-27 Rafael Antognolli <antognolli@profusion.mobi>
commit-queue@webkit.org [Tue, 27 Jul 2010 16:30:44 +0000 (16:30 +0000)]
2010-07-27  Rafael Antognolli  <antognolli@profusion.mobi>

        Reviewed by Antonio Gomes.

        [EFL] Changing library names (appending suffix "_efl")
        https://bugs.webkit.org/show_bug.cgi?id=42902

        Instead of having libwebcore.so, we will have libwebcore_efl.so.
        Same for javascriptcore and wtf when compiled as shared, and for jsc.

        * cmake/OptionsEfl.cmake:

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

10 years ago2010-07-27 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Tue, 27 Jul 2010 16:19:51 +0000 (16:19 +0000)]
2010-07-27  Martin Robinson  <mrobinson@igalia.com>

        Unreviewed.

        Remove some mistakenly skipped tests from the skipped list as well as
        a couple tests that no longer exist.

        * platform/gtk/Skipped: Fix some errors in the skipped list.

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

10 years agoMac build fix
aroben@apple.com [Tue, 27 Jul 2010 16:18:55 +0000 (16:18 +0000)]
Mac build fix

* MiniBrowser/mac/BrowserWindowController.m:
(processDidExit):
(-[BrowserWindowController awakeFromNib]):
Added processDidExit support.

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

10 years ago2010-07-27 Pavel Podivilov <podivilov@chromium.org>
commit-queue@webkit.org [Tue, 27 Jul 2010 16:12:30 +0000 (16:12 +0000)]
2010-07-27  Pavel Podivilov  <podivilov@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: do not activate all breakpoints on page reload
        https://bugs.webkit.org/show_bug.cgi?id=41461

        * http/tests/inspector/debugger-test.js:
        (frontend_scriptsAreParsed):
        (frontend_waitUntilScriptsAreParsed.waitForAllScripts):
        (frontend_waitUntilScriptsAreParsed):
        (frontend_ensureSourceFrameLoaded):
        (frontend_showScriptSource):
        * inspector/debugger-breakpoints-not-activated-on-reload-expected.txt: Added.
        * inspector/debugger-breakpoints-not-activated-on-reload.html: Added.
        * platform/gtk/Skipped: skip the test on GTK due to JSC debugger issue
2010-07-27  Pavel Podivilov  <podivilov@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: do not activate all breakpoints on page reload
        https://bugs.webkit.org/show_bug.cgi?id=41461

        Test: inspector/debugger-breakpoints-not-activated-on-reload.html

        * inspector/front-end/ScriptView.js:
        (WebInspector.ScriptView.prototype._addBreakpoint):
        * inspector/front-end/ScriptsPanel.js:
        (WebInspector.ScriptsPanel):
        (WebInspector.ScriptsPanel.prototype._breakpointAdded):
        (WebInspector.ScriptsPanel.prototype.toggleBreakpointsClicked):
        * inspector/front-end/SourceView.js:
        (WebInspector.SourceView.prototype._addBreakpoint):
2010-07-27  Pavel Podivilov  <podivilov@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: if breakpoints were deactivated, add new breakpoints as disabled.
        https://bugs.webkit.org/show_bug.cgi?id=41461

        * src/js/DebuggerScript.js:
        ():

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

10 years agoAdd a ProcessDidExit callback to the WKPageLoaderClient
aroben@apple.com [Tue, 27 Jul 2010 16:06:48 +0000 (16:06 +0000)]
Add a ProcessDidExit callback to the WKPageLoaderClient

Fixes <http://webkit.org/b/43048> UI process needs a way to find out
when the web process crashes

Reviewed by Anders Carlsson.

* UIProcess/API/C/WKPage.h: Added WKPageProcessDidExitCallback, and a
processDidExit member of that type to WKPageLoaderClient.

* UIProcess/WebLoaderClient.cpp:
(WebKit::WebLoaderClient::processDidExit): Added. Calls through to the
WKPageLoaderClient.

* UIProcess/WebLoaderClient.h: Added processDidExit.

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::processDidExit): Tell the loader client the
process exited.

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

10 years ago2010-07-26 Antonio Gomes <tonikitoo@webkit.org>
tonikitoo@webkit.org [Tue, 27 Jul 2010 15:54:19 +0000 (15:54 +0000)]
2010-07-26  Antonio Gomes  <tonikitoo@webkit.org>

        Rubber-stamped by Simon Hausmann.

        [Qt] Reorder some items in Developers' menu so QGraphicsView one is easier accessible.

        Move some less useful menu items on Developers menu from the top to the bottom, so
        QGraphicsView menu goes to the top, and becomes more quickly accessible.

        * QtTestBrowser/main.cpp:
        (LauncherWindow::createChrome):

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

10 years ago2010-07-27 Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
commit-queue@webkit.org [Tue, 27 Jul 2010 15:37:25 +0000 (15:37 +0000)]
2010-07-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Implement QScriptEngine::newFunction() parts that doesn't depend on QScriptContext
        https://bugs.webkit.org/show_bug.cgi?id=42174

        Since our function can be called in Javascript both as a function
        and as a constructor, we couldn't use the existing
        JSObjectMakeFunctionWithCallback() and JSObjectMakeConstructor().

        Instead, a JSClassRef was created, implementing the needed
        callbacks (the callAsConstructor is not there yet because its
        behaviour depends on QScriptContext).

        For the moment, QScriptContext is defined as a void type, since we
        still don't use it.

        The variant of newFunction() that also takes an external argument
        was also implemented. The details of implementation were added to
        the qscriptfunction{.c,_p.h} files.

        This commit also adds tests, some of them from Qt's upstream.

        * api/QtScript.pro:
        * api/qscriptengine.cpp:
        (QScriptEngine::newFunction):
        * api/qscriptengine.h:
        * api/qscriptengine_p.cpp:
        (QScriptEnginePrivate::QScriptEnginePrivate):
        (QScriptEnginePrivate::~QScriptEnginePrivate):
        (QScriptEnginePrivate::newFunction):
        * api/qscriptengine_p.h:
        * api/qscriptfunction.cpp: Added.
        (qt_NativeFunction_finalize):
        (qt_NativeFunction_callAsFunction):
        (qt_NativeFunctionWithArg_finalize):
        (qt_NativeFunctionWithArg_callAsFunction):
        * api/qscriptfunction_p.h: Added.
        (QNativeFunctionData::QNativeFunctionData):
        (QNativeFunctionWithArgData::QNativeFunctionWithArgData):
        * api/qscriptoriginalglobalobject_p.h:
        (QScriptOriginalGlobalObject::QScriptOriginalGlobalObject):
        (QScriptOriginalGlobalObject::~QScriptOriginalGlobalObject):
        (QScriptOriginalGlobalObject::functionPrototype):
        * tests/qscriptengine/tst_qscriptengine.cpp:
        (myFunction):
        (myFunctionWithArg):
        (myFunctionThatReturns):
        (myFunctionThatReturnsWithoutEngine):
        (myFunctionThatReturnsWrongEngine):
        (tst_QScriptEngine::newFunction):

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

10 years agoFix the path to InjectedBundle.dll in Debug_Internal builds
aroben@apple.com [Tue, 27 Jul 2010 15:25:05 +0000 (15:25 +0000)]
Fix the path to InjectedBundle.dll in Debug_Internal builds

Fixes <http://webkit.org/b/42994> WebKitTestRunner fails to load
InjectedBundle.dll in the Debug_Internal configuration

Reviewed by Anders Carlsson.

* WebKitTestRunner/win/TestControllerWin.cpp:
(WTR::TestController::initializeInjectedBundlePath): Add the _debug
suffix only in Debug_All builds.

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

10 years ago2010-07-27 Pranav Kedia <pranavk@chromium.org>
commit-queue@webkit.org [Tue, 27 Jul 2010 15:06:15 +0000 (15:06 +0000)]
2010-07-27  Pranav Kedia  <pranavk@chromium.org>

        Reviewed by Adam Barth.

        Chrome browser Bug: Pause button stays when <audio> hits end
        https://bugs.webkit.org/show_bug.cgi?id=42677

        The change is just in chromium media. Tested using media part of
        WebKit layout tests. The following test that was failing is passing.
        media/video-duration-known-after-eos.html -> unexpected pass

        * rendering/RenderMediaControlsChromium.cpp:
        (WebCore::paintMediaPlayButton):
        Using mediaElement->canPlay() instead of mediaElement->paused() to
        paint the play/pause button.

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

10 years ago2010-07-27 Andras Becsi <abecsi@webkit.org>
abecsi@webkit.org [Tue, 27 Jul 2010 15:01:31 +0000 (15:01 +0000)]
2010-07-27  Andras Becsi  <abecsi@webkit.org>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] WebEventFactory::createWebMouseEvent should follow WebKit2 API changes
        https://bugs.webkit.org/show_bug.cgi?id=43042

        * Shared/qt/WebEventFactoryQt.cpp:
        (WebKit::WebEventFactory::createWebMouseEvent):
        Set deltaX, deltaY and deltaZ arguments.

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

10 years ago2010-07-27 Steve Block <steveblock@google.com>
steveblock@google.com [Tue, 27 Jul 2010 14:12:25 +0000 (14:12 +0000)]
2010-07-27  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Client-based Geolocation does not pass enableHighAccuracy option to controller and client
        https://bugs.webkit.org/show_bug.cgi?id=40374

        This change passes the enableHighAccuracy request option to the GeolocationController.
        The GeolocationController tracks whether this should be used by the client.

        No new tests possible as the mock provider doesn't support this feature.

        * page/Geolocation.cpp:
        (WebCore::Geolocation::setIsAllowed):
        (WebCore::Geolocation::startUpdating):
        * page/GeolocationController.cpp:
        (WebCore::GeolocationController::addObserver):
        (WebCore::GeolocationController::removeObserver):
        * page/GeolocationController.h:
        * page/GeolocationControllerClient.h:
2010-07-27  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        Client-based Geolocation does not pass enableHighAccuracy option to controller and client
        https://bugs.webkit.org/show_bug.cgi?id=40374

        Stub out setEnableHighAccuracy method for the Mac port.

        * WebCoreSupport/WebGeolocationControllerClient.h:
        (WebGeolocationControllerClient::setEnableHighAccuracy):
2010-07-27  Steve Block  <steveblock@google.com>

        Reviewed by Alexey Proskuryakov.

        Client-based Geolocation does not pass enableHighAccuracy option to controller and client
        https://bugs.webkit.org/show_bug.cgi?id=40374

        Stub out setEnableHighAccuracy method for the Win port.

        * WebCoreSupport/WebGeolocationControllerClient.h:
        (WebGeolocationControllerClient::setEnableHighAccuracy):

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

10 years ago2010-07-27 Steve Block <steveblock@google.com>
steveblock@google.com [Tue, 27 Jul 2010 13:55:51 +0000 (13:55 +0000)]
2010-07-27  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        LayoutTests/fast/dom/DeviceOrientation/window-property.html assumes use of V8
        https://bugs.webkit.org/show_bug.cgi?id=43025

        This change modifies window-property.html and its expected result to work with JSC.
        A V8-specific expected result is added for Android.

        * fast/dom/DeviceOrientation/script-tests/window-property.js:
        * fast/dom/DeviceOrientation/window-property-expected.txt:
        * platform/android-v8: Added.
        * platform/android-v8/fast: Added.
        * platform/android-v8/fast/dom: Added.
        * platform/android-v8/fast/dom/DeviceOrientation: Added.
        * platform/android-v8/fast/dom/DeviceOrientation/window-property-expected.txt: Added.

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

10 years ago2010-07-27 Ilya Tikhonovsky <loislo@chromium.org>
loislo@chromium.org [Tue, 27 Jul 2010 13:41:20 +0000 (13:41 +0000)]
2010-07-27  Ilya Tikhonovsky  <loislo@chromium.org>

        Reviewed by Pavel Feldman.

        WebInspector: Current implementation of message based inspector
        transport generated by CodeGeneratorInspector should be upstreamed
        from WebKit/chromium to WebCore.
        https://bugs.webkit.org/show_bug.cgi?id=42983

        * Android.derived.v8bindings.mk:
        * CMakeLists.txt:
        * DerivedSources.cpp:
        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.exp.in:
        * WebCore.gypi:
        * WebCore.pri:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/ScriptObject.cpp:
        * bindings/js/ScriptObject.h:
        * bindings/v8/ScriptObject.cpp:
        * bindings/v8/ScriptObject.h:
        * inspector/CodeGeneratorInspector.pm:
        * inspector/InspectorBackend.idl: Removed.
        * inspector/InspectorFrontendClient.h:
        * inspector/InspectorFrontendClientLocal.cpp:
        (WebCore::InspectorFrontendClientLocal::windowObjectCleared):
        (WebCore::InspectorFrontendClientLocal::sendMessageToBackend):
        * inspector/InspectorFrontendClientLocal.h:
        * inspector/InspectorFrontendHost.cpp:
        (WebCore::InspectorFrontendHost::sendMessageToBackend):
        * inspector/InspectorFrontendHost.h:
        * inspector/InspectorFrontendHost.idl:
        * inspector/front-end/InspectorBackendStub.js:
        (.WebInspector.InspectorBackendStub):
        (.WebInspector.InspectorBackendStub.prototype._registerDelegate):
        (.WebInspector.InspectorBackendStub.prototype.sendMessageToBackend):

2010-07-27  Ilya Tikhonovsky  <loislo@chromium.org>

        Reviewed by Pavel Feldman.

        WebInspector: Current implementation of message based inspector
        transport generated by CodeGeneratorInspector should be upstreamed
        from WebKit/chromium to WebCore.
        https://bugs.webkit.org/show_bug.cgi?id=42983

        * WebKit.gypi:
        * src/InspectorFrontendClientImpl.cpp:
        (WebKit::InspectorFrontendClientImpl::sendMessageToBackend):
        * src/InspectorFrontendClientImpl.h:
        * src/ToolsAgent.h:
        * src/WebDevToolsAgentImpl.cpp:
        (WebKit::WebDevToolsAgentImpl::dispatchOnInspectorController):
        (WebKit::WebDevToolsAgentImpl::initDevToolsAgentHost):
        * src/WebDevToolsAgentImpl.h:
        * src/js/InspectorControllerImpl.js: Removed.

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

10 years ago2010-07-25 Mahesh Kulkarni <mahesh.kulkarni@nokia.com>
andreas.kling@nokia.com [Tue, 27 Jul 2010 13:01:04 +0000 (13:01 +0000)]
2010-07-25  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=42947
        Check for WEBKIT_TESTFONTS for qt, gtk and windows port and throw
        error. Without which dumpRenderTree crashes.

        * Scripts/old-run-webkit-tests:

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

10 years ago2010-07-27 Balazs Kelemen <kb@inf.u-szeged.hu>
commit-queue@webkit.org [Tue, 27 Jul 2010 12:27:29 +0000 (12:27 +0000)]
2010-07-27  Balazs Kelemen  <kb@inf.u-szeged.hu>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] WebKit::PageClient implementation needs a dedicated class

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

        * UIProcess/API/qt/qwkpage.cpp:
        (PageClientImpl::PageClientImpl): Added.
        (PageClientImpl::pageDidEnterAcceleratedCompositing): Moved from QWKPagePrivate.
        (PageClientImpl::pageDidLeaveAcceleratedCompositing): Ditto.
        (PageClientImpl::processDidExit): Ditto.
        (PageClientImpl::processDidRevive): Ditto.
        (PageClientImpl::setCursor): Ditto.
        (PageClientImpl::takeFocus): Ditto.
        (PageClientImpl::toolTipChanged): Ditto.
        (QWKPagePrivate::QWKPagePrivate): Set a new instance of the PageClientImpl as PageClient rather than 'this'.
        * UIProcess/API/qt/qwkpage_p.h: Removed PageClient implementation methods from QWKPagePrivate.

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

10 years ago2010-07-27 Anton Muhin <antonm@chromium.org>
antonm@chromium.org [Tue, 27 Jul 2010 12:08:36 +0000 (12:08 +0000)]
2010-07-27  Anton Muhin  <antonm@chromium.org>

        Reviewed by Darin Adler.

        Extend a test checking access to nested elements on the document to cover recent regression in Chromium
        https://bugs.webkit.org/show_bug.cgi?id=42980

        See http://code.google.com/p/chromium/issues/detail?id=48804 for more details.

        * fast/dom/HTMLDocument/document-special-properties-expected.txt:
        * fast/dom/HTMLDocument/document-special-properties.html:

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

10 years ago[Qt] Incorrect input method hints
hausmann@webkit.org [Tue, 27 Jul 2010 10:55:56 +0000 (10:55 +0000)]
[Qt] Incorrect input method hints
https://bugs.webkit.org/show_bug.cgi?id=43037

Reviewed by Tor Arne Vestbø.

Properly set or reset all input method hints when
activating input fields.

* WebCoreSupport/EditorClientQt.cpp:
(WebCore::EditorClientQt::setInputMethodState):
* tests/qwebview/tst_qwebview.cpp:
(tst_QWebView::focusInputTypes): Extended unit test to verify that we
reset hints.

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

10 years ago[Qt] Fix failing layout-tests after r64114
vestbo@webkit.org [Tue, 27 Jul 2010 10:05:22 +0000 (10:05 +0000)]
[Qt] Fix failing layout-tests after r64114

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

10 years ago2010-07-27 Kim Grönholm <kim.1.gronholm@nokia.com>
kim.1.gronholm@nokia.com [Tue, 27 Jul 2010 09:51:48 +0000 (09:51 +0000)]
2010-07-27  Kim Grönholm  <kim.1.gronholm@nokia.com>

        Reviewed by Simon Hausmann.

        [Qt] Decouple QTouchEvent's accepted flag from JS prevent default
        https://bugs.webkit.org/show_bug.cgi?id=42892

        We need to always accept the QTouchEvents in order to get TouchUpdate and
        TouchEnd events. QWebPage::event() return value is used to indicate
        whether the default action was prevented for the touch events.

        * Api/qgraphicswebview.cpp:
        (QGraphicsWebView::sceneEvent):
        * Api/qwebpage.cpp:
        (QWebPagePrivate::touchEvent):
        (QWebPage::event):
        * Api/qwebpage_p.h:
        * Api/qwebview.cpp:
        (QWebView::event):

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

10 years agoUnreviewed. Trivial test fix.
tkent@chromium.org [Tue, 27 Jul 2010 09:36:05 +0000 (09:36 +0000)]
Unreviewed. Trivial test fix.

* fast/forms/script-tests/input-number-events.js:
 Adjust pixel values in order to work on Windows.

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