2012-05-02 Adam Klein Childlist mutations in shadow DOM should be observable with MutationObservers https://bugs.webkit.org/show_bug.cgi?id=85402 Reviewed by Ojan Vafai. Though Mutation Events are not supported in Shadow DOM, MutationObservers are supposed to be. Due to a misplacement of the ChildListMutationScope, they were erroneously getting skipped. This patch moves code around to properly notify when childlist are mutated in shadow DOM and covers that change with a new test. Test: fast/mutation/shadow-dom.html * dom/ContainerNode.cpp: (WebCore::willRemoveChild): Handle notification of removal directly. (WebCore::willRemoveChildren): ditto. (WebCore::dispatchChildInsertionEvents): Remove notification of insertion. (WebCore::dispatchChildRemovalEvents): Remove notification of removal. (WebCore::updateTreeAfterInsertion): Handle notification of insertion directly. 2012-05-02 Eric Carlson Crash in WebCore::TextTrackList::remove https://bugs.webkit.org/show_bug.cgi?id=85095 Reviewed by Maciej Stachowiak. Test: media/track/track-remove-quickly.html * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::willRemoveTrack): Return immediately if the tracks collection has not been allocated yet. 2012-05-02 David Barton After appending MathML with jquery the table renders with overlaps https://bugs.webkit.org/show_bug.cgi?id=52444 Reviewed by Julien Chaffraix. This patch also fixes bugs 72834 and 47781. The main problem is that correct preferred logical widths are affected by operator stretching. Thus we add a call to setNeedsLayoutAndPrefWidthsRecalc() after the stretching code in RenderMathMLOperator.cpp, and change RenderMathMLBlock and RenderMathMLRow to make sure that stretching of children is done before an 's preferred logical widths are computed. Test: Added a test to mathml/presentation/mo-stretch.html * rendering/mathml/RenderMathMLBlock.cpp: (WebCore::RenderMathMLBlock::RenderMathMLBlock): (WebCore::RenderMathMLBlock::computePreferredLogicalWidths): (WebCore::RenderMathMLBlock::computeChildrenPreferredLogicalHeights): (WebCore::RenderMathMLBlock::preferredLogicalHeightAfterSizing): * rendering/mathml/RenderMathMLBlock.h: (WebCore::RenderMathMLBlock::unembellishedOperator): (WebCore::RenderMathMLBlock::isPreferredLogicalHeightDirty): (WebCore::RenderMathMLBlock::preferredLogicalHeight): (WebCore::RenderMathMLBlock::setPreferredLogicalHeight): - Add m_preferredLogicalHeight and methods to compute and return it. - Remove stretchToHeight() from most classes as it no longer needs to be done recursively. We just call it on the base of an embellished operator, and that calls setNeedsLayoutAndPrefWidthsRecalc() to mark itself and its container chain. * rendering/mathml/RenderMathMLOperator.cpp: (WebCore::RenderMathMLOperator::stretchToHeight): - Don't compare an unexpanded height to an expanded one. (WebCore::RenderMathMLOperator::computePreferredLogicalWidths): (WebCore::RenderMathMLOperator::updateFromElement): - After stretching, call setNeedsLayoutAndPrefWidthsRecalc(). * rendering/mathml/RenderMathMLOperator.h: (RenderMathMLOperator): * rendering/mathml/RenderMathMLRow.cpp: (WebCore::RenderMathMLRow::computePreferredLogicalWidths): (WebCore::RenderMathMLRow::layout): * rendering/mathml/RenderMathMLRow.h: (RenderMathMLRow): - Add computePreferredLogicalWidths(), using computeChildrenPreferredLogicalHeights() to compute our children's preferred logical heights if necessary, followed by operator stretching. * rendering/mathml/RenderMathMLSubSup.cpp: * rendering/mathml/RenderMathMLSubSup.h: (RenderMathMLSubSup): * rendering/mathml/RenderMathMLUnderOver.cpp: * rendering/mathml/RenderMathMLUnderOver.h: (RenderMathMLUnderOver): 2012-05-02 Dana Jansens [chromium] Avoid extra Region copies in CCOcclusionTracker https://bugs.webkit.org/show_bug.cgi?id=85257 Reviewed by Adrienne Walker. Instead of making a Region for each layer and then uniting the region with the current occlusion, directly add the rects for the given layer to the current occlusion. When subtracting a region from a rect, just subtract the region directly instead of computing the intersecting region. Covered by existing tests. * platform/graphics/chromium/cc/CCOcclusionTracker.cpp: (WebCore::addOcclusionBehindLayer): (WebCore::::markOccludedBehindLayer): (WebCore::rectSubtractRegion): 2012-05-02 Keith Rosenblatt [Qt] ASSERT in FontCustomPlatformDataQt.cpp with invalid font in data URI https://bugs.webkit.org/show_bug.cgi?id=85089 Reviewed by Simon Hausmann. Do not return data referencing an invalid QRawFont from createFontCustomPlatformData(). Instead return null. Test: fast/css/font-face-data-uri-invalid.html * platform/graphics/qt/FontCustomPlatformDataQt.cpp: (WebCore::createFontCustomPlatformData): 2012-05-02 Michal Mocny [chromium] Set contents texture manager preferred memory limit based on GpuMemoryManager suggestion. https://bugs.webkit.org/show_bug.cgi?id=84270 Reviewed by Kenneth Russell. Updates the content texture manager memory limits based on GpuMemoryManager memory allocation suggestions. The memory allocation size (in bytes) is fed from LayerRendererChromium memory allocation changed callback handler to CCLayerTreeHost. At that point we adjust the limits, using the existing notions of preferred and max limits. On android, the preferred limit is half the maximum (as it has always been), but on all other platforms the preferred limit is now equal to max, in order to allow more agressive prepainting. Finally, android has memory constraints dependant on viewportSize, but that logic has been pushed into the GpuMemoryManager. * platform/graphics/chromium/LayerRendererChromium.cpp: (WebCore::LayerRendererGpuMemoryAllocationChangedCallbackAdapter::onGpuMemoryAllocationChanged): (WebCore::LayerRendererChromium::beginDrawingFrame): * platform/graphics/chromium/LayerRendererChromium.h: (LayerRendererChromiumClient): * platform/graphics/chromium/TextureManager.cpp: (WebCore::TextureManager::setMemoryAllocationLimitBytes): (WebCore): * platform/graphics/chromium/TextureManager.h: (TextureManager): * platform/graphics/chromium/cc/CCLayerTreeHost.cpp: (WebCore::CCLayerTreeHost::setViewportSize): (WebCore::CCLayerTreeHost::setContentsMemoryAllocationLimitBytes): (WebCore): * platform/graphics/chromium/cc/CCLayerTreeHost.h: (CCLayerTreeHost): * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp: (WebCore::CCLayerTreeHostImpl::setContentsMemoryAllocationLimitBytes): (WebCore): * platform/graphics/chromium/cc/CCLayerTreeHostImpl.h: (CCLayerTreeHostImplClient): * platform/graphics/chromium/cc/CCSingleThreadProxy.cpp: (WebCore::CCSingleThreadProxy::postSetContentsMemoryAllocationLimitBytesToMainThreadOnImplThread): (WebCore): * platform/graphics/chromium/cc/CCSingleThreadProxy.h: * platform/graphics/chromium/cc/CCThreadProxy.cpp: (WebCore::CCThreadProxy::postSetContentsMemoryAllocationLimitBytesToMainThreadOnImplThread): (WebCore): (WebCore::CCThreadProxy::setContentsMemoryAllocationLimitBytes): * platform/graphics/chromium/cc/CCThreadProxy.h: (CCThreadProxy): 2012-05-02 Emil A Eklund Fix usage of layout types in platform code https://bugs.webkit.org/show_bug.cgi?id=85392 Reviewed by Eric Seidel. No new tests, no change in functionality. * page/EventHandler.cpp: (WebCore::EventHandler::handleGestureTap): Use rounded point for gestures as event handling is still mostly int based. 2012-05-02 Kenneth Russell Don't allocate stencil buffer if stencil flag is false in context creation attributes https://bugs.webkit.org/show_bug.cgi?id=85317 Reviewed by Dimitri Glazkov. Make it appear to WebGL application that there is no stencil buffer even if the underlying GraphicsContext3D allocated one. Verified intended behavior with test case from Mozilla's bug report. Updated context-attributes-alpha-depth-stencil-antialias.html test from Khronos repository. Ran WebGL layout tests on Linux in Chrome's DRT and on Mac OS in Safari's. * html/canvas/WebGLFramebuffer.cpp: (WebCore::WebGLFramebuffer::hasStencilBuffer): Added query method. (WebCore): Changed desired semantics of isValidRenderbuffer. * html/canvas/WebGLFramebuffer.h: (WebGLFramebuffer): Added hasStencilBuffer. * html/canvas/WebGLRenderingContext.cpp: (WebCore): (WebCore::WebGLRenderingContext::initializeNewContext): Clear new flag. (WebCore::WebGLRenderingContext::bindFramebuffer): Reset stencil test upon framebuffer change. (WebCore::WebGLRenderingContext::disable): Cache flag; reset stencil test. (WebCore::WebGLRenderingContext::enable): Cache flag; reset stencil test. (WebCore::WebGLRenderingContext::framebufferRenderbuffer): Reset stencil test upon renderbuffer change. (WebCore::WebGLRenderingContext::getContextAttributes): Force depth and stencil to false if false was requested. (WebCore::WebGLRenderingContext::isEnabled): Return cached flag. (WebCore::WebGLRenderingContext::renderbufferStorage): Reset stencil test upon renderbuffer reallocation. (WebCore::WebGLRenderingContext::applyStencilTest): Enable or disable stencil test based on request and availability. (WebCore::WebGLRenderingContext::enableOrDisable): Helper function. * html/canvas/WebGLRenderingContext.h: (WebGLRenderingContext): Added cache of STENCIL_TEST flag. Deleted unused m_stencilBits. 2012-05-02 Ryosuke Niwa Drag and drop text into table is pasting the text in the next element https://bugs.webkit.org/show_bug.cgi?id=75004 Reviewed by Darin Adler. The bug was caused by ReplaceSelectionCommand adjusting the insertion position to be before of the block element containing the insertion position even when the block element is a table cell. Fixed the bug by not moving the insertion position before the table cell in this case. Test: editing/pasteboard/paste-into-table-cell.html * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply): 2012-05-02 Beth Dakin https://bugs.webkit.org/show_bug.cgi?id=85309 supportsExpandedScrollbars() should check for the method we actually call rather than a related method Reviewed by Anders Carlsson. Missing colon. * platform/mac/ScrollbarThemeMac.mm: (WebCore::supportsExpandedScrollbars): 2012-05-02 Antti Koivisto Move title and media queries from StyleSheetInternal to CSSStyleSheet https://bugs.webkit.org/show_bug.cgi?id=85387 Reviewed by Anders Carlsson. Stylesheet title and media queries are determined by the owner, not by the stylesheet itself. The fields belong to CSSStyleSheet. This will make it easier to share StyleSheetInternal instances between documents. * css/CSSStyleSheet.cpp: (WebCore::StyleSheetInternal::StyleSheetInternal): (WebCore::StyleSheetInternal::isCacheable): (WebCore): (WebCore::CSSStyleSheet::setDisabled): Invalidate the document style directly instead of ping-ponging through StyleSheetInternal. (WebCore::CSSStyleSheet::setMediaQueries): (WebCore::CSSStyleSheet::media): * css/CSSStyleSheet.h: (StyleSheetInternal): (WebCore::StyleSheetInternal::originalURL): (WebCore::StyleSheetInternal::hasCharsetRule): (WebCore::CSSStyleSheet::mediaQueries): (CSSStyleSheet): (WebCore::CSSStyleSheet::setTitle): * css/StyleResolver.cpp: (WebCore::StyleResolver::appendAuthorStylesheets): (WebCore::StyleResolver::collectMatchingRulesForList): * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::createCSSStyleSheet): * dom/ProcessingInstruction.cpp: (WebCore::ProcessingInstruction::setCSSStyleSheet): * dom/StyleElement.cpp: (WebCore::StyleElement::createSheet): * html/HTMLLinkElement.cpp: (WebCore::HTMLLinkElement::parseAttribute): (WebCore::HTMLLinkElement::setCSSStyleSheet): * html/HTMLStyleElement.cpp: (WebCore::HTMLStyleElement::parseAttribute): * svg/SVGStyleElement.cpp: (WebCore::SVGStyleElement::parseAttribute): 2012-05-02 Alexis Menard Unreviewed Qt build fix with GCC 4.7.0. * platform/qt/DeviceMotionProviderQt.h: (DeviceMotionProviderQt): * platform/qt/DeviceOrientationProviderQt.cpp: (WebCore::DeviceOrientationProviderQt::~DeviceOrientationProviderQt): (WebCore): * platform/qt/DeviceOrientationProviderQt.h: (DeviceOrientationProviderQt): 2012-05-02 No'am Rosenthal [Texmap] Enable css filters in TextureMapperGL https://bugs.webkit.org/show_bug.cgi?id=75778 Unreviewed build fix to greenify the Qt Minimal bot. * platform/graphics/texmap/TextureMapperShaderManager.h: 2012-05-02 Philippe Normand [GTK] Compilation warnings in RenderTheme https://bugs.webkit.org/show_bug.cgi?id=85286 Reviewed by Martin Robinson. Removed un-needed code and refactored fileListNameForWidth accordingly to avoid un-used variable warnings during compilation. * platform/gtk/RenderThemeGtk.cpp: (WebCore): (WebCore::RenderThemeGtk::fileListNameForWidth): 2012-05-02 Ryosuke Niwa NULL ptr in WebCore::AppendNodeCommand::AppendNodeCommand https://bugs.webkit.org/show_bug.cgi?id=75843 Reviewed by Tony Chang. The crash was caused by indentIntoBlockquote's passing a bad outerBlock to moveParagraphsWithClone. When the position is created after blockquote in the following DOM: BODY * BLOCKQUOTE style=margin: 0 0 0 40px; border: none; padding: 0px; E #text "\nx\n" VisiblePosition's constructor (of startOfContents) turns the position into a legacy position (blockquote, 0). The crash occurs because this position doesn't belong in the same paragraph as E, which is the paragraph we're trying to move into the blockquote. Fixed bug by calling positionInParentAfterNode instead of positionAfterNode for now. We should eventually be able to use positionAfterNode here once VisiblePosition's constructor starts handling before/after positions properly. Test: editing/execCommand/indent-with-after-content-crash.html * editing/IndentOutdentCommand.cpp: (WebCore::IndentOutdentCommand::indentIntoBlockquote): 2012-05-02 Jer Noble WebWindowFadeAnimation ignores "duration" parameter. https://bugs.webkit.org/show_bug.cgi?id=85386 Reviewed by Brady Eidson. Ignoring the "duration" parameter causes the full screen fade and scale animations to get out of sync. * platform/mac/WebWindowAnimation.mm: (-[WebWindowFadeAnimation initWithDuration:window:initialAlpha:finalAlpha:]): 2012-05-02 Julien Chaffraix REGRESSION(110072): Clipping is not applied on layers that are animated using platform code https://bugs.webkit.org/show_bug.cgi?id=83954 Reviewed by Simon Fraser. Tests: fast/layers/no-clipping-overflow-hidden-added-after-transform-expected.html fast/layers/no-clipping-overflow-hidden-added-after-transform.html fast/layers/no-clipping-overflow-hidden-added-after-transition-expected.html fast/layers/no-clipping-overflow-hidden-added-after-transition.html fast/layers/no-clipping-overflow-hidden-hardware-acceleration-expected.html fast/layers/no-clipping-overflow-hidden-hardware-acceleration.html (and all the tests that will need to be rebaselined) r110072 changed the way we create layers to lazily allocate overflow: hidden ones based on layout overflow. However with hardware acceleration, certain operations do cause overflow without actually calling layout (the test cases added as part of this change are using transition / animation). This means that those cases wouldn't properly clip. Due to the above issue and the other regressions from r110072, the easiest fix is to just to roll it out. * rendering/RenderBox.h: Changed to allocate a layer whenever we have an overflow clip. * rendering/RenderBox.cpp: (WebCore::RenderBox::scrolledContentOffset): (WebCore::RenderBox::cachedSizeForOverflowClip): Reverted those 2 to avoid using the cached size logic. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::updateScrollInfoAfterLayout): (WebCore::RenderBlock::layoutBlock): (WebCore::RenderBlock::paint): (WebCore::RenderBlock::isPointInOverflowControl): * rendering/RenderBlock.h: * rendering/RenderBox.cpp: (WebCore::RenderBox::willBeDestroyed): (WebCore::RenderBox::styleDidChange): (WebCore::RenderBox::layout): (WebCore::RenderBox::scrollWidth): (WebCore::RenderBox::scrollHeight): (WebCore::RenderBox::scrollLeft): (WebCore::RenderBox::scrollTop): (WebCore::RenderBox::setScrollLeft): (WebCore::RenderBox::setScrollTop): (WebCore::RenderBox::includeVerticalScrollbarSize): (WebCore::RenderBox::includeHorizontalScrollbarSize): (WebCore::RenderBox::pushContentsClip): (WebCore::RenderBox::popContentsClip): (WebCore::RenderBox::addLayoutOverflow): * rendering/RenderBoxModelObject.cpp: (WebCore::RenderBoxModelObject::styleDidChange): * rendering/RenderBoxModelObject.h: (RenderBoxModelObject): * rendering/RenderDeprecatedFlexibleBox.cpp: (WebCore::RenderDeprecatedFlexibleBox::layoutBlock): * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::layoutBlock): * rendering/RenderTable.cpp: (WebCore::RenderTable::layout): * rendering/RenderTableRow.h: (RenderTableRow): * rendering/RenderTableSection.cpp: (WebCore::RenderTableSection::layout): Removed the previous scaffolding code and reverted some functions to being private (as they were prior to r110072). 2012-05-02 No'am Rosenthal [Texmap] Enable css filters in TextureMapperGL https://bugs.webkit.org/show_bug.cgi?id=75778 Reviewed by Jocelyn Turcotte. Added support for color filters in TextureMapperGL. Blur and shadow would be done in a different patch. Modified BitmapTexture::applyFilters to return a texture, since GL cannot paint a texture into itself. Created a shader map for standard filters, since all of them work more or less the same way with a single uniform. Added the colorization shaders based on the W3C filter spec, as already implemented in FEFilterRenderer.cpp and FEColorMatrix.cpp. We use two swapping textures to render the filters. Covered by tests in css3/filters. * platform/graphics/texmap/TextureMapper.cpp: (WebCore::TextureMapper::acquireTextureFromPool): * platform/graphics/texmap/TextureMapper.h: (WebCore::BitmapTexture::applyFilters): * platform/graphics/texmap/TextureMapperGL.cpp: (WebCore::BitmapTextureGL::updateContents): (WebCore): (WebCore::TextureMapperGL::drawFiltered): (WebCore::BitmapTextureGL::applyFilters): (WebCore::BitmapTextureGL::bind): * platform/graphics/texmap/TextureMapperGL.h: (TextureMapperGL): (BitmapTextureGL): * platform/graphics/texmap/TextureMapperImageBuffer.cpp: (WebCore::BitmapTextureImageBuffer::applyFilters): * platform/graphics/texmap/TextureMapperImageBuffer.h: (BitmapTextureImageBuffer): * platform/graphics/texmap/TextureMapperLayer.cpp: (WebCore::applyFilters): (WebCore::TextureMapperLayer::syncCompositingStateSelf): * platform/graphics/texmap/TextureMapperShaderManager.cpp: (WebCore::TextureMapperShaderManager::~TextureMapperShaderManager): (WebCore): (WebCore::StandardFilterProgram::~StandardFilterProgram): (WebCore::StandardFilterProgram::StandardFilterProgram): (WebCore::StandardFilterProgram::create): (WebCore::StandardFilterProgram::prepare): (WebCore::TextureMapperShaderManager::getShaderForFilter): * platform/graphics/texmap/TextureMapperShaderManager.h: (WebCore): (StandardFilterProgram): (WebCore::StandardFilterProgram::vertexAttrib): (WebCore::StandardFilterProgram::texCoordAttrib): (WebCore::StandardFilterProgram::textureUniform): (TextureMapperShaderManager): 2012-05-02 Philippe Normand [GTK] media/track/track-cue-rendering-snap-to-lines-not-set.html fails https://bugs.webkit.org/show_bug.cgi?id=84378 Reviewed by Eric Carlson. Fix positioning of the controls panel back to relative, as it is in the parent CSS. Also remove some duplicate CSS attributes. * css/mediaControlsGtk.css: (audio::-webkit-media-controls-panel, video::-webkit-media-controls-panel): 2012-05-02 Beth Dakin https://bugs.webkit.org/show_bug.cgi?id=85309 supportsExpandedScrollbars() should check for the method we actually call rather than a related method -and corresponding- Reviewed by Anders Carlsson. * platform/mac/ScrollbarThemeMac.mm: (WebCore::supportsExpandedScrollbars): 2012-05-02 Zalan Bujtas [Qt] Remove redundant updateViewportArguments() call from HTMLBodyElement::didNotifyDescendantInseretions() https://bugs.webkit.org/show_bug.cgi?id=84241 Reviewed by Kenneth Rohde Christiansen. No need to update viewport arguments when the body element is inserted into the Document. Viewport arguments are updated first when the Document is set on the Frame, and later on any subsequent occurence of the viewport meta tag in the document. It is sufficient to dispatch viewport update once per main frame, if no viewport meta tag is present. Also add a flag to be able to track viewport argument update dispatch. No tests. Currrent viewport tests cover this behaviour. * dom/Document.cpp: (WebCore::Document::Document): (WebCore::Document::updateViewportArguments): (WebCore::Document::documentWillSuspendForPageCache): * dom/Document.h: (Document): (WebCore::Document::didDispatchViewportPropertiesChanged): * html/HTMLBodyElement.cpp: (WebCore::HTMLBodyElement::didNotifyDescendantInseretions): 2012-05-02 Pavel Feldman Web Inspector: Cannot read property 'length' of undefined TextEditorModel.js:467 https://bugs.webkit.org/show_bug.cgi?id=85360 Reviewed by Yury Semikhatsky. Added the undo/redo stack length checks. * inspector/front-end/TextEditorModel.js: (WebInspector.TextEditorModel.endsWithBracketRegex.): 2012-05-02 Pavel Feldman WebInspector: Scripts panel editor dirty state is cleared when the tab with editor is closed. https://bugs.webkit.org/show_bug.cgi?id=85361 Reviewed by Yury Semikhatsky. Added content validation upon script show. * inspector/front-end/JavaScriptSourceFrame.js: (WebInspector.JavaScriptSourceFrame.prototype.wasShown): 2012-05-02 Pavel Feldman Web Inspector: breakpoints are de-activated only upon the second click. https://bugs.webkit.org/show_bug.cgi?id=85359 Reviewed by Yury Semikhatsky. Initial value for activated state is set. * inspector/front-end/DebuggerModel.js: (WebInspector.DebuggerModel): 2012-05-02 Pavel Feldman Web Inspector: live edit fails to report error https://bugs.webkit.org/show_bug.cgi?id=85357 Reviewed by Yury Semikhatsky. ProtocolError is now a string, not an error object. * inspector/front-end/DatabaseQueryView.js: (WebInspector.DatabaseQueryView.prototype._queryError): * inspector/front-end/SourceFrame.js: (WebInspector.SourceFrame.prototype.didEditContent): 2012-05-02 Lars Knudsen [Qt] Make DeviceMotion and DeviceOrientation work with WebKit2 https://bugs.webkit.org/show_bug.cgi?id=64595 Reviewed by Kenneth Rohde Christiansen. No new tests added. This change adds support for WK2 what was in WK1. Also moving DeviceMotion and DeviceOrientation clients and providers to WebCore. This is done to allow clean dependencies when statically linking WK2. * Target.pri: * WebCore.pri: * platform/qt/DeviceMotionClientQt.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/DeviceMotionClientQt.cpp. (WebCore): (WebCore::DeviceMotionClientQt::~DeviceMotionClientQt): (WebCore::DeviceMotionClientQt::deviceMotionControllerDestroyed): (WebCore::DeviceMotionClientQt::setController): (WebCore::DeviceMotionClientQt::startUpdating): (WebCore::DeviceMotionClientQt::stopUpdating): (WebCore::DeviceMotionClientQt::currentDeviceMotion): * platform/qt/DeviceMotionClientQt.h: Renamed from Source/WebKit/qt/WebCoreSupport/DeviceMotionClientQt.h. (WebCore): (DeviceMotionClientQt): (WebCore::DeviceMotionClientQt::DeviceMotionClientQt): * platform/qt/DeviceMotionProviderQt.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/DeviceMotionProviderQt.cpp. (WebCore): (WebCore::DeviceMotionProviderQt::DeviceMotionProviderQt): (WebCore::DeviceMotionProviderQt::~DeviceMotionProviderQt): (WebCore::DeviceMotionProviderQt::setController): (WebCore::DeviceMotionProviderQt::start): (WebCore::DeviceMotionProviderQt::stop): (WebCore::DeviceMotionProviderQt::filter): * platform/qt/DeviceMotionProviderQt.h: Renamed from Source/WebKit/qt/WebCoreSupport/DeviceMotionProviderQt.h. (WebCore): (DeviceMotionProviderQt): (WebCore::DeviceMotionProviderQt::currentDeviceMotion): * platform/qt/DeviceOrientationClientQt.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/DeviceOrientationClientQt.cpp. (WebCore): (WebCore::DeviceOrientationClientQt::deviceOrientationControllerDestroyed): (WebCore::DeviceOrientationClientQt::setController): (WebCore::DeviceOrientationClientQt::startUpdating): (WebCore::DeviceOrientationClientQt::stopUpdating): (WebCore::DeviceOrientationClientQt::lastOrientation): * platform/qt/DeviceOrientationClientQt.h: Renamed from Source/WebKit/qt/WebCoreSupport/DeviceOrientationClientQt.h. (WebCore): (DeviceOrientationClientQt): * platform/qt/DeviceOrientationProviderQt.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/DeviceOrientationProviderQt.cpp. (WebCore): (WebCore::DeviceOrientationProviderQt::DeviceOrientationProviderQt): (WebCore::DeviceOrientationProviderQt::~DeviceOrientationProviderQt): (WebCore::DeviceOrientationProviderQt::setController): (WebCore::DeviceOrientationProviderQt::start): (WebCore::DeviceOrientationProviderQt::stop): (WebCore::DeviceOrientationProviderQt::filter): * platform/qt/DeviceOrientationProviderQt.h: Renamed from Source/WebKit/qt/WebCoreSupport/DeviceOrientationProviderQt.h. (WebCore): (DeviceOrientationProviderQt): (WebCore::DeviceOrientationProviderQt::isActive): (WebCore::DeviceOrientationProviderQt::lastOrientation): (WebCore::DeviceOrientationProviderQt::hasAlpha): 2012-05-02 Yury Semikhatsky Web Inspector: exception in console when there are watch expressions https://bugs.webkit.org/show_bug.cgi?id=85351 Check if script execution is still paused before trying to resolve an object for script popover because execution may be resumed after popover showing is scheduled but before we start resolving the object under the cursor in which case there is no selected call frame any more and we should hide the popover. Reviewed by Pavel Feldman. * inspector/front-end/JavaScriptSourceFrame.js: (WebInspector.JavaScriptSourceFrame.prototype._resolveObjectForPopover): 2012-05-02 Tommy Widenflycht MediaStream API: Changing webkitGetUserMedia to take an object instead of a string https://bugs.webkit.org/show_bug.cgi?id=84850 Reviewed by Dimitri Glazkov. The standard changed a while back to use an object as a dictionary but since JSC didn't support the Dictionary class until just recently we have not updated the API until now. Change covered by existing, and edited, tests. * Modules/mediastream/NavigatorMediaStream.cpp: (WebCore::NavigatorMediaStream::webkitGetUserMedia): * Modules/mediastream/NavigatorMediaStream.h: (WebCore): (NavigatorMediaStream): * Modules/mediastream/NavigatorMediaStream.idl: * Modules/mediastream/UserMediaRequest.cpp: (WebCore::UserMediaRequest::create): (WebCore::UserMediaRequest::UserMediaRequest): * Modules/mediastream/UserMediaRequest.h: (WebCore): (UserMediaRequest): * platform/mediastream/MediaStreamSourcesQueryClient.h: (MediaStreamSourcesQueryClient): 2012-05-02 Antti Koivisto StyleSheetInternal::parseUserStyleSheet() should be called parseAuthorStyleSheet(). Rubber-stamped by Nikolas Zimmermann. * css/CSSImportRule.cpp: (WebCore::StyleRuleImport::setCSSStyleSheet): * css/CSSStyleSheet.cpp: (WebCore::StyleSheetInternal::parseAuthorStyleSheet): * css/CSSStyleSheet.h: (StyleSheetInternal): * html/HTMLLinkElement.cpp: (WebCore::HTMLLinkElement::setCSSStyleSheet): 2012-05-02 Yury Semikhatsky REGRESSION: Web Inspector doesn't show cookies anymore https://bugs.webkit.org/show_bug.cgi?id=85349 Pass root node instead of DataGrid object to the "populateNode" method. Added compiler annotations so that closure compiler catches such errors. Reviewed by Pavel Feldman. * inspector/front-end/CookiesTable.js: (WebInspector.CookiesTable.prototype._rebuildTable): * inspector/front-end/NetworkRequest.js: (WebInspector.NetworkRequest.prototype.addFrameError): 2012-05-02 Dongwoo Im [EFL] Implement the Web Audio API feature. https://bugs.webkit.org/show_bug.cgi?id=78688 Reviewed by Philippe Normand. Implement the Web Audio API feature on the EFL port. https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html * CMakeLists.txt: Add the list of the files which are needed for the Web Audio APi. * PlatformEfl.cmake: Add the list of the files which are needed for the Web Audio APi. * UseJSC.cmake: Add the list of the files which are needed for the Web Audio APi. * platform/audio/HRTFElevation.cpp: Enable the USE_CONCATENATED_IMPULSE_RESPONSES macro. (WebCore): * platform/audio/efl/AudioBusEfl.cpp: Added. (WebCore): (WebCore::AudioBus::loadPlatformResource): Create the absolute path of the audio resource. 2012-05-01 Kentaro Hara [V8] Add an Isolate parameter to setJSWrapperForXXX() https://bugs.webkit.org/show_bug.cgi?id=85329 Reviewed by Adam Barth. The objective is to pass Isolate around in V8 bindings. This patch adds an Isolate parameter to setJSWrapperForXXX() and passes Isolate to setJSWrapperForXXX() in CodeGeneratorV8.pm. I'll pass Isolate to setJSWrapperForXXX() in custom bindings in a follow-up patch. No tests. No change in behavior. * bindings/scripts/CodeGeneratorV8.pm: Modified as described above. (GenerateConstructorCallback): (GenerateEventConstructorCallback): (GenerateNamedConstructorCallback): (GenerateToV8Converters): * bindings/v8/V8DOMWrapper.cpp: (WebCore::V8DOMWrapper::setJSWrapperForDOMNode): (WebCore::V8DOMWrapper::setJSWrapperForActiveDOMNode): * bindings/v8/V8DOMWrapper.h: (V8DOMWrapper): (WebCore::V8DOMWrapper::setJSWrapperForDOMObject): (WebCore::V8DOMWrapper::setJSWrapperForActiveDOMObject): * bindings/scripts/test/V8/V8Float64Array.cpp: Updated run-bindings-tests results. (WebCore::V8Float64Array::wrapSlow): * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp: (WebCore::V8TestActiveDOMObject::wrapSlow): * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp: (WebCore::V8TestCustomNamedGetter::wrapSlow): * bindings/scripts/test/V8/V8TestEventConstructor.cpp: (WebCore::V8TestEventConstructor::constructorCallback): (WebCore::V8TestEventConstructor::wrapSlow): * bindings/scripts/test/V8/V8TestEventTarget.cpp: (WebCore::V8TestEventTarget::wrapSlow): * bindings/scripts/test/V8/V8TestInterface.cpp: (WebCore::V8TestInterface::constructorCallback): (WebCore::V8TestInterface::wrapSlow): * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp: (WebCore::V8TestMediaQueryListListener::wrapSlow): * bindings/scripts/test/V8/V8TestNamedConstructor.cpp: (WebCore::V8TestNamedConstructorConstructorCallback): (WebCore::V8TestNamedConstructor::wrapSlow): * bindings/scripts/test/V8/V8TestNode.cpp: (WebCore::V8TestNode::constructorCallback): (WebCore::V8TestNode::wrapSlow): * bindings/scripts/test/V8/V8TestObj.cpp: (WebCore::V8TestObj::constructorCallback): (WebCore::V8TestObj::wrapSlow): * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp: (WebCore::V8TestSerializedScriptValueInterface::constructorCallback): (WebCore::V8TestSerializedScriptValueInterface::wrapSlow): 2012-05-01 Eric Seidel Add