WebKit-https.git
9 years ago2010-11-02 Mikhail Naganov <mnaganov@chromium.org>
mnaganov@chromium.org [Wed, 3 Nov 2010 15:47:26 +0000 (15:47 +0000)]
2010-11-02  Mikhail Naganov  <mnaganov@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: Fix console messages about starting and finishing profiling.

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

        * inspector/InspectorProfilerAgent.cpp:
        (WebCore::InspectorProfilerAgent::addStartProfilingMessageToConsole):
        * inspector/front-end/ProfilesPanel.js:
        (WebInspector.ProfilesPanel.prototype.displayTitleForProfileLink):

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

9 years ago2010-11-03 Andreas Kling <kling@webkit.org>
andreas.kling@nokia.com [Wed, 3 Nov 2010 15:46:13 +0000 (15:46 +0000)]
2010-11-03  Andreas Kling  <kling@webkit.org>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] QGWV: Keep the scrolling delegation intact when switching pages

        * Api/qgraphicswebview.cpp:
        (QGraphicsWebViewPrivate::updateResizesToContentsForPage): Turn on/off
        scrolling delegation depending on the resizeToContents mode.
        (QGraphicsWebViewPrivate::detachCurrentPage): Turn off scrolling delegation.
        (QGraphicsWebView::setResizesToContents):

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

9 years ago2010-11-03 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 3 Nov 2010 15:44:16 +0000 (15:44 +0000)]
2010-11-03  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Andreas Kling.

        chrome.dll!WebCore::SVGLength::SVGLength ...
        https://bugs.webkit.org/show_bug.cgi?id=48831

        Test: svg/dom/baseVal-animVal-crash.html

        * svg/properties/SVGListPropertyTearOff.h:
        (WebCore::SVGListPropertyTearOff::initialize): Renamed removeItemFromListIfNeeded to processIncomingListItem, to reflect its new job.
        (WebCore::SVGListPropertyTearOff::insertItemBefore): Ditto.
        (WebCore::SVGListPropertyTearOff::replaceItem): Ditto.
        (WebCore::SVGListPropertyTearOff::appendItem): Ditto.
        (WebCore::SVGListPropertyTearOff::processIncomingListItem): Copy incoming item, if necessary, see inline comments.
        * svg/properties/SVGPropertyTearOff.h:
        (WebCore::SVGPropertyTearOff::detachWrapper): Remove association with SVGAnimatedProperty, when wrapper is detached.

2010-11-03  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Andreas Kling.

        chrome.dll!WebCore::SVGLength::SVGLength ...
        https://bugs.webkit.org/show_bug.cgi?id=48831

        * svg/dom/baseVal-animVal-crash-expected.txt: Added.
        * svg/dom/baseVal-animVal-crash.html: Added.

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

9 years ago2010-11-03 Kenneth Rohde Christiansen <kenneth@webkit.org>
andreas.kling@nokia.com [Wed, 3 Nov 2010 15:00:45 +0000 (15:00 +0000)]
2010-11-03  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Reviewed by Andreas Kling.

        Make it possible to delegate scrolling to the UI
        https://bugs.webkit.org/show_bug.cgi?id=48907

        Enable scrolling delegation when setResizesToContents is active.

        * Api/qgraphicswebview.cpp:
        (QGraphicsWebView::setResizesToContents):
2010-11-03  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Reviewed by Andreas Kling.

        Make it possible to delegate scrolling to the UI
        https://bugs.webkit.org/show_bug.cgi?id=48907

        Add a WebCore setting for delegating scrolling to the actual
        WebKit view, which means that setScrollPosition will call
        scrollContents directly without going though the scrollbar
        code.

        * page/FrameView.cpp:
        (WebCore::FrameView::delegatesScrolling):
        * page/FrameView.h:
        * page/Settings.cpp:
        (WebCore::Settings::Settings):
        (WebCore::Settings::setShouldDelegateScrolling):
        * page/Settings.h:
        (WebCore::Settings::shouldDelegateScrolling):
        * platform/ScrollView.cpp:
        (WebCore::ScrollView::setScrollPosition):
        * platform/ScrollView.h:
        (WebCore::ScrollView::delegatesScrolling):

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

9 years ago2010-11-02 Stephen White <senorblanco@chromium.org>
senorblanco@chromium.org [Wed, 3 Nov 2010 14:50:04 +0000 (14:50 +0000)]
2010-11-02  Stephen White  <senorblanco@chromium.org>

        Reviewed by Tony Chang.

        [chromium] Fix LayoutTestController UMRs.
        https://bugs.webkit.org/show_bug.cgi?id=48872

        * DumpRenderTree/chromium/LayoutTestController.cpp:
        (LayoutTestController::LayoutTestController):

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

9 years ago2010-11-03 Patrick Gansterer <paroga@webkit.org>
paroga@webkit.org [Wed, 3 Nov 2010 14:38:33 +0000 (14:38 +0000)]
2010-11-03  Patrick Gansterer  <paroga@webkit.org>

        Reviewed by Adam Roben.

        [WINCE] Add SharedBitmap
        https://bugs.webkit.org/show_bug.cgi?id=28272

        SharedBitmap is a helper class used as NativeImagePtr for WinCE.
        It's wide used by WinCE graphics files as a replacement of HBITMAP.

        Originally written by Yong Li <yong.li@torchmobile.com>.

        * platform/graphics/wince/GraphicsContextWinCE.cpp:
        (WebCore::TransparentLayerDC::TransparentLayerDC):
        (WebCore::TransparentLayerDC::~TransparentLayerDC):
        (WebCore::ScopeDCProvider::ScopeDCProvider):
        (WebCore::ScopeDCProvider::~ScopeDCProvider):
        (WebCore::GraphicsContext::drawText):
        * platform/graphics/wince/SharedBitmap.cpp: Added.
        (WebCore::SharedBitmap::create):
        (WebCore::SharedBitmap::SharedBitmap):
        (WebCore::SharedBitmap::~SharedBitmap):
        (WebCore::SharedBitmap::resetPixels):
        (WebCore::convert32To16):
        (WebCore::SharedBitmap::to16bit):
        (WebCore::SharedBitmap::freeMemory):
        (WebCore::SharedBitmap::createHandle):
        (WebCore::SharedBitmap::ensureHandle):
        (WebCore::SharedBitmap::draw):
        (WebCore::SharedBitmap::clipBitmap):
        (WebCore::drawPatternSimple):
        (WebCore::normalizePhase):
        (WebCore::SharedBitmap::drawPattern):
        (WebCore::SharedBitmap::DCProvider::getDC):
        (WebCore::SharedBitmap::DCProvider::releaseDC):
        (WebCore::SharedBitmap::clearPixels):
        * platform/graphics/wince/SharedBitmap.h: Added.
        (WebCore::DCProvider::getDC):
        (WebCore::DCProvider::releaseDC):
        (WebCore::DCProvider::DCHolder::DCHolder):
        (WebCore::DCProvider::DCHolder::~DCHolder):
        (WebCore::DCProvider::DCHolder::set):
        (WebCore::DCProvider::DCHolder::get):
        (WebCore::DCProvider::DCHolder::clearInternal):
        (WebCore::DCProvider::DCHolder::setInternal):

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

9 years ago2010-11-03 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 3 Nov 2010 14:12:54 +0000 (14:12 +0000)]
2010-11-03  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        chrome.dll!WebCore::SVGListPropertyTearOff<...>::getItem ReadAV@NULL (578c0f7f21ca517ba29a4eafb7099c1b)
        https://bugs.webkit.org/show_bug.cgi?id=48829

        Share SVGPropertyTearOff wrapper cache between SVGAnimatedListPropertyTearOff::baseVal/animVal.
        When modifying the list through baseVal, and then grabbing the animVal list an assertion was fired,
        as the wrapper cache was out of sync with the underlying SVG*List vector.

        Test: svg/dom/baseVal-animVal-list-crash.html

        * svg/properties/SVGAnimatedListPropertyTearOff.h:
        (WebCore::SVGAnimatedListPropertyTearOff::baseVal):
        (WebCore::SVGAnimatedListPropertyTearOff::animVal):
        (WebCore::SVGAnimatedListPropertyTearOff::removeItemFromList):
        (WebCore::SVGAnimatedListPropertyTearOff::detachListWrappers):
        (WebCore::SVGAnimatedListPropertyTearOff::values):
        (WebCore::SVGAnimatedListPropertyTearOff::wrappers):
        (WebCore::SVGAnimatedListPropertyTearOff::create):
        (WebCore::SVGAnimatedListPropertyTearOff::SVGAnimatedListPropertyTearOff):
        * svg/properties/SVGListPropertyTearOff.h:
        (WebCore::SVGListPropertyTearOff::create):
        (WebCore::SVGListPropertyTearOff::removeItemFromList):
        (WebCore::SVGListPropertyTearOff::clear):
        (WebCore::SVGListPropertyTearOff::numberOfItems):
        (WebCore::SVGListPropertyTearOff::initialize):
        (WebCore::SVGListPropertyTearOff::getItem):
        (WebCore::SVGListPropertyTearOff::insertItemBefore):
        (WebCore::SVGListPropertyTearOff::replaceItem):
        (WebCore::SVGListPropertyTearOff::removeItem):
        (WebCore::SVGListPropertyTearOff::appendItem):
        (WebCore::SVGListPropertyTearOff::SVGListPropertyTearOff):
        (WebCore::SVGListPropertyTearOff::commitChange):

2010-11-03  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        chrome.dll!WebCore::SVGListPropertyTearOff<...>::getItem ReadAV@NULL (578c0f7f21ca517ba29a4eafb7099c1b)
        https://bugs.webkit.org/show_bug.cgi?id=48829

        * svg/dom/baseVal-animVal-list-crash-expected.txt: Added.
        * svg/dom/baseVal-animVal-list-crash.html: Added.

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

9 years ago2010-11-02 Ilya Tikhonovsky <loislo@chromium.org>
loislo@chromium.org [Wed, 3 Nov 2010 14:10:41 +0000 (14:10 +0000)]
2010-11-02  Ilya Tikhonovsky  <loislo@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: Remove obsolete code.
        It is not required to push onload and DOMContentLoaded events times to the fresh instance of Inspector.
        Network Panel is showing the markers only after reloading the inspected page.
        https://bugs.webkit.org/show_bug.cgi?id=48854

        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::InspectorController):
        (WebCore::InspectorController::populateScriptObjects):
        (WebCore::InspectorController::mainResourceFiredDOMContentEvent):
        (WebCore::InspectorController::mainResourceFiredLoadEvent):
        * inspector/InspectorController.h:

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

9 years ago2010-11-03 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Wed, 3 Nov 2010 13:49:11 +0000 (13:49 +0000)]
2010-11-03  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Jeremy Orlow.

        Web Inspector: brush up breakpoints UI and UX.
        https://bugs.webkit.org/show_bug.cgi?id=48901

        * inspector/front-end/BreakpointManager.js:
        (WebInspector.DOMBreakpoint.prototype.populateLabelElement):
        (WebInspector.XHRBreakpoint.prototype.populateLabelElement):
        * inspector/front-end/BreakpointsSidebarPane.js:
        (WebInspector.BreakpointsSidebarPane.prototype.addBreakpointItem):
        (WebInspector.XHRBreakpointsSidebarPane.prototype.addBreakpointItem):
        (WebInspector.XHRBreakpointsSidebarPane.prototype._hideEditBreakpointDialog):
        (WebInspector.BreakpointItem):
        * inspector/front-end/ElementsTreeOutline.js:
        (WebInspector.ElementsTreeElement.prototype._populateTagContextMenu.handlerFunction):
        (WebInspector.ElementsTreeElement.prototype._populateTagContextMenu):
        * inspector/front-end/PropertiesSection.js:
        (WebInspector.PropertiesSection):
        * inspector/front-end/inspector.css:
        (.monospace):
        (body.platform-mac.platform-mac-snowleopard .source-code):
        (body.platform-windows .monospace, body.platform-windows .source-code):
        (body.platform-linux .monospace, body.platform-linux .source-code):
        (.source-code):
        (.section .header):
        (.section .header::before):
        (.section .header .title, .event-bar .header .title):
        (.section .header .subtitle, .event-bar .header .subtitle):
        (.section.expanded .properties, .event-bar.expanded .event-properties):
        (.event-listener-breakpoints .event-category):
        (.event-listener-breakpoints.properties-tree .children li):
        (.event-listener-breakpoints .checkbox-elem):
        (.event-bar):
        (.event-bars .event-bar .header .title):
        (.event-bars .event-bar .header::before):
        (.pane > .body .info):
        (.pane > .body .placard + .info):
        (ol.breakpoint-list):
        (.breakpoint-list li):
        (.pane .breakpoint-hit):
        (.cursor-pointer):
        (.cursor-auto):

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

9 years agoAdd some more failing tests to the Windows Skipped file
aroben@apple.com [Wed, 3 Nov 2010 13:32:48 +0000 (13:32 +0000)]
Add some more failing tests to the Windows Skipped file

* platform/win/Skipped:

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

9 years ago2010-11-03 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 3 Nov 2010 12:15:21 +0000 (12:15 +0000)]
2010-11-03  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed.

        Convert SVGAnimatedString/SVGStringList to the new SVG*PropertyTearOff concept
        https://bugs.webkit.org/show_bug.cgi?id=48898

        Fix Chromium/V8 build for real, verified using a local ToT Chromium build.

        * bindings/scripts/CodeGeneratorV8.pm:

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

9 years agoBring WTF.vcproj up to date
aroben@apple.com [Wed, 3 Nov 2010 11:37:20 +0000 (11:37 +0000)]
Bring WTF.vcproj up to date

* JavaScriptCore.vcproj/WTF/WTF.vcproj: Added filters for the text and
unicode directories, added new files, removed old files.

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

9 years ago2010-11-03 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 3 Nov 2010 11:33:10 +0000 (11:33 +0000)]
2010-11-03  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed.

        Convert SVGAnimatedString/SVGStringList to the new SVG*PropertyTearOff concept
        https://bugs.webkit.org/show_bug.cgi?id=48898

        Next attempt to fix the Chromium/V8 builds - a class forward in the headers was still missing.

        * bindings/scripts/CodeGeneratorV8.pm: Add SVGStringListPropertyTearOff in the V8SVGStringList header.

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

9 years ago2010-11-03 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 3 Nov 2010 11:23:10 +0000 (11:23 +0000)]
2010-11-03  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed.

        Convert SVGAnimatedString/SVGStringList to the new SVG*PropertyTearOff concept
        https://bugs.webkit.org/show_bug.cgi?id=48898

        Attempt to fix the Chromium/V8 builds.

        * bindings/scripts/CodeGeneratorV8.pm: Add missing "SVGStringListPropertyTearOff.h" include, also replaces some commas by semicolons (no idea why it worked before, Perl is not strict...)

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

9 years ago2010-11-03 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Wed, 3 Nov 2010 11:20:18 +0000 (11:20 +0000)]
2010-11-03  Kent Tamura  <tkent@chromium.org>

        Reviewed by Dimitri Glazkov.

        REGRESSION: rebaseline-chromium-webkit-tests uses non-zero tolerance for
        image dup detection
        https://bugs.webkit.org/show_bug.cgi?id=48744

        * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py:
         - Make a function for option parsing for ease of test
         - Set 0 to options.tolerance
        * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests_unittest.py:
         - Add a test for this change

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

9 years ago2010-11-03 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 3 Nov 2010 11:13:10 +0000 (11:13 +0000)]
2010-11-03  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        Convert SVGAnimatedString/SVGStringList to the new SVG*PropertyTearOff concept
        https://bugs.webkit.org/show_bug.cgi?id=48898

        Convert SVGAnimatedString/SVGStringList to the new svg animated type concept.
        SVGStringList is special compared to all other SVG*Lists, as it returns non-live elements.
        That means myStringList.getItem(0) = 'foobar' doesn't take effect.

        When appending an item to a SVGStringList, that has been taken from another list, it's not removed from the list origin.
        That demanded a new SVGStringListPropertyTearOff which does just that.

        Tests: svg/W3C-SVG-1.1-SE/types-dom-06-f.svg
               svg/dom/SVGStringList.html

        * GNUmakefile.am: Add SVGAnimatedString.h / SVGStringListPropertyTearOff.h to build.
        * WebCore.gypi: Ditto.
        * WebCore.pro: Ditto.
        * WebCore.vcproj/WebCore.vcproj: Ditto.
        * WebCore.xcodeproj/project.pbxproj: Ditto.
        * bindings/scripts/CodeGenerator.pm: Recognize SVGAnimatedString as new style svg animated type. Map SVGStringList to SVGStringListPropertyTearOff.
        * bindings/scripts/CodeGeneratorJS.pm: Handle SVGStringListPropertyTearOff in GetSVGPropertyTypes.
        * bindings/scripts/CodeGeneratorObjC.pm: Ditto.
        * bindings/scripts/CodeGeneratorV8.pm: Ditto.
        * svg/DeprecatedSVGAnimatedPropertyTraits.h: Remove SVGAnimatedString handling.
        * svg/DeprecatedSVGAnimatedTemplate.h: Ditto.
        * svg/SVGAElement.cpp: Renamed target to svgTarget() to avoid clashes with Element::target(), adjust the bindings to call svgTarget() instead of target(), when processing SVGAElement.
        (WebCore::SVGAElement::parseMappedAttribute):
        (WebCore::SVGAElement::synchronizeProperty):
        * svg/SVGAElement.h:
        * svg/SVGAltGlyphElement.h: s/DECLARE_ANIMATED_PROPERTY/DECLARED_ANIMATED_STATIC_PROPERTY_NEW/
        * svg/SVGAnimatedString.h: Added.
        * svg/SVGCursorElement.h: Ditto.
        * svg/SVGFEBlendElement.h: Ditto.
        * svg/SVGFEColorMatrixElement.h: Ditto.
        * svg/SVGFEComponentTransferElement.h: Ditto.
        * svg/SVGFECompositeElement.h: Ditto.
        * svg/SVGFEConvolveMatrixElement.h: Ditto.
        * svg/SVGFEDiffuseLightingElement.h: Ditto.
        * svg/SVGFEDisplacementMapElement.h: Ditto.
        * svg/SVGFEGaussianBlurElement.h: Ditto.
        * svg/SVGFEImageElement.h: Ditto.
        * svg/SVGFEMergeNodeElement.h: Ditto.
        * svg/SVGFEMorphologyElement.h: Ditto.
        * svg/SVGFEOffsetElement.h: Ditto.
        * svg/SVGFESpecularLightingElement.h: Ditto.
        * svg/SVGFETileElement.h: Ditto.
        * svg/SVGFilterElement.h: Ditto.
        * svg/SVGFilterPrimitiveStandardAttributes.h: Ditto.
        * svg/SVGForeignObjectElement.h: Ditto.
        * svg/SVGGradientElement.h: Ditto.
        * svg/SVGImageElement.h: Ditto.
        * svg/SVGLengthList.idl: Remove leftover SVGListProperty marker.
        * svg/SVGMPathElement.h: s/DECLARE_ANIMATED_PROPERTY/DECLARED_ANIMATED_STATIC_PROPERTY_NEW/
        * svg/SVGPatternElement.h: Ditto.
        * svg/SVGScriptElement.h: Ditto.
        * svg/SVGStringList.cpp: Make SVGStringList a plain Vector<String>.
        (WebCore::SVGStringList::commitChange): React to SVGStringList changes.
        (WebCore::SVGStringList::reset):
        (WebCore::SVGStringList::parse):
        * svg/SVGStringList.h:
        (WebCore::SVGStringList::SVGStringList):
        * svg/SVGStyledElement.h: s/DECLARE_ANIMATED_PROPERTY/DECLARED_ANIMATED_STATIC_PROPERTY_NEW/
        * svg/SVGTRefElement.h: Ditto.
        * svg/SVGTests.cpp: Adapt to SVGStringList API changes.
        (WebCore::SVGTests::SVGTests):
        (WebCore::SVGTests::hasExtension):
        (WebCore::SVGTests::isValid):
        (WebCore::SVGTests::parseMappedAttribute):
        (WebCore::SVGTests::isKnownAttribute):
        * svg/SVGTests.h: Ditto.
        (WebCore::SVGTests::requiredFeatures):
        (WebCore::SVGTests::requiredExtensions):
        (WebCore::SVGTests::systemLanguage):
        * svg/SVGTextPathElement.h: s/DECLARE_ANIMATED_PROPERTY/DECLARED_ANIMATED_STATIC_PROPERTY_NEW/
        * svg/SVGURIReference.h: Adapt to SVGStringList API changes.
        (WebCore::SVGURIReference::~SVGURIReference):
        * svg/SVGUseElement.h: s/DECLARE_ANIMATED_PROPERTY/DECLARED_ANIMATED_STATIC_PROPERTY_NEW/
        * svg/SVGViewElement.cpp: Adapt to SVGStringList API changes.
        (WebCore::SVGViewElement::SVGViewElement):
        (WebCore::SVGViewElement::parseMappedAttribute):
        * svg/SVGViewElement.h: Ditto.
        (WebCore::SVGViewElement::viewTarget):
        * svg/properties/SVGAnimatedPropertyMacros.h: Moved GetOwnerElementForType heleprs from SVGAnimatedPropertySynchronizer into this file.
        * svg/properties/SVGAnimatedPropertySynchronizer.h:
        * svg/properties/SVGPropertyTraits.h: Handle SVGStringList.
        * svg/properties/SVGStringListPropertyTearOff.h: Added. This is a simplified version of SVGListPropertyTearOff, tied to SVGStringList and its special demands.
        (WebCore::SVGStringListPropertyTearOff::create):
        (WebCore::SVGStringListPropertyTearOff::clear):
        (WebCore::SVGStringListPropertyTearOff::numberOfItems):
        (WebCore::SVGStringListPropertyTearOff::initialize):
        (WebCore::SVGStringListPropertyTearOff::getItem):
        (WebCore::SVGStringListPropertyTearOff::insertItemBefore):
        (WebCore::SVGStringListPropertyTearOff::replaceItem):
        (WebCore::SVGStringListPropertyTearOff::removeItem):
        (WebCore::SVGStringListPropertyTearOff::appendItem):
        (WebCore::SVGStringListPropertyTearOff::SVGStringListPropertyTearOff):

2010-11-03  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        Convert SVGAnimatedString/SVGStringList to the new SVG*PropertyTearOff concept
        https://bugs.webkit.org/show_bug.cgi?id=48898

        Add a new SVGStringList test ensuring that the items returned by getItem etc. are not live (it's a plain DOMString).
        Add a new test from SVG 1.1 2nd edition regarding SVGStringList. The list operations all pass, but because of a bug
        in SVGTests requiredFeatures handling (see bug 40887) there's still one red rectangle in the middle.

        * platform/mac/svg/W3C-SVG-1.1-SE/types-dom-06-f-expected.checksum: Added.
        * platform/mac/svg/W3C-SVG-1.1-SE/types-dom-06-f-expected.png: Added.
        * platform/mac/svg/W3C-SVG-1.1-SE/types-dom-06-f-expected.txt: Added.
        * svg/W3C-SVG-1.1-SE/types-dom-06-f.svg: Added.
        * svg/dom/SVGStringList-expected.txt: Added.
        * svg/dom/SVGStringList.html: Added.
        * svg/dom/script-tests/SVGStringList.js: Added.

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

9 years ago2010-11-03 Gabor Loki <loki@webkit.org>
loki@webkit.org [Wed, 3 Nov 2010 10:14:14 +0000 (10:14 +0000)]
2010-11-03  Gabor Loki  <loki@webkit.org>

        Reviewed by Andreas Kling.

        Remove unused initializeWeakRandomNumberGenerator
        https://bugs.webkit.org/show_bug.cgi?id=48899

        WeakRandom class is used instead of weakRandomNumber and its initializer.

        * wtf/RandomNumberSeed.h:

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

9 years ago2010-11-03 Daniel Bates <dbates@rim.com>
dbates@webkit.org [Wed, 3 Nov 2010 09:48:59 +0000 (09:48 +0000)]
2010-11-03  Daniel Bates  <dbates@rim.com>

        Rubber-stamped by Nikolas Zimmermann.

        Remove the platform-specific GTK results following changeset 71218
        <http://trac.webkit.org/changeset/71218> since it is sufficient to
        use the platform-independent results, LayoutTests/svg/css/getComputedStyle-basic-expected.txt.

        * platform/gtk/svg/css/getComputedStyle-basic-expected.txt: Removed.

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

9 years ago2010-11-03 Roland Steiner <rolandsteiner@chromium.org>
rolandsteiner@chromium.org [Wed, 3 Nov 2010 09:25:00 +0000 (09:25 +0000)]
2010-11-03  Roland Steiner  <rolandsteiner@chromium.org>

        Unreviewed: additionally update Windows Chromium expectations after WebKit r71218

        * platform/chromium-win/fast/css/getComputedStyle/computed-style-expected.txt:
        * platform/chromium-win/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
        * platform/chromium-win/svg/css/getComputedStyle-basic-expected.txt:

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

9 years ago2010-11-03 Roland Steiner <rolandsteiner@chromium.org>
rolandsteiner@chromium.org [Wed, 3 Nov 2010 08:55:53 +0000 (08:55 +0000)]
2010-11-03  Roland Steiner  <rolandsteiner@chromium.org>

        Unreviewed: update Chromium expectations after WebKit r71218

        * platform/chromium-mac/fast/css/getComputedStyle/computed-style-expected.txt:
        * platform/chromium-mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
        * platform/chromium-mac/svg/css/getComputedStyle-basic-expected.txt:

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

9 years agoSVG FELighting performance issues
zherczeg@webkit.org [Wed, 3 Nov 2010 08:36:22 +0000 (08:36 +0000)]
SVG FELighting performance issues
https://bugs.webkit.org/show_bug.cgi?id=48212

Reviewed by Dirk Schulze.

This patch speeds-up FELighting filter painting by 40%
It reduces the number of floating point operations and
empolys faster pixel manipulation (both for read and
write). Furthermore the length() member of FloatPoint3D
is made inline to speed up vector length calculations.

The lighting filter pixels tests are cover this patch.

* platform/graphics/FloatPoint3D.cpp:
* platform/graphics/FloatPoint3D.h:
(WebCore::FloatPoint3D::length):
* platform/graphics/filters/FELighting.cpp:
(WebCore::FELighting::LightingData::topLeft):
(WebCore::FELighting::LightingData::topRow):
(WebCore::FELighting::LightingData::topRight):
(WebCore::FELighting::LightingData::leftColumn):
(WebCore::FELighting::LightingData::interior):
(WebCore::FELighting::LightingData::rightColumn):
(WebCore::FELighting::LightingData::bottomLeft):
(WebCore::FELighting::LightingData::bottomRow):
(WebCore::FELighting::LightingData::bottomRight):
(WebCore::FELighting::inlineSetPixel):
(WebCore::FELighting::setPixel):
(WebCore::FELighting::drawLighting):
(WebCore::FELighting::apply):
* platform/graphics/filters/FELighting.h:
* platform/graphics/filters/LightSource.cpp:
(WebCore::PointLightSource::updatePaintingData):
(WebCore::SpotLightSource::updatePaintingData):
(WebCore::DistantLightSource::initPaintingData):
* platform/graphics/filters/LightSource.h:

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

9 years ago2010-11-03 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Wed, 3 Nov 2010 08:33:24 +0000 (08:33 +0000)]
2010-11-03  Philippe Normand  <pnormand@igalia.com>

        Unreviewed, unskipping passing media test.

        [GTK] Need results for media/video-poster-scale.html
        https://bugs.webkit.org/show_bug.cgi?id=33541

        * platform/gtk/Skipped: Unskip media/video-poster-scale.html.

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

9 years ago2010-11-03 Gabor Loki <loki@webkit.org>
loki@webkit.org [Wed, 3 Nov 2010 08:21:58 +0000 (08:21 +0000)]
2010-11-03  Gabor Loki  <loki@webkit.org>

        Reviewed by Geoffrey Garen.

        Unused class: JSFastMath with JSValue64
        https://bugs.webkit.org/show_bug.cgi?id=48835

        Remove unused JSFastMath class.

        * runtime/JSImmediate.h:

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

9 years ago2010-11-03 Daniel Bates <dbates@rim.com>
dbates@webkit.org [Wed, 3 Nov 2010 07:48:19 +0000 (07:48 +0000)]
2010-11-03  Daniel Bates  <dbates@rim.com>

        Reviewed by Adam Barth.

        For unnamed frames, window.name returns a generated name
        https://bugs.webkit.org/show_bug.cgi?id=6751

        Part 2 of 2.

        Fixes an issue where the window.name of an unnamed frame returns
        a unique generated name that is used internally to identify the
        frame. Instead, we should return an empty string as implied by
        section 5.1.6 of the HTML5 spec. (http://www.w3.org/TR/html5/browsers.html#browsing-context-names).
        This section describes that a browsing context can have no name or be
        the empty string.

        * html/HTMLFrameElementBase.cpp:
        (WebCore::HTMLFrameElementBase::openURL): Removed ASSERT for empty
        frame name since this is valid as per the HTML5 spec.
        (WebCore::HTMLFrameElementBase::setName): Removed the call to FrameTree::uniqueChildName()
        since the loader code no longer depends on the frame name being unique.
        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::name): Modified to call FrameTree::name().
        * page/FrameTree.cpp:
        (WebCore::FrameTree::setName):
        (WebCore::FrameTree::clearName):
        * page/FrameTree.h:
        (WebCore::FrameTree::name): Re-added; returns the DOM-specified name of the
        frame. Previously, this method returned the internal frame name.

2010-11-03  Daniel Bates  <dbates@rim.com>

        Reviewed by Adam Barth.

        For unnamed frames, window.name returns a generated name
        https://bugs.webkit.org/show_bug.cgi?id=6751

        Part 2 of 2.

        Updated resources of test case fast/frames/frame-element-name.html to
        check the value of window.name. Also modified test case fast/frames/iframe-set-inner-html.html
        to use layoutTestController.dumpChildFramesAsText() and rebased the
        results of http/tests/security/cross-frame-access-put-expected.txt.

        * fast/frames/frame-element-name-expected.txt: Updated results.
        * fast/frames/iframe-set-inner-html-expected.txt: Updated results.
        * fast/frames/iframe-set-inner-html.html: Modified test to use
        layoutTestController.dumpChildFramesAsText() instead of window.name.
        since window.name no longer exposes the WebKit internal frame name.
        * fast/frames/resources/frame-element-name-left.html: Added test for window.name.
        * fast/frames/resources/frame-element-name-right.html: Ditto.
        * http/tests/security/cross-frame-access-put-expected.txt: Updated results.

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

9 years ago2010-11-03 takano takumi <takano1@asia.apple.com>
commit-queue@webkit.org [Wed, 3 Nov 2010 07:45:29 +0000 (07:45 +0000)]
2010-11-03  takano takumi  <takano1@asia.apple.com>

        Reviewed by Dan Bernstein.

        Add text-combine property to our property list. Reflect the setting to a RenderStyle object.
        https://bugs.webkit.org/show_bug.cgi?id=48608

        * fast/css/getComputedStyle/computed-style-expected.txt: Updated.
        * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: Updated.
        * fast/text/international/text-combine-parser-test-expected.txt: Added.
        * fast/text/international/text-combine-parser-test.html: Added.
        * platform/mac/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: Updated.
        * svg/css/getComputedStyle-basic-expected.txt: Updated.
2010-11-03  takano takumi  <takano1@asia.apple.com>

        Reviewed by Dan Bernstein.

        Add text-combine property to our property list. Reflect the setting to a RenderStyle object.
        https://bugs.webkit.org/show_bug.cgi?id=48608

        Test: fast/text/international/text-combine-parser-test.html

        * css/CSSComputedStyleDeclaration.cpp: Added text-combine property support.
        (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
        * css/CSSParser.cpp: Added text-combine property support.
        (WebCore::CSSParser::parseValue):
        * css/CSSPrimitiveValueMappings.h: Added a primitive value mapper for text-combine
        (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
        (WebCore::CSSPrimitiveValue::operator TextCombine):
        * css/CSSPropertyNames.in: Added "text-combine".
        * css/CSSStyleSelector.cpp: Added text-combine property support.
        (WebCore::CSSStyleSelector::applyProperty):
        * css/CSSValueKeywords.in: Added values for text-combine.
        * rendering/style/RenderStyle.cpp:
        (WebCore::RenderStyle::diff): Added check of text-combine value.
        * rendering/style/RenderStyle.h: Added accessors for text-combine.
        (WebCore::InheritedFlags::textCombine):
        (WebCore::InheritedFlags::setTextCombine):
        (WebCore::InheritedFlags::initialTextCombine):
        * rendering/style/RenderStyleConstants.h:
        * rendering/style/StyleRareNonInheritedData.cpp: Added text-combine property support.
        (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
        (WebCore::StyleRareNonInheritedData::operator==):
        * rendering/style/StyleRareNonInheritedData.h: Added text-combine entry for RenderStyle object here.

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

9 years ago2010-11-03 Daniel Bates <dbates@rim.com>
dbates@webkit.org [Wed, 3 Nov 2010 07:19:40 +0000 (07:19 +0000)]
2010-11-03  Daniel Bates  <dbates@rim.com>

        For unnamed frames, window.name returns a generated name
        https://bugs.webkit.org/show_bug.cgi?id=6751

        Part 1 of 2.

        Substitute FrameTree::uniqueName() for FrameTree::name() in the Chromium port.

        * src/WebFrameImpl.cpp:
        (WebKit::WebFrameImpl::name):

2010-11-03  Daniel Bates  <dbates@rim.com>

        For unnamed frames, window.name returns a generated name
        https://bugs.webkit.org/show_bug.cgi?id=6751

        Part 1 of 2.

        Substitute FrameTree::uniqueName() for FrameTree::name() in the EFL port.

        * ewk/ewk_frame.cpp:
        (ewk_frame_name_get):

2010-11-03  Daniel Bates  <dbates@rim.com>

        For unnamed frames, window.name returns a generated name
        https://bugs.webkit.org/show_bug.cgi?id=6751

        Part 1 of 2.

        Substitute FrameTree::uniqueName() for FrameTree::name() in the GTK port.

        * webkit/webkitwebframe.cpp:
        (webkit_web_frame_get_name):

2010-11-03  Daniel Bates  <dbates@rim.com>

        For unnamed frames, window.name returns a generated name
        https://bugs.webkit.org/show_bug.cgi?id=6751

        Part 1 of 2.

        Substitute FrameTree::uniqueName() for FrameTree::name() in the Qt port.

        * Api/qwebframe.cpp:
        (QWebFrame::frameName):

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

9 years ago2010-11-02 Daniel Bates <dbates@rim.com>
dbates@webkit.org [Wed, 3 Nov 2010 07:00:15 +0000 (07:00 +0000)]
2010-11-02  Daniel Bates  <dbates@rim.com>

        Reviewed by Adam Barth.

        For unnamed frames, window.name returns a generated name
        https://bugs.webkit.org/show_bug.cgi?id=6751

        Part 1 of 2.

        Towards fixing bug #6751, rename FrameTree::name() to FrameTree::uniqueName(),
        which is more descriptive of its purpose. A follow up patch will re-add
        FrameTree::name() which will return the DOM-specified name of the frame.

        We will also take this opportunity to verify that we have found all the
        call sites of FrameTree::name().

        * loader/DocumentLoader.cpp:
        (WebCore::DocumentLoader::mainResource): Use FrameTree::uniqueName().
        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::loadURLIntoChildFrame): Ditto.
        (WebCore::FrameLoader::commitProvisionalLoad): Ditto.
        * loader/HistoryController.cpp:
        (WebCore::HistoryController::saveDocumentState): Ditto.
        (WebCore::HistoryController::restoreDocumentState): Ditto.
        (WebCore::HistoryController::createItem): Ditto.
        (WebCore::HistoryController::currentFramesMatchItem): Ditto.
        * loader/ProgressTracker.cpp:
        (WebCore::ProgressTracker::progressStarted): Ditto.
        (WebCore::ProgressTracker::progressCompleted): Ditto.
        * loader/archive/cf/LegacyWebArchive.cpp:
        (WebCore::LegacyWebArchive::create): Ditto.
        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::name): Ditto.
        * page/FrameTree.cpp:
        (WebCore::FrameTree::setName): Ditto.
        (WebCore::FrameTree::clearName): Ditto.
        (WebCore::FrameTree::uniqueChildName): Ditto.
        (WebCore::FrameTree::child): Ditto.
        (WebCore::FrameTree::find): Ditto.
        * page/FrameTree.h:
        (WebCore::FrameTree::uniqueName): Renamed (formerly FrameTree::name()).

2010-11-02  Daniel Bates  <dbates@rim.com>

        Reviewed by Adam Barth.

        For unnamed frames, window.name returns a generated name
        https://bugs.webkit.org/show_bug.cgi?id=6751

        Part 1 of 2.

        Substitute FrameTree::uniqueName() for FrameTree::name() in WebKit2.

        * WebProcess/WebPage/WebFrame.cpp:
        (WebKit::WebFrame::name):

2010-11-02  Daniel Bates  <dbates@rim.com>

        Reviewed by Adam Barth.

        For unnamed frames, window.name returns a generated name
        https://bugs.webkit.org/show_bug.cgi?id=6751

        Part 1 of 2.

        Substitute FrameTree::uniqueName() for FrameTree::name() in the Mac port.

        * WebView/WebFrame.mm:
        (-[WebFrame name]):

2010-11-02  Daniel Bates  <dbates@rim.com>

        Reviewed by Adam Barth.

        For unnamed frames, window.name returns a generated name
        https://bugs.webkit.org/show_bug.cgi?id=6751

        Part 1 of 2.

        Substitute FrameTree::uniqueName() for FrameTree::name() in the Apple Windows port.

        * WebFrame.cpp:
        (WebFrame::name):

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

9 years ago2010-11-02 Gyuyoung Kim <gyuyoung.kim@samsung.com>
gyuyoung.kim@samsung.com [Wed, 3 Nov 2010 06:59:14 +0000 (06:59 +0000)]
2010-11-02  Gyuyoung Kim  <gyuyoung.kim@samsung.com>

        Unreviewed: Add myself to the list of Committers.

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

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

9 years ago2010-11-02 Amruth Raj <amruthraj@motorola.com> and Ravi Kasibhatla <ravi.kasibhatl...
mrobinson@webkit.org [Wed, 3 Nov 2010 05:29:24 +0000 (05:29 +0000)]
2010-11-02  Amruth Raj  <amruthraj@motorola.com> and Ravi Kasibhatla  <ravi.kasibhatla@motorola.com>

        Reviewed by Martin Robinson.

        Changes to enable building WebKit2 for Gtk port.
        (https://bugs.webkit.org/show_bug.cgi?id=37369)

        * Platform/gtk: Added.
        * Platform/gtk/SharedMemoryGtk.cpp: Added.  Stubbed implementation for GTK port. Yet to implement.
        (WebKit::SharedMemory::Handle::Handle):
        (WebKit::SharedMemory::Handle::~Handle):
        (WebKit::SharedMemory::Handle::encode):
        (WebKit::SharedMemory::Handle::decode):
        (WebKit::SharedMemory::create):
        (WebKit::SharedMemory::~SharedMemory):
        (WebKit::SharedMemory::createHandle):
        (WebKit::SharedMemory::systemPageSize):
        * Shared/gtk: Added.
        * Shared/gtk/BackingStoreGtk.cpp: Added. Stubbed implementation for GTK port. Yet to implement.
        (WebKit::BackingStore::createGraphicsContext):
        (WebKit::BackingStore::paint):
        * Shared/gtk/PlatformCertificateInfo.h: Added. Added. Stubbed implementation for GTK port. Yet to implement.
        (WebKit::PlatformCertificateInfo::PlatformCertificateInfo):
        (WebKit::PlatformCertificateInfo::encode):
        (WebKit::PlatformCertificateInfo::decode):
        * Shared/gtk/WebCoreArgumentCodersGtk.cpp: Added. Stubbed implementation for GTK port. Yet to implement.
        (CoreIPC::encodeResourceRequest):
        (CoreIPC::decodeResourceRequest):
        * UIProcess/Plugins/gtk: Added.
        * UIProcess/Plugins/gtk/PluginInfoStoreGtk.cpp: Added.  Stubbed implementation for GTK port. Yet to implement.
        (WebKit::PluginInfoStore::pluginsDirectories):
        (WebKit::PluginInfoStore::pluginPathsInDirectory):
        (WebKit::PluginInfoStore::individualPluginPaths):
        (WebKit::PluginInfoStore::getPluginInfo):
        (WebKit::PluginInfoStore::shouldUsePlugin):
        * WebProcess/InjectedBundle/InjectedBundle.h:
        * WebProcess/InjectedBundle/gtk: Added.
        * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp: Added. Stubbed implementation for GTK port. Yet to implement.
        (WebKit::InjectedBundle::load):
        (WebKit::InjectedBundle::activateMacFontAscentHack):
        * WebProcess/Plugins/Netscape/gtk: Added.
        * WebProcess/Plugins/Netscape/gtk/NetscapePluginGtk.cpp: Added.  Stubbed implementation for GTK port. Yet to implement.
        (WebKit::NetscapePlugin::platformPostInitialize):
        (WebKit::NetscapePlugin::platformDestroy):
        (WebKit::NetscapePlugin::platformGeometryDidChange):
        (WebKit::NetscapePlugin::platformPaint):
        (WebKit::toNP):
        (WebKit::NetscapePlugin::platformHandleMouseEvent):
        (WebKit::NetscapePlugin::platformHandleWheelEvent):
        (WebKit::NetscapePlugin::platformSetFocus):
        (WebKit::NetscapePlugin::platformHandleMouseEnterEvent):
        (WebKit::NetscapePlugin::platformHandleMouseLeaveEvent):
        (WebKit::NetscapePlugin::platformHandleKeyboardEvent):
        * WebProcess/WebCoreSupport/gtk: Added.
        * WebProcess/WebCoreSupport/gtk/WebFrameNetworkingContext.h: Added. Added. Stubbed implementation for GTK port. Yet to implement.
        (WebFrameNetworkingContext::create):
        (WebFrameNetworkingContext::WebFrameNetworkingContext):

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

9 years ago2010-11-02 Chris Rogers <crogers@google.com>
crogers@google.com [Wed, 3 Nov 2010 04:41:32 +0000 (04:41 +0000)]
2010-11-02  Chris Rogers  <crogers@google.com>

        Reviewed by James Robinson.

        Add AudioProcessingEvent files
        https://bugs.webkit.org/show_bug.cgi?id=48884

        No new tests since audio API is not yet implemented.

        * webaudio/AudioProcessingEvent.cpp: Added.
        (WebCore::AudioProcessingEvent::create):
        (WebCore::AudioProcessingEvent::AudioProcessingEvent):
        (WebCore::AudioProcessingEvent::~AudioProcessingEvent):
        (WebCore::AudioProcessingEvent::isAudioProcessingEvent):
        * webaudio/AudioProcessingEvent.h: Added.
        (WebCore::AudioProcessingEvent::inputBuffer):
        (WebCore::AudioProcessingEvent::outputBuffer):
        * webaudio/AudioProcessingEvent.idl: Added.
2010-11-02  Noam Rosenthal  <noam.rosenthal@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        Some refactor for texmap to enable WebKit2: remove globals, and allow TextureMapper to exist without a GraphicsContext.
        This will allow rendering the TextureMapperNode tree without an active QPainter, into the current GL context.
        Most of the changes simply move the globas in TextureMapperGL into members of that class.

        [Texmap] [Qt] Texture mapper initial implementation
        https://bugs.webkit.org/show_bug.cgi?id=47070

        * Api/qwebframe.cpp:
        (QWebFramePrivate::renderFromTiledBackingStore):
        (QWebFramePrivate::renderCompositedLayers):
        (QWebFramePrivate::renderRelativeCoords):
        * Api/qwebframe_p.h:

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

9 years ago2010-11-02 Chris Rogers <crogers@google.com>
crogers@google.com [Wed, 3 Nov 2010 04:36:57 +0000 (04:36 +0000)]
2010-11-02  Chris Rogers  <crogers@google.com>

        Reviewed by James Robinson.

        Add AudioProcessingEvent files
        https://bugs.webkit.org/show_bug.cgi?id=48884

        No new tests since audio API is not yet implemented.

        * webaudio/AudioProcessingEvent.cpp: Added.
        (WebCore::AudioProcessingEvent::create):
        (WebCore::AudioProcessingEvent::AudioProcessingEvent):
        (WebCore::AudioProcessingEvent::~AudioProcessingEvent):
        (WebCore::AudioProcessingEvent::isAudioProcessingEvent):
        * webaudio/AudioProcessingEvent.h: Added.
        (WebCore::AudioProcessingEvent::inputBuffer):
        (WebCore::AudioProcessingEvent::outputBuffer):
        * webaudio/AudioProcessingEvent.idl: Added.

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

9 years ago2010-11-02 Benjamin Kalman <kalman@chromium.org>
commit-queue@webkit.org [Wed, 3 Nov 2010 04:23:04 +0000 (04:23 +0000)]
2010-11-02  Benjamin Kalman  <kalman@chromium.org>

        Reviewed by Ojan Vafai.

        canvas/philip tests use BUG instead of BUGWK in chromium test_expectations.txt.
        https://bugs.webkit.org/show_bug.cgi?id=48879

        * platform/chromium/test_expectations.txt: Update canvas/philip tests to use BUGWK instead of BUG.

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

9 years ago2010-11-02 Al Patrick <apatrick@chromium.org>
commit-queue@webkit.org [Wed, 3 Nov 2010 04:16:58 +0000 (04:16 +0000)]
2010-11-02  Al Patrick  <apatrick@chromium.org>

        Reviewed by Kenneth Russell.

        Added PluginLayerChromium, which composites plugin instances that have an associated OpenGL backing texture.

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

        * WebCore.gypi:
        * loader/SubframeLoader.cpp
        (WebCore::SubframeLoader::loadPlugin):
        * platform/graphics/chromium/LayerChromium.cpp:
        (WebCore::LayerChromium::setNeedsDisplay):
        * platform/graphics/chromium/LayerRendererChromium.cpp:
        (WebCore::LayerRendererChromium::initializeSharedObjects):
        (WebCore::LayerRendererChromium::cleanupSharedObjects):
        * platform/graphics/chromium/LayerRendererChromium.h:
        (WebCore::LayerRendererChromium::pluginLayerSharedValues):
        * platform/graphics/chromium/PluginLayerChromium.cpp: Added.
        (WebCore::PluginLayerChromium::SharedValues::SharedValues):
        (WebCore::PluginLayerChromium::SharedValues::~SharedValues):
        (WebCore::PluginLayerChromium::create):
        (WebCore::PluginLayerChromium::PluginLayerChromium):
        (WebCore::PluginLayerChromium::updateContents):
        (WebCore::PluginLayerChromium::draw):
        * platform/graphics/chromium/PluginLayerChromium.h: Added.
        (WebCore::PluginLayerChromium::drawsContent):
        (WebCore::PluginLayerChromium::setTextureId):
        (WebCore::PluginLayerChromium::SharedValues::shaderProgram):
        (WebCore::PluginLayerChromium::SharedValues::shaderSamplerLocation):
        (WebCore::PluginLayerChromium::SharedValues::shaderMatrixLocation):
        (WebCore::PluginLayerChromium::SharedValues::shaderAlphaLocation):
        (WebCore::PluginLayerChromium::SharedValues::initialized):
2010-11-02  Al Patrick  <apatrick@chromium.org>

        Reviewed by Kenneth Russell.

        [chromium] Plugin instances can propagate the ID of the OpenGL texture they render to.

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

        * public/WebPlugin.h:
        (WebKit::WebPlugin::getBackingTextureId):
        * public/WebPluginContainer.h:
        (WebKit::WebPluginContainer::commitBackingTexture):
        * src/WebPluginContainerImpl.cpp:
        (WebKit::WebPluginContainerImpl::commitBackingTexture):
        (WebKit::WebPluginContainerImpl::platformLayer):
        (WebKit::WebPluginContainerImpl::WebPluginContainerImpl):
        * src/WebPluginContainerImpl.h:

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

9 years ago2010-11-02 James Simonsen <simonjam@chromium.org>
commit-queue@webkit.org [Wed, 3 Nov 2010 03:56:46 +0000 (03:56 +0000)]
2010-11-02  James Simonsen  <simonjam@chromium.org>

        Reviewed by Adam Barth.

        mathml in html sometimes incorrectly parsed
        https://bugs.webkit.org/show_bug.cgi?id=48105

        * html5lib/resources/webkit01.dat: Test case for bug.
2010-11-02  James Simonsen  <simonjam@chromium.org>

        Reviewed by Adam Barth.

        mathml in html sometimes incorrectly parsed
        https://bugs.webkit.org/show_bug.cgi?id=48105

        * html/parser/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::processEndTag): Fixed to match HTML5 spec.

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

9 years ago2010-11-02 Chris Guillory <chris.guillory@google.com>
rolandsteiner@chromium.org [Wed, 3 Nov 2010 03:46:48 +0000 (03:46 +0000)]
2010-11-02  Chris Guillory  <chris.guillory@google.com>

        Reviewed by Dmitry Titov.

        Null check obj in AXObjectCache::postPlatformNotification.
        https://bugs.webkit.org/show_bug.cgi?id=48896

        * accessibility/chromium/AXObjectCacheChromium.cpp:
        (WebCore::AXObjectCache::postPlatformNotification):

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

9 years ago[Chromium] Unreviewed update of test expectations.
dimich@chromium.org [Wed, 3 Nov 2010 03:31:28 +0000 (03:31 +0000)]
[Chromium] Unreviewed update of test expectations.
Add Chromium baseline for a test expectations added
in http://trac.webkit.org/changeset/71192.

* platform/chromium-mac/fast/canvas/canvas-zoom-expected.checksum: Added.

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

9 years ago2010-11-02 Kavita Kanetkar <kkanetkar@chromium.org>
commit-queue@webkit.org [Wed, 3 Nov 2010 02:59:03 +0000 (02:59 +0000)]
2010-11-02  Kavita Kanetkar  <kkanetkar@chromium.org>

        Reviewed by Dumitru Daniliuc.

        [FileSystem] Support not creating directories when queried by inspector.
        https://bugs.webkit.org/show_bug.cgi?id=48169

        * fileapi/LocalFileSystem.cpp:
        (WebCore::openFileSystem):
        (WebCore::LocalFileSystem::readFileSystem):
        (WebCore::LocalFileSystem::requestFileSystem):
        * fileapi/LocalFileSystem.h:
        * platform/AsyncFileSystem.cpp:
        (WebCore::AsyncFileSystem::openFileSystem):
        * platform/AsyncFileSystem.h:
2010-11-02  Kavita Kanetkar  <kkanetkar@chromium.org>

        Reviewed by Dumitru Daniliuc.

        [FileSystem] Support not creating directories when queried by inspector.
        https://bugs.webkit.org/show_bug.cgi?id=48169

        * src/LocalFileSystemChromium.cpp:
        (WebCore::LocalFileSystem::readFileSystem):
        (WebCore::LocalFileSystem::requestFileSystem):

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

9 years ago2010-11-02 Chris Rogers <crogers@google.com>
crogers@google.com [Wed, 3 Nov 2010 02:35:45 +0000 (02:35 +0000)]
2010-11-02  Chris Rogers  <crogers@google.com>

        Reviewed by Kenneth Russell.

        Add AudioBufferSourceNode files
        https://bugs.webkit.org/show_bug.cgi?id=48012

        No new tests since audio API is not yet implemented.

        * webaudio/AudioBufferSourceNode.cpp: Added.
        (WebCore::AudioBufferSourceNode::create):
        (WebCore::AudioBufferSourceNode::AudioBufferSourceNode):
        (WebCore::AudioBufferSourceNode::~AudioBufferSourceNode):
        (WebCore::AudioBufferSourceNode::process):
        (WebCore::AudioBufferSourceNode::provideInput):
        (WebCore::AudioBufferSourceNode::readFromBuffer):
        (WebCore::AudioBufferSourceNode::readFromBufferWithGrainEnvelope):
        (WebCore::AudioBufferSourceNode::reset):
        (WebCore::AudioBufferSourceNode::setBuffer):
        (WebCore::AudioBufferSourceNode::numberOfChannels):
        (WebCore::AudioBufferSourceNode::noteOn):
        (WebCore::AudioBufferSourceNode::noteGrainOn):
        (WebCore::AudioBufferSourceNode::noteOff):
        (WebCore::AudioBufferSourceNode::totalPitchRate):
        * webaudio/AudioBufferSourceNode.h: Added.
        (WebCore::AudioBufferSourceNode::buffer):
        (WebCore::AudioBufferSourceNode::looping):
        (WebCore::AudioBufferSourceNode::setLooping):
        (WebCore::AudioBufferSourceNode::gain):
        (WebCore::AudioBufferSourceNode::playbackRate):
        (WebCore::AudioBufferSourceNode::setPannerNode):
        * webaudio/AudioBufferSourceNode.idl: Added.

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

9 years ago2010-11-02 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Wed, 3 Nov 2010 02:23:03 +0000 (02:23 +0000)]
2010-11-02  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Adam Barth.

        [Cairo] Remove PlatformRefPtrCairo
        https://bugs.webkit.org/show_bug.cgi?id=48192

        Replace PlatformRefPtrCairo with a RefPtr specialization for Cairo and
        Fontconfig types. This is the first step toward removing PlatformRefPtr,
        whose job is better handled by RefPtr.

        * CMakeListsEfl.txt: Update the sources list to include RefPtrCairo
        instead of PlatformRefPtrCairo.
        * GNUmakefile.am: Ditto.
        * WebCore.vcproj/WebCore.vcproj: Ditto.
        * platform/graphics/GraphicsContext.h: Replace PlatformRefPtrCairo with
        RefPtrCairo.
        * platform/graphics/cairo/CairoUtilities.cpp: Ditto.
        (WebCore::drawPatternToCairoContext): Ditto.
        * platform/graphics/cairo/FontCacheFreeType.cpp: Ditto.
        (WebCore::FontCache::getFontDataForCharacters): Ditto.
        (WebCore::FontCache::createFontPlatformData): Ditto.
        * platform/graphics/cairo/FontPlatformDataFreeType.cpp: Ditto.
        (WebCore::FontPlatformData::FontPlatformData): Ditto.
        (WebCore::FontPlatformData::initializeWithFontFace): Ditto.
        * platform/graphics/cairo/FontPlatformDataFreeType.h: Ditto.
        * platform/graphics/cairo/GraphicsContextCairo.cpp: Ditto.
        * platform/graphics/cairo/ImageCairo.cpp: Ditto.
        * platform/graphics/cairo/RefPtrCairo.cpp: Renamed from WebCore/platform/graphics/cairo/PlatformRefPtrCairo.cpp.
        (WTF::refIfNotNull): Added.
        (WTF::derefIfNotNull): Added.
        * platform/graphics/cairo/RefPtrCairo.h: Renamed from WebCore/platform/graphics/cairo/PlatformRefPtrCairo.h.
        * platform/gtk/CursorGtk.cpp: Replace PlatformRefPtrCairo with
        RefPtrCairo.
        (WebCore::createNamedCursor): Ditto.
        * platform/gtk/DragImageGtk.cpp: Ditto.
        (WebCore::scaleDragImage): Ditto.
        (WebCore::dissolveDragImageToFraction): Ditto.
        * plugins/gtk/PluginViewGtk.cpp: Ditto.
        (WebCore::PluginView::paint): Ditto.
2010-11-02  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Adam Barth.

        [Cairo] Remove PlatformRefPtrCairo
        https://bugs.webkit.org/show_bug.cgi?id=48192

        Replace instances of PlatformRefPtr smart pointers that wrap Cairo
        types with RefPtrs.

        * WebCoreSupport/DragClientGtk.cpp: Use RefPtr instead of PlatformRefPtr.
        (WebKit::dragIconWindowDrawEventCallback):
        * WebCoreSupport/DragClientGtk.h: Ditto.

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

9 years ago2010-11-02 Jing Jin <jjin@apple.com>
commit-queue@webkit.org [Wed, 3 Nov 2010 02:18:04 +0000 (02:18 +0000)]
2010-11-02  Jing Jin  <jjin@apple.com>

        Reviewed by Alexey Proskuryakov.

        Key down calls are not being sent to the application.
        https://bugs.webkit.org/show_bug.cgi?id=48867

        * UIProcess/API/mac/WKView.mm:
        (-[WKView keyDown:]): Call super when ignoring a key down.

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

9 years ago[Chromium] Unreviewed update of test expectations.
dimich@chromium.org [Wed, 3 Nov 2010 02:02:28 +0000 (02:02 +0000)]
[Chromium] Unreviewed update of test expectations.
Add Chromium baseline for test added http://trac.webkit.org/changeset/71177.

* platform/chromium-mac/fast/repaint/selection-rl-expected.checksum: Added.
* platform/chromium-mac/fast/repaint/selection-rl-expected.png: Added.

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

9 years ago2010-11-02 Chris Rogers <crogers@google.com>
crogers@google.com [Wed, 3 Nov 2010 01:55:55 +0000 (01:55 +0000)]
2010-11-02  Chris Rogers  <crogers@google.com>

        Reviewed by Kenneth Russell.

        Simple followup changes to files affected by AudioNodeInput thread safety
        https://bugs.webkit.org/show_bug.cgi?id=48661

        No new tests since audio API is not yet implemented.

        * webaudio/AudioBasicProcessorNode.cpp:
        (WebCore::AudioBasicProcessorNode::checkNumberOfChannelsForInput):
        * webaudio/AudioChannelSplitter.cpp:
        (WebCore::AudioChannelSplitter::process):
        * webaudio/AudioDestinationNode.cpp:
        (WebCore::AudioDestinationNode::initialize):
        (WebCore::AudioDestinationNode::uninitialize):
        (WebCore::AudioDestinationNode::provideInput):
        * webaudio/AudioGainNode.cpp:
        (WebCore::AudioGainNode::checkNumberOfChannelsForInput):
        * webaudio/AudioPannerNode.cpp:
        (WebCore::AudioPannerNode::notifyAudioSourcesConnectedToNode):

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

9 years ago2010-11-02 Adrienne Walker <enne@google.com>
commit-queue@webkit.org [Wed, 3 Nov 2010 01:40:48 +0000 (01:40 +0000)]
2010-11-02  Adrienne Walker  <enne@google.com>

        Reviewed by Kenneth Russell.

        Fix typo in webgl-test-util.js.
        https://bugs.webkit.org/show_bug.cgi?id=48861

        * fast/canvas/webgl/resources/webgl-test-utils.js:
        (WebGLTestUtils):

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

9 years ago2010-11-02 Chris Guillory <chris.guillory@google.com>
commit-queue@webkit.org [Wed, 3 Nov 2010 01:20:46 +0000 (01:20 +0000)]
2010-11-02  Chris Guillory  <chris.guillory@google.com>

        Reviewed by Chris Fleizach.

        Chromium: Propagate a document value changed notification on scroll.
        https://bugs.webkit.org/show_bug.cgi?id=48817

        * platform/chromium/accessibility/post-notification-ValueChanged-expected.txt:
        * platform/chromium/accessibility/post-notification-ValueChanged.html:
2010-11-02  Chris Guillory  <chris.guillory@google.com>

        Reviewed by Chris Fleizach.

        Chromium: Propagate a document value changed notification on scroll.
        https://bugs.webkit.org/show_bug.cgi?id=48817

        * accessibility/AccessibilityObject.h:
        (WebCore::AccessibilityObject::isAccessibilityScrollbar):
        * accessibility/AccessibilityScrollbar.h:
        (WebCore::AccessibilityScrollbar::scrollbar):
        (WebCore::AccessibilityScrollbar::isAccessibilityScrollbar):
        * accessibility/chromium/AXObjectCacheChromium.cpp:
        (WebCore::AXObjectCache::postPlatformNotification):
2010-11-02  Chris Guillory  <chris.guillory@google.com>

        Reviewed by Chris Fleizach.

        Chromium: Propagate a document value changed notification on scroll.
        https://bugs.webkit.org/show_bug.cgi?id=48817

        * src/WebAccessibilityObject.cpp:
        (WebKit::WebAccessibilityObject::boundingBoxRect):

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

9 years ago[Chromium] Unreviewed update of test expectations.
dimich@chromium.org [Wed, 3 Nov 2010 01:18:32 +0000 (01:18 +0000)]
[Chromium] Unreviewed update of test expectations.

* platform/chromium/test_expectations.txt:

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

9 years ago2010-11-02 Michael Nordman <michaeln@google.com>
michaeln@google.com [Wed, 3 Nov 2010 01:07:40 +0000 (01:07 +0000)]
2010-11-02  Michael Nordman  <michaeln@google.com>

        Reviewed by Alexey Proskuryakov.

        [Chromium] Some work on making appcache layout tests less flaky.
        https://bugs.webkit.org/show_bug.cgi?id=48002
        1) Make network-simulator.php less slow.
        In addition to redirecting back to the requested url, the response contains
        multiple content-length headers. Chrome's network stacks considers that an
        error condition too and picks up on it faster (one round trip instead of multiple).
        This avoids timeouts due to using PHP via slow CGI on windows.
        2) Removed canLoad() from appcache/fallback.html layout test, the load()
        result is sufficient for determining if it could be loaded. So fewer requests are
        made to conduct the test, cutting out more time.
        3) Removed some unneeded code from offline-access-frame.html. Appcache events are guaranteed
        to be deferred until after 'onload' has happened. This test was coded prior to that
        guarantee being satisfied.

        * http/tests/appcache/fallback.html:
        * http/tests/resources/network-simulator.php:
        * http/tests/resources/offline-access-frame.html:

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

9 years ago2010-11-02 Chris Rogers <crogers@google.com>
crogers@google.com [Wed, 3 Nov 2010 01:00:18 +0000 (01:00 +0000)]
2010-11-02  Chris Rogers  <crogers@google.com>

        Reviewed by Kenneth Russell.

        Add ConvolverNode files
        https://bugs.webkit.org/show_bug.cgi?id=47941

        No new tests since audio API is not yet implemented.

        * webaudio/ConvolverNode.cpp: Added.
        (WebCore::ConvolverNode::ConvolverNode):
        (WebCore::ConvolverNode::~ConvolverNode):
        (WebCore::ConvolverNode::process):
        (WebCore::ConvolverNode::reset):
        (WebCore::ConvolverNode::initialize):
        (WebCore::ConvolverNode::uninitialize):
        (WebCore::ConvolverNode::setBuffer):
        (WebCore::ConvolverNode::buffer):
        * webaudio/ConvolverNode.h: Added.
        (WebCore::ConvolverNode::create):
        * webaudio/ConvolverNode.idl: Added.

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

9 years ago2010-11-02 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Wed, 3 Nov 2010 00:59:00 +0000 (00:59 +0000)]
2010-11-02  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dan Bernstein.

        Overlapped nested iframes show smearing when scrolled
        https://bugs.webkit.org/show_bug.cgi?id=48873

        A FrameView goes into slow scrolling mode (not blitting) when told that it is
        overlapped. However, a nested iframe could still try to use fast scrolling
        when its parent is overlapped, which could result in bad rendering.

        Fixed by making useSlowRepaints() and useSlowRepaintsIfNotOverlapped()
        walk up their parent chain, asking if their parents also use slow
        repaints.

        All the places that call setCanBlitOnScroll() now call
        updateCanBlitOnScrollRecursively() to ensure that the canBlitOnScroll
        flag is updated correctly on subframes.

        Repaint tests do not work on nested iframes, so added manual test.

        * manual-tests/frames/nested-iframe-blit-on-scroll.html: Added.
        * manual-tests/frames/resources/blit-on-scroll-subframe.html: Added.
        * manual-tests/frames/resources/blit-on-scroll-subsubframe.html: Added.
        * page/FrameView.cpp:
        (WebCore::FrameView::layout):
        (WebCore::FrameView::useSlowRepaints):
        (WebCore::FrameView::useSlowRepaintsIfNotOverlapped):
        (WebCore::FrameView::updateCanBlitOnScrollRecursively):
        (WebCore::FrameView::setUseSlowRepaints):
        (WebCore::FrameView::addSlowRepaintObject):
        (WebCore::FrameView::removeSlowRepaintObject):
        (WebCore::FrameView::addFixedObject):
        (WebCore::FrameView::removeFixedObject):
        (WebCore::FrameView::setIsOverlapped):
        (WebCore::FrameView::setContentIsOpaque):
        * page/FrameView.h:

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

9 years ago2010-11-02 Chris Rogers <crogers@google.com>
crogers@google.com [Wed, 3 Nov 2010 00:44:34 +0000 (00:44 +0000)]
2010-11-02  Chris Rogers  <crogers@google.com>

        Reviewed by Kenneth Russell.

        Add RealtimeAnalyser files
        https://bugs.webkit.org/show_bug.cgi?id=48810

        No new tests since audio API is not yet implemented.

        * webaudio/RealtimeAnalyser.cpp: Added.
        (WebCore::RealtimeAnalyser::RealtimeAnalyser):
        (WebCore::RealtimeAnalyser::~RealtimeAnalyser):
        (WebCore::RealtimeAnalyser::reset):
        (WebCore::RealtimeAnalyser::setFftSize):
        (WebCore::RealtimeAnalyser::writeInput):
        (WebCore::RealtimeAnalyser::doFFTAnalysis):
        (WebCore::RealtimeAnalyser::getFloatFrequencyData):
        (WebCore::RealtimeAnalyser::getByteFrequencyData):
        (WebCore::RealtimeAnalyser::getByteTimeDomainData):
        * webaudio/RealtimeAnalyser.h: Added.
        (WebCore::RealtimeAnalyser::fftSize):
        (WebCore::RealtimeAnalyser::frequencyBinCount):
        (WebCore::RealtimeAnalyser::setMinDecibels):
        (WebCore::RealtimeAnalyser::minDecibels):
        (WebCore::RealtimeAnalyser::setMaxDecibels):
        (WebCore::RealtimeAnalyser::maxDecibels):
        (WebCore::RealtimeAnalyser::setSmoothingTimeConstant):
        (WebCore::RealtimeAnalyser::smoothingTimeConstant):
        (WebCore::RealtimeAnalyser::magnitudeBuffer):

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

9 years ago2010-11-02 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Wed, 3 Nov 2010 00:30:11 +0000 (00:30 +0000)]
2010-11-02  Mihai Parparita  <mihaip@chromium.org>

        Update the pixel expectations for fast/canvas, fast/css-generated-content, fast/inline-block, fast/inline, and fast/overflow for the Mac port.

        For the tests that currently fail on Snow Leopard with --pixel-tests
        --tolerance 0, this moves the current pixel results to mac-leopard and
        adds new Snow Leopard-specific results to platform/mac.

        List of files omitted due to length but composed entirely of moves from
        platform/mac to platform/mac-leopard and newly added files in
        platform/mac.

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

9 years ago2010-11-02 Ilya Sherman <isherman@chromium.org>
commit-queue@webkit.org [Wed, 3 Nov 2010 00:25:02 +0000 (00:25 +0000)]
2010-11-02  Ilya Sherman  <isherman@chromium.org>

        Reviewed by Kent Tamura.

        Avoid overlapping label text in autofill popup with icon.
        Updates the menu width computation to take the icon width into account.
        https://bugs.webkit.org/show_bug.cgi?id=48497

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

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

9 years ago2010-10-28 Zhenyao Mo <zmo@google.com>
zmo@google.com [Wed, 3 Nov 2010 00:23:54 +0000 (00:23 +0000)]
2010-10-28  Zhenyao Mo  <zmo@google.com>

        Reviewed by Kenneth Russell.

        Perform framebuffer attachment checking upon draw call rather than attachment
        https://bugs.webkit.org/show_bug.cgi?id=46318

        * html/canvas/WebGLFramebuffer.cpp:
        (WebCore::getInternalFormat): Helper function to get an attachment's internal format.
        (WebCore::isUninitialized): Helper function to decide if an attachment is initialized or not.
        (WebCore::setInitialized): Helper funtion to set an attachment as being initialized.
        (WebCore::WebGLFramebuffer::setAttachment): No longer perform buffer initialization at this point.
        (WebCore::WebGLFramebuffer::removeAttachment): Ditto.
        (WebCore::WebGLFramebuffer::getColorBufferFormat): Make it const.
        (WebCore::WebGLFramebuffer::isIncomplete): Attachments conflict check.
        (WebCore::WebGLFramebuffer::onAccess): Check atatchment conflicts and buffer initialization if necessary.
        (WebCore::WebGLFramebuffer::initializeRenderbuffers): Return a boolean whether the framebuffer is complete or not.
        * html/canvas/WebGLFramebuffer.h: Add new function declaration and remove some outdated functions.
        (WebCore::WebGLFramebuffer::isColorAttached):
        (WebCore::WebGLFramebuffer::isDepthAttached): Make this private.
        (WebCore::WebGLFramebuffer::isStencilAttached): Ditto.
        (WebCore::WebGLFramebuffer::isDepthStencilAttached): Ditto.
        * html/canvas/WebGLRenderbuffer.h:
        (WebCore::WebGLRenderbuffer::setInternalFormat): Also set the renderbuffer as uninitialized.
        * html/canvas/WebGLRenderingContext.cpp:
        (WebCore::WebGLRenderingContext::bindFramebuffer): No longer perform framebuffer initialization at this point.
        (WebCore::WebGLRenderingContext::checkFramebufferStatus): Check WebGL specific attachment conflicts.
        (WebCore::WebGLRenderingContext::clear): Call WebGLFramebuffer::onAccess.
        (WebCore::WebGLRenderingContext::copyTexImage2D): Ditto.
        (WebCore::WebGLRenderingContext::copyTexSubImage2D): Ditto.
        (WebCore::WebGLRenderingContext::drawArrays): Ditto.
        (WebCore::WebGLRenderingContext::drawElements): Ditto.
        (WebCore::WebGLRenderingContext::framebufferRenderbuffer): No longer perform framebuffer initialization at this point.
        (WebCore::WebGLRenderingContext::readPixels): Call WebGLFramebuffer::onAccess.
        (WebCore::WebGLRenderingContext::renderbufferStorage): No longer perform framebuffer initialization at this point.
        (WebCore::WebGLRenderingContext::texImage2DBase): Ditto.
2010-10-28  Zhenyao Mo  <zmo@google.com>

        Reviewed by Kenneth Russell.

        Perform framebuffer attachment checking upon draw call rather than attachment
        https://bugs.webkit.org/show_bug.cgi?id=46318

        * fast/canvas/webgl/framebuffer-object-attachment-expected.txt:
        * fast/canvas/webgl/framebuffer-object-attachment.html:

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

9 years ago2010-11-02 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Wed, 3 Nov 2010 00:06:36 +0000 (00:06 +0000)]
2010-11-02  Mihai Parparita  <mihaip@chromium.org>

        Update the pixel expectations for fast/flexbox, fast/frames, fast/invalid, fast/layers, and fast/lists for the Mac port.

        For the tests that currently fail on Snow Leopard with --pixel-tests
        --tolerance 0, this moves the current pixel results to mac-leopard and
        adds new Snow Leopard-specific results to platform/mac.

        List of files omitted due to length but composed entirely of moves from
        platform/mac to platform/mac-leopard and newly added files in
        platform/mac.

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

9 years agoAdd Null and Int32 to NPVariantData
andersca@apple.com [Tue, 2 Nov 2010 23:50:37 +0000 (23:50 +0000)]
Add Null and Int32 to NPVariantData
https://bugs.webkit.org/show_bug.cgi?id=48887

Reviewed by John Sullivan.

* Shared/Plugins/NPRemoteObjectMap.cpp:
(WebKit::NPRemoteObjectMap::npVariantToNPVariantData):
(WebKit::NPRemoteObjectMap::npVariantDataToNPVariant):
* Shared/Plugins/NPVariantData.cpp:
(WebKit::NPVariantData::NPVariantData):
(WebKit::NPVariantData::makeNull):
(WebKit::NPVariantData::makeInt32):
(WebKit::NPVariantData::encode):
(WebKit::NPVariantData::decode):
* Shared/Plugins/NPVariantData.h:
(WebKit::NPVariantData::int32Value):

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

9 years ago2010-11-02 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Tue, 2 Nov 2010 23:40:31 +0000 (23:40 +0000)]
2010-11-02  Mihai Parparita  <mihaip@chromium.org>

        Update the pixel expectations for fast/forms for the Mac port.

        For the tests that currently fail on Snow Leopard with --pixel-tests
        --tolerance 0, this moves the current pixel results to mac-leopard and
        adds new Snow Leopard-specific results to platform/mac.

        List of files omitted due to length but composed entirely of moves from
        platform/mac to platform/mac-leopard and newly added files in
        platform/mac.

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

9 years ago2010-10-29 John Abd-El-Malek <jam@chromium.org>
jam@chromium.org [Tue, 2 Nov 2010 23:36:20 +0000 (23:36 +0000)]
2010-10-29  John Abd-El-Malek  <jam@chromium.org>

        Reviewed by Darin Fisher.

        [chromium]: Allow plugins to use optimized scrolling
        https://bugs.webkit.org/show_bug.cgi?id=48660

        * public/WebPluginContainer.h:
        * src/WebPluginContainerImpl.cpp:
        (WebKit::WebPluginContainerImpl::scrollRect):
        * src/WebPluginContainerImpl.h:

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

9 years ago2010-11-01 Zhenyao Mo <zmo@google.com>
zmo@google.com [Tue, 2 Nov 2010 23:25:00 +0000 (23:25 +0000)]
2010-11-01  Zhenyao Mo  <zmo@google.com>

        Reviewed by Kenneth Russell.

        blendFunc should generate INVALID_OPERATION if constant color and constant alpha are together as source and destination factors
        https://bugs.webkit.org/show_bug.cgi?id=48674

        Test: fast/canvas/webgl/webgl-specific.html

        * html/canvas/WebGLRenderingContext.cpp:
        (WebCore::WebGLRenderingContext::blendFunc):
        (WebCore::WebGLRenderingContext::blendFuncSeparate):
        * html/canvas/WebGLRenderingContext.h:
        (WebCore::WebGLRenderingContext::validateBlendFuncFactors): Helper function to do the checking.
2010-11-01  Zhenyao Mo  <zmo@google.com>

        Reviewed by Kenneth Russell.

        blendFunc should generate INVALID_OPERATION if constant color and constant alpha are together as source and destination factors
        https://bugs.webkit.org/show_bug.cgi?id=48674

        * fast/canvas/webgl/webgl-specific-expected.txt: Added.
        * fast/canvas/webgl/webgl-specific.html: Added.

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

9 years ago[Chromium] Unreviewed update of test expectations.
dimich@chromium.org [Tue, 2 Nov 2010 23:20:54 +0000 (23:20 +0000)]
[Chromium] Unreviewed update of test expectations.
Add Chromium baseline for a test added in http://trac.webkit.org/changeset/71177.

* platform/chromium-linux/fast/repaint/selection-rl-expected.checksum: Added.
* platform/chromium-linux/fast/repaint/selection-rl-expected.png: Added.
* platform/chromium-win/fast/repaint/selection-rl-expected.checksum: Added.
* platform/chromium-win/fast/repaint/selection-rl-expected.png: Added.
* platform/chromium-win/fast/repaint/selection-rl-expected.txt: Added.

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

9 years agoAdd support for NP_HasMethod and NP_Invoke
andersca@apple.com [Tue, 2 Nov 2010 23:16:31 +0000 (23:16 +0000)]
Add support for NP_HasMethod and NP_Invoke
https://bugs.webkit.org/show_bug.cgi?id=48882

Reviewed by Adam Roben.

WebKit2:

* Platform/CoreIPC/HandleMessage.h:
(CoreIPC::callMemberFunction):
Add new overload.

* Shared/Plugins/NPObjectMessageReceiver.cpp:
(WebKit::NPObjectMessageReceiver::hasMethod):
Call hasMethod and return the result.

(WebKit::NPObjectMessageReceiver::invoke):
Convert the arguments, call invoke and return the result.

(WebKit::NPObjectMessageReceiver::getProperty):
Release the converted variant.

* Shared/Plugins/NPObjectMessageReceiver.messages.in:
Add HasMethod and Invoke messages.

* Shared/Plugins/NPObjectProxy.cpp:
(WebKit::NPObjectProxy::hasMethod):
Send the HasMethod message.

(WebKit::NPObjectProxy::invoke):
Send the Invoke message.

(WebKit::NPObjectProxy::NP_HasMethod):
Call hasMethod.

(WebKit::NPObjectProxy::NP_Invoke):
Call invoke.

LayoutTests:

Remove now passing tests.

* platform/mac-wk2/Skipped:

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

9 years ago2010-11-02 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Tue, 2 Nov 2010 23:12:33 +0000 (23:12 +0000)]
2010-11-02  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dan Bernstein.

        Iframes nested inside a compositing layer don't repaint correctly
        https://bugs.webkit.org/show_bug.cgi?id=48880
        <rdar://problem/8194698>

        The isEnclosedInCompositingLayer() is used to modify the behavior of
        -[WebClipView visibleRect:] in WebKit, so that scrolling-related repaints
        are correct in composited iframes. Previously it only asked whether the
        frame's renderer was in a compositing layer, but we actually need to
        consult all ancestors.

        Test: compositing/iframes/nested-iframe-scrolling.html

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

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

9 years ago[Chromium] Unreviewed update of test expectations.
dimich@chromium.org [Tue, 2 Nov 2010 23:02:15 +0000 (23:02 +0000)]
[Chromium] Unreviewed update of test expectations.

* platform/chromium/test_expectations.txt:

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

9 years agoFix build.
andersca@apple.com [Tue, 2 Nov 2010 22:48:20 +0000 (22:48 +0000)]
Fix build.

* TestWebKitAPI/PlatformUtilities.cpp:
(TestWebKitAPI::Util::createContextForInjectedBundleTest):

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

9 years ago2010-11-02 Marc-Antoine Ruel <maruel@chromium.org>
commit-queue@webkit.org [Tue, 2 Nov 2010 22:35:40 +0000 (22:35 +0000)]
2010-11-02  Marc-Antoine Ruel  <maruel@chromium.org>

        Reviewed by Dimitri Glazkov.

        Disable incremental linking for webkit_unit_test and DumpRenderTRee on x86 Windows on chromium build.
        https://bugs.webkit.org/show_bug.cgi?id=48836

        It fails to link otherwise due to lack of virtual address space.

        * WebKit.gyp:

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

9 years agoImplement NP_HasProperty for NPObjectProxy
andersca@apple.com [Tue, 2 Nov 2010 22:28:05 +0000 (22:28 +0000)]
Implement NP_HasProperty for NPObjectProxy
https://bugs.webkit.org/show_bug.cgi?id=48876

Reviewed by Sam Weinig.

WebKit2:

* Shared/Plugins/NPObjectMessageReceiver.cpp:
(WebKit::NPObjectMessageReceiver::hasProperty):
Call The hasProperty callback function.

* Shared/Plugins/NPObjectMessageReceiver.messages.in:
Add HasProperty message.

* Shared/Plugins/NPObjectProxy.cpp:
(WebKit::NPObjectProxy::hasProperty):
Send the HasProperty message.

(WebKit::NPObjectProxy::NP_HasProperty):
Call hasProperty.

LayoutTests:

Remove now passing test.

* platform/mac-wk2/Skipped:

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=48672
hyatt@apple.com [Tue, 2 Nov 2010 22:21:58 +0000 (22:21 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=48672

Reviewed by Dan Bernstein.

Make vertical glyph offset hit testing work with inline boxes.  This allows selection to paint
properly for vertical text (although gap-filling is still broken).

Refactored and cleaned up the writing mode flipping functions, and also did some cleanup to
better share code between hit testing and painting.

WebCore:

* rendering/InlineBox.cpp:
(WebCore::InlineBox::locationIncludingFlipping):
(WebCore::InlineBox::flipForWritingMode):
* rendering/InlineBox.h:
* rendering/InlineFlowBox.cpp:
(WebCore::InlineFlowBox::nodeAtPoint):
(WebCore::InlineFlowBox::paint):
(WebCore::InlineFlowBox::paintBoxDecorations):
(WebCore::InlineFlowBox::paintMask):
* rendering/InlineTextBox.cpp:
(WebCore::InlineTextBox::selectionRect):
(WebCore::InlineTextBox::nodeAtPoint):
(WebCore::InlineTextBox::paint):
(WebCore::InlineTextBox::textPos):
(WebCore::InlineTextBox::offsetForPosition):
(WebCore::InlineTextBox::positionForOffset):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::paintChildren):
(WebCore::RenderBlock::paintFloats):
(WebCore::RenderBlock::hitTestFloats):
(WebCore::RenderBlock::hitTestContents):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::computeRectForRepaint):
(WebCore::RenderBox::flipForWritingMode):
(WebCore::RenderBox::locationOffsetIncludingFlipping):
* rendering/RenderBox.h:
* rendering/RenderInline.cpp:
(WebCore::RenderInline::clippedOverflowRectForRepaint):
* rendering/RenderLineBoxList.cpp:
(WebCore::RenderLineBoxList::rangeIntersectsRect):
(WebCore::RenderLineBoxList::anyLineIntersectsRect):
(WebCore::RenderLineBoxList::lineIntersectsDirtyRect):
(WebCore::RenderLineBoxList::paint):
(WebCore::RenderLineBoxList::hitTest):
* rendering/RenderLineBoxList.h:
* rendering/RenderText.cpp:
(WebCore::RenderText::positionForPoint):

LayoutTests:

* fast/repaint/selection-rl.html: Added.
* platform/mac/fast/repaint/selection-rl-expected.checksum: Added.
* platform/mac/fast/repaint/selection-rl-expected.png: Added.
* platform/mac/fast/repaint/selection-rl-expected.txt: Added.

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

9 years agoAdd a way to send startup messages on the context which can be posted when a process...
weinig@apple.com [Tue, 2 Nov 2010 22:06:08 +0000 (22:06 +0000)]
Add a way to send startup messages on the context which can be posted when a process launches
<rdar://problem/8617928>
https://bugs.webkit.org/show_bug.cgi?id=48838

Reviewed by Anders Carlsson.

WebKit2:

Adds WKContextSetInitializationUserDataForInjectedBundle which sets an
APIObject on WebContext to be sent to the InjectedBundle's WKBundleInitialize
function each time a process starts up. This can help in cases where
the WebProcess dies, and will be helpful in the world where there are
multiple WebProcess's per context.

* Scripts/webkit2/messages.py:
* UIProcess/API/C/WKContext.cpp:
(WKContextSetInitializationUserDataForInjectedBundle):
* UIProcess/API/C/WKContext.h:
* UIProcess/WebContext.cpp:
(WebKit::WebContext::ensureWebProcess):
* UIProcess/WebContext.h:
(WebKit::WebContext::setInjectedBundleInitializationUserData):
(WebKit::WebContext::injectedBundleInitializationUserData):
* WebProcess/InjectedBundle/API/c/WKBundleInitialize.h:
* WebProcess/InjectedBundle/InjectedBundle.h:
* WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp:
(WebKit::InjectedBundle::load):
* WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp:
(WebKit::InjectedBundle::load):
* WebProcess/InjectedBundle/win/InjectedBundleWin.cpp:
(WebKit::InjectedBundle::load):
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::initializeWebProcess):
* WebProcess/WebProcess.h:
* WebProcess/WebProcess.messages.in:

WebKitTools:

* MiniBrowser/mac/WebBundle/WebBundleMain.m:
(WKBundleInitialize):
* TestWebKitAPI/InjectedBundleController.cpp:
(TestWebKitAPI::InjectedBundleController::initialize):
(TestWebKitAPI::InjectedBundleController::didReceiveMessage):
* TestWebKitAPI/InjectedBundleController.h:
* TestWebKitAPI/InjectedBundleMain.cpp:
(WKBundleInitialize):
* TestWebKitAPI/PlatformUtilities.cpp:
(TestWebKitAPI::Util::createContextForInjectedBundleTest):
* WebKitTestRunner/InjectedBundle/InjectedBundleMain.cpp:
(WKBundleInitialize):
Update implementations of WKBundleInitialize to take an initial userData
argument.  Change TestWebKitAPI to use the new initial userData to initialize
each test's bundle.

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

9 years ago2010-11-02 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 2 Nov 2010 22:01:32 +0000 (22:01 +0000)]
2010-11-02  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        JPEG decoders should understand color profiles
        https://bugs.webkit.org/show_bug.cgi?id=48819

        This patch is currently a no-op because no one defines USE(ICCJPEG).
        We'll enable this for Chromium Mac once we have ICCJPEG landed in
        Chromium's third_party directory.

        * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
        (WebCore::readColorProfile):
        (WebCore::JPEGImageReader::JPEGImageReader):
        (WebCore::JPEGImageReader::decode):
        (WebCore::JPEGImageDecoder::outputScanlines):
        * platform/image-decoders/jpeg/JPEGImageDecoder.h:
        (WebCore::JPEGImageDecoder::setColorProfile):

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

9 years agoImplement PluginProxy::pluginScriptableNPObject
andersca@apple.com [Tue, 2 Nov 2010 21:54:41 +0000 (21:54 +0000)]
Implement PluginProxy::pluginScriptableNPObject
https://bugs.webkit.org/show_bug.cgi?id=48874

Reviewed by Sam Weinig.

* PluginProcess/PluginControllerProxy.cpp:
(WebKit::PluginControllerProxy::getPluginScriptableNPObject):
Ask the plug-in for its scriptable NPObject, register it with the map and return its object ID.

* PluginProcess/PluginControllerProxy.messages.in:
Add GetPluginScriptableNPObject message.

* WebProcess/Plugins/PluginProxy.cpp:
(WebKit::PluginProxy::pluginScriptableNPObject):
Send the GetPluginScriptableNPObject message.

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

9 years ago2010-11-02 Patrick Gansterer <paroga@webkit.org>
paroga@webkit.org [Tue, 2 Nov 2010 21:35:42 +0000 (21:35 +0000)]
2010-11-02  Patrick Gansterer  <paroga@webkit.org>

        Unreviewed, build fix after r71041.

        * WebCoreSupport/ChromeClientWinCE.h:
        (WebKit::ChromeClientWinCE::showContextMenu):

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

9 years agoAdd strings to NPVariantData
andersca@apple.com [Tue, 2 Nov 2010 21:26:37 +0000 (21:26 +0000)]
Add strings to NPVariantData
https://bugs.webkit.org/show_bug.cgi?id=48871

Reviewed by Dan Bernstein.

* Shared/Plugins/NPRemoteObjectMap.cpp:
(WebKit::NPRemoteObjectMap::npVariantToNPVariantData):
(WebKit::NPRemoteObjectMap::npVariantDataToNPVariant):
* Shared/Plugins/NPVariantData.cpp:
(WebKit::NPVariantData::makeString):
(WebKit::NPVariantData::encode):
(WebKit::NPVariantData::decode):
* Shared/Plugins/NPVariantData.h:
(WebKit::NPVariantData::stringValue):

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

9 years ago2010-11-02 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Tue, 2 Nov 2010 21:23:43 +0000 (21:23 +0000)]
2010-11-02  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Adam Barth.

        [Chromium] Crash when encountering history.back() call during Page::goToItem execution
        https://bugs.webkit.org/show_bug.cgi?id=48477

        Add a reduced version of the page that was originally reported at
        http://crbug.com/59554.

        * http/tests/history/back-during-onload-triggered-by-back-expected.txt: Added.
        * http/tests/history/back-during-onload-triggered-by-back.html: Added.
        * http/tests/history/resources/back-during-onload-container.html: Added.
        * http/tests/history/resources/back-during-onload-hung-page.php: Added.
        * http/tests/history/resources/back-during-onload-middle.html: Added.
2010-11-02  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Adam Barth.

        [Chromium] Crash when encountering history.back() call during Page::goToItem execution
        https://bugs.webkit.org/show_bug.cgi?id=48477

        For the Chromium port, BackForwardList::itemAtIndex synthesizes a
        HistoryItem and saves a pointer to it in m_pendingItem. During
        Page::goToItem we call FrameLoader::stopAllLoaders, which can trigger
        onload handlers (if a subframe was not considered committed by the frame
        loader). If one of those handlers calls calls history.back() or another
        operation that ends up in NavigationScheduler::scheduleHistoryNavigation,
        we would call BackForwardList::itemAtIndex, which means that we would
        lose the m_pendingItem RefPtr that pointed to the item being navigated
        to, causing its ref count to go to 0*, and thus for the HistoryItem to
        be deleted before we were done navigating to it.

        This is fixed in two ways:
        - Add a protector RefPtr in Page::goToItem to make sure that the item is
          still around for when we pass it to HistoryController:goToItem.
        - Change NavigationScheduler::scheduleHistoryNavigation to not use
          BackForwardList::itemAtIndex and instead look at the
          forward/backListCount() (since it doesn't actually care about the
          returned HistoryItem).

        * Full annotated stack trace of this is at http://crbug.com/59554#c9.

        Test: http/tests/history/back-during-onload-triggered-by-back.html

        * loader/NavigationScheduler.cpp:
        (WebCore::NavigationScheduler::scheduleHistoryNavigation):
        * page/Page.cpp:
        (WebCore::Page::goToItem):

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

9 years agoAdd convenience functions for allocating NPAPI memory
andersca@apple.com [Tue, 2 Nov 2010 21:18:18 +0000 (21:18 +0000)]
Add convenience functions for allocating NPAPI memory
https://bugs.webkit.org/show_bug.cgi?id=48870

Reviewed by Dan Bernstein.

Add npnMemAlloc, npnMemFree and createNPString functions and
npnMemNew, npnMemNewArray function templates.

* WebProcess/Plugins/Netscape/JSNPObject.cpp:
(WebKit::JSNPObject::getOwnPropertyNames):
Use npnMemFree.

* WebProcess/Plugins/Netscape/NPJSObject.cpp:
(WebKit::NPJSObject::enumerate):
Use npnMemNewArray.

* WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
(WebKit::NPRuntimeObjectMap::convertJSValueToNPVariant):
Use createNPString.

* WebProcess/Plugins/Netscape/NPRuntimeUtilities.cpp:
(WebKit::npnMemAlloc):
Call malloc.

(WebKit::npnMemFree):
Call free.

(WebKit::createNPString):
Allocate the characters for a new NPString.

(WebKit::createNPObject):
Call npnMemNew.

(WebKit::deallocateNPObject):
Call npnMemFree.

(WebKit::releaseNPVariantValue):
Call npnMemFree.

* WebProcess/Plugins/Netscape/NPRuntimeUtilities.h:
(WebKit::npnMemNew):
(WebKit::npnMemNewArray):
Add new functions.

* WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
(WebKit::NPN_MemAlloc):
Call npnMemAlloc.

(WebKit::NPN_MemFree):
Call npnMemFree.

(WebKit::NPN_UTF8FromIdentifier):
Call npnMemNewArray.

(WebKit::copyCString):
Call npnMemNewArray. Correctly initialize the "len" out parameter.

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

9 years agoWindows build fix. Unreviewed.
jberlin@webkit.org [Tue, 2 Nov 2010 21:14:54 +0000 (21:14 +0000)]
Windows build fix. Unreviewed.

* win/WebKit2Generated.make:
Add WKInspector.h so that it is copied over to the WebKitBuild directory.

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

9 years ago[Chromium] Unreviewed update of test expectations.
dimich@chromium.org [Tue, 2 Nov 2010 21:13:33 +0000 (21:13 +0000)]
[Chromium] Unreviewed update of test expectations.
Move the expected file higher up so it's used for all chromium flavors.

* platform/chromium/security/block-test-no-port-expected.txt: Renamed from LayoutTests/platform/chromium-mac/security/block-test-no-port-expected.txt.

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

9 years ago2010-11-02 Jenn Braithwaite <jennb@chromium.org>
commit-queue@webkit.org [Tue, 2 Nov 2010 21:05:12 +0000 (21:05 +0000)]
2010-11-02  Jenn Braithwaite  <jennb@chromium.org>

        Reviewed by Andreas Kling.

        fast/frames/iframe-reparenting-new-page.html output is ordered wrong
        https://bugs.webkit.org/show_bug.cgi?id=48807

        * fast/frames/iframe-reparenting-new-page-expected.txt:
        * fast/frames/script-tests/iframe-reparenting-new-page.js:
        (finish):

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

9 years ago<rdar://problem/8346191> and https://bugs.webkit.org/show_bug.cgi?id=48868
beidson@apple.com [Tue, 2 Nov 2010 21:02:23 +0000 (21:02 +0000)]
<rdar://problem/8346191> and https://bugs.webkit.org/show_bug.cgi?id=48868
Implement IMutableWebRequest::setTimeoutInterval

Reviewed by Anders Carlsson.

* WebMutableURLRequest.cpp:
(WebMutableURLRequest::setTimeoutInterval):

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

9 years ago2010-10-28 Zhenyao Mo <zmo@google.com>
zmo@google.com [Tue, 2 Nov 2010 21:01:45 +0000 (21:01 +0000)]
2010-10-28  Zhenyao Mo  <zmo@google.com>

        Reviewed by Kenneth Russell.

        Update getUniform for bvec[234] to return boolean[] rather than Uint8Array
        https://bugs.webkit.org/show_bug.cgi?id=47568

        * html/canvas/WebGLRenderingContext.cpp:
        (WebCore::WebGLRenderingContext::getUniform):
2010-10-28  Zhenyao Mo  <zmo@google.com>

        Reviewed by Kenneth Russell.

        Update getUniform for bvec[234] to return boolean[] rather than Uint8Array
        https://bugs.webkit.org/show_bug.cgi?id=47568

        * fast/canvas/webgl/gl-object-get-calls-expected.txt:
        * fast/canvas/webgl/gl-object-get-calls.html:

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

9 years ago2010-11-02 Chris Rogers <crogers@google.com>
crogers@google.com [Tue, 2 Nov 2010 20:53:33 +0000 (20:53 +0000)]
2010-11-02  Chris Rogers  <crogers@google.com>

        Reviewed by Kenneth Russell.

        Add RealtimeAnalyserNode files
        https://bugs.webkit.org/show_bug.cgi?id=48798

        No new tests since audio API is not yet implemented.

        * webaudio/RealtimeAnalyserNode.cpp: Added.
        (WebCore::RealtimeAnalyserNode::RealtimeAnalyserNode):
        (WebCore::RealtimeAnalyserNode::~RealtimeAnalyserNode):
        (WebCore::RealtimeAnalyserNode::process):
        (WebCore::RealtimeAnalyserNode::pullInputs):
        (WebCore::RealtimeAnalyserNode::reset):
        * webaudio/RealtimeAnalyserNode.h: Added.
        (WebCore::RealtimeAnalyserNode::create):
        (WebCore::RealtimeAnalyserNode::fftSize):
        (WebCore::RealtimeAnalyserNode::setFftSize):
        (WebCore::RealtimeAnalyserNode::frequencyBinCount):
        (WebCore::RealtimeAnalyserNode::setMinDecibels):
        (WebCore::RealtimeAnalyserNode::minDecibels):
        (WebCore::RealtimeAnalyserNode::setMaxDecibels):
        (WebCore::RealtimeAnalyserNode::maxDecibels):
        (WebCore::RealtimeAnalyserNode::setSmoothingTimeConstant):
        (WebCore::RealtimeAnalyserNode::smoothingTimeConstant):
        (WebCore::RealtimeAnalyserNode::getFloatFrequencyData):
        (WebCore::RealtimeAnalyserNode::getByteFrequencyData):
        (WebCore::RealtimeAnalyserNode::getByteTimeDomainData):
        * webaudio/RealtimeAnalyserNode.idl: Added.

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

9 years ago2010-11-02 Sheriff Bot <webkit.review.bot@gmail.com>
commit-queue@webkit.org [Tue, 2 Nov 2010 20:48:40 +0000 (20:48 +0000)]
2010-11-02  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r71152.
        http://trac.webkit.org/changeset/71152
        https://bugs.webkit.org/show_bug.cgi?id=48866

        Causes lots and lots of crashes (Requested by jamesr_ on
        #webkit).

        * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
        (WebCore::JPEGImageReader::JPEGImageReader):
        (WebCore::JPEGImageReader::decode):
        (WebCore::JPEGImageDecoder::outputScanlines):
        * platform/image-decoders/jpeg/JPEGImageDecoder.h:

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

9 years ago2010-11-02 Chris Marrin <cmarrin@apple.com>
cmarrin@apple.com [Tue, 2 Nov 2010 20:47:18 +0000 (20:47 +0000)]
2010-11-02  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Simon Fraser.

        When animations are paused, play-state can cause them to be unpaused.
        https://bugs.webkit.org/show_bug.cgi?id=46525

        I Changed updatePlayState() to only unpause when both play-state is
        "running" and not suspended. Likewise I pause animation when either
        play-state is "paused" or suspended.

        Test: animations/play-state-suspend.html

        * page/animation/AnimationBase.cpp:
        (WebCore::AnimationBase::updatePlayState):

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

9 years ago2010-11-02 Benjamin Kalman <kalman@google.com>
commit-queue@webkit.org [Tue, 2 Nov 2010 20:42:48 +0000 (20:42 +0000)]
2010-11-02  Benjamin Kalman  <kalman@google.com>

        Reviewed by Ojan Vafai.

        new-run-webkit-tests doesn't strip "LayoutTests/" from prefix, unlike old-run-webkit-tests
        https://bugs.webkit.org/show_bug.cgi?id=48794

        * Scripts/webkitpy/layout_tests/run_webkit_tests.py: Strip the "LayoutTests/" prefix from test argument paths.

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

9 years ago Reviewed by Timothy Hatcher.
ap@apple.com [Tue, 2 Nov 2010 20:34:16 +0000 (20:34 +0000)]
    Reviewed by Timothy Hatcher.

        https://bugs.webkit.org/show_bug.cgi?id=48813
        <rdar://problem/8602552> REGRESSION (r63622): DNS prefetching for <link> tags doesn't work
        in non-HTTP documents

        Cannot test DNS prefetching.

        * html/HTMLLinkElement.cpp: (WebCore::HTMLLinkElement::process): We should be looking at
        preferences, not at whether this document has prefetching enabled.

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

9 years ago2010-11-02 Ilya Sherman <isherman@chromium.org>
commit-queue@webkit.org [Tue, 2 Nov 2010 20:30:33 +0000 (20:30 +0000)]
2010-11-02  Ilya Sherman  <isherman@chromium.org>

        Reviewed by Kent Tamura.

        Expose the sendChangeEvent parameter in WebInputElement::setValue() API,
        primarily so that chromium form autofill can fire the onChange event.
        https://bugs.webkit.org/show_bug.cgi?id=48177

        * public/WebInputElement.h:
        * src/WebInputElement.cpp:
        (WebKit::WebInputElement::setValue):

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

9 years ago[Chromium] Unreviewed update of test expectations.
dimich@chromium.org [Tue, 2 Nov 2010 20:28:18 +0000 (20:28 +0000)]
[Chromium] Unreviewed update of test expectations.
Intentional error result to narrow down a regression caused by http://codereview.chromium.org/3976004

* platform/chromium-mac/security/block-test-no-port-expected.txt:

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

9 years agoAdd some support for remote and local NPObjects to NPRemoteObjectMap
andersca@apple.com [Tue, 2 Nov 2010 20:24:26 +0000 (20:24 +0000)]
Add some support for remote and local NPObjects to NPRemoteObjectMap
https://bugs.webkit.org/show_bug.cgi?id=48864

Reviewed by Adam Roben.

* Shared/Plugins/NPRemoteObjectMap.cpp:
(WebKit::NPRemoteObjectMap::npVariantToNPVariantData):
If the NPVariant contains an NPObject that isn't an NPObjectProxy, register it
and return its ID.

(WebKit::NPRemoteObjectMap::npVariantDataToNPVariant):
If the NPVariantData contains a remote object, create an NPObjectProxy and return it.

* Shared/Plugins/NPVariantData.cpp:
(WebKit::NPVariantData::NPVariantData):
Initialize m_localNPObjectIDValue and m_remoteNPObjectIDValue.

(WebKit::NPVariantData::makeLocalNPObjectID):
Create an NPVariantData that contains a local NPObject ID.

(WebKit::NPVariantData::encode):
Handle local and remote NPObject IDs.

(WebKit::NPVariantData::decode):
Decode local and remote NPObject IDs and "swap them" so an encoded remote NPObject ID is
decoded as a local NPObjectID (and vice versa).

* Shared/Plugins/NPVariantData.h:
(WebKit::NPVariantData::localNPObjectIDValue):
(WebKit::NPVariantData::remoteNPObjectIDValue):

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

9 years agoWindows build fix after r71127
aroben@apple.com [Tue, 2 Nov 2010 19:52:09 +0000 (19:52 +0000)]
Windows build fix after r71127

MSVC isn't smart enough to figure out that the definition of the global
nullptr variable isn't needed, so we provide one for it.

Fixes <http://webkit.org/b/48862> Windows build is broken due to
undefined symbol nullptr

Reviewed by Anders Carlsson.

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: Export nullptr.

* JavaScriptCore.vcproj/WTF/WTF.vcproj: Added NullPtr.cpp and let VS
resort the files.

* wtf/NullPtr.cpp: Added.

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

9 years ago2010-11-02 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Tue, 2 Nov 2010 19:51:39 +0000 (19:51 +0000)]
2010-11-02  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed: Web Inspector: follow up to r71139. Fixed Mac monospace
        height style.

        * inspector/front-end/PropertiesSection.js:
        (WebInspector.PropertiesSection):
        * inspector/front-end/inspector.css:

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

9 years ago2010-11-02 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 2 Nov 2010 19:45:33 +0000 (19:45 +0000)]
2010-11-02  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        JPEG decoders should understand color profiles
        https://bugs.webkit.org/show_bug.cgi?id=48819

        This patch is currently a no-op because no one defines USE(ICCJPEG).
        We'll enable this for Chromium Mac once we have ICCJPEG landed in
        Chromium's third_party directory.

        * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
        (WebCore::readColorProfile):
        (WebCore::JPEGImageReader::JPEGImageReader):
        (WebCore::JPEGImageReader::decode):
        (WebCore::JPEGImageDecoder::outputScanlines):
        * platform/image-decoders/jpeg/JPEGImageDecoder.h:
        (WebCore::JPEGImageDecoder::setColorProfile):

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

9 years ago2010-11-02 James Robinson <jamesr@chromium.org>
jamesr@google.com [Tue, 2 Nov 2010 19:39:30 +0000 (19:39 +0000)]
2010-11-02  James Robinson  <jamesr@chromium.org>

        Update pixel baselines for Snow Leopard for tests in fast/text/*

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

9 years ago2010-11-02 Ilya Sherman <isherman@chromium.org>
commit-queue@webkit.org [Tue, 2 Nov 2010 19:37:01 +0000 (19:37 +0000)]
2010-11-02  Ilya Sherman  <isherman@chromium.org>

        Reviewed by Simon Fraser.

        Marks selectionStart() and selectionEnd() as const.
        https://bugs.webkit.org/show_bug.cgi?id=48786

        * html/HTMLFormControlElement.cpp:
        (WebCore::HTMLTextFormControlElement::selectionStart):
        (WebCore::HTMLTextFormControlElement::selectionEnd):
        * html/HTMLFormControlElement.h:

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

9 years ago2010-11-02 Chris Rogers <crogers@google.com>
crogers@google.com [Tue, 2 Nov 2010 19:29:51 +0000 (19:29 +0000)]
2010-11-02  Chris Rogers  <crogers@google.com>

        Reviewed by Kenneth Russell.

        Fix license for audio files
        https://bugs.webkit.org/show_bug.cgi?id=48859

        * webaudio/AudioChannelSplitter.cpp:
        * webaudio/AudioChannelSplitter.h:
        * webaudio/AudioDestinationNode.cpp:
        * webaudio/AudioDestinationNode.h:
        * webaudio/AudioGainNode.cpp:
        * webaudio/AudioGainNode.h:
        * webaudio/AudioPannerNode.cpp:
        * webaudio/AudioPannerNode.h:
        * webaudio/AudioPannerNode.idl:

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

9 years ago2010-11-02 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Tue, 2 Nov 2010 19:20:37 +0000 (19:20 +0000)]
2010-11-02  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        Remove special handling of HashTableDeletedValue in PlatformRefPtr and manually manage memory that cannot be controlled by HashTraits
        https://bugs.webkit.org/show_bug.cgi?id=48841

        Remove special handling of HashTableDeletedValue in PlatformRefPtr.
        This is better handled on a case-by-case basis, when HashTraits
        cannot account for it.

        * wtf/PlatformRefPtr.h:
        (WTF::PlatformRefPtr::~PlatformRefPtr):
        (WTF::PlatformRefPtr::clear):
        (WTF::::operator):
2010-11-02  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        Remove special handling of HashTableDeletedValue in PlatformRefPtr and manually manage memory that cannot be controlled by HashTraits
        https://bugs.webkit.org/show_bug.cgi?id=48841

        Switch to manually managing the memory in FontPlatformDataFreeType. This
        is necessary because smart pointers do not know how to deal with a pointer
        value of -1 (HashTableDeletedValue) and HashTraits can only manage the type
        contained in the HashMap.

        No new tests as this should not change functionality.

        * platform/graphics/cairo/FontPlatformDataFreeType.cpp:
        (WebCore::FontPlatformData::FontPlatformData):
        (WebCore::FontPlatformData::operator=):
        (WebCore::FontPlatformData::~FontPlatformData):
        (WebCore::FontPlatformData::operator==):
        (WebCore::FontPlatformData::initializeWithFontFace):
        * platform/graphics/cairo/FontPlatformDataFreeType.h:
        (WebCore::FontPlatformData::FontPlatformData):
        (WebCore::FontPlatformData::scaledFont):
        (WebCore::FontPlatformData::hash):
        (WebCore::FontPlatformData::isHashTableDeletedValue):
        (WebCore::FontPlatformData::hashTableDeletedFontValue):
        * platform/graphics/cairo/GlyphPageTreeNodeCairo.cpp:
        (WebCore::GlyphPage::fill):
        * platform/graphics/cairo/SimpleFontDataCairo.cpp:
        (WebCore::SimpleFontData::platformInit):
        (WebCore::SimpleFontData::containsCharacters):
        (WebCore::SimpleFontData::platformWidthForGlyph):

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

9 years ago2010-11-02 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 2 Nov 2010 19:15:19 +0000 (19:15 +0000)]
2010-11-02  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        querySelectorAll('body>:last-child') does not work unless HTML file ends with 'new-line'.
        https://bugs.webkit.org/show_bug.cgi?id=47166

        We need to pop all the open elements when we end the document in the
        AfterAfterBody state.

        Test: fast/parser/pop-all-after-after-body.html

        * html/parser/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::processEndOfFile):
2010-11-02  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        querySelectorAll('body>:last-child') does not work unless HTML file ends with 'new-line'.
        https://bugs.webkit.org/show_bug.cgi?id=47166

        Test that :last-child works when we end the document in the
        AfterAfterBody state.

        * fast/parser/pop-all-after-after-body-expected.txt: Added.
        * fast/parser/pop-all-after-after-body.html: Added.

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

9 years agoSkip webkitpy.layout_tests.run_webkit_tests_unittest.MainTest on Cygwin Python 2.5.x
aroben@apple.com [Tue, 2 Nov 2010 19:08:40 +0000 (19:08 +0000)]
Skip webkitpy.layout_tests.run_webkit_tests_unittest.MainTest on Cygwin Python 2.5.x

It is known to hang on that version of Python. See
<http://webkit.org/b/48614>.

Reviewed by Adam Barth.

* Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py: Use
skip_if to skip MainTest on Cygwin Python 2.5.x.

* Scripts/webkitpy/test/skip.py: Added.
(skip_if): If the passed-in condition is false, find all the test_*
methods of the given class and replace them with a function that just
logs that we're skipping these tests. This is loosely based on the
unittest.skip_if decorator added in Python 3.1.
(_skipped_method): Returns a function that just logs that the tests are
being skipped. This is used in place of the actual test_* functions.

* Scripts/webkitpy/test/skip_unittest.py: Added.
(SkipTest.setUp): Create a logger for ourselves and give it a handler
that logs to a private stream.
(SkipTest.tearDown): Reset the logger.
(SkipTest.create_fixture_class): Returns a class that we use to test
skip_if. It has a single test_* method, test_foo, that just calls
through to a callback.
(SkipTest.foo_callback): Record that test_foo was called.
(SkipTest.test_skip_if_false): Pass skip_if a False condition and test
that test_foo does get called.
(SkipTest.test_skip_if_true): Pass skip_if a True condition and test
that test_foo does not get called and the appropriate message gets
logged.

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

9 years ago2010-11-02 Patrick Gansterer <paroga@webkit.org>
paroga@webkit.org [Tue, 2 Nov 2010 19:07:32 +0000 (19:07 +0000)]
2010-11-02  Patrick Gansterer  <paroga@webkit.org>

        Reviewed by Adam Roben.

        Cleanup createGlobalImageFileDescriptor in ClipboardWin
        https://bugs.webkit.org/show_bug.cgi?id=48189

        * platform/win/ClipboardWin.cpp:
        (WebCore::ClipboardWin::writeURL):

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

9 years ago2010-11-02 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Tue, 2 Nov 2010 19:00:41 +0000 (19:00 +0000)]
2010-11-02  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: display frame names in the resources panel.
        https://bugs.webkit.org/show_bug.cgi?id=48839

        * inspector/Inspector.idl:
        * inspector/InspectorResourceAgent.cpp:
        (WebCore::frameId):
        (WebCore::buildObjectForDocumentLoader):
        (WebCore::buildObjectForFrame):
        (WebCore::buildObjectForFrameTree):
        (WebCore::InspectorResourceAgent::didCommitLoad):
        (WebCore::InspectorResourceAgent::frameDetachedFromParent):
        (WebCore::InspectorResourceAgent::frameForId):
        (WebCore::InspectorResourceAgent::resourceContent):
        * inspector/InspectorResourceAgent.h:
        * inspector/front-end/ResourceManager.js:
        (WebInspector.ResourceManager.prototype.didCommitLoadForFrame):
        (WebInspector.ResourceManager.prototype._processCachedResources):
        (WebInspector.ResourceManager.prototype._addFramesRecursively):
        (WebInspector.ResourceTreeModel.prototype.addOrUpdateFrame):
        (WebInspector.ResourceTreeModel.prototype.didCommitLoadForFrame):
        * inspector/front-end/StoragePanel.js:
        (WebInspector.StoragePanel.prototype.addOrUpdateFrame):
        (WebInspector.BaseStorageTreeElement.prototype.get titleText):
        (WebInspector.FrameTreeElement):
        (WebInspector.FrameTreeElement.prototype.onattach):
        (WebInspector.FrameTreeElement.prototype.get nameForSorting):
        (WebInspector.FrameTreeElement.prototype.setTitles):
        (WebInspector.FrameTreeElement.prototype.set hovered):
        * inspector/front-end/inspector.css:
        (li.selected .base-storage-tree-element-subtitle):
        (.base-storage-tree-element-subtitle):

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

9 years ago2010-11-02 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Tue, 2 Nov 2010 18:50:48 +0000 (18:50 +0000)]
2010-11-02  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed. Follow up to r71139: removing unused images.
        https://bugs.webkit.org/show_bug.cgi?id=48827

        * WebCore.gypi:
        * inspector/front-end/Images/grayConnectorPoint.png: Removed.
        * inspector/front-end/Images/whiteConnectorPoint.png: Removed.
        * inspector/front-end/WebKit.qrc:

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

9 years ago2010-11-02 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 2 Nov 2010 18:48:29 +0000 (18:48 +0000)]
2010-11-02  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        webkit-patch should tell check-webkit-style which files were changed so
        check-webkit-style doesn't have to stat the whole working copy again
        https://bugs.webkit.org/show_bug.cgi?id=48792

        * Scripts/webkitpy/tool/mocktool.py:
        * Scripts/webkitpy/tool/steps/checkstyle.py:

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

9 years agoAttempt to fix a GCC release only warning.
andersca@apple.com [Tue, 2 Nov 2010 18:40:13 +0000 (18:40 +0000)]
Attempt to fix a GCC release only warning.

* Shared/Plugins/NPVariantData.cpp:
(WebKit::NPVariantData::NPVariantData):

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

9 years agoInvalidate the NPRemoteObjectMap
andersca@apple.com [Tue, 2 Nov 2010 18:39:05 +0000 (18:39 +0000)]
Invalidate the NPRemoteObjectMap
https://bugs.webkit.org/show_bug.cgi?id=48856

Reviewed by John Sullivan.

* Shared/Plugins/NPObjectMessageReceiver.cpp:
(WebKit::NPObjectMessageReceiver::~NPObjectMessageReceiver):
Remove FIXME. The NPRemoteObjectMap always outlives the NPObjectMessageReceiver.

* Shared/Plugins/NPObjectProxy.cpp:
(WebKit::NPObjectProxy::~NPObjectProxy):
Call npObjectProxyDestroyed here.

(WebKit::NPObjectProxy::invalidate):
Null out m_npRemoteObjectMap.

* Shared/Plugins/NPRemoteObjectMap.cpp:
(WebKit::NPRemoteObjectMap::~NPRemoteObjectMap):
Add assertions.

(WebKit::NPRemoteObjectMap::createNPObjectProxy):
Keep track of the NPObjectProxy by adding it to the m_npObjectProxies set.

(WebKit::NPRemoteObjectMap::npObjectProxyDestroyed):
Remove the NPObjectProxy from the m_npObjectProxies set.

(WebKit::NPRemoteObjectMap::invalidate):
Delete all NPObjectMessageReceivers. Iterate over all NPObjectProxy objects and invalidate them.

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