2013-01-24 Sheriff Bot Unreviewed, rolling out r140296. http://trac.webkit.org/changeset/140296 https://bugs.webkit.org/show_bug.cgi?id=107857 Cause several regresssions (Requested by smfr on #webkit). * rendering/RenderBox.cpp: (WebCore::RenderBox::styleDidChange): 2013-01-24 Mark Hahnenberg Objective-C API: Rename JSValue.h/APIJSValue.h to JSCJSValue.h/JSValue.h https://bugs.webkit.org/show_bug.cgi?id=107327 Reviewed by Filip Pizlo. No new tests. We're renaming these two files, so we have to replace the names everywhere. * ForwardingHeaders/runtime/JSCJSValue.h: Copied from Source/WebCore/ForwardingHeaders/runtime/JSValue.h. * ForwardingHeaders/runtime/JSValue.h: Removed. * WebCore.vcproj/WebCore.vcproj: * bindings/js/JSArrayBufferViewHelper.h: * bindings/js/JSCustomXPathNSResolver.h: * bindings/js/JSHTMLAllCollectionCustom.cpp: * bindings/js/JSIntentConstructor.cpp: * bindings/js/JSMessagePortCustom.h: * bindings/js/JSNodeFilterCondition.h: * bindings/js/JavaScriptCallFrame.cpp: * bindings/js/ScriptCallStackFactory.cpp: * bindings/js/ScriptValue.h: * bindings/js/SerializedScriptValue.h: * bindings/objc/WebScriptObjectPrivate.h: * bridge/c/c_utility.h: * bridge/testbindings.cpp: * bridge/testbindings.mm: * bridge/testqtbindings.cpp: * plugins/PluginView.cpp: * plugins/blackberry/PluginViewBlackBerry.cpp: * plugins/gtk/PluginViewGtk.cpp: * plugins/mac/PluginViewMac.mm: * plugins/qt/PluginViewQt.cpp: * plugins/win/PluginViewWin.cpp: 2013-01-24 Jer Noble Unreviewed build fix for Mac/Lion. Protect Lion from the absence of VideoToolbox.h by wrapping in #if guards. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: 2013-01-24 Anders Carlsson Add stubbed out StorageNamespaceProxy class https://bugs.webkit.org/show_bug.cgi?id=107846 Reviewed by Sam Weinig. Make StorageNamespace.h and StorageArea.h private headers. * WebCore.xcodeproj/project.pbxproj: 2013-01-24 Tony Chang Remove document as a parameter from a few internals methods https://bugs.webkit.org/show_bug.cgi?id=107757 Reviewed by Hajime Morita. Remove document as a parameter since there's already one associated with internals. No new tests, this refactors some testing code and is covered by exisiting tests. * testing/Internals.cpp: (WebCore::Internals::isPreloaded): (WebCore::Internals::createContentElement): (WebCore::Internals::absoluteCaretBounds): * testing/Internals.h: (Internals): * testing/Internals.idl: 2013-01-24 Mike West Web Inspector: 'console.debug' should generate messages at DebugMessageLevel. https://bugs.webkit.org/show_bug.cgi?id=107816 Reviewed by Pavel Feldman. 'console.debug' is currently aliased to 'console.log'. Since we now render debug-level messages differently to log messages, we should use the proper message level for 'console.debug'. * page/Console.cpp: (WebCore::Console::debug): Replace the alias to 'console.log' with message creation at DebugMessageLevel. 2013-01-24 Dima Gorbik Implement :past pseudo class for the WebVTT ::cue pseudo element https://bugs.webkit.org/show_bug.cgi?id=105482 Reviewed by Eric Carlson. It is good to have a designated pseudo class for this, though same could be achieved by using a combination of ::cue and ::cue(:future). Tests also check that nested timestamps work properly. Test: media/track/track-css-matching-timestamps.html * css/CSSSelector.cpp: (WebCore::CSSSelector::pseudoId): (WebCore::nameToPseudoTypeMap): (WebCore::CSSSelector::extractPseudoType): * css/CSSSelector.h: * css/SelectorChecker.cpp: (WebCore::SelectorChecker::checkOne): 2013-01-23 Jer Noble Mac: Avoid using k32BGRAPixelFormat on certain platforms. https://bugs.webkit.org/show_bug.cgi?id=107732 Reviewed by Eric Carlson. Using a AVPlayerItemVideoOutput to generate ARGB pixel buffers is a potential performance hit, as the AVPlayerItemVideoOutput will send YUV buffers through a VTPixeBufferTransferSession to convert them to ARGB regardless of whether or not a given buffer will be used. Instead, ask the AVPlayerItemVideoOutput for pixel buffers in the decoder's native pixel format and use the VTPixelBufferTransferSession to convert to ARGB only those pixel buffers which were actually requested. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoOutput): Ask for the decoder's native pixel format. (WebCore::MediaPlayerPrivateAVFoundationObjC::createPixelBuffer): Lazily create a VTPixelTransferSession and convert output pixel buffers to k32BGRAPixelFormat. 2013-01-24 Christian Biesinger Convert RenderFullScreen to use the non-deprecated flexbox https://bugs.webkit.org/show_bug.cgi?id=107746 Reviewed by Ojan Vafai. Tests: covered by existing tests in fullscreen/. * rendering/RenderFullScreen.h: * rendering/RenderFullScreen.cpp: (RenderFullScreen::RenderFullScreen): (RenderFullScreen::willBeDestroyed): Inherit from RenderFlexibleBox (createFullScreenStyle): Use the new-style CSS properties (justify-content, etc) * css/fullscreen.css: (video:-webkit-full-screen, audio:-webkit-full-screen): * css/fullscreenQuickTime.css: (video:-webkit-full-screen::-webkit-media-controls-panel): (video:-webkit-full-screen::-webkit-media-controls-seek-back-button): (video:-webkit-full-screen::-webkit-media-controls-return-to-realtime-button): (video:-webkit-full-screen::-webkit-media-controls-seek-forward-button): * css/mediaControlsBlackBerryFullscreen.css: (video:-webkit-full-screen::-webkit-media-controls-panel): (video:-webkit-full-screen::-webkit-media-controls-button-group-container): (video:-webkit-full-screen::-webkit-media-controls-fullscreen-time-display-container): (video:-webkit-full-screen::-webkit-media-controls-fullscreen-play-button): (video:-webkit-full-screen::-webkit-media-controls-fullscreen-timeline-container): (video:-webkit-full-screen::-webkit-media-controls-fullscreen-current-time-display): (video:-webkit-full-screen::-webkit-media-controls-fullscreen-time-remaining-display): (video:-webkit-full-screen::-webkit-media-controls-fullscreen-timeline): (video:-webkit-full-screen::-webkit-media-controls-fullscreen-fullscreen-button): (video:-webkit-full-screen::-webkit-media-controls-fullscreen-button-divider): (video:-webkit-full-screen::-webkit-media-controls-fullscreen-button-container, video:-webkit-full-screen::-webkit-media-controls-play-button-container): (video:-webkit-full-screen::-webkit-media-controls-fullscreen-button-container): (video:-webkit-full-screen::-webkit-media-controls-play-button-container): (video:-webkit-full-screen::-webkit-media-controls-placeholder): * css/mediaControlsQtFullscreen.css: (video::-webkit-media-controls-panel): (video::-webkit-media-controls-play-button): Update fullscreen-related CSS to use the new flexbox 2013-01-23 Jer Noble Mac: Video appears in wrong place during pinch operations https://bugs.webkit.org/show_bug.cgi?id=107730 Reviewed by Eric Carlson. Send the correct input and output rects, post translation and scaling, to the CIContext for drawing. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::paintWithVideoOutput): 2013-01-24 Max Vujovic [CSS Filters] CSS opacity property clips filter outsets https://bugs.webkit.org/show_bug.cgi?id=106549 Reviewed by Dirk Schulze. Expand the transparencyClipBox for filter outsets and pass the filter output rect instead of the input rect to beginTransparencyLayers for clipping. Details below. Test: css3/filters/css-opacity-with-drop-shadow.html * rendering/RenderLayer.cpp: (WebCore): (WebCore::RenderLayer::setFilterBackendNeedsRepaintingInRect): Replace filter outset calcuation with a call to expandRectForFilterOutsets. (WebCore::expandRectForFilterOutsets): New method to factor out repeated filter outset calculation code. (WebCore::transparencyClipBox): After expanding the clip rect for descendants and reflection, expand it for filter outsets, so they don't get clipped when we begin a transparency layer. (WebCore::RenderLayer::paintLayerContents): Pass paintingInfo.paintDirtyRect instead of localPaintingInfo.paintDirtyRect to beginTransparencyLayers for clipping. localPaintingInfo.paintDirtyRect (aka the filter input rect) does not contain filter outsets, so they would get clipped. Now, we pass paintingInfo.paintDirtyRect (the filter output rect), which includes the filter outsets. (WebCore::RenderLayer::calculateLayerBounds): Replace filter outset calcuation with a call to expandRectForFilterOutsets. * rendering/RenderLayer.h: (RenderLayer): 2013-01-24 Ryosuke Niwa Fix a typo after r139838. * dom/NodeRareData.h: (NodeRareData): 2013-01-24 Ryosuke Niwa Abandoned Memory: SVGFontElement and Corresponding SVGDocument Never Deconstructed https://bugs.webkit.org/show_bug.cgi?id=66438 Reviewed by Dirk Schulze. The memory leak was caused by SVGFontFaceElement storing its own parent in a RefPtr. Fixed the bug by storing a raw pointer instead, and clearing the pointer in removedFrom when the node detached from the document. Also added several sanity check assertions. * svg/SVGFontFaceElement.cpp: (WebCore::SVGFontFaceElement::SVGFontFaceElement): (WebCore::SVGFontFaceElement::associatedFontElement): (WebCore::SVGFontFaceElement::rebuildFontFace): (WebCore::SVGFontFaceElement::insertedInto): (WebCore::SVGFontFaceElement::removedFrom): * svg/SVGFontFaceElement.h: (SVGFontFaceElement): 2013-01-22 Robert Hogan Inline Containing Only Collapsed Whitespace Not Getting a Linebox https://bugs.webkit.org/show_bug.cgi?id=31397 Reviewed by David Hyatt. Treat inlines containing only collapsed whitespace as empty. This allows them to get a linebox. Test: fast/inline/inline-containing-collapsed-whitespace-treated-as-empty.html * dom/Position.cpp: (WebCore::boundingBoxLogicalHeight): (WebCore): (WebCore::Position::hasRenderedNonAnonymousDescendantsWithHeight): * rendering/InlineIterator.h: (WebCore::isEmptyInline): (WebCore): (WebCore::bidiNextShared): (WebCore::bidiFirstSkippingEmptyInlines): * rendering/RenderBlockLineLayout.cpp: (WebCore::alwaysRequiresLineBox): (WebCore::requiresLineBox): (WebCore::RenderBlock::LineBreaker::nextSegmentBreak): * rendering/RenderText.cpp: * rendering/RenderText.h: (RenderText): 2013-01-24 Andrey Lushnikov Web Inspector: expand more chunks in DTE https://bugs.webkit.org/show_bug.cgi?id=107698 Reviewed by Pavel Feldman. Mock DefaultTextEditor visible area as if it is slightly larger than real one and do all chunk expandings and repaints based on this new area. No new tests: no change in behaviour. * inspector/front-end/DefaultTextEditor.js: (WebInspector.TextEditorChunkedPanel.prototype.findVisibleChunks): 2013-01-24 Victor Jaquez [GStreamer] Implement setPreservesPitch() https://bugs.webkit.org/show_bug.cgi?id=31155 Enables audio pitch preservation by using the scaletempo GStreamer element when required by the MediaPlayer. Reviewed by Philippe Normand. No new tests, but a layout test shall be implemented at some point using WebAudio API. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: (WebCore::MediaPlayerPrivateGStreamer::setPreservesPitch): (WebCore): * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h: (MediaPlayerPrivateGStreamer): 2013-01-24 Zoltan Arvai Removing deleted files from WebCore/Target.pri after r140399. https://bugs.webkit.org/show_bug.cgi?id=107815 Reviewed by Csaba Osztrogonác. * Target.pri: 2013-01-24 Martin Robinson Try to fix the Qt Windows build * xml/parser/XMLDocumentParserQt.cpp: (WebCore::decodeNamedEntity): Use a reinterpret_cast to const QChar* like StringQt.cpp. 2013-01-24 Andrey Adaikin Web Inspector: [Canvas] REGRESSION: stack traces in the replay log are gone https://bugs.webkit.org/show_bug.cgi?id=107805 Reviewed by Pavel Feldman. The V8's Error.prepareStackTrace is now called from the Error.captureStackTrace function instead of the "stack" getter function. Test: inspector/profiler/canvas2d/canvas-stack-trace.html * inspector/InjectedScriptCanvasModuleSource.js: (.): 2013-01-23 Andrey Adaikin Web Inspector: [Canvas] UI: add a selector to capture a single canvas frame vs consecutive frames https://bugs.webkit.org/show_bug.cgi?id=107688 Reviewed by Pavel Feldman. Allow capturing several canvas frames in a row. * English.lproj/localizedStrings.js: * inspector/InjectedScriptCanvasModule.cpp: (WebCore::InjectedScriptCanvasModule::traceLog): * inspector/InjectedScriptCanvasModule.h: (InjectedScriptCanvasModule): * inspector/InjectedScriptCanvasModuleSource.js: (.): * inspector/Inspector.json: * inspector/InspectorCanvasAgent.cpp: (WebCore::InspectorCanvasAgent::getTraceLog): * inspector/InspectorCanvasAgent.h: (InspectorCanvasAgent): * inspector/front-end/CanvasProfileView.js: (WebInspector.CanvasProfileView): (WebInspector.CanvasProfileView.prototype._didReceiveTraceLog): (WebInspector.CanvasProfileView.prototype._requestTraceLog): (WebInspector.CanvasProfileType): (WebInspector.CanvasProfileType.prototype.get statusBarItems): (WebInspector.CanvasProfileType.prototype.get buttonTooltip): (WebInspector.CanvasProfileType.prototype.buttonClicked): (WebInspector.CanvasProfileType.prototype._runSingleFrameCapturing): (WebInspector.CanvasProfileType.prototype._startFrameCapturing): (WebInspector.CanvasProfileType.prototype._stopFrameCapturing.didStopCapturing): (WebInspector.CanvasProfileType.prototype._stopFrameCapturing): (WebInspector.CanvasProfileType.prototype._didStartCapturingFrame): (WebInspector.CanvasProfileType.prototype.setRecordingProfile): (WebInspector.CanvasProfileType.prototype._isSingleFrameMode): (WebInspector.CanvasProfileHeader): (WebInspector.CanvasProfileHeader.prototype._updateCapturingStatus): (WebInspector.CanvasProfileHeader.prototype._requestCapturingStatus): * inspector/front-end/ProfileLauncherView.js: (WebInspector.ProfileLauncherView): * inspector/front-end/ProfilesPanel.js: (WebInspector.ProfileType.prototype.get statusBarItems): (WebInspector.ProfilesPanel): (WebInspector.ProfilesPanel.prototype.get statusBarItems): (WebInspector.ProfilesPanel.prototype._onProfileTypeSelected): (WebInspector.ProfilesPanel.prototype._reset): (WebInspector.ProfilesPanel.prototype._showLauncherView): (WebInspector.ProfilesPanel.prototype.showProfile): (WebInspector.ProfilesPanel.prototype._updateInterface): (WebInspector.ProfilesPanel.prototype._resize): 2013-01-24 Andreas Kling Add CSSSelectorList::isValid(). Reviewed by Antti Koivisto. Add an isValid() method to CSSSelectorList and use that where applicable instead of checking if first() is a null pointer. * css/CSSPageRule.cpp: (WebCore::CSSPageRule::setSelectorText): * css/CSSSelectorList.cpp: * css/CSSSelectorList.h: (WebCore::CSSSelectorList::isValid): (WebCore::CSSSelectorList::first): (CSSSelectorList): * css/CSSStyleRule.cpp: (WebCore::CSSStyleRule::setSelectorText): * html/shadow/HTMLContentElement.cpp: (WebCore::HTMLContentElement::validateSelect): * inspector/InspectorStyleSheet.cpp: (WebCore::checkStyleRuleSelector): 2013-01-24 Kai Koehne [Qt] Webkit debug build links against release binaries of ANGLE libEGL, libGLESv2 https://bugs.webkit.org/show_bug.cgi?id=106217 Reviewed by Jocelyn Turcotte. Use libEGLd, libEGLSv2d if qtbase was compiled with ANGLE. * WebCore.pri: Mirror logic of qtbase\mkspecs\features\win32\opengl.prf 2013-01-24 Sergio Villar Senin [GTK] Unreviewed build fix. Do not include the header file WebKitDOMPerformanceEntryList.h in the build sources because we do not want the DOM bindings generator to include it in webkitdomdefes.h twice. * bindings/gobject/GNUmakefile.am: 2013-01-24 Julien BRIANCEAU Fix Qt build (KO since r140610), typo error for QString::fromUtf16 function. https://bugs.webkit.org/show_bug.cgi?id=107803 Reviewed by Andreas Kling. * xml/parser/XMLDocumentParserQt.cpp: (WebCore::decodeNamedEntity): 2013-01-24 Pavel Feldman Web Inspector: breakpoints are not restored upon reload for scripts with script mapping. https://bugs.webkit.org/show_bug.cgi?id=107799 The problem is that source mapping is set after UISourceCode gets into the workspace. Breakpoint manager will now only restore breakpoints upon setting the source maps. Reviewed by Alexander Pavlov. * inspector/front-end/BreakpointManager.js: (WebInspector.BreakpointManager.prototype._uiSourceCodeAdded): (WebInspector.BreakpointManager.prototype._uiSourceCodeMappingChanged): * inspector/front-end/CompilerScriptMapping.js: (WebInspector.CompilerScriptMapping.prototype.get addScript.get this): (WebInspector.CompilerScriptMapping.prototype.get addScript): 2013-01-24 Kent Tamura Refactoring: Use AtomicString for an InputType::create argument https://bugs.webkit.org/show_bug.cgi?id=107791 Reviewed by Kentaro Hara. A string passed to InputType::create is a 'type' attribute value, which is an AtomicString. Also, InputTypeFactoryMap is created with members of InputTypeName, which are AtomicStrings. We had better use AtomicStrings for them. No new tests. This is just a refactoring. * html/InputType.cpp: Change the key type of InputTypeFactoryMap from String to AtomicString. (WebCore::InputType::create): Change an argument type from const String& to const AtomicString&. * html/InputType.h: (InputType): Ditto. 2013-01-24 Kentaro Hara Unreviewed. Build fix. * bindings/v8/V8DOMWrapper.cpp: (WebCore::V8DOMWrapper::isDOMWrapper): 2013-01-24 Andreas Kling AX: Fix the debug build after r140658. (Constructor initializer order.) * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::AccessibilityNodeObject): 2013-01-24 Hajime Morrita There are a few of wrong removeAllChildren() call https://bugs.webkit.org/show_bug.cgi?id=107790 Reviewed by Ryosuke Niwa. removeAllChildren() is designed for trashing deleting children out. It doesn't detach() children and could have possible leak. This change replaces such removeAllChildren() usage with safer removeChildren(). No new tests. Covered by existing tests. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::parseAttribute): * html/InputType.cpp: (WebCore::InputType::destroyShadowSubtree): * html/ValidationMessage.cpp: (WebCore::ValidationMessage::setMessageDOMAndStartTimer): * html/parser/HTMLTreeBuilder.cpp: (WebCore::HTMLTreeBuilder::processEndTag): 2013-01-24 Dominic Mazzoni AX: should init an AXObject only after AXObjectCache has added it https://bugs.webkit.org/show_bug.cgi?id=107533 Reviewed by Chris Fleizach. Initialize each AXObject after the AXObjectCache has finished adding it to its hash maps, so that it's impossible for initialization of an AXObject to result in exploring the tree and creating another AXObject instance that points to the same renderer / node. Test: accessibility/duplicate-axrenderobject-crash.html * accessibility/AXObjectCache.cpp: (WebCore::AXObjectCache::getOrCreate): * accessibility/AccessibilityARIAGrid.cpp: (WebCore::AccessibilityARIAGrid::create): * accessibility/AccessibilityARIAGridCell.cpp: (WebCore::AccessibilityARIAGridCell::create): * accessibility/AccessibilityARIAGridRow.cpp: (WebCore::AccessibilityARIAGridRow::create): * accessibility/AccessibilityList.cpp: (WebCore::AccessibilityList::create): * accessibility/AccessibilityListBox.cpp: (WebCore::AccessibilityListBox::create): * accessibility/AccessibilityMediaControls.cpp: (WebCore::AccessibilityMediaControl::create): (WebCore::AccessibilityMediaControlsContainer::create): (WebCore::AccessibilityMediaTimeline::create): (WebCore::AccessibilityMediaTimeDisplay::create): * accessibility/AccessibilityMenuList.cpp: (WebCore::AccessibilityMenuList::create): * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::create): * accessibility/AccessibilityObject.h: (WebCore::AccessibilityObject::init): (AccessibilityObject): * accessibility/AccessibilityProgressIndicator.cpp: (WebCore::AccessibilityProgressIndicator::create): * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::create): (WebCore::AccessibilityRenderObject::accessibilityIsIgnored): assert that the object has been initialized * accessibility/AccessibilitySVGRoot.cpp: (WebCore::AccessibilitySVGRoot::create): * accessibility/AccessibilitySlider.cpp: (WebCore::AccessibilitySlider::create): * accessibility/AccessibilityTable.cpp: (WebCore::AccessibilityTable::create): * accessibility/AccessibilityTableCell.cpp: (WebCore::AccessibilityTableCell::create): * accessibility/AccessibilityTableRow.cpp: (WebCore::AccessibilityTableRow::create): 2013-01-23 Kentaro Hara Implement MouseEvent constructor https://bugs.webkit.org/show_bug.cgi?id=107630 Reviewed by Adam Barth. Spec: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm The MouseEvent constructor should be implemented under a DOM4_EVENTS_CONSTRUCTOR flag. This significantly simplifies JavaScript code to construct a MouseEvent. Before: event = document.createEvent("MouseEvents"); event.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); After: event = new MouseEvent("click"); Test: fast/events/constructors/mouse-event-constructor.html * bindings/scripts/CodeGenerator.pm: (IsSubType): (IsInheritExtendedAttribute): * bindings/scripts/CodeGeneratorV8.pm: (GenerateHeader): (GenerateNamedConstructorCallback): (GenerateImplementation): * bindings/scripts/test/V8/V8Float64Array.cpp: (WebCore): (WebCore::V8Float64Array::createWrapper): * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp: (WebCore): (WebCore::V8TestActiveDOMObject::createWrapper): * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp: (WebCore): (WebCore::V8TestCustomNamedGetter::createWrapper): * bindings/scripts/test/V8/V8TestEventConstructor.cpp: (WebCore): (WebCore::V8TestEventConstructor::createWrapper): * bindings/scripts/test/V8/V8TestEventTarget.cpp: (WebCore): (WebCore::V8TestEventTarget::toEventTarget): (WebCore::V8TestEventTarget::createWrapper): * bindings/scripts/test/V8/V8TestEventTarget.h: (V8TestEventTarget): * bindings/scripts/test/V8/V8TestException.cpp: (WebCore): (WebCore::V8TestException::createWrapper): * bindings/scripts/test/V8/V8TestInterface.cpp: (WebCore): (WebCore::V8TestInterface::toActiveDOMObject): (WebCore::V8TestInterface::createWrapper): * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp: (WebCore): (WebCore::V8TestMediaQueryListListener::createWrapper): * bindings/scripts/test/V8/V8TestNamedConstructor.cpp: (WebCore): (WebCore::V8TestNamedConstructor::toActiveDOMObject): (WebCore::V8TestNamedConstructor::createWrapper): * bindings/scripts/test/V8/V8TestNode.cpp: (WebCore): (WebCore::V8TestNode::toEventTarget): (WebCore::V8TestNode::createWrapper): * bindings/scripts/test/V8/V8TestNode.h: (V8TestNode): * bindings/scripts/test/V8/V8TestObj.cpp: (WebCore): (WebCore::V8TestObj::createWrapper): * bindings/scripts/test/V8/V8TestOverloadedConstructors.cpp: (WebCore): (WebCore::V8TestOverloadedConstructors::createWrapper): * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp: (WebCore): (WebCore::V8TestSerializedScriptValueInterface::createWrapper): * bindings/v8/Dictionary.cpp: (WebCore::Dictionary::get): (WebCore): * bindings/v8/Dictionary.h: (Dictionary): * bindings/v8/NPV8Object.cpp: (WebCore::npObjectTypeInfo): * bindings/v8/V8DOMWrapper.cpp: (WebCore::V8DOMWrapper::isDOMWrapper): (WebCore): * bindings/v8/V8DOMWrapper.h: (V8DOMWrapper): * bindings/v8/WrapperTypeInfo.h: (WebCore): (WebCore::WrapperTypeInfo::toEventTarget): (WrapperTypeInfo): * bindings/v8/custom/V8HTMLImageElementConstructor.cpp: (WebCore): * dom/MouseEvent.cpp: (WebCore::MouseEventInit::MouseEventInit): (WebCore): (WebCore::MouseEvent::create): (WebCore::MouseEvent::MouseEvent): * dom/MouseEvent.h: (MouseEventInit): (WebCore): (MouseEvent): (WebCore::MouseEvent::create): (WebCore::MouseEvent::button): (WebCore::MouseEvent::buttonDown): (WebCore::MouseEvent::relatedTarget): (WebCore::MouseEvent::setRelatedTarget): (WebCore::MouseEvent::clipboard): (WebCore::MouseEvent::dataTransfer): * dom/MouseEvent.idl: 2013-01-23 Kent Tamura Add form-related instrumentations, and support 33+ features in FeatureObserver https://bugs.webkit.org/show_bug.cgi?id=107770 Reviewed by Kentaro Hara. No new tests. This doesn't make behavior changes. * page/FeatureObserver.h: - Add form-related features. - Add a Document* version of observe(). - Use BitVector to represent features to support 33+ features. (WebCore::FeatureObserver::didObserve): (FeatureObserver): * page/FeatureObserver.cpp: (WebCore::FeatureObserver::FeatureObserver): (WebCore::FeatureObserver::~FeatureObserver): (WebCore::FeatureObserver::observe): * html/ColorInputType.cpp: (WebCore::ColorInputType::create): Calls FeatureObserver::observe. * html/DateInputType.cpp: (WebCore::DateInputType::create): Ditto. * html/DateTimeInputType.cpp: (WebCore::DateTimeInputType::create): Ditto. * html/DateTimeLocalInputType.cpp: (WebCore::DateTimeLocalInputType::create): Ditto. * html/EmailInputType.cpp: (WebCore::EmailInputType::create): Ditto. * html/HTMLDataListElement.cpp: (WebCore::HTMLDataListElement::create): Ditto. * html/HTMLFormControlElement.cpp: (WebCore::HTMLFormControlElement::parseAttribute): Ditto. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::parseAttribute): Ditto. * html/HTMLTextFormControlElement.cpp: (WebCore::HTMLTextFormControlElement::parseAttribute): Ditto. * html/InputType.cpp: (WebCore::InputType::create): Record type=datetime and type=week even if these types are not enabled. * html/MonthInputType.cpp: (WebCore::MonthInputType::create): Calls FeatureObserver::observe. * html/NumberInputType.cpp: (WebCore::NumberInputType::create): Ditto. * html/RangeInputType.cpp: (WebCore::RangeInputType::create): Ditto. * html/SearchInputType.cpp: (WebCore::SearchInputType::create): Ditto. * html/TelephoneInputType.cpp: (WebCore::TelephoneInputType::create): Ditto. * html/TimeInputType.cpp: (WebCore::TimeInputType::create): Ditto. * html/URLInputType.cpp: (WebCore::URLInputType::create): Ditto. * html/WeekInputType.cpp: (WebCore::WeekInputType::create): Ditto. 2013-01-23 Ken Kania [Inspector] Add events for tracking page loads and scheduled navigations. https://bugs.webkit.org/show_bug.cgi?id=104168 Reviewed by Pavel Feldman. These events are needed for clients who need to be aware of when a page is navigating or about to navigate. Some clients may wish to prevent interaction with the page during this time. Two of the new events track loading start and stop, as measured by the ProgressTracker. The other two events track when a page has a new scheduled navigation and when it no longer has a scheduled navigation. These latter two events won't allow the client to determine if a load is going to happen in all circumstances, but is sufficient for many cases. Make sure we hold a reference to the frame in NavigationScheduler::timerFired in case the redirect causes the frame to be detached. Also, minor update to InspectorInputAgent::dispatchMouseEvent to reorder params to match dispatchKeyEvent. Tests: inspector-protocol/page/frameScheduledNavigation.html inspector-protocol/page/frameStartedLoading.html * inspector/Inspector.json: * inspector/InspectorInputAgent.cpp: (WebCore::InspectorInputAgent::dispatchMouseEvent): * inspector/InspectorInputAgent.h: (InspectorInputAgent): * inspector/InspectorInstrumentation.cpp: (WebCore): (WebCore::InspectorInstrumentation::frameStartedLoadingImpl): (WebCore::InspectorInstrumentation::frameStoppedLoadingImpl): (WebCore::InspectorInstrumentation::frameScheduledNavigationImpl): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigationImpl): * inspector/InspectorInstrumentation.h: (InspectorInstrumentation): (WebCore::InspectorInstrumentation::frameStartedLoading): (WebCore): (WebCore::InspectorInstrumentation::frameStoppedLoading): (WebCore::InspectorInstrumentation::frameScheduledNavigation): (WebCore::InspectorInstrumentation::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.cpp: (WebCore::InspectorPageAgent::frameStartedLoading): (WebCore): (WebCore::InspectorPageAgent::frameStoppedLoading): (WebCore::InspectorPageAgent::frameScheduledNavigation): (WebCore::InspectorPageAgent::frameClearedScheduledNavigation): * inspector/InspectorPageAgent.h: * inspector/front-end/ResourceTreeModel.js: (WebInspector.PageDispatcher.prototype.frameDetached): (WebInspector.PageDispatcher.prototype.frameStartedLoading): (WebInspector.PageDispatcher.prototype.frameStoppedLoading): (WebInspector.PageDispatcher.prototype.frameScheduledNavigation): (WebInspector.PageDispatcher.prototype.frameClearedScheduledNavigation): * loader/NavigationScheduler.cpp: (WebCore::NavigationScheduler::clear): (WebCore::NavigationScheduler::timerFired): (WebCore::NavigationScheduler::startTimer): (WebCore::NavigationScheduler::cancel): * loader/ProgressTracker.cpp: (WebCore::ProgressTracker::progressStarted): (WebCore::ProgressTracker::finalProgressComplete): 2013-01-23 Simon Fraser Avoid creating background layers on pages with a fixed background, but no image https://bugs.webkit.org/show_bug.cgi?id=107783 Reviewed by Beth Dakin. http://www.nme.com has background-attachment: fixed on the , but not background image. In that case there's no point making a layer for the fixed root background. Test: platform/mac/tiled-drawing/fixed-background/fixed-background-no-image.html * rendering/style/RenderStyle.cpp: (WebCore::allLayersAreFixed): Check to see if we have an image, as well as fixed attachment. 2013-01-23 Wei Jia Enable autoplay when