WebKit-https.git
8 years agoStop using "in" keyword in IDL files
ch.dumez@sisa.samsung.com [Tue, 30 Apr 2013 14:37:25 +0000 (14:37 +0000)]
Stop using "in" keyword in IDL files
https://bugs.webkit.org/show_bug.cgi?id=115418

Reviewed by Kentaro Hara.

Source/WebCore:

Stop using "in" keyword in IDL files as this is no longer part of the
Web IDL specification and it brings no additional information.

For now, the IDL parser will still accept the "in" keyword for operation
argument to not break anything. However, we should remove support for it
later on.

No new tests, no behavior change.

* Modules/battery/BatteryManager.idl:
* Modules/encryptedmedia/MediaKeySession.idl:
* Modules/encryptedmedia/MediaKeys.idl:
* Modules/filesystem/DOMWindowFileSystem.idl:
* Modules/filesystem/DirectoryEntry.idl:
* Modules/filesystem/DirectoryEntrySync.idl:
* Modules/filesystem/DirectoryReader.idl:
* Modules/filesystem/EntriesCallback.idl:
* Modules/filesystem/Entry.idl:
* Modules/filesystem/EntryArray.idl:
* Modules/filesystem/EntryArraySync.idl:
* Modules/filesystem/EntryCallback.idl:
* Modules/filesystem/EntrySync.idl:
* Modules/filesystem/ErrorCallback.idl:
* Modules/filesystem/FileCallback.idl:
* Modules/filesystem/FileEntry.idl:
* Modules/filesystem/FileSystemCallback.idl:
* Modules/filesystem/FileWriter.idl:
* Modules/filesystem/FileWriterCallback.idl:
* Modules/filesystem/FileWriterSync.idl:
* Modules/filesystem/MetadataCallback.idl:
* Modules/filesystem/WorkerContextFileSystem.idl:
* Modules/gamepad/GamepadList.idl:
* Modules/geolocation/Geolocation.idl:
* Modules/geolocation/PositionCallback.idl:
* Modules/geolocation/PositionErrorCallback.idl:
* Modules/indexeddb/IDBCursor.idl:
* Modules/indexeddb/IDBDatabase.idl:
* Modules/indexeddb/IDBFactory.idl:
* Modules/indexeddb/IDBIndex.idl:
* Modules/indexeddb/IDBKeyRange.idl:
* Modules/indexeddb/IDBObjectStore.idl:
* Modules/indexeddb/IDBRequest.idl:
* Modules/indexeddb/IDBTransaction.idl:
* Modules/mediasource/MediaSource.idl:
* Modules/mediasource/SourceBuffer.idl:
* Modules/mediasource/SourceBufferList.idl:
* Modules/mediastream/MediaStream.idl:
* Modules/mediastream/MediaStreamTrack.idl:
* Modules/mediastream/NavigatorMediaStream.idl:
* Modules/mediastream/NavigatorUserMediaErrorCallback.idl:
* Modules/mediastream/NavigatorUserMediaSuccessCallback.idl:
* Modules/mediastream/RTCDTMFSender.idl:
* Modules/mediastream/RTCDataChannel.idl:
* Modules/mediastream/RTCErrorCallback.idl:
* Modules/mediastream/RTCIceCandidate.idl:
* Modules/mediastream/RTCPeerConnection.idl:
* Modules/mediastream/RTCSessionDescription.idl:
* Modules/mediastream/RTCSessionDescriptionCallback.idl:
* Modules/mediastream/RTCStatsCallback.idl:
* Modules/mediastream/RTCStatsReport.idl:
* Modules/mediastream/RTCStatsResponse.idl:
* Modules/navigatorcontentutils/NavigatorContentUtils.idl:
* Modules/networkinfo/NetworkInfoConnection.idl:
* Modules/notifications/Notification.idl:
* Modules/notifications/NotificationCenter.idl:
* Modules/notifications/NotificationPermissionCallback.idl:
* Modules/quota/StorageErrorCallback.idl:
* Modules/quota/StorageInfo.idl:
* Modules/quota/StorageQuota.idl:
* Modules/quota/StorageQuotaCallback.idl:
* Modules/quota/StorageUsageCallback.idl:
* Modules/speech/SpeechGrammarList.idl:
* Modules/speech/SpeechRecognition.idl:
* Modules/speech/SpeechRecognitionResult.idl:
* Modules/speech/SpeechRecognitionResultList.idl:
* Modules/speech/SpeechSynthesisUtterance.idl:
* Modules/vibration/NavigatorVibration.idl:
* Modules/webaudio/AnalyserNode.idl:
* Modules/webaudio/AudioBuffer.idl:
* Modules/webaudio/AudioBufferCallback.idl:
* Modules/webaudio/AudioBufferSourceNode.idl:
* Modules/webaudio/AudioContext.idl:
* Modules/webaudio/AudioListener.idl:
* Modules/webaudio/AudioNode.idl:
* Modules/webaudio/AudioParam.idl:
* Modules/webaudio/BiquadFilterNode.idl:
* Modules/webaudio/OfflineAudioContext.idl:
* Modules/webaudio/OscillatorNode.idl:
* Modules/webaudio/PannerNode.idl:
* Modules/webdatabase/DOMWindowWebDatabase.idl:
* Modules/webdatabase/Database.idl:
* Modules/webdatabase/DatabaseCallback.idl:
* Modules/webdatabase/DatabaseSync.idl:
* Modules/webdatabase/SQLResultSetRowList.idl:
* Modules/webdatabase/SQLStatementCallback.idl:
* Modules/webdatabase/SQLStatementErrorCallback.idl:
* Modules/webdatabase/SQLTransaction.idl:
* Modules/webdatabase/SQLTransactionCallback.idl:
* Modules/webdatabase/SQLTransactionErrorCallback.idl:
* Modules/webdatabase/SQLTransactionSync.idl:
* Modules/webdatabase/SQLTransactionSyncCallback.idl:
* Modules/webdatabase/WorkerContextWebDatabase.idl:
* Modules/websockets/WebSocket.idl:
* bindings/scripts/test/TestCallback.idl:
* bindings/scripts/test/TestCustomNamedGetter.idl:
* bindings/scripts/test/TestDomainSecurity.idl:
* bindings/scripts/test/TestEventTarget.idl:
* bindings/scripts/test/TestInterface.idl:
* bindings/scripts/test/TestMediaQueryListListener.idl:
* bindings/scripts/test/TestNamedConstructor.idl:
* bindings/scripts/test/TestObj.idl:
* bindings/scripts/test/TestOverloadedConstructors.idl:
* bindings/scripts/test/TestSerializedScriptValueInterface.idl:
* bindings/scripts/test/TestSupplemental.idl:
* bindings/scripts/test/TestTypedArray.idl:
* bindings/scripts/test/TestTypedefs.idl:
* css/CSSHostRule.idl:
* css/CSSMediaRule.idl:
* css/CSSPrimitiveValue.idl:
* css/CSSRuleList.idl:
* css/CSSStyleDeclaration.idl:
* css/CSSStyleSheet.idl:
* css/CSSSupportsRule.idl:
* css/CSSValueList.idl:
* css/FontLoader.idl:
* css/MediaList.idl:
* css/MediaQueryList.idl:
* css/MediaQueryListListener.idl:
* css/StyleMedia.idl:
* css/StyleSheetList.idl:
* css/WebKitCSSKeyframesRule.idl:
* css/WebKitCSSMatrix.idl:
* dom/CharacterData.idl:
* dom/ClientRectList.idl:
* dom/Clipboard.idl:
* dom/CompositionEvent.idl:
* dom/CustomEvent.idl:
* dom/DOMImplementation.idl:
* dom/DOMNamedFlowCollection.idl:
* dom/DOMStringList.idl:
* dom/DataTransferItem.idl:
* dom/DataTransferItemList.idl:
* dom/DeviceMotionEvent.idl:
* dom/DeviceOrientationEvent.idl:
* dom/Document.idl:
* dom/DocumentFragment.idl:
* dom/Element.idl:
* dom/Event.idl:
* dom/EventListener.idl:
* dom/EventTarget.idl:
* dom/HashChangeEvent.idl:
* dom/KeyboardEvent.idl:
* dom/MessageEvent.idl:
* dom/MessagePort.idl:
* dom/MouseEvent.idl:
* dom/MutationEvent.idl:
* dom/MutationObserver.idl:
* dom/NamedNodeMap.idl:
* dom/Node.idl:
* dom/NodeFilter.idl:
* dom/NodeList.idl:
* dom/OverflowEvent.idl:
* dom/PropertyNodeList.idl:
* dom/Range.idl:
* dom/RequestAnimationFrameCallback.idl:
* dom/ShadowRoot.idl:
* dom/StringCallback.idl:
* dom/Text.idl:
* dom/TextEvent.idl:
* dom/TouchEvent.idl:
* dom/TouchList.idl:
* dom/UIEvent.idl:
* dom/WebKitNamedFlow.idl:
* dom/WheelEvent.idl:
* fileapi/Blob.idl:
* fileapi/FileList.idl:
* fileapi/FileReader.idl:
* fileapi/FileReaderSync.idl:
* html/DOMFormData.idl:
* html/DOMTokenList.idl:
* html/DOMURL.idl:
* html/HTMLAllCollection.idl:
* html/HTMLAudioElement.idl:
* html/HTMLButtonElement.idl:
* html/HTMLCanvasElement.idl:
* html/HTMLCollection.idl:
* html/HTMLDocument.idl:
* html/HTMLElement.idl:
* html/HTMLFieldSetElement.idl:
* html/HTMLFormControlsCollection.idl:
* html/HTMLInputElement.idl:
* html/HTMLKeygenElement.idl:
* html/HTMLMediaElement.idl:
* html/HTMLObjectElement.idl:
* html/HTMLOptionElement.idl:
* html/HTMLOptionsCollection.idl:
* html/HTMLOutputElement.idl:
* html/HTMLPropertiesCollection.idl:
* html/HTMLSelectElement.idl:
* html/HTMLTableElement.idl:
* html/HTMLTableRowElement.idl:
* html/HTMLTableSectionElement.idl:
* html/HTMLTextAreaElement.idl:
* html/MediaController.idl:
* html/TimeRanges.idl:
* html/canvas/ArrayBuffer.idl:
* html/canvas/CanvasGradient.idl:
* html/canvas/CanvasRenderingContext2D.idl:
* html/canvas/DOMPath.idl:
* html/canvas/DataView.idl:
* html/canvas/EXTDrawBuffers.idl:
* html/canvas/Float32Array.idl:
* html/canvas/Float64Array.idl:
* html/canvas/Int16Array.idl:
* html/canvas/Int32Array.idl:
* html/canvas/Int8Array.idl:
* html/canvas/OESVertexArrayObject.idl:
* html/canvas/Uint16Array.idl:
* html/canvas/Uint32Array.idl:
* html/canvas/Uint8Array.idl:
* html/canvas/Uint8ClampedArray.idl:
* html/canvas/WebGLDebugShaders.idl:
* html/canvas/WebGLRenderingContext.idl:
* html/track/AudioTrackList.idl:
* html/track/TextTrack.idl:
* html/track/TextTrackCue.idl:
* html/track/TextTrackCueList.idl:
* html/track/TextTrackList.idl:
* html/track/TextTrackRegionList.idl:
* html/track/VideoTrackList.idl:
* inspector/InjectedScriptHost.idl:
* inspector/InspectorFrontendHost.idl:
* inspector/JavaScriptCallFrame.idl:
* loader/appcache/DOMApplicationCache.idl:
* page/Console.idl:
* page/Crypto.idl:
* page/DOMSecurityPolicy.idl:
* page/DOMSelection.idl:
* page/DOMWindow.idl:
* page/EventSource.idl:
* page/History.idl:
* page/Location.idl:
* page/PagePopupController.idl:
* page/Performance.idl:
* page/PerformanceEntryList.idl:
* page/SpeechInputResultList.idl:
* plugins/DOMMimeTypeArray.idl:
* plugins/DOMPlugin.idl:
* plugins/DOMPluginArray.idl:
* storage/Storage.idl:
* storage/StorageEvent.idl:
* svg/ElementTimeControl.idl:
* svg/SVGAngle.idl:
* svg/SVGColor.idl:
* svg/SVGDocument.idl:
* svg/SVGElementInstanceList.idl:
* svg/SVGFEDropShadowElement.idl:
* svg/SVGFEGaussianBlurElement.idl:
* svg/SVGFEMorphologyElement.idl:
* svg/SVGFilterElement.idl:
* svg/SVGLength.idl:
* svg/SVGLengthList.idl:
* svg/SVGLocatable.idl:
* svg/SVGMarkerElement.idl:
* svg/SVGMatrix.idl:
* svg/SVGNumberList.idl:
* svg/SVGPaint.idl:
* svg/SVGPathElement.idl:
* svg/SVGPathSegList.idl:
* svg/SVGPoint.idl:
* svg/SVGPointList.idl:
* svg/SVGSVGElement.idl:
* svg/SVGStringList.idl:
* svg/SVGStyledElement.idl:
* svg/SVGTests.idl:
* svg/SVGTextContentElement.idl:
* svg/SVGTransform.idl:
* svg/SVGTransformList.idl:
* testing/InternalSettings.idl:
* testing/Internals.idl:
* workers/AbstractWorker.idl:
* workers/DedicatedWorkerContext.idl:
* workers/SharedWorker.idl:
* workers/Worker.idl:
* workers/WorkerContext.idl:
* xml/DOMParser.idl:
* xml/XMLHttpRequest.idl:
* xml/XMLHttpRequestUpload.idl:
* xml/XMLSerializer.idl:
* xml/XPathEvaluator.idl:
* xml/XPathExpression.idl:
* xml/XPathNSResolver.idl:
* xml/XPathResult.idl:
* xml/XSLTProcessor.idl:

Source/WebKit/win:

Remove "in" keyword from IDL files as this is no longer part of the Web
IDL specification.

* Interfaces/DOMEvents.idl:
* Interfaces/DOMPrivate.idl:
* Interfaces/DOMWindow.idl:

Tools:

Remove "in" keyword from IDL files as this is no longer part of the Web
IDL specification.

* WebKitTestRunner/InjectedBundle/Bindings/AccessibilityController.idl:
* WebKitTestRunner/InjectedBundle/Bindings/AccessibilityTextMarker.idl:
* WebKitTestRunner/InjectedBundle/Bindings/AccessibilityTextMarkerRange.idl:
* WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
* WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl:
* WebKitTestRunner/InjectedBundle/Bindings/GCController.idl:
* WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
* WebKitTestRunner/InjectedBundle/Bindings/TextInputController.idl:

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

8 years agoUnreviewed GTK gardening.
zandobersek@gmail.com [Tue, 30 Apr 2013 13:54:41 +0000 (13:54 +0000)]
Unreviewed GTK gardening.
Rebaselining tests that are possible to and required to be rebaselined

* platform/gtk-wk1/fast/writing-mode/Kusa-Makura-background-canvas-expected.txt:
* platform/gtk/editing/input/scroll-to-edge-if-line-break-at-end-of-document-contenteditable-expected.txt: Added.
* platform/gtk/editing/selection/drag-start-event-client-x-y-expected.txt: Added.
* platform/gtk/fast/dom/Range/getClientRects-expected.txt:
* platform/gtk/fast/events/remove-target-with-shadow-in-drag-expected.txt:
* platform/gtk/fast/js/dom-static-property-for-in-iteration-expected.txt:
* platform/gtk/fast/js/function-length-expected.txt: Added.
* platform/gtk/fast/sub-pixel/selection/selection-gaps-at-fractional-offsets-expected.txt:
* platform/gtk/media/media-can-play-ogg-expected.txt: Added.
* platform/gtk/media/video-played-collapse-expected.txt:
* platform/gtk/media/video-volume-slider-expected.txt:

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

8 years ago[WK2][EFL] Spelling marker disappears while selection is being changed
commit-queue@webkit.org [Tue, 30 Apr 2013 13:49:06 +0000 (13:49 +0000)]
[WK2][EFL] Spelling marker disappears while selection is being changed
https://bugs.webkit.org/show_bug.cgi?id=115165

Patch by Artur Moryc <a.moryc@samsung.com> on 2013-04-30
Reviewed by Anders Carlsson.

The marker for a misspelled word disappears while the cursor is being navigated along the word.

* WebProcess/WebCoreSupport/WebEditorClient.cpp:
(WebKit::WebEditorClient::shouldEraseMarkersAfterChangeSelection):

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

8 years ago[Texmap] Use fewer intermediate surfaces when compositing filters
commit-queue@webkit.org [Tue, 30 Apr 2013 13:47:49 +0000 (13:47 +0000)]
[Texmap] Use fewer intermediate surfaces when compositing filters
https://bugs.webkit.org/show_bug.cgi?id=115224

Patch by Noam Rosenthal <noam@webkit.org> on 2013-04-30
Reviewed by Allan Sandfeld Jensen.

Until now, when rendering CSS filters, the filters were applied to the texture
and then the resulting texture would be composited to the target surface with
its transform/opacity.
This requires at least two intermediate surface passes for every filtered layer.

This patch makes it so that the last filter pass is applied together with the
resulting surface's opacity and transform, during composition.

Tested by css3/filters tests, whichn now scroll/zoom a lot faster.

* platform/graphics/texmap/TextureMapper.h:
(WebCore::BitmapTexture::applyFilters):
* platform/graphics/texmap/TextureMapperGL.cpp:
(WebCore::TextureMapperGLData::TextureMapperGLData):
(TextureMapperGLData):
(WebCore):
(WebCore::optionsForFilterType):
(WebCore::getPassesRequiredForFilter):
(WebCore::gauss):
(WebCore::gaussianKernel):
(WebCore::prepareFilterProgram):
(WebCore::TextureMapperGL::drawTexture):
(WebCore::TextureMapperGL::drawFiltered):
(WebCore::isCustomFilter):
* platform/graphics/texmap/TextureMapperGL.h:
(TextureMapperGL):
(BitmapTextureGL):
(FilterInfo):
* platform/graphics/texmap/TextureMapperImageBuffer.cpp:
(WebCore::BitmapTextureImageBuffer::applyFilters):
* platform/graphics/texmap/TextureMapperImageBuffer.h:
(BitmapTextureImageBuffer):
(WebCore::BitmapTextureGL::FilterInfo::FilterInfo):
(WebCore::BitmapTextureGL::filterInfo):
(WebCore::BitmapTextureGL::applyFilters):
    Modify TextureMapperGL to remember the last filter operation applied
    to a BitmapTexture and apply it when the texture is composited.

* platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::paintIntoSurface):
    Simplify the call to applyFilters, since now TextureMapperGL is responsible
    for maintaining the content texture.

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

8 years ago[EFL][GStreamer] failing media tests
kbalazs@webkit.org [Tue, 30 Apr 2013 13:47:10 +0000 (13:47 +0000)]
[EFL][GStreamer] failing media tests
https://bugs.webkit.org/show_bug.cgi?id=115419

Unreviewed gardening.

* platform/efl/TestExpectations: Track failing tests.

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

8 years agoUnreviewed GTK gardening.
zandobersek@gmail.com [Tue, 30 Apr 2013 13:23:54 +0000 (13:23 +0000)]
Unreviewed GTK gardening.

* platform/gtk/TestExpectations: Adding failure expectations for additional failing tests
after the Shadow DOM feature was disabled for the GTK port in r149352.

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

8 years ago[EFL] Enable scaled cursors
ch.dumez@sisa.samsung.com [Tue, 30 Apr 2013 13:17:19 +0000 (13:17 +0000)]
[EFL] Enable scaled cursors
https://bugs.webkit.org/show_bug.cgi?id=106242

Reviewed by Gyuyoung Kim.

.:

Enable MOUSE_CURSOR_SCALE flag for EFL port.

* Source/cmake/OptionsEfl.cmake:
* Source/cmake/WebKitFeatures.cmake:

Source/WebCore:

Correctly copy WebCore::Cursor's m_imageScaleFactor
member in CursorEfl.cpp when MOUSE_CURSOR_SCALE is
enabled.

No new tests, already covered by existing tests.

* platform/efl/CursorEfl.cpp:
(WebCore::Cursor::Cursor):
(WebCore::Cursor::operator=):

Tools:

Enable ENABLE_MOUSE_CURSOR_SCALE for EFL port.

* Scripts/webkitperl/FeatureList.pm:

LayoutTests:

Unskip fast/css/cursor-parsing-image-set.html for EFL port
now that scaled cursors are enabled. Update expectation for
fast/events/mouse-cursor-image-set.html to explain the
reason why it is failing and set its bug URL.

* platform/efl/TestExpectations:

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

8 years ago[Qt] Unreviewed gardening.
zarvai@inf.u-szeged.hu [Tue, 30 Apr 2013 12:41:43 +0000 (12:41 +0000)]
[Qt] Unreviewed gardening.

Skipping tests using unimplemented feature.

* platform/qt-5.0-wk1/TestExpectations:

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

8 years agoCSSParser::parseFontFamily should allow the keyword "default" as part of a font name
thiago.santos@intel.com [Tue, 30 Apr 2013 11:00:04 +0000 (11:00 +0000)]
CSSParser::parseFontFamily should allow the keyword "default" as part of a font name
https://bugs.webkit.org/show_bug.cgi?id=107231

Reviewed by Ryosuke Niwa.

Source/WebCore:

Make sure that using the keyword "default" as font family doesn't
invalidate the whole declaration. It is also OK to use a font that
has "default" as part of a composite name (i.e. "default foo").
This matches the behavior of Firefox and IE.

Test: fast/css/font-family-parse-keyword.html

* css/CSSParser.cpp:
(WebCore::CSSParser::parseFontFamily):

LayoutTests:

* fast/css/font-family-parse-keyword-expected.html: Added.
* fast/css/font-family-parse-keyword.html: Added.

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

8 years agoAnimations fail to start on http://www.google.com/insidesearch/howsearchworks/thestory/
commit-queue@webkit.org [Tue, 30 Apr 2013 10:54:08 +0000 (10:54 +0000)]
Animations fail to start on google.com/insidesearch/howsearchworks/thestory/
https://bugs.webkit.org/show_bug.cgi?id=111244

Source/JavaScriptCore:

Patch by Zalan Bujtas <zalan@apple.com> on 2013-04-30
Reviewed by David Kilzer.

Enable performance.now() as a minimal subset of Web Timing API.
It returns DOMHighResTimeStamp, a monotonically increasing value representing the
number of milliseconds from the start of the navigation of the current document.
JS libraries use this API to check against the requestAnimationFrame() timestamp.

* Configurations/FeatureDefines.xcconfig:

Source/WebCore:

Patch by Zalan Bujtas <zalan@apple.com> on 2013-04-30
Reviewed by David Kilzer.

Enable performance.now() as a minimal subset of Web Timing API.
It returns DOMHighResTimeStamp, a monotonically increasing value representing the
number of milliseconds from the start of the navigation of the current document.
JS libraries use this API to check against the requestAnimationFrame() timestamp.

Test: fast/dom/Window/web-timing-minimal-performance-now.html

* Configurations/FeatureDefines.xcconfig:
* WebCore.xcodeproj/project.pbxproj:
* dom/EventTargetFactory.in:
* page/DOMWindow.cpp:
(WebCore::DOMWindow::~DOMWindow):
(WebCore::DOMWindow::resetDOMWindowProperties):
(WebCore):
* page/DOMWindow.h:
(DOMWindow):
* page/DOMWindow.idl:
* page/Performance.cpp:
(WebCore):
* page/Performance.h:
(Performance):
* page/Performance.idl:

Source/WebKit/mac:

Patch by Zalan Bujtas <zalan@apple.com> on 2013-04-30
Reviewed by David Kilzer.

Enable performance.now() as a minimal subset of Web Timing API.
It returns DOMHighResTimeStamp, a monotonically increasing value representing the
number of milliseconds from the start of the navigation of the current document.
JS libraries use this API to check against the requestAnimationFrame() timestamp.

* Configurations/FeatureDefines.xcconfig:

Source/WebKit2:

Patch by Zalan Bujtas <zalan@apple.com> on 2013-04-30
Reviewed by David Kilzer.

Enable performance.now() as a minimal subset of Web Timing API.
It returns DOMHighResTimeStamp, a monotonically increasing value representing the
number of milliseconds from the start of the navigation of the current document.
JS libraries use this API to check against the requestAnimationFrame() timestamp.

* Configurations/FeatureDefines.xcconfig:

Source/WTF:

Patch by Zalan Bujtas <zalan@apple.com> on 2013-04-30
Reviewed by David Kilzer.

Enable performance.now() as a minimal subset of Web Timing API.
It returns DOMHighResTimeStamp, a monotonically increasing value representing the
number of milliseconds from the start of the navigation of the current document.
JS libraries use this API to check against the requestAnimationFrame() timestamp.

* wtf/FeatureDefines.h:

LayoutTests:

Patch by Zalan Bujtas <zalan@apple.com> on 2013-04-30
Reviewed by David Kilzer.

Enable performance.now() as a minimal subset of Web Timing API.
It returns DOMHighResTimeStamp, a monotonically increasing value representing the
number of milliseconds from the start of the navigation of the current document.
JS libraries use this API to check against the requestAnimationFrame() timestamp.

We can test the monotonical behaviour of this API only. Checking whether the value
actually represents the navigation start requires PerformanceTiming enabled.

* fast/dom/Window/web-timing-minimal-performance-now-expected.txt: Added.
* fast/dom/Window/web-timing-minimal-performance-now.html: Added.

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

8 years agoUnreviewed, rolling out r149338.
rniwa@webkit.org [Tue, 30 Apr 2013 10:43:55 +0000 (10:43 +0000)]
Unreviewed, rolling out r149338.
http://trac.webkit.org/changeset/149338
https://bugs.webkit.org/show_bug.cgi?id=115409

Broke layout/perf/API tests on non-Mac:
ThreadSpecific<RefPtr<RunLoop>> does not initialize RunLoop
(Requested by rakuco on #webkit).

* platform/RunLoop.cpp:
(WebCore::RunLoop::current):
* platform/RunLoop.h:
(RunLoop):
* platform/cf/RunLoopCF.cpp:
(WebCore::RunLoop::initializeMainRunLoop):
(WebCore::RunLoop::current):
(WebCore::RunLoop::~RunLoop):
* platform/efl/RunLoopEfl.cpp:
(WebCore::RunLoop::~RunLoop):
* platform/gtk/RunLoopGtk.cpp:
(WebCore::RunLoop::~RunLoop):
* platform/win/RunLoopWin.cpp:
(WebCore::RunLoop::~RunLoop):

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

8 years agoImageBufferData: add BlackBerry header
commit-queue@webkit.org [Tue, 30 Apr 2013 10:16:54 +0000 (10:16 +0000)]
ImageBufferData: add BlackBerry header
https://bugs.webkit.org/show_bug.cgi?id=115408

Patch by Alberto Garcia <agarcia@igalia.com> on 2013-04-30
Reviewed by Carlos Garcia Campos.

* platform/graphics/ImageBufferData.h:

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

8 years agoReplace "Optional" extended attribute by proper Web IDL "optional" keyword
ch.dumez@sisa.samsung.com [Tue, 30 Apr 2013 08:32:35 +0000 (08:32 +0000)]
Replace "Optional" extended attribute by proper Web IDL "optional" keyword
https://bugs.webkit.org/show_bug.cgi?id=115380

Reviewed by Kentaro Hara.

Source/WebCore:

Replace [Optional] with standard WebIDL optional type prefix:
http://dev.w3.org/2006/webapi/WebIDL/#dfn-optional-argument

The default behavior now matches WebIDL: [Optional] => optional

Two cases where WebKit has extended bindings behavior still
require a non-standard IDL attribute:
[Optional=DefaultIsNullString] => [Default=NullString] optional
[Optional=DefaultIsUndefined] => [Default=Undefined] optional

Based on corresponding Blink patch from Joshua Bell for compatibility.

No new tests, no behavior change.

* Modules/battery/BatteryManager.idl:
* Modules/encryptedmedia/MediaKeySession.idl:
* Modules/encryptedmedia/MediaKeys.idl:
* Modules/filesystem/DOMWindowFileSystem.idl:
* Modules/filesystem/DirectoryEntry.idl:
* Modules/filesystem/DirectoryReader.idl:
* Modules/filesystem/Entry.idl:
* Modules/filesystem/FileEntry.idl:
* Modules/filesystem/FileWriter.idl:
* Modules/filesystem/WorkerContextFileSystem.idl:
* Modules/gamepad/GamepadList.idl:
* Modules/geolocation/Geolocation.idl:
* Modules/indexeddb/IDBCursor.idl:
* Modules/indexeddb/IDBDatabase.idl:
* Modules/indexeddb/IDBFactory.idl:
* Modules/indexeddb/IDBIndex.idl:
* Modules/indexeddb/IDBKeyRange.idl:
* Modules/indexeddb/IDBObjectStore.idl:
* Modules/indexeddb/IDBRequest.idl:
* Modules/indexeddb/IDBTransaction.idl:
* Modules/mediasource/MediaSource.idl:
* Modules/mediasource/SourceBufferList.idl:
* Modules/mediastream/MediaStream.idl:
* Modules/mediastream/MediaStreamTrack.idl:
* Modules/mediastream/NavigatorMediaStream.idl:
* Modules/mediastream/RTCDTMFSender.idl:
* Modules/mediastream/RTCDataChannel.idl:
* Modules/mediastream/RTCPeerConnection.idl:
* Modules/mediastream/RTCStatsResponse.idl:
* Modules/networkinfo/NetworkInfoConnection.idl:
* Modules/notifications/Notification.idl:
* Modules/notifications/NotificationCenter.idl:
* Modules/quota/StorageInfo.idl:
* Modules/quota/StorageQuota.idl:
* Modules/speech/SpeechGrammarList.idl:
* Modules/speech/SpeechRecognition.idl:
* Modules/speech/SpeechSynthesisUtterance.idl:
* Modules/webaudio/AudioContext.idl:
* Modules/webaudio/AudioNode.idl:
* Modules/webdatabase/DOMWindowWebDatabase.idl:
* Modules/webdatabase/Database.idl:
* Modules/webdatabase/DatabaseSync.idl:
* Modules/webdatabase/SQLTransaction.idl:
* Modules/webdatabase/WorkerContextWebDatabase.idl:
* Modules/websockets/WebSocket.idl:
* bindings/scripts/CodeGeneratorJS.pm:
(GetFunctionLength):
(GenerateFunctionParametersCheck):
(GenerateArgumentsCountCheck):
(GenerateParametersCheck):
(GenerateConstructorDefinition):
* bindings/scripts/IDLAttributes.txt:
* bindings/scripts/IDLParser.pm:
(parseOptionalOrRequiredArgument):
* bindings/scripts/test/TestEventTarget.idl:
* bindings/scripts/test/TestInterface.idl:
* bindings/scripts/test/TestNamedConstructor.idl:
* bindings/scripts/test/TestObj.idl:
* bindings/scripts/test/TestSerializedScriptValueInterface.idl:
* bindings/scripts/test/TestTypedefs.idl: optional cannot be used in a typedef.
* css/CSSHostRule.idl:
* css/CSSMediaRule.idl:
* css/CSSPrimitiveValue.idl:
* css/CSSRuleList.idl:
* css/CSSStyleDeclaration.idl:
* css/CSSStyleSheet.idl:
* css/CSSSupportsRule.idl:
* css/CSSValueList.idl:
* css/FontLoader.idl:
* css/MediaList.idl:
* css/MediaQueryList.idl:
* css/MediaQueryListListener.idl:
* css/StyleMedia.idl:
* css/StyleSheetList.idl:
* css/WebKitCSSKeyframesRule.idl:
* css/WebKitCSSMatrix.idl:
* dom/CharacterData.idl:
* dom/ClientRectList.idl:
* dom/Clipboard.idl:
* dom/CompositionEvent.idl:
* dom/CustomEvent.idl:
* dom/DOMImplementation.idl:
* dom/DOMStringList.idl:
* dom/DataTransferItem.idl:
* dom/DataTransferItemList.idl:
* dom/DeviceMotionEvent.idl:
* dom/DeviceOrientationEvent.idl:
* dom/Document.idl:
* dom/Element.idl:
* dom/Event.idl:
* dom/EventTarget.idl:
* dom/HashChangeEvent.idl:
* dom/KeyboardEvent.idl:
* dom/MessageEvent.idl:
* dom/MessagePort.idl:
* dom/MouseEvent.idl:
* dom/MutationEvent.idl:
* dom/NamedNodeMap.idl:
* dom/Node.idl:
* dom/NodeFilter.idl:
* dom/NodeList.idl:
* dom/OverflowEvent.idl:
* dom/Range.idl:
* dom/ShadowRoot.idl:
* dom/Text.idl:
* dom/TextEvent.idl:
* dom/TouchEvent.idl:
* dom/UIEvent.idl:
* dom/WebKitNamedFlow.idl:
* dom/WheelEvent.idl:
* fileapi/Blob.idl:
* fileapi/FileReader.idl:
* fileapi/FileReaderSync.idl:
* html/DOMFormData.idl:
* html/DOMTokenList.idl:
* html/HTMLAllCollection.idl:
* html/HTMLAudioElement.idl:
* html/HTMLCanvasElement.idl:
* html/HTMLCollection.idl:
* html/HTMLDocument.idl:
* html/HTMLElement.idl:
* html/HTMLFormControlsCollection.idl:
* html/HTMLInputElement.idl:
* html/HTMLMediaElement.idl:
* html/HTMLOptionElement.idl:
* html/HTMLOptionsCollection.idl:
* html/HTMLSelectElement.idl:
* html/HTMLTableElement.idl:
* html/HTMLTableRowElement.idl:
* html/HTMLTableSectionElement.idl:
* html/HTMLTextAreaElement.idl:
* html/MediaController.idl:
* html/canvas/ArrayBuffer.idl:
* html/canvas/CanvasGradient.idl:
* html/canvas/CanvasRenderingContext2D.idl:
* html/canvas/DOMPath.idl:
* html/canvas/DataView.idl:
* html/canvas/Float32Array.idl:
* html/canvas/Float64Array.idl:
* html/canvas/Int16Array.idl:
* html/canvas/Int32Array.idl:
* html/canvas/Int8Array.idl:
* html/canvas/OESVertexArrayObject.idl:
* html/canvas/Uint16Array.idl:
* html/canvas/Uint32Array.idl:
* html/canvas/Uint8Array.idl:
* html/canvas/Uint8ClampedArray.idl:
* html/track/AudioTrackList.idl:
* html/track/TextTrack.idl:
* html/track/TextTrackCue.idl:
* html/track/TextTrackList.idl:
* html/track/VideoTrackList.idl:
* loader/appcache/DOMApplicationCache.idl:
* page/DOMSelection.idl:
* page/DOMWindow.idl:
* page/EventSource.idl:
* page/History.idl:
* page/Location.idl:
* page/Performance.idl:
* plugins/DOMMimeTypeArray.idl:
* plugins/DOMPlugin.idl:
* plugins/DOMPluginArray.idl:
* storage/StorageEvent.idl:
* svg/ElementTimeControl.idl:
* svg/SVGDocument.idl:
* svg/SVGElementInstanceList.idl:
* svg/SVGFEDropShadowElement.idl:
* svg/SVGFEGaussianBlurElement.idl:
* svg/SVGFEMorphologyElement.idl:
* svg/SVGFilterElement.idl:
* svg/SVGLocatable.idl:
* svg/SVGMarkerElement.idl:
* svg/SVGPathElement.idl:
* svg/SVGSVGElement.idl:
* svg/SVGStyledElement.idl:
* svg/SVGTests.idl:
* svg/SVGTextContentElement.idl:
* testing/Internals.idl:
* workers/AbstractWorker.idl:
* workers/DedicatedWorkerContext.idl:
* workers/SharedWorker.idl:
* workers/Worker.idl:
* workers/WorkerContext.idl:
* xml/DOMParser.idl:
* xml/XMLHttpRequest.idl:
* xml/XMLHttpRequestUpload.idl:
* xml/XMLSerializer.idl:
* xml/XPathEvaluator.idl:
* xml/XPathExpression.idl:
* xml/XPathNSResolver.idl:
* xml/XPathResult.idl:
* xml/XSLTProcessor.idl:

Source/WebKit/win:

Replace [Optional] by optional.

* Interfaces/DOMWindow.idl:

Tools:

Replace WebKit-specific [Optional] extended attribute by Web IDL "optional"
keyword.

* WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl:
* WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:

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

8 years agoFix the USE(3D_GRAPHICS) build with the standard OpenGL on Windows
jocelyn.turcotte@digia.com [Tue, 30 Apr 2013 08:23:07 +0000 (08:23 +0000)]
Fix the USE(3D_GRAPHICS) build with the standard OpenGL on Windows
https://bugs.webkit.org/show_bug.cgi?id=114684

Reviewed by Simon Hausmann.

Source/WebCore:

Currently USE(3D_GRAPHICS) is only supported with OpenGLES through ANGLE
on Windows. Allow building with the stock opengl32.lib on Windows by adding
missing glCompressedTex* entries in OpenGLShims.
Those are used in Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
and will be substituted by the preprocessor.

* platform/graphics/OpenGLShims.cpp:
(WebCore::initializeOpenGLShims):
* platform/graphics/OpenGLShims.h:
(_OpenGLFunctionTable):

Tools:

Remove the ANGLE requirement for USE(3D_GRAPHICS).
This enables WebKit2 in the build when using a "-opengl desktop" configured Qt.

* qmake/mkspecs/features/features.prf:

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

8 years agoUnreviewed. Speculative build fix on Qt Arm and Mips after r149349.
zarvai@inf.u-szeged.hu [Tue, 30 Apr 2013 07:40:38 +0000 (07:40 +0000)]
Unreviewed. Speculative build fix on Qt Arm and Mips after r149349.

* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileSoftModulo):

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

8 years agoUnreviewed GTK gardening.
zandobersek@gmail.com [Tue, 30 Apr 2013 06:39:47 +0000 (06:39 +0000)]
Unreviewed GTK gardening.

* platform/gtk/TestExpectations: Skipping the Shadow DOM layout tests after the feature was disabled in r149352.

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

8 years ago[GTK] Disable Shadow DOM feature
zandobersek@gmail.com [Tue, 30 Apr 2013 06:33:01 +0000 (06:33 +0000)]
[GTK] Disable Shadow DOM feature
https://bugs.webkit.org/show_bug.cgi?id=115374

Reviewed by Martin Robinson.

Disable the Shadow DOM feature on the GTK port, the feature is planned for removal.

.:

* Source/autotools/SetupWebKitFeatures.m4:

Tools:

* Scripts/webkitperl/FeatureList.pm:

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

8 years ago[webkitpy] Add missing contributor email addresses
glenn@skynav.com [Tue, 30 Apr 2013 03:20:54 +0000 (03:20 +0000)]
[webkitpy] Add missing contributor email addresses
https://bugs.webkit.org/show_bug.cgi?id=115394

Reviewed by Ryosuke Niwa.

* Scripts/webkitpy/common/config/contributors.json:

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

8 years ago[ARM] Expand the use of integer division
commit-queue@webkit.org [Tue, 30 Apr 2013 02:55:18 +0000 (02:55 +0000)]
[ARM] Expand the use of integer division
https://bugs.webkit.org/show_bug.cgi?id=115138

Patch by Cosmin Truta <ctruta@blackberry.com> on 2013-04-29
Reviewed by Benjamin Poulain.

Source/JavaScriptCore:

If availability of hardware integer division isn't known at compile
time, check the CPU flags and decide at runtime whether to fall back
to software. Currently, this OS-specific check is implemented on QNX.

Moreover, use operator % instead of fmod() in the calculation of the
software modulo. Even when it's software-emulated, operator % is faster
than fmod(): on ARM v7 QNX, without hardware division, we noticed
>3% speedup on SunSpider.

* CMakeLists.txt:
* GNUmakefile.list.am:
* JavaScriptCore.xcodeproj/project.pbxproj:
* assembler/ARMv7Assembler.h:
(JSC::ARMv7Assembler::sdiv): Did not compile conditionally.
(JSC::ARMv7Assembler::udiv): Ditto.
* assembler/AbstractMacroAssembler.h:
(JSC::isARMv7s): Removed.
* assembler/MacroAssemblerARMv7.cpp: Added.
(JSC::isIntegerDivSupported): Added.
* assembler/MacroAssemblerARMv7.h:
(JSC::MacroAssemblerARMv7::supportsIntegerDiv): Added.
* dfg/DFGFixupPhase.cpp:
(JSC::DFG::FixupPhase::fixupNode): Checked MacroAssembler::supportsIntegerDiv() in ArithDiv case.
* dfg/DFGOperations.cpp:
(JSC::DFG::operationModOnInts): Added.
* dfg/DFGOperations.h:
(JSC::DFG::Z_DFGOperation_ZZ): Added.
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileSoftModulo): Separated the X86-specific and ARM-specific codegen
from the common implementation; used operationModOnInts on ARM.
(JSC::DFG::SpeculativeJIT::compileIntegerArithDivForARM): Renamed from compileIntegerArithDivForARMv7.
(JSC::DFG::SpeculativeJIT::compileArithMod): Allowed run-time detection of integer div on ARM.
* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::callOperation): Added overloads with Z_DFGOperation_ZZ arguments.
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compile): Used compileIntegerArithDivForARM.

Source/WTF:

* wtf/Platform.h: Added ENABLE_ARM_INTEGER_DIV.

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

8 years agoUnreviewed gardening. Rebaseline some Windows tests after disabling subpixel layout.
roger_fong@apple.com [Tue, 30 Apr 2013 02:04:50 +0000 (02:04 +0000)]
Unreviewed gardening. Rebaseline some Windows tests after disabling subpixel layout.

* platform/win/editing/selection/caret-ltr-right-expected.txt:
* platform/win/editing/selection/caret-rtl-2-left-expected.txt:
* platform/win/editing/selection/caret-rtl-right-expected.txt:
* platform/win/editing/selection/extend-selection-word-expected.txt: Added.
* platform/win/editing/selection/mixed-editability-10-expected.txt:
* platform/win/editing/selection/vertical-lr-ltr-extend-line-backward-br-expected.txt:
* platform/win/editing/selection/vertical-lr-ltr-extend-line-forward-br-expected.txt:
* platform/win/editing/selection/vertical-rl-ltr-extend-line-backward-br-expected.txt:
* platform/win/editing/selection/vertical-rl-ltr-extend-line-backward-p-expected.txt:
* platform/win/editing/selection/vertical-rl-ltr-extend-line-forward-br-expected.txt:
* platform/win/editing/selection/vertical-rl-ltr-extend-line-forward-p-expected.txt:
* platform/win/editing/selection/vertical-rl-rtl-extend-line-backward-br-expected.txt:
* platform/win/editing/selection/vertical-rl-rtl-extend-line-backward-p-expected.txt:
* platform/win/editing/selection/vertical-rl-rtl-extend-line-forward-br-expected.txt:
* platform/win/editing/selection/vertical-rl-rtl-extend-line-forward-p-expected.txt:
* platform/win/fast/borders/bidi-012-expected.txt:
* platform/win/fast/forms/fieldset-legend-padding-unclipped-fieldset-border-expected.txt:
* platform/win/fast/forms/file/file-input-disabled-expected.txt:
* platform/win/fast/forms/range: Added.
* platform/win/fast/forms/range/slider-mouse-events-expected.txt: Added.
* platform/win/fast/inline/inline-box-background-expected.txt:
* platform/win/fast/inline/inline-box-background-long-image-expected.txt:
* platform/win/fast/inline/inline-box-background-repeat-x-expected.txt:
* platform/win/fast/inline/inline-box-background-repeat-y-expected.txt:

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

8 years agoRemove all remaining Skia code
commit-queue@webkit.org [Tue, 30 Apr 2013 01:59:59 +0000 (01:59 +0000)]
Remove all remaining Skia code
https://bugs.webkit.org/show_bug.cgi?id=115263

Patch by Alberto Garcia <agarcia@igalia.com> on 2013-04-29
Reviewed by Benjamin Poulain.

Source/WebCore:

* html/HTMLCanvasElement.cpp:
(WebCore): Remove the MaxSkiaDim constant, which was a leftover
from r149193.
* platform/graphics/harfbuzz/FontHarfBuzz.cpp: Removed.
* platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.cpp: Removed.
* platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.h: Removed.
* platform/graphics/harfbuzz/HarfBuzzFaceSkia.cpp: Removed.

Tools:

Remove all remaining references to Skia.

* Scripts/webkitdirs.pm:
(blackberryCMakeArguments):
* Scripts/webkitpy/common/config/contributionareas.py:
* Scripts/webkitpy/common/config/watchlist:

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

8 years agoUnreviewed. Windows gardening after r148987.
roger_fong@apple.com [Tue, 30 Apr 2013 01:47:26 +0000 (01:47 +0000)]
Unreviewed. Windows gardening after r148987.

* platform/win/editing/deleting/delete-by-word-002-expected.txt: Added.
* platform/win/editing/deleting/delete-cell-contents-expected.txt: Added.
* platform/win/editing/execCommand: Added.
* platform/win/editing/execCommand/button-expected.txt: Added.
* platform/win/editing/execCommand/createLink-expected.txt: Added.
* platform/win/editing/execCommand/indent-pre-expected.txt: Added.
* platform/win/editing/execCommand/unlink-expected.txt: Added.
* platform/win/editing/inserting/insert-before-link-1-expected.txt: Added.
* platform/win/editing/pasteboard/display-block-on-spans-expected.txt: Added.
* platform/win/editing/pasteboard/merge-end-list-2-expected.txt: Added.
* platform/win/editing/pasteboard/merge-end-table-2-expected.txt: Added.
* platform/win/editing/pasteboard/page-zoom-expected.txt: Added.
* platform/win/editing/style: Added.
* platform/win/editing/style/apply-through-end-of-document-expected.txt: Added.
* platform/win/editing/style/remove-underline-across-paragraph-expected.txt: Added.
* platform/win/editing/style/remove-underline-across-paragraph-in-bold-expected.txt: Added.
* platform/win/editing/style/remove-underline-expected.txt: Added.
* platform/win/editing/style/remove-underline-from-stylesheet-expected.txt: Added.
* platform/win/editing/style/remove-underline-in-bold-expected.txt: Added.
* platform/win/editing/style/unbold-in-bold-expected.txt: Added.
* platform/win/editing/undo: Added.
* platform/win/editing/undo/replace-text-in-node-preserving-markers-crash-expected.txt: Added.

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

8 years agoFix build.
andersca@apple.com [Tue, 30 Apr 2013 01:44:29 +0000 (01:44 +0000)]
Fix build.

* platform/graphics/SimpleFontData.cpp:
(WebCore::SimpleFontData::DerivedFontData::~DerivedFontData):
* platform/graphics/mac/SimpleFontDataMac.mm:
(WebCore::SimpleFontData::getCompositeFontReferenceFontData):

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

8 years agoUnify the data access of StringImpl members from JavaScriptCore
benjamin@webkit.org [Tue, 30 Apr 2013 01:22:32 +0000 (01:22 +0000)]
Unify the data access of StringImpl members from JavaScriptCore
https://bugs.webkit.org/show_bug.cgi?id=115320

Reviewed by Andreas Kling.

DFG accesses the member infos by directly calling the methods on StringImpl,
while the baseline JIT was using helper methods on ThunkHelpers.

Cut the middle man, and use StringImpl directly everywhere.

* jit/JITInlines.h:
(JSC::JIT::emitLoadCharacterString):
* jit/JITPropertyAccess.cpp:
(JSC::JIT::stringGetByValStubGenerator):
* jit/JITPropertyAccess32_64.cpp:
(JSC::JIT::stringGetByValStubGenerator):
* jit/JSInterfaceJIT.h:
* jit/ThunkGenerators.cpp:
(JSC::stringCharLoad):

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

8 years agoDon't do CGContext flipping when painting subframes in WebKit1 on post-MountainLion...
simon.fraser@apple.com [Tue, 30 Apr 2013 01:03:52 +0000 (01:03 +0000)]
Don't do CGContext flipping when painting subframes in WebKit1 on post-MountainLion OSes
https://bugs.webkit.org/show_bug.cgi?id=115392
<rdar://problem/13421519>

Reviewed by Beth Dakin.

Sync up with AppKit behavior changes that could cause subviews to be flipped when
painted.

* platform/mac/WidgetMac.mm:
(WebCore::Widget::paint):

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

8 years agoWEB SPEECH: need to identify the default voice per language
cfleizach@apple.com [Tue, 30 Apr 2013 00:46:42 +0000 (00:46 +0000)]
WEB SPEECH: need to identify the default voice per language
https://bugs.webkit.org/show_bug.cgi?id=115366

Reviewed by Tim Horton.

Source/WebCore:

Use a WKSystemInterface method to determine which voice per language is the default voice.

When looking for a voice, there may not be a default at all, so we need to search until we
find a default.

* WebCore.exp.in:
* platform/mac/PlatformSpeechSynthesizerMac.mm:
(-[WebSpeechSynthesisWrapper speakUtterance:WebCore::]):
(WebCore::PlatformSpeechSynthesizer::initializeVoiceList):
* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:

Source/WebKit/mac:

* WebCoreSupport/WebSystemInterface.mm:
(InitWebCoreSystemInterface):

Source/WebKit2:

* WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
(InitWebCoreSystemInterface):

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

8 years agoIt should be an error to use adoptPtr with RefCounted subclasses
andersca@apple.com [Tue, 30 Apr 2013 00:46:14 +0000 (00:46 +0000)]
It should be an error to use adoptPtr with RefCounted subclasses
https://bugs.webkit.org/show_bug.cgi?id=115389

Reviewed by Benjamin Poulain.

* wtf/PassOwnPtr.h:
(WTF::adoptPtr):
Add COMPILE_ASSERTs.

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

8 years agoSettings.in selectionIncludesAltImageText should default to true, due to update in...
commit-queue@webkit.org [Tue, 30 Apr 2013 00:34:18 +0000 (00:34 +0000)]
Settings.in selectionIncludesAltImageText should default to true, due to update in HTML spec.
https://bugs.webkit.org/show_bug.cgi?id=115283

Patch by James Craig <james@cookiecrook.com> on 2013-04-29
Reviewed by Chris Fleizach.

Source/WebCore:

Config change due to this spec update:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21403
http://html5.org/tools/web-apps-tracker?from=7854&to=7855

Updated existing test coverage.

* page/Settings.in:

LayoutTests:

Update test to account for the initial setting change.

* editing/pasteboard/copy-image-with-alt-text.html:

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

8 years agoGet rid of unused options in Tools/Scripts/webkit-build-directory
commit-queue@webkit.org [Tue, 30 Apr 2013 00:29:21 +0000 (00:29 +0000)]
Get rid of unused options in Tools/Scripts/webkit-build-directory
https://bugs.webkit.org/show_bug.cgi?id=115383

Patch by Seokju Kwon <seokju.kwon@gmail.com> on 2013-04-29
Reviewed by Darin Adler.

* Scripts/webkit-build-directory:

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

8 years agoMake RunLoop ref-counted
andersca@apple.com [Tue, 30 Apr 2013 00:24:04 +0000 (00:24 +0000)]
Make RunLoop ref-counted
https://bugs.webkit.org/show_bug.cgi?id=115384

Reviewed by Sam Weinig.

This is a step towards creating a shared base class that both RunLoop and WorkQueue will derive from.

* platform/RunLoop.cpp:
(WebCore::RunLoop::current):
(WebCore::RunLoop::~RunLoop):
(WebCore):
* platform/RunLoop.h:
(RunLoop):
* platform/cf/RunLoopCF.cpp:
(WebCore::RunLoop::initializeMainRunLoop):
(WebCore::RunLoop::current):
(WebCore::RunLoop::~RunLoop):

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

8 years ago[Windows, WinCairo] Remove link and include directives for pthread.
bfulgham@webkit.org [Tue, 30 Apr 2013 00:14:14 +0000 (00:14 +0000)]
[Windows, WinCairo] Remove link and include directives for pthread.
https://bugs.webkit.org/show_bug.cgi?id=115381

Reviewed by Benjamin Poulain.

Update various VS2005 and VS2010 property sheets to remove
reference to the pthreads Include path and instructions to
link to the pthreads library.

* WebCore.vcproj/QTMovieWinCommon.vsprops:
* WebCore.vcproj/WebCoreCommon.vsprops:
* WebCore.vcproj/WebCoreDebug.vsprops:
* WebCore.vcproj/WebCoreDebugAll.vsprops:
* WebCore.vcproj/WebCoreProduction.vsprops:
* WebCore.vcproj/WebCorePthreads.vsprops: Removed.
* WebCore.vcproj/WebCoreRelease.vsprops:
* WebCore.vcxproj/WebCoreCommon.props:
* WebCore.vcxproj/WebCoreDebug.props:
* WebCore.vcxproj/WebCoreDebugWinCairo.props:
* WebCore.vcxproj/WebCoreProduction.props:
* WebCore.vcxproj/WebCorePthreads.props: Removed.
* WebCore.vcxproj/WebCoreRelease.props:
* WebCore.vcxproj/WebCoreReleaseWinCairo.props:

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

8 years ago[BlackBerry] Replace disappearing fillBuffer() API with graphics context drawing
commit-queue@webkit.org [Tue, 30 Apr 2013 00:12:36 +0000 (00:12 +0000)]
[BlackBerry] Replace disappearing fillBuffer() API with graphics context drawing
https://bugs.webkit.org/show_bug.cgi?id=115360
Internal PR 303048.

Patch by Jakob Petsovits <jpetsovits@blackberry.com> on 2013-04-29
Reviewed by Rob Buis.

Instead of using fillBuffer() to draw directly to the
target buffer, we now lock a Drawable on it and fill it
with PlatformGraphicsContext::addPredefinedPattern().

As a bonus, this also includes related clean-ups -
simpler checkerboard painting code, removal of
fillWindow(), clearWindow() and paintDefaultBackground(),
as well as getting rid of the DEBUG_CHECKERBOARD define
which has been useless for performance tracing purposes
for a while now.

* Api/BackingStore.cpp:
(BlackBerry::WebKit::BackingStorePrivate::blitVisibleContents):
* Api/BackingStore_p.h:

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

8 years ago [WK2][Mac] Test with NetworkProcess enabled.
ap@apple.com [Tue, 30 Apr 2013 00:02:23 +0000 (00:02 +0000)]
    [WK2][Mac] Test with NetworkProcess enabled.

        Fix the build for non-Mac.

        * WebKitTestRunner/TestController.cpp:
        (WTR::TestController::initialize):

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

8 years agoDo not allocate Static Strings for Notification::permissionString
benjamin@webkit.org [Mon, 29 Apr 2013 23:59:38 +0000 (23:59 +0000)]
Do not allocate Static Strings for Notification::permissionString
https://bugs.webkit.org/show_bug.cgi?id=115316

Reviewed by Geoffrey Garen.

The code is not nearly hot enough to justify keeping this memory around.

* Modules/notifications/Notification.cpp:
(WebCore::Notification::permission):
(WebCore::Notification::permissionString):
* Modules/notifications/Notification.h:
(Notification):

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

8 years ago REGRESSION (r149287?): Assertion failure in fast/frames/flattening/iframe...
ap@apple.com [Mon, 29 Apr 2013 23:58:20 +0000 (23:58 +0000)]
    REGRESSION (r149287?): Assertion failure in fast/frames/flattening/iframe-flattening-crash.html
        https://bugs.webkit.org/show_bug.cgi?id=115386

        * platform/mac/TestExpectations: Skipping the test.
        * platform/mac-wk2/TestExpectations: Removed it from here, as the assertion failure is not limited to wk2.

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

8 years ago[WK2] Streamline the use of strings in WebProcess::getWebCoreStatistics
benjamin@webkit.org [Mon, 29 Apr 2013 23:56:53 +0000 (23:56 +0000)]
[WK2] Streamline the use of strings in WebProcess::getWebCoreStatistics
https://bugs.webkit.org/show_bug.cgi?id=115315

Reviewed by Geoffrey Garen.

Remove a couple of unjustified DEFINE_STATIC_LOCAL.
Use ASCIILiteral when allocating new String.

* WebProcess/WebProcess.cpp:
(WebKit::getWebCoreMemoryCacheStatistics):
(WebKit::WebProcess::getWebCoreStatistics):

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

8 years agoUse push and pop for iOS math function thunks
benjamin@webkit.org [Mon, 29 Apr 2013 23:54:32 +0000 (23:54 +0000)]
Use push and pop for iOS math function thunks
https://bugs.webkit.org/show_bug.cgi?id=115215

Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-04-29
Reviewed by Filip Pizlo.

The iOS ABI is a little different than regular ARM ABI regarding stack alignment.
The requirement is 4 bytes:
"The ARM environment uses a stack that—at the point of function calls—is 4-byte aligned,
 grows downward, and contains local variables and a function’s parameters."

Subsequently, we can just use push and pop to preserve the link register.

* jit/ThunkGenerators.cpp:

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

8 years ago REGRESSION (r149287?): Assertion failure in fast/frames/flattening/iframe...
ap@apple.com [Mon, 29 Apr 2013 23:52:29 +0000 (23:52 +0000)]
    REGRESSION (r149287?): Assertion failure in fast/frames/flattening/iframe-flattening-crash.html
        https://bugs.webkit.org/show_bug.cgi?id=115386

        * platform/mac-wk2/TestExpectations: Marked the test as crashing in debug.

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

8 years agoRemove StorageTracker::originsLoaded
andersca@apple.com [Mon, 29 Apr 2013 23:26:12 +0000 (23:26 +0000)]
Remove StorageTracker::originsLoaded
https://bugs.webkit.org/show_bug.cgi?id=115382

Reviewed by Sam Weinig.

Source/WebCore:

Remove m_finishedImportingOriginIdentifiers.

* storage/StorageTracker.cpp:
(WebCore::StorageTracker::StorageTracker):
(WebCore::StorageTracker::finishedImportingOriginIdentifiers):
* storage/StorageTracker.h:
(StorageTracker):

Source/WebKit2:

Add m_didFinishLoadingOrigins.

* WebProcess/Storage/WebKeyValueStorageManager.cpp:
(WebKit::WebKeyValueStorageManager::WebKeyValueStorageManager):
(WebKit::WebKeyValueStorageManager::getKeyValueStorageOrigins):
(WebKit::WebKeyValueStorageManager::didFinishLoadingOrigins):
* WebProcess/Storage/WebKeyValueStorageManager.h:
(WebKeyValueStorageManager):

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

8 years agoGet rid of StorageTracker::setClient
andersca@apple.com [Mon, 29 Apr 2013 23:03:28 +0000 (23:03 +0000)]
Get rid of StorageTracker::setClient
https://bugs.webkit.org/show_bug.cgi?id=115376

Reviewed by Sam Weinig.

* WebCore.exp.in:
* storage/StorageTracker.cpp:
* storage/StorageTracker.h:
(StorageTracker):

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

8 years agoWEB SPEECH Update seatbelt profile to work with speech synthesis
cfleizach@apple.com [Mon, 29 Apr 2013 22:54:09 +0000 (22:54 +0000)]
WEB SPEECH Update seatbelt profile to work with speech synthesis
https://bugs.webkit.org/show_bug.cgi?id=115368

Reviewed by Alexey Proskuryakov.

* WebProcess/com.apple.WebProcess.sb.in:

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

8 years agoChange approach to third-party blocking for LocalStorage
jpfau@apple.com [Mon, 29 Apr 2013 22:44:35 +0000 (22:44 +0000)]
Change approach to third-party blocking for LocalStorage
https://bugs.webkit.org/show_bug.cgi?id=115004

Reviewed by Maciej Stachowiak.

Source/WebCore:

Instead of outright blocking LocalStorage that's used in a third-party
context, silently partition it based on the origin of the top context.
These partitions are then discarded when the page group is unloaded.

No new tests; modified existing tests to account for changes.

* page/DOMWindow.cpp:
(WebCore::DOMWindow::localStorage):
* page/PageGroup.cpp:
(WebCore::PageGroup::localStorage):
(WebCore):
(WebCore::PageGroup::transientLocalStorage):
* page/PageGroup.h:
(PageGroup):
* page/SecurityOrigin.cpp:
(WebCore::SecurityOrigin::canAccessStorage):

LayoutTests:

* http/tests/security/cross-origin-local-storage-allowed-expected.txt:
* http/tests/security/cross-origin-local-storage-allowed.html:
* http/tests/security/cross-origin-local-storage-expected.txt:
* http/tests/security/cross-origin-local-storage-wk1.html:
* http/tests/security/cross-origin-local-storage-wk1-expected.txt:
* http/tests/security/cross-origin-local-storage.html:
* http/tests/security/resources/cross-origin-iframe-for-local-storage.html:
* http/tests/security/resources/load-local-storage.html: Added.
* platform/mac-wk2/http/tests/security/cross-origin-local-storage-wk1-expected.txt:
* platform/mac/http/tests/security/cross-origin-local-storage-wk1-expected.txt:

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

8 years agoWEB SPEECH: need to identify the default voice per language
cfleizach@apple.com [Mon, 29 Apr 2013 22:40:07 +0000 (22:40 +0000)]
WEB SPEECH: need to identify the default voice per language
https://bugs.webkit.org/show_bug.cgi?id=115366

Reviewed by Simon Fraser.

* WebKitSystemInterface.h:
* libWebKitSystemInterfaceLion.a:
* libWebKitSystemInterfaceMountainLion.a:

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

8 years agoHTML Editing: Insertion point jumps when using link detection
commit-queue@webkit.org [Mon, 29 Apr 2013 22:25:11 +0000 (22:25 +0000)]
HTML Editing: Insertion point jumps when using link detection
https://bugs.webkit.org/show_bug.cgi?id=82198

Source/WebCore:

Patch by Yi Shen <max.hong.shen@gmail.com> on 2013-04-29
Reviewed by Ryosuke Niwa.

Add links should be done only when typing a word separator (e.g. space or dot) which
breaks the text into two parts - the link and the rest of the text. Reflected in
code, we should only add link when the caret position is at the right end location of
TextChecking result. Otherwise, the text on the right of a word separator could be
highlighted as a link and the insertion point jumps unexpectedly.

Tests: update editing/inserting/typing-space-to-trigger-smart-link.html

* editing/Editor.cpp:
(WebCore::Editor::markAndReplaceFor):

LayoutTests:

Patch by Yi Shen <max.hong.shen@gmail.com> on 2013-04-29
Reviewed by Ryosuke Niwa.

Update typing-space-to-trigger-smart-link.html to verify link detection behavior
when typing a link before existing text.

* editing/inserting/typing-space-to-trigger-smart-link-expected.txt:
* editing/inserting/typing-space-to-trigger-smart-link.html:

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

8 years ago[Windows, WinCairo] Get rid of last few pthread include/link references.
bfulgham@webkit.org [Mon, 29 Apr 2013 22:06:38 +0000 (22:06 +0000)]
[Windows, WinCairo] Get rid of last few pthread include/link references.
https://bugs.webkit.org/show_bug.cgi?id=115375

Reviewed by Tim Horton.

* JavaScriptCore.vcproj/jsc/jscPostBuild.cmd:
* JavaScriptCore.vcxproj/JavaScriptCoreCommon.props:
* JavaScriptCore.vcxproj/LLInt/LLIntOffsetsExtractor/LLIntOffsetsExtractorCommon.props:
* JavaScriptCore.vcxproj/jsc/jscCommon.props:
* JavaScriptCore.vcxproj/testRegExp/testRegExpCommon.props:
* JavaScriptCore.vcxproj/testapi/testapiCommon.props:

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

8 years agoUnreviewed. AppleWin VS2010 build fix.
roger_fong@apple.com [Mon, 29 Apr 2013 22:05:34 +0000 (22:05 +0000)]
Unreviewed. AppleWin VS2010 build fix.

* JavaScriptCore.vcxproj/JavaScriptCoreExportGenerator/JavaScriptCoreExports.def.in:

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

8 years agoUnreviewed. Tests mistakenly added to general TestExpectations file moved to mac...
roger_fong@apple.com [Mon, 29 Apr 2013 21:53:45 +0000 (21:53 +0000)]
Unreviewed. Tests mistakenly added to general TestExpectations file moved to mac TestExpectations file.
* TestExpectations:
* platform/mac/TestExpectations:

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

8 years agoNeed a LayoutMilestone to fire when we have done our first paint after suppressing
bdakin@apple.com [Mon, 29 Apr 2013 21:53:37 +0000 (21:53 +0000)]
Need a LayoutMilestone to fire when we have done our first paint after suppressing
incremental layout
https://bugs.webkit.org/show_bug.cgi?id=115330
-and corresponding-
<rdar://problem/12722365>

Reviewed by Simon Fraser.

Source/WebCore:

To meet the needs of all of our clients, we really need two milestones. One
indicating that a layout has happened after setVisualUpdatesAllowed(true), and
another indicating that painting has happened.

If layout is needed when setVisualUpdatesAllowed(true) is called, we need to
update it so that we can guarantee the first paint is really happening at this
time. Also fire the DidFirstLayoutAfterSuppressedIncrementalRendering milestone,
and call add DidFirstPaintAfterSuppressedIncrementalRendering to the FrameView's
pending paint milestones.
up the painting milestone.
* dom/Document.cpp:
(WebCore::Document::setVisualUpdatesAllowed):

FrameView now stores m_milestonesPendingPaint. We'll send and clear them once we
have painted.
* page/FrameView.cpp:
(WebCore::FrameView::FrameView):
(WebCore::FrameView::paintContents):
(WebCore::FrameView::addPaintPendingMilestones):
(WebCore::FrameView::firePaintRelatedMilestones):
* page/FrameView.h:
(WebCore::FrameView::milestonesPendingPaint):

Two new milestones.
* page/LayoutMilestones.h:
(WebCore):

We don't need m_headerLayerAwaitingFirstFlush anymore since we can use FrameView's
pending paint milestones instead.
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::RenderLayerCompositor):
(WebCore::RenderLayerCompositor::flushPendingLayerChanges):
(WebCore::RenderLayerCompositor::updateLayerForHeader):
* rendering/RenderLayerCompositor.h:
(RenderLayerCompositor):

Source/WebKit2:

Two new millstones.
* Shared/API/c/WKPageLoadTypes.h:
* Shared/API/c/WKSharedAPICast.h:
(WebKit::toWKLayoutMilestones):
(WebKit::toLayoutMilestones):

This null-check is necessary now since this code ends up running at
WebFrame::init() time while we're setting up the Document.
setVisualUpdatesAllowed(true) has always been called as a part of that process,
and now the updateLayout(), ends up calling this code too, but we don't actually
have a mainFrame yet since it's still being created.
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::findLargestFrameInFrameSet):

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

8 years agoUnreviewed, added missing new line in baseline.
jpfau@apple.com [Mon, 29 Apr 2013 21:40:24 +0000 (21:40 +0000)]
Unreviewed, added missing new line in baseline.

* fast/canvas/2d.imageDataHD-expected.txt:

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

8 years ago[Mac] Links can't be hovered or clicked with overlay scrollbars hidden.
hyatt@apple.com [Mon, 29 Apr 2013 21:36:23 +0000 (21:36 +0000)]
[Mac] Links can't be hovered or clicked with overlay scrollbars hidden.
https://bugs.webkit.org/show_bug.cgi?id=99379

This is also <rdar://problem/10929565> Overlay scrollbars prevent hit-testing on
content underneath them, even when hidden

Reviewed by Beth Dakin.

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::verticalScrollbarWidth):
(WebCore::RenderLayer::horizontalScrollbarHeight):

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

8 years agoBegin cleaning up StorageTracker
andersca@apple.com [Mon, 29 Apr 2013 21:07:45 +0000 (21:07 +0000)]
Begin cleaning up StorageTracker
https://bugs.webkit.org/show_bug.cgi?id=115373

Reviewed by Andreas Kling.

Rename Mutexes to use "Mutex" and not "Guard".
Don't use static locals for ".localstorage" and "*.localstorage" strings.
Put end iterator declarations together with begin declarations.

* storage/StorageTracker.cpp:
(WebCore::StorageTracker::setDatabaseDirectoryPath):
(WebCore::StorageTracker::trackerDatabasePath):
(WebCore::StorageTracker::openTrackerDatabase):
(WebCore::StorageTracker::finishedImportingOriginIdentifiers):
(WebCore::StorageTracker::syncImportOriginIdentifiers):
(WebCore::StorageTracker::syncFileSystemAndTrackerDatabase):
(WebCore::StorageTracker::setOriginDetails):
(WebCore::StorageTracker::syncSetOriginDetails):
(WebCore::StorageTracker::origins):
(WebCore::StorageTracker::deleteAllOrigins):
(WebCore::StorageTracker::syncDeleteAllOrigins):
(WebCore::StorageTracker::deleteOrigin):
(WebCore::StorageTracker::syncDeleteOrigin):
(WebCore::StorageTracker::willDeleteAllOrigins):
(WebCore::StorageTracker::willDeleteOrigin):
(WebCore::StorageTracker::canDeleteOrigin):
(WebCore::StorageTracker::cancelDeletingOrigin):
(WebCore::StorageTracker::setClient):
(WebCore::StorageTracker::databasePathForOrigin):
(WebCore::StorageTracker::diskUsageForOrigin):
* storage/StorageTracker.h:
(StorageTracker):

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

8 years agoDon't check for @media rules affected by viewport changes in every layout.
akling@apple.com [Mon, 29 Apr 2013 21:06:32 +0000 (21:06 +0000)]
Don't check for @media rules affected by viewport changes in every layout.
<http://webkit.org/b/115370>
<rdar://problem/13765739>

Reviewed by Antti Koivisto.

Move the logic that checks if any @media rules are affected by a change in the viewport
size to FrameView::setFrameRect(). This way it's no longer necessary to do the style
recalc synchronously, which allows us to coalesce multiple updates in some cases.

* page/FrameView.cpp:
(WebCore::FrameView::setFrameRect):
(WebCore::FrameView::layout):

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

8 years agoNeed a tools32 folder for VS2010 builds.
roger_fong@apple.com [Mon, 29 Apr 2013 21:00:37 +0000 (21:00 +0000)]
Need a tools32 folder for VS2010 builds.
tools folder will be nuked when we nuke VS2005.

* win/tools32: Copied from WebKitLibraries/win/tools.

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

8 years agoRemove the last StorageSyncManager function
andersca@apple.com [Mon, 29 Apr 2013 20:55:02 +0000 (20:55 +0000)]
Remove the last StorageSyncManager function
https://bugs.webkit.org/show_bug.cgi?id=115371

Reviewed by Sam Weinig.

Move the import scheduling to the StorageAreaSync constructor. Remove code to set m_importComplete to true
since that could only happen if the StorageSyncManager's thread is null which doesn't make any sense.

* storage/StorageAreaSync.cpp:
(WebCore::StorageAreaSync::StorageAreaSync):
(WebCore::StorageAreaSync::create):
* storage/StorageSyncManager.cpp:
* storage/StorageSyncManager.h:
(StorageSyncManager):

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

8 years ago [WK2][Mac] Test with NetworkProcess enabled.
ap@apple.com [Mon, 29 Apr 2013 20:28:34 +0000 (20:28 +0000)]
    [WK2][Mac] Test with NetworkProcess enabled.

        Reviewed by Sam Weinig.

        * WebKitTestRunner/TestController.cpp:
        (WTR::TestController::initialize):

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

8 years ago[GTK] Set up the TestWebCore in TestWebKitAPI
zandobersek@gmail.com [Mon, 29 Apr 2013 20:17:18 +0000 (20:17 +0000)]
[GTK] Set up the TestWebCore in TestWebKitAPI
https://bugs.webkit.org/show_bug.cgi?id=115237

Reviewed by Gustavo Noronha Silva.

Set up the WebCore unit test program, consisting of the unit tests under the TestWebKitAPI/Tests/WebCore directory.
Again the approach of specifying libtool libraries multiple times in the TestWebCore program's LDFLAGS is used as
a workaround for the layer violations and circular dependencies between various static libraries. Linking against
either libwebkitgtk or libwebkit2gtk shared libraries is avoided due to the unit tests covering WebCore, which
shouldn't rely on neither of the two distributable libraries (hence the dirty workaround).

* TestWebKitAPI/GNUmakefile.am:

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

8 years agoRemove unused method RenderMeter::valueRatio()
commit-queue@webkit.org [Mon, 29 Apr 2013 20:16:12 +0000 (20:16 +0000)]
Remove unused method RenderMeter::valueRatio()
https://bugs.webkit.org/show_bug.cgi?id=115266

Patch by Daker Fernandes Pinheiro <daker.pinheiro@openbossa.org> on 2013-04-29
Reviewed by Darin Adler.

The removed method is not used anywhere.
No new tests are required.

* rendering/RenderMeter.cpp:
* rendering/RenderMeter.h:
(RenderMeter):

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

8 years agoRemove two more StorageSyncManager wrapper functions
andersca@apple.com [Mon, 29 Apr 2013 20:10:24 +0000 (20:10 +0000)]
Remove two more StorageSyncManager wrapper functions
https://bugs.webkit.org/show_bug.cgi?id=115367

Reviewed by Andreas Kling.

* storage/StorageAreaSync.cpp:
(WebCore::StorageAreaSync::scheduleFinalSync):
(WebCore::StorageAreaSync::syncTimerFired):
* storage/StorageSyncManager.cpp:
* storage/StorageSyncManager.h:

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

8 years agoSVGElement destructor can use invalid iterator
schenney@chromium.org [Mon, 29 Apr 2013 19:56:40 +0000 (19:56 +0000)]
SVGElement destructor can use invalid iterator
https://bugs.webkit.org/show_bug.cgi?id=115361

Reviewed by Philip Rogers.

Source/WebCore:

When an SVGElement object has rare data, its destructor gets a
hash map iterator for the rare data, uses it to clear resources,
then uses the iterator to delete the rare data. However, the resource
cleanup can delete other SVG elements, thus modifying the hash map
from which the iterator came and hence invalidating the iterator
itself.

The fix is to re-get the iterator before deleting the rare data.

Test: svg/custom/svg-element-destructor-iteration-crash.html

* svg/SVGElement.cpp:
(WebCore::SVGElement::~SVGElement): Get a new iterator after clearing rare data.

LayoutTests:

Test asserts in Debug and should also crash in memory checking builds.

* svg/custom/svg-element-destructor-iteration-crash-expected.txt: Added.
* svg/custom/svg-element-destructor-iteration-crash.html: Added.

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

8 years ago~BlockAllocator should ASSERT that it has no more Regions left
mhahnenberg@apple.com [Mon, 29 Apr 2013 19:52:05 +0000 (19:52 +0000)]
~BlockAllocator should ASSERT that it has no more Regions left
https://bugs.webkit.org/show_bug.cgi?id=115287

Reviewed by Andreas Kling.

* heap/BlockAllocator.cpp:
(JSC::BlockAllocator::~BlockAllocator):
(JSC::BlockAllocator::allRegionSetsAreEmpty):
* heap/BlockAllocator.h:
(RegionSet):
(JSC::BlockAllocator::RegionSet::isEmpty):
(BlockAllocator):

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

8 years agoIndexingTypes should use hex
mhahnenberg@apple.com [Mon, 29 Apr 2013 19:08:31 +0000 (19:08 +0000)]
IndexingTypes should use hex
https://bugs.webkit.org/show_bug.cgi?id=115286

Decimal is kind of confusing/hard to read because they're used as bit masks. Hex seems more appropriate.

Reviewed by Geoffrey Garen.

* runtime/IndexingType.h:

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

8 years agoREGRESSION: We see authentication challenge sheets for favicon requests.
beidson@apple.com [Mon, 29 Apr 2013 19:07:44 +0000 (19:07 +0000)]
REGRESSION: We see authentication challenge sheets for favicon requests.
<rdar://problem/13753470> and https://bugs.webkit.org/show_bug.cgi?id=115288

Reviewed by Alexey Proskuryakov.

Source/WebCore:

No new tests (Not in a tested config, might fix existing test).

Rename ClientCrossOriginCredentialPolicy to ClientCredentialPolicy, make it be three options.
and move it to ResourceHandleTypes where it belongs:
* loader/ResourceLoaderOptions.h:
* platform/network/ResourceHandleTypes.h:

Expose the ClientCredentialPolicy the ResourceLoader was created with:
* loader/ResourceLoader.h:
(WebCore::ResourceLoader::clientCredentialPolicy):

Rework the “should ask client” clause for the new values of ClientCredentialPolicy:
* loader/ResourceLoader.cpp:
(WebCore::ResourceLoader::didReceiveAuthenticationChallenge):

Rework loadResourceSynchronously() to include a ClientCredentialPolicy argument:
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::loadResourceSynchronously):
* loader/FrameLoader.h:
* loader/LoaderStrategy.cpp:
(WebCore::LoaderStrategy::loadResourceSynchronously):
* loader/LoaderStrategy.h:

Never ask the client for credentials for icon loads:
* loader/icon/IconLoader.cpp:
(WebCore::IconLoader::startLoading):

Update all other users of ClientCredentialPolicy to the appropriate new value,
and update all users of loadResourceSynchronously to the new function signature:
* inspector/InspectorFrontendHost.cpp:
(WebCore::InspectorFrontendHost::loadResourceSynchronously):
* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::startLoadingMainResource):
* loader/DocumentThreadableLoader.cpp:
(WebCore::DocumentThreadableLoader::loadRequest):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::loadResourceSynchronously):
* loader/FrameLoader.h:
(FrameLoader):
* loader/LoaderStrategy.cpp:
(WebCore::LoaderStrategy::loadResourceSynchronously):
* loader/LoaderStrategy.h:
(LoaderStrategy):
* loader/NetscapePlugInStreamLoader.cpp:
(WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::requestUserCSSStyleSheet):
(WebCore::CachedResourceLoader::defaultCachedResourceOptions):
* xml/XSLTProcessorLibxslt.cpp:
(WebCore::docLoaderFunc):
* xml/parser/XMLDocumentParserLibxml2.cpp:
(WebCore::openFunc):

* WebCore.exp.in:

Source/WebKit2:

Have NetworkResourceLoadParameters remember the ClientCredentialPolicy:
* Shared/Network/NetworkResourceLoadParameters.cpp:
(WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
(WebKit::NetworkResourceLoadParameters::encode):
(WebKit::NetworkResourceLoadParameters::decode):
* Shared/Network/NetworkResourceLoadParameters.h:

Pass along the ClientCredentialPolicy to the NetworkProcess:
* WebProcess/Network/WebResourceLoadScheduler.cpp:
(WebKit::WebResourceLoadScheduler::scheduleLoad):
* WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
(WebKit::WebPlatformStrategies::loadResourceSynchronously):
* WebProcess/WebCoreSupport/WebPlatformStrategies.h:

Have the SchedulableLoader remember the ClientCredentialPolicy:
* NetworkProcess/SchedulableLoader.cpp:
(WebKit::SchedulableLoader::SchedulableLoader):
* NetworkProcess/SchedulableLoader.h:
(WebKit::SchedulableLoader::clientCredentialPolicy):

Don’t message for credentials if the ClientCredentialPolicy forbids it:
* NetworkProcess/NetworkResourceLoader.cpp:
(WebKit::NetworkResourceLoader::didReceiveAuthenticationChallenge):
* NetworkProcess/NetworkResourceLoader.h:

Update for the new loadResourceSynchronously signature (which is still a no-op on the NetworkProcess side):
* NetworkProcess/NetworkProcessPlatformStrategies.cpp:
(WebKit::NetworkProcessPlatformStrategies::loadResourceSynchronously):
* NetworkProcess/NetworkProcessPlatformStrategies.h:

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

8 years agoUnreviewed build fix. Point the Network process towards its own version of SecItemShi...
jer.noble@apple.com [Mon, 29 Apr 2013 18:53:17 +0000 (18:53 +0000)]
Unreviewed build fix. Point the Network process towards its own version of SecItemShim.dyld.

* NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info.plist:

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

8 years agoAdd a StorageSyncManager::dispatch helper function
andersca@apple.com [Mon, 29 Apr 2013 18:26:29 +0000 (18:26 +0000)]
Add a StorageSyncManager::dispatch helper function
https://bugs.webkit.org/show_bug.cgi?id=115365

Reviewed by Andreas Kling.

* storage/StorageSyncManager.cpp:
(WebCore::StorageSyncManager::dispatch):
(WebCore):
(WebCore::StorageSyncManager::close):
(WebCore::StorageSyncManager::scheduleImport):
(WebCore::StorageSyncManager::scheduleSync):
(WebCore::StorageSyncManager::scheduleDeleteEmptyDatabase):
* storage/StorageSyncManager.h:
(StorageSyncManager):

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

8 years agoRe-indent StorageSyncManager and remove SecurityOrigin forward declaration.
andersca@apple.com [Mon, 29 Apr 2013 18:19:16 +0000 (18:19 +0000)]
Re-indent StorageSyncManager and remove SecurityOrigin forward declaration.

Rubber-stamped by Andreas Kling.

* storage/StorageSyncManager.h:

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

8 years ago Threads get stuck in NetworkProcess when canceling loads
ap@apple.com [Mon, 29 Apr 2013 18:08:57 +0000 (18:08 +0000)]
    Threads get stuck in NetworkProcess when canceling loads
        https://bugs.webkit.org/show_bug.cgi?id=115319

        Backing out part of the fix, as it's causing crashes.

        * WebProcess/Network/WebResourceLoader.cpp:
        (WebKit::WebResourceLoader::didReceiveResponseWithCertificateInfo):

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

8 years agoGet rid of StorageTask
andersca@apple.com [Mon, 29 Apr 2013 18:06:25 +0000 (18:06 +0000)]
Get rid of StorageTask
https://bugs.webkit.org/show_bug.cgi?id=115313

Reviewed by Andreas Kling.

* CMakeLists.txt:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* storage/StorageSyncManager.cpp:
* storage/StorageTask.cpp: Removed.
* storage/StorageTask.h: Removed.
* storage/StorageThread.cpp:
(WebCore::StorageThread::threadEntryPoint):
(WebCore::StorageThread::dispatch):
(WebCore::StorageThread::terminate):
* storage/StorageThread.h:
(StorageThread):
* storage/StorageTracker.cpp:

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

8 years ago[GTK] Set up the TestJavaScriptCore in TestWebKitAPI
zandobersek@gmail.com [Mon, 29 Apr 2013 17:38:31 +0000 (17:38 +0000)]
[GTK] Set up the TestJavaScriptCore in TestWebKitAPI
https://bugs.webkit.org/show_bug.cgi?id=115236

Reviewed by Gustavo Noronha Silva.

Set up the TestJavaScriptCore unit test program, consisting of the unit tests
under the TestWebKitAPI/Tests/JavaScriptCore directory.

* TestWebKitAPI/GNUmakefile.am:

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

8 years ago[WIN] Add workaround for UNUSED_PARAM()
paroga@webkit.org [Mon, 29 Apr 2013 17:13:31 +0000 (17:13 +0000)]
[WIN] Add workaround for UNUSED_PARAM()
https://bugs.webkit.org/show_bug.cgi?id=115350

Reviewed by Andreas Kling.

r147882 added an workaround for the MSVC compiler on Windows CE.
Extend this workaround to whole MSVC compiler, since the same
problem occurs with the Visual Studio 10 compiler too.

* wtf/UnusedParam.h:

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

8 years agoAdd branch-prediction hint to FAST_RETURN_IF_NO_FRONTENDS.
akling@apple.com [Mon, 29 Apr 2013 17:12:00 +0000 (17:12 +0000)]
Add branch-prediction hint to FAST_RETURN_IF_NO_FRONTENDS.
<http://webkit.org/b/115357>

Reviewed by Anders Carlsson.

Since this macro is used in some very hot code paths, give the compiler an extra hint
to try and minimize the impact it has when the inspector is not active.

* inspector/InspectorInstrumentation.h:

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

8 years ago[WIN] Add WTF_USE_IMLANG_FONT_LINK2
paroga@webkit.org [Mon, 29 Apr 2013 16:33:04 +0000 (16:33 +0000)]
[WIN] Add WTF_USE_IMLANG_FONT_LINK2
https://bugs.webkit.org/show_bug.cgi?id=115198

Reviewed by Andreas Kling.

Source/WebCore:

Add this new define to have a central place for switching
the IMLangFontLinkType and adop all usages of the type.
This makes the usage of the code easier on desktop pcs.

* platform/graphics/FontCache.h:
(WebCore):
* platform/graphics/wince/FontCacheWinCE.cpp:
(WebCore::currentFontContainsCharacter):
(WebCore::createMLangFont):
(WebCore::FontCache::getFontDataForCharacters):
* platform/graphics/wince/SimpleFontDataWinCE.cpp:
(WebCore::SimpleFontData::containsCharacters):

Source/WTF:

* wtf/Platform.h:

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

8 years agoGet rid of "non-composited contents" in CoordinatedLayerTreeHost
commit-queue@webkit.org [Mon, 29 Apr 2013 16:24:18 +0000 (16:24 +0000)]
Get rid of "non-composited contents" in CoordinatedLayerTreeHost
https://bugs.webkit.org/show_bug.cgi?id=110355

Patch by Noam Rosenthal <noam@webkit.org> on 2013-04-29
Reviewed by Jocelyn Turcotte.

Source/WebCore:

When in force compositing mode, always assume that the main layer needs
a backing store. Make setVisibleContentRectTrajectoryVector and accumulatedCoverRect
recursive so that they don't rely on a specialized layer.

No new testable behavior, changes to coverRect and trajectory vector only
affect tiling latency in rare cases that are not trivial to test.

* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer:setVisibleContentRectTrajectoryVector):
    Make the trajectory vector recursive, though limited only to layers with
    translate/identity. This allows us to keep the trajectory vector while removing
    the non-composited contents specialization.

(WebCore::CoordinatedGraphicsLayer::accumulatedCoverRect):
    Added accumulatedCoverRect, so that the coverRect calculations for the UI process
    are not bound to the non-composited contents layer.

(WebCore::CoordinatedGraphicsLayer::findDescendantWithContentsRecursively):
    Instead of saving a reference to the non-composited contents layer, we assume that
    the first layer we found recursively which has contents is the one to be used for
    coverRect/trajectory calculations.

(WebCore):
* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
(CoordinatedGraphicsLayer):
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::paintsIntoWindow):
    Always create a layer for the non-composited contents when in forceCompositing mode.

Source/WebKit2:

Instead of using a special non-composited contents layer, we let RenderLayerCompositor create
a proper GraphicsLayer for that content.
CoordinatedLayerTreeHost now needs to find the main contents layer for the purpose of setting
the trajectory vector and applying the cover rect.

* WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
(WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
(WebKit::CoordinatedLayerTreeHost::setRootCompositingLayer):
    Don't create the non-composited layer, instead keep a raw pointer to the root
    compositing layer created by the WebCore compositor.

(WebKit::CoordinatedLayerTreeHost::setNonCompositedContentsNeedDisplay):
(WebKit::CoordinatedLayerTreeHost::setNonCompositedContentsNeedDisplayInRect):
(WebKit::CoordinatedLayerTreeHost::scrollNonCompositedContents):
(WebKit::CoordinatedLayerTreeHost::sizeDidChange):
(WebKit::CoordinatedLayerTreeHost::paintContents):
(WebKit::CoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged):
(WebKit::CoordinatedLayerTreeHost::setVisibleContentsRect):
    Remove non-composited layer specialization.

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

8 years ago[Qt] Build fix. Enabling c++11 for Qt WK2 after r149259.
zarvai@inf.u-szeged.hu [Mon, 29 Apr 2013 16:07:10 +0000 (16:07 +0000)]
[Qt] Build fix. Enabling c++11 for Qt WK2 after r149259.
https://bugs.webkit.org/show_bug.cgi?id=115345

Reviewed by Anders Carlsson.

* WebKit2.pri:

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

8 years agoDefine USE(ICU_UNICODE) if USE(WCHAR_UNICODE) is false
paroga@webkit.org [Mon, 29 Apr 2013 15:59:10 +0000 (15:59 +0000)]
Define USE(ICU_UNICODE) if USE(WCHAR_UNICODE) is false
https://bugs.webkit.org/show_bug.cgi?id=115349

Reviewed by Andreas Kling.

Since we support only ICU and WCHAR as Unicode backend (ICU is the default)
automatically use ICU if WCHAR was not selected via compiler defines.

* wtf/Platform.h:

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

8 years ago[WK2][EFL] Skip cancel fullscreen request if not made from FullScreen API
bruno.abinader@basyskom.com [Mon, 29 Apr 2013 15:57:49 +0000 (15:57 +0000)]
[WK2][EFL] Skip cancel fullscreen request if not made from FullScreen API
https://bugs.webkit.org/show_bug.cgi?id=108201

Reviewed by Andreas Kling.

Adds a check on WebFullScreenManagerProxyEfl whether fullscreen mode was
set from FullScreen API or not, so it can skip cancelling fullscreen
request if fullscreen mode was set by application, preventing
WebProcess' FullScreenManager from crashing.

EFL unit test available: ewk_view_cancel_full_screen_request.

* UIProcess/API/C/CoordinatedGraphics/WKView.cpp:
(WKViewExitFullScreen):
* UIProcess/API/C/CoordinatedGraphics/WKView.h:
WKViewExitFullScreen now returns a bool, indicating whether the
operation has succeeded or not.

* UIProcess/API/efl/ewk_view.cpp:
(ewk_view_fullscreen_exit):
Skip request if not in fullscreen mode.

* UIProcess/API/efl/tests/test_ewk2_view.cpp:
(TEST_F):
Added ewk_view_cancel_full_screen_request unit test.

* UIProcess/CoordinatedGraphics/WebView.cpp:
(WebKit::WebView::exitFullScreen):
* UIProcess/CoordinatedGraphics/WebView.h:
(WebView):
exitFullScreen now returns a bool, indicating whether the operation has
succeeded or not.

* UIProcess/WebFullScreenManagerProxy.cpp:
(WebKit::WebFullScreenManagerProxy::WebFullScreenManagerProxy):
* UIProcess/WebFullScreenManagerProxy.h:
(WebFullScreenManagerProxy):
* UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
(WebKit::WebFullScreenManagerProxy::isFullScreen):
(WebKit::WebFullScreenManagerProxy::enterFullScreen):
(WebKit::WebFullScreenManagerProxy::exitFullScreen):
Added m_hasRequestedFullScreen boolean flag to EFL port. Used to
indicate if fullscreen mode is enabled, as well as sanity checks on both
{enter,exit}FullScreen functions.

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

8 years agoAnimate clip rect() between different Length types
krit@webkit.org [Mon, 29 Apr 2013 15:46:26 +0000 (15:46 +0000)]
Animate clip rect() between different Length types
https://bugs.webkit.org/show_bug.cgi?id=115336

Reviewed by Andreas Kling.

Source/WebCore:

At the moment the animation for the 'clip' property
has an early return if the type of two Length values
does not match. This patch removes this early return.

Modified existing tests to cover the changes.

* page/animation/CSSPropertyAnimation.cpp:
(WebCore::blendFunc):

LayoutTests:

Modify test for clip animation to cover animations between
different Length types.

* transitions/clip-transition.html:

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

8 years agoWhen updating geometry, send JavaScript resize before before layout/paint.
akling@apple.com [Mon, 29 Apr 2013 15:33:31 +0000 (15:33 +0000)]
When updating geometry, send JavaScript resize before before layout/paint.
<http://webkit.org/b/115199>
<rdar://problem/13735535>

Reviewed by Geoffrey Garen.

Make the "resize" event synchronous and dispatch it before doing any automatic
resize-induced layout. This avoids unnecessary work in cases where an event handler
does something that dirties style.

It also avoids a kind of JS-side FOUC that happens if we drop out to the runloop
and paint before the resize event handler runs; for example, when viewing a popup
on <http://lokeshdhakar.com/projects/lightbox2/> and resizing the window, the dark
overlay sometimes resizes out of sync with the web view, since a paint may happen
between automatic layout and the resize event.

* page/EventHandler.h:
* page/EventHandler.cpp:
(WebCore::EventHandler::dispatchResizeEvent):
* page/FrameView.h:
* page/FrameView.cpp:
(WebCore::FrameView::dispatchResizeEvent):

    Renamed sendResizeEvent() to dispatchResizeEvent() and made it dispatch the event
    synchronously instead of adding it to the DocumentEventQueue.

(WebCore::FrameView::performPostLayoutTasks):
(WebCore::FrameView::setFrameRect):

    Dispatch the "resize" event right when the new frame rect is set.

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

8 years agoStop using range-based for syntax
andersca@apple.com [Mon, 29 Apr 2013 15:30:19 +0000 (15:30 +0000)]
Stop using range-based for syntax
https://bugs.webkit.org/show_bug.cgi?id=115356

Reviewed by Andreas Kling.

* PluginProcess/WebProcessConnection.cpp:
(WebKit::WebProcessConnection::didClose):

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

8 years agoBuild fix for WinCE after r148888 and r149097
paroga@webkit.org [Mon, 29 Apr 2013 15:22:32 +0000 (15:22 +0000)]
Build fix for WinCE after r148888 and r149097
https://bugs.webkit.org/show_bug.cgi?id=115168

Reviewed by Anders Carlsson.

When using compiler intrinsics on Windows CE the compiler complains
about wrong linkage specification of replaced CRT functions defined
in math.h. This is because the compiler has intrinsics for this
functions defined, and requires them to have extern "C" linkage.

* wtf/MathExtras.h:
(wtf_atan2): Added extern "C" to function signature.
(wtf_fmod): Ditto.
(wtf_pow): Ditto.

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

8 years agoRemove OS(WINCE) from (Render|Scrollbar)ThemeWin.cpp
paroga@webkit.org [Mon, 29 Apr 2013 15:04:10 +0000 (15:04 +0000)]
Remove OS(WINCE) from (Render|Scrollbar)ThemeWin.cpp
https://bugs.webkit.org/show_bug.cgi?id=115348

Reviewed by Andreas Kling.

Compile DIBPixelData.cpp on Windows CE too, which allows us
to get rid of a few #if OS(WINCE) in other code parts.

* PlatformWinCE.cmake:
* platform/graphics/win/DIBPixelData.cpp:
(WebCore::DIBPixelData::setRGBABitmapAlpha):
* platform/win/ScrollbarThemeWin.cpp:
(WebCore::ScrollbarThemeWin::paintTrackPiece):
(WebCore::ScrollbarThemeWin::paintButton):
(WebCore::ScrollbarThemeWin::paintThumb):
* rendering/RenderThemeWin.cpp:
(WebCore::drawControl):

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

8 years ago[EFL][WK2]: WebProcessMain: hide call to ecore_x_shutdown() under guard
commit-queue@webkit.org [Mon, 29 Apr 2013 14:55:05 +0000 (14:55 +0000)]
[EFL][WK2]: WebProcessMain: hide call to ecore_x_shutdown() under guard
https://bugs.webkit.org/show_bug.cgi?id=115295

Patch by Sergio Correia <sergio.correia@openbossa.org> on 2013-04-29
Reviewed by Andreas Kling.

Since the mentioned function is declared in a header that is included
conditionally depending on HAVE_ECORE_X being defined.

* WebProcess/efl/WebProcessMainEfl.cpp:
(WebKit::WebProcessMainEfl):

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

8 years ago[BlackBerry] Fake-bold monospace fonts need to use non-fake-bold advances
commit-queue@webkit.org [Mon, 29 Apr 2013 14:46:05 +0000 (14:46 +0000)]
[BlackBerry] Fake-bold monospace fonts need to use non-fake-bold advances
https://bugs.webkit.org/show_bug.cgi?id=115280

Patch by Eli Fidler <efidler@blackberry.com> on 2013-04-29
Reviewed by George Staikos.

BlackBerry PR 330864

Tested by fast/css/css3-ch-unit.html

* platform/graphics/blackberry/FontPlatformDataBlackBerry.cpp:
(WebCore::FontPlatformData::applyState):
(WebCore::FontPlatformData::isFixedPitch):
* platform/graphics/blackberry/ITypeUtils.h:
* platform/graphics/blackberry/SimpleFontDataBlackBerry.cpp:
(WebCore::SimpleFontData::platformWidthForGlyph):

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

8 years ago[GTK][AC] Clean up code related with the children management stuff for clutter based AC
commit-queue@webkit.org [Mon, 29 Apr 2013 14:36:31 +0000 (14:36 +0000)]
[GTK][AC] Clean up code related with the children management stuff for clutter based AC
https://bugs.webkit.org/show_bug.cgi?id=114260

Patch by ChangSeok Oh <changseok.oh@collabora.com> on 2013-04-29
Reviewed by Gustavo Noronha Silva.

Remove unused or usless code for children management stuff.

No new tests since no functionality changed.

* platform/graphics/clutter/GraphicsLayerActor.cpp:
(_GraphicsLayerActorPrivate):
(graphics_layer_actor_class_init):
(graphicsLayerActorAllocate):
(graphicsLayerActorDraw):
(graphicsLayerActorNew):
(graphicsLayerActorSetSublayers):
* platform/graphics/clutter/GraphicsLayerActor.h:
* platform/graphics/clutter/GraphicsLayerClutter.cpp:
(WebCore::idleDestroy):
(WebCore::GraphicsLayerClutter::ensureStructuralLayer):
(WebCore::GraphicsLayerClutter::updateLayerDrawsContent):

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

8 years ago[WIN] Guard cfHDropFormat() with USE(CF) instead of OS(WINCE)
paroga@webkit.org [Mon, 29 Apr 2013 14:26:09 +0000 (14:26 +0000)]
[WIN] Guard cfHDropFormat() with USE(CF) instead of OS(WINCE)
https://bugs.webkit.org/show_bug.cgi?id=115195

Reviewed by Andreas Kling.

USE(CF) is the correct guard, which works on desktop pcs too.

* platform/win/ClipboardWin.cpp:
(WebCore::ClipboardWin::files):
* platform/win/DragDataWin.cpp:
(WebCore::DragData::containsFiles):
(WebCore::DragData::numberOfFiles):
(WebCore::DragData::asFilenames):

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

8 years ago[WK2] Remove build warnings by -Wunused-parameter
commit-queue@webkit.org [Mon, 29 Apr 2013 14:16:20 +0000 (14:16 +0000)]
[WK2] Remove build warnings by -Wunused-parameter
https://bugs.webkit.org/show_bug.cgi?id=115344

Patch by Jinwoo Song <jinwoo7.song@samsung.com> on 2013-04-29
Reviewed by Noam Rosenthal.

Fix build warnigs -Wunused-parameter.

* UIProcess/CoordinatedGraphics/WebView.cpp:
(WebKit::WebView::createContextMenuProxy):
* UIProcess/DrawingAreaProxy.h:
(WebKit::DrawingAreaProxy::waitForPossibleGeometryUpdate):
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::connectionWillClose):

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

8 years ago[Qt] Unreviewed gardening.
zarvai@inf.u-szeged.hu [Mon, 29 Apr 2013 14:06:29 +0000 (14:06 +0000)]
[Qt] Unreviewed gardening.

Move Qt Mac specific results to qt-mac after r149210.

* platform/qt-mac/compositing/visibility/visibility-image-layers-dynamic-expected.txt: Renamed from LayoutTests/platform/qt-5.0/compositing/visibility/visibility-image-layers-dynamic-expected.txt.
* platform/qt-mac/editing/selection/collapse-selection-in-bidi-expected.txt: Renamed from LayoutTests/platform/qt-5.0/editing/selection/collapse-selection-in-bidi-expected.txt.
* platform/qt-mac/editing/selection/drag-start-event-client-x-y-expected.txt: Renamed from LayoutTests/platform/qt-5.0/editing/selection/drag-start-event-client-x-y-expected.txt.
* platform/qt-mac/fast/backgrounds/size/contain-and-cover-zoomed-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/backgrounds/size/contain-and-cover-zoomed-expected.txt.
* platform/qt-mac/fast/block/basic/fieldset-stretch-to-legend-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/block/basic/fieldset-stretch-to-legend-expected.txt.
* platform/qt-mac/fast/block/positioning/replaced-inside-fixed-top-bottom-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/block/positioning/replaced-inside-fixed-top-bottom-expected.txt.
* platform/qt-mac/fast/borders/fieldsetBorderRadius-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/borders/fieldsetBorderRadius-expected.txt.
* platform/qt-mac/fast/css/absolute-child-with-percent-height-inside-relative-parent-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/css/absolute-child-with-percent-height-inside-relative-parent-expected.txt.
* platform/qt-mac/fast/css/bug4860-absolute-block-child-does-not-inherit-alignment-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/css/bug4860-absolute-block-child-does-not-inherit-alignment-expected.txt.
* platform/qt-mac/fast/css/getComputedStyle/getComputedStyle-margin-percentage-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/css/getComputedStyle/getComputedStyle-margin-percentage-expected.txt.
* platform/qt-mac/fast/events/document-elementFromPoint-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/events/document-elementFromPoint-expected.txt.
* platform/qt-mac/fast/flexbox/flex-hang-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/flexbox/flex-hang-expected.txt.
* platform/qt-mac/fast/images/repaint-subrect-grid-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/images/repaint-subrect-grid-expected.txt.
* platform/qt-mac/fast/images/zoomed-img-size-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/images/zoomed-img-size-expected.txt.
* platform/qt-mac/fast/multicol/break-properties-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/multicol/break-properties-expected.txt.
* platform/qt-mac/fast/multicol/vertical-lr/break-properties-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/multicol/vertical-lr/break-properties-expected.txt.
* platform/qt-mac/fast/multicol/vertical-rl/break-properties-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/multicol/vertical-rl/break-properties-expected.txt.
* platform/qt-mac/fast/overflow/infiniteRecursionGuard-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/overflow/infiniteRecursionGuard-expected.txt.
* platform/qt-mac/fast/parser/style-script-head-test-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/parser/style-script-head-test-expected.txt.
* platform/qt-mac/fast/reflections/reflection-with-zoom-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/reflections/reflection-with-zoom-expected.txt.
* platform/qt-mac/fast/transforms/rotated-transform-affects-scrolling-1-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/transforms/rotated-transform-affects-scrolling-1-expected.txt.
* platform/qt-mac/fast/transforms/rotated-transform-affects-scrolling-2-expected.txt: Renamed from LayoutTests/platform/qt-5.0/fast/transforms/rotated-transform-affects-scrolling-2-expected.txt.
* platform/qt-mac/http/tests/misc/acid3-expected.txt: Renamed from LayoutTests/platform/qt-5.0/http/tests/misc/acid3-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/coords-dom-01-f-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/coords-dom-01-f-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/coords-dom-02-f-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/coords-dom-02-f-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/coords-dom-03-f-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/coords-dom-03-f-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/coords-dom-04-f-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/coords-dom-04-f-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/filters-felem-01-b-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/filters-felem-01-b-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/interact-pointer-03-t-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/interact-pointer-03-t-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/linking-uri-01-b-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/linking-uri-01-b-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/painting-marker-07-f-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/painting-marker-07-f-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/paths-dom-02-f-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/paths-dom-02-f-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/pservers-grad-17-b-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/pservers-grad-17-b-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/pservers-grad-20-b-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/pservers-grad-20-b-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/pservers-pattern-04-f-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/pservers-pattern-04-f-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/styling-pres-02-f-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/styling-pres-02-f-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/text-tref-03-b-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/text-tref-03-b-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/text-tspan-02-b-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/types-dom-01-b-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/types-dom-01-b-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/types-dom-02-f-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/types-dom-02-f-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/types-dom-03-b-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/types-dom-03-b-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/types-dom-04-b-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/types-dom-04-b-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/types-dom-06-f-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/types-dom-06-f-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1-SE/types-dom-07-f-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1-SE/types-dom-07-f-expected.txt.
* platform/qt-mac/svg/W3C-SVG-1.1/filters-turb-02-f-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/W3C-SVG-1.1/filters-turb-02-f-expected.txt.
* platform/qt-mac/svg/as-image/svg-non-integer-scaled-image-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/as-image/svg-non-integer-scaled-image-expected.txt.
* platform/qt-mac/svg/custom/fractional-rects-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/custom/fractional-rects-expected.txt.
* platform/qt-mac/svg/custom/js-update-container-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/custom/js-update-container-expected.txt.
* platform/qt-mac/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-absolute-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-absolute-expected.txt.
* platform/qt-mac/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-expected.txt.
* platform/qt-mac/svg/custom/object-sizing-width-75p-height-50p-on-target-svg-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/custom/object-sizing-width-75p-height-50p-on-target-svg-expected.txt.
* platform/qt-mac/svg/custom/svg-fonts-with-no-element-reference-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/custom/svg-fonts-with-no-element-reference-expected.txt.
* platform/qt-mac/svg/custom/use-css-no-effect-on-shadow-tree-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/custom/use-css-no-effect-on-shadow-tree-expected.txt.
* platform/qt-mac/svg/custom/viewBox-hit-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/custom/viewBox-hit-expected.txt.
* platform/qt-mac/svg/hixie/text/001-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/hixie/text/001-expected.txt.
* platform/qt-mac/svg/hixie/text/003a-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/hixie/text/003a-expected.txt.
* platform/qt-mac/svg/text/small-fonts-2-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/text/small-fonts-2-expected.txt.
* platform/qt-mac/svg/text/text-hkern-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/text/text-hkern-expected.txt.
* platform/qt-mac/svg/text/text-viewbox-rescale-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/text/text-viewbox-rescale-expected.txt.
* platform/qt-mac/svg/wicd/sizing-flakiness-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/wicd/sizing-flakiness-expected.txt.
* platform/qt-mac/svg/zoom/page/zoom-background-image-tiled-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/zoom/page/zoom-background-image-tiled-expected.txt.
* platform/qt-mac/svg/zoom/page/zoom-svg-as-background-with-relative-size-and-viewBox-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/zoom/page/zoom-svg-as-background-with-relative-size-and-viewBox-expected.txt.
* platform/qt-mac/svg/zoom/page/zoom-svg-as-image-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/zoom/page/zoom-svg-as-image-expected.txt.
* platform/qt-mac/svg/zoom/page/zoom-svg-as-object-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/zoom/page/zoom-svg-as-object-expected.txt.
* platform/qt-mac/svg/zoom/page/zoom-svg-as-relative-image-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/zoom/page/zoom-svg-as-relative-image-expected.txt.
* platform/qt-mac/svg/zoom/page/zoom-svg-through-object-with-auto-size-expected.txt: Renamed from LayoutTests/platform/qt-5.0/svg/zoom/page/zoom-svg-through-object-with-auto-size-expected.txt.
* platform/qt-mac/tables/mozilla/bugs/bug83786-expected.txt: Renamed from LayoutTests/platform/qt-5.0/tables/mozilla/bugs/bug83786-expected.txt.

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

8 years agoUnreviewed. Fix make distcheck.
carlosgc@webkit.org [Mon, 29 Apr 2013 11:28:53 +0000 (11:28 +0000)]
Unreviewed. Fix make distcheck.

Source/JavaScriptCore:

* GNUmakefile.list.am: Add missing headers files to compilation
and offlineasm/sh4.rb script.

Source/WebCore:

* GNUmakefile.am: Add missing scripts to EXTRA_DIST.
* GNUmakefile.list.am: Add missing files to compilation.

Source/WebKit2:

* GNUmakefile.list.am: Add missing header files to compilation.

Source/WTF:

* GNUmakefile.list.am: Add missing header file to compilation.

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

8 years ago[Qt] fast/canvas/webgl/webgl-composite-modes.html broken after r148433.
commit-queue@webkit.org [Mon, 29 Apr 2013 09:52:58 +0000 (09:52 +0000)]
[Qt] fast/canvas/webgl/webgl-composite-modes.html broken after r148433.
https://bugs.webkit.org/show_bug.cgi?id=115243

Patch by Noam Rosenthal <noam@webkit.org> on 2013-04-29
Reviewed by Jocelyn Turcotte.

When compositing a layer with a canvas or directly composited image, it is
wrong to use TextureMapperLayer::setBackingStore. Instead, setContentsLayer
should be used, which allows for the layer to have both a backing store and
a contents layer.

* platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::paintSelf):
* platform/graphics/texmap/TextureMapperLayer.h:
(State):
(WebCore::TextureMapperLayer::State::State):
* platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp:
(WebCore::CoordinatedGraphicsScene::createCanvasIfNeeded):
(WebCore::CoordinatedGraphicsScene::destroyCanvasIfNeeded):
(WebCore::CoordinatedGraphicsScene::assignImageBackingToLayer):

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

8 years agoUnreviewed build fix.
paroga@webkit.org [Mon, 29 Apr 2013 09:44:07 +0000 (09:44 +0000)]
Unreviewed build fix.

* WebCoreSupport/FrameLoaderClientWinCE.cpp: Added missing header.
* WebView.h: Ditto.

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

8 years agoUnreviewed build fix.
paroga@webkit.org [Mon, 29 Apr 2013 09:03:51 +0000 (09:03 +0000)]
Unreviewed build fix.

* bindings/js/WorkerScriptDebugServer.cpp: Added missing header.

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

8 years agoUnreviewed build fix.
paroga@webkit.org [Mon, 29 Apr 2013 08:56:15 +0000 (08:56 +0000)]
Unreviewed build fix.

* platform/graphics/wince/FontWinCE.cpp:
(WebCore::generateComponents):

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

8 years agoRemove OS(WINCE) from HTMLSelectElement.cpp
paroga@webkit.org [Mon, 29 Apr 2013 08:47:31 +0000 (08:47 +0000)]
Remove OS(WINCE) from HTMLSelectElement.cpp
https://bugs.webkit.org/show_bug.cgi?id=115194

Reviewed by Andreas Kling.

Use the same files like the the other PLATFORM(WIN) ports use.

* PlatformWinCE.cmake:
* html/HTMLSelectElement.cpp:
(WebCore):

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

8 years ago[GTK] Export the COLLECT_NO_DEMANGLE variable on the builders
zandobersek@gmail.com [Mon, 29 Apr 2013 08:05:37 +0000 (08:05 +0000)]
[GTK] Export the COLLECT_NO_DEMANGLE variable on the builders
https://bugs.webkit.org/show_bug.cgi?id=115323

Reviewed by Philippe Normand.

Export the COLLECT_NO_DEMANGLE environment variable on the GTK BuildBot builders.
Its presence enforces linkers to output mangled symbols when reporting linking failures
due to unresolved references. People trying to fix the build can then simply copy
the printed mangled symbol into the symbols.filter file instead of doing a manual build
or connecting to the builders to discover the mangled version of the missing symbol.

* BuildSlaveSupport/gtk/daemontools-buildbot.conf:

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

8 years agoRemove Chromium code from Tools/BuildSlaveSupport
zandobersek@gmail.com [Mon, 29 Apr 2013 06:51:20 +0000 (06:51 +0000)]
Remove Chromium code from Tools/BuildSlaveSupport
https://bugs.webkit.org/show_bug.cgi?id=115325

Reviewed by Benjamin Poulain.

Remove the two Chromium-specific scripts and the Chromium-specific parts from the code
covering archiving test results and built products.

* BuildSlaveSupport/built-product-archive:
(archiveBuiltProduct):
(extractBuiltProduct):
* BuildSlaveSupport/chromium/output-android-device-status: Removed.
* BuildSlaveSupport/chromium/remove-crash-logs: Removed.
* BuildSlaveSupport/test-result-archive:
(archiveTestResults):

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

8 years agoRemove support for Chromium from webkitdirs.pm
commit-queue@webkit.org [Mon, 29 Apr 2013 06:43:25 +0000 (06:43 +0000)]
Remove support for Chromium from webkitdirs.pm
https://bugs.webkit.org/show_bug.cgi?id=115338

Patch by Seokju Kwon <seokju.kwon@gmail.com> on 2013-04-28
Reviewed by Darin Adler.

* Scripts/webkitdirs.pm:
(determineBaseProductDir):
(argumentsForConfiguration):
(builtDylibPathForName):
(determineIsQt):
(isAppleWebKit):

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

8 years agoRename TestRunner's setAudioData to setAudioResult
zandobersek@gmail.com [Mon, 29 Apr 2013 06:17:52 +0000 (06:17 +0000)]
Rename TestRunner's setAudioData to setAudioResult
https://bugs.webkit.org/show_bug.cgi?id=115326

Reviewed by Darin Adler.

Tools:

Rename the TestRunner's setAudioData method to setAudioResult. The new name better conveys the method's purpose
than the previous one. The change is a simple rename, there's no change in the method's functionality. The
affected tests are adjusted accordingly.

* DumpRenderTree/qt/TestRunnerQt.cpp:
(TestRunnerQt::setAudioResult):
* DumpRenderTree/qt/TestRunnerQt.h:
(TestRunnerQt):
* WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
* WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::TestRunner::setAudioResult):
* WebKitTestRunner/InjectedBundle/TestRunner.h:
(TestRunner):

LayoutTests:

Adjust the testRunner.setAudioData references/callsites, the method is now named setAudioResult.

* platform/efl-wk1/TestExpectations:
* webaudio/resources/audio-codec-test.js:
(finishedLoading):
* webaudio/resources/audio-testing.js:
(finishAudioTest):
* webaudio/test-basic.html:

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

8 years agoUnreviewed fix build break on EFL port since r149259.
gyuyoung.kim@samsung.com [Mon, 29 Apr 2013 05:04:48 +0000 (05:04 +0000)]
Unreviewed fix build break on EFL port since r149259.

In EFL port, there is a non-compatible code when compiling based on C++11. This is a trivial build fix.

I got a confirm from Sam about landing a trivial build fix patch without sign-off from
WK2 owner.

* UIProcess/API/efl/EwkViewCallbacks.h:

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

8 years ago[EFL][CMAKE] Build break after r149259
ryuan.choi@samsung.com [Mon, 29 Apr 2013 04:13:56 +0000 (04:13 +0000)]
[EFL][CMAKE] Build break after r149259
https://bugs.webkit.org/show_bug.cgi?id=115339

Reviewed by Gyuyoung Kim.

r149259 used c++11 features(Right angle bracket, Range-based for-loop).
This patch enforces c++0x when cmake based ports build WebKit2 using gcc.

* Source/cmake/WebKitHelpers.cmake:

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

8 years agoGet rid of a duplicate file from LayoutTests/TestExpectations
commit-queue@webkit.org [Mon, 29 Apr 2013 00:57:05 +0000 (00:57 +0000)]
Get rid of a duplicate file from LayoutTests/TestExpectations
https://bugs.webkit.org/show_bug.cgi?id=115337

Unreviewed gardening.

Patch by Seokju Kwon <seokju.kwon@gmail.com> on 2013-04-28

* TestExpectations: Remove one of two svg/zoom/page/zoom-replaced-intrinsic-ratio-001.htm.

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

8 years agoWindows build fix.
rniwa@webkit.org [Sun, 28 Apr 2013 22:45:26 +0000 (22:45 +0000)]
Windows build fix.

Source/WebKit:

* WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:

Source/WebKit/win:

* WebKit.vcproj/WebKitExports.def.in:

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