WebKit-https.git
8 years agoUnreviewed GTK gardening.
zandobersek@gmail.com [Fri, 12 Oct 2012 07:49:19 +0000 (07:49 +0000)]
Unreviewed GTK gardening.

Rebaselining fast/dom/Window/window-properties-performance.html after r131106.
Adding a failure expectation for a transitions blend mode test added in r131146.

* platform/gtk/TestExpectations:
* platform/gtk/fast/dom/Window/window-properties-performance-expected.txt:

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

8 years agoOptimzie SelectorCheckingContext memory layout
shinyak@chromium.org [Fri, 12 Oct 2012 07:47:59 +0000 (07:47 +0000)]
Optimzie SelectorCheckingContext memory layout
https://bugs.webkit.org/show_bug.cgi?id=99139

Reviewed by Hajime Morita.

Since VisitedMatchType and PseudoId are both enum, we can make SelectorChecker more compact
if these two fields are continuously placed.

No new tests, no change in behavior.

* css/SelectorChecker.h:
(WebCore::SelectorChecker::SelectorCheckingContext::SelectorCheckingContext):
(SelectorCheckingContext):

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

8 years ago[WebSocket] Add "Cache-Control: no-cache" to handshake request
bashi@chromium.org [Fri, 12 Oct 2012 07:33:43 +0000 (07:33 +0000)]
[WebSocket] Add "Cache-Control: no-cache" to handshake request
https://bugs.webkit.org/show_bug.cgi?id=98000

Reviewed by Yuta Kitamura.

Source/WebCore:

Add no-cache headers to opening handshake.
This is for compatibility improvement.
Some proxies rewrite "Connection: upgrade" to "Connection: close"
when a request doesn't contain no-cache headers.

Test: http/tests/websocket/tests/hybi/nocache.html

* Modules/websockets/WebSocketHandshake.cpp:
(WebCore::WebSocketHandshake::clientHandshakeMessage):
(WebCore::WebSocketHandshake::clientHandshakeRequest):

LayoutTests:

Add a test for no-cache headers check.

* http/tests/websocket/tests/hybi/nocache-expected.txt: Added.
* http/tests/websocket/tests/hybi/nocache-test_wsh.py: Added.
(web_socket_do_extra_handshake):
(web_socket_transfer_data):
* http/tests/websocket/tests/hybi/nocache.html: Added.

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

8 years agoUnreviewed compile error fix for chromium windows bot.
loislo@chromium.org [Fri, 12 Oct 2012 07:31:35 +0000 (07:31 +0000)]
Unreviewed compile error fix for chromium windows bot.

* TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp:

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

8 years ago[Qt] Unreviewed gardening. Skip test using disabled SHADOW_DOM.
ossy@webkit.org [Fri, 12 Oct 2012 07:26:20 +0000 (07:26 +0000)]
[Qt] Unreviewed gardening. Skip test using disabled SHADOW_DOM.

Patch by Zoltan Arvai <zarvai@inf.u-szeged.hu> on 2012-10-12

* platform/qt/TestExpectations: Skip fast/dom/shadow/insertion-point-resetStyleInheritance.html.

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

8 years agoAnother unreviewed fix for clang builders.
loislo@chromium.org [Fri, 12 Oct 2012 07:24:07 +0000 (07:24 +0000)]
Another unreviewed fix for clang builders.

* TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp:

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

8 years agoUnreviewed, rolling out r131121.
ossy@webkit.org [Fri, 12 Oct 2012 07:22:02 +0000 (07:22 +0000)]
Unreviewed, rolling out r131121.
http://trac.webkit.org/changeset/131121
https://bugs.webkit.org/show_bug.cgi?id=99144

It made all tests timeout on all WK2 platform (Requested by
ossy on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-10-12

* UIProcess/WebProcessProxy.cpp:
* UIProcess/WebProcessProxy.h:
(WebProcessProxy):
* UIProcess/WebProcessProxy.messages.in:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::postMessage):
(WebKit::InjectedBundle::postSynchronousMessage):

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

8 years agoUnreviewed compile error fix for clang builders.
loislo@chromium.org [Fri, 12 Oct 2012 07:13:51 +0000 (07:13 +0000)]
Unreviewed compile error fix for clang builders.

* TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp:

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

8 years agoWeb Inspector: NMI move instrumentation tests from chromium test set to the cross...
loislo@chromium.org [Fri, 12 Oct 2012 07:06:27 +0000 (07:06 +0000)]
Web Inspector: NMI move instrumentation tests from chromium test set to the cross platform test set.
https://bugs.webkit.org/show_bug.cgi?id=99046

Reviewed by Yury Semikhatsky.

* TestWebKitAPI/Tests/WTF/MemoryInstrumentationTest.cpp:

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

8 years agoAdd some basic methods and properties to the injected bundle Objective-C DOM API
aestes@apple.com [Fri, 12 Oct 2012 06:34:16 +0000 (06:34 +0000)]
Add some basic methods and properties to the injected bundle Objective-C DOM API
https://bugs.webkit.org/show_bug.cgi?id=99137

Reviewed by Sam Weinig.

Source/WebCore:

Export needed symbols.

* WebCore.exp.in:

Source/WebKit2:

Add methods and properties that allow for tree traversal, node creation/insertion,
attribute modification, text node retrieval, and range creation.

* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/InjectedBundle/API/mac/WKDOMDocument.h:
* WebProcess/InjectedBundle/API/mac/WKDOMDocument.mm:
(toDocument):
(-[WKDOMDocument createElement:]):
(-[WKDOMDocument createTextNode:]):
(-[WKDOMDocument body]):
* WebProcess/InjectedBundle/API/mac/WKDOMElement.h:
* WebProcess/InjectedBundle/API/mac/WKDOMElement.mm:
(-[WKDOMElement hasAttribute:]):
(-[WKDOMElement getAttribute:]):
(-[WKDOMElement setAttribute:value:]):
(-[WKDOMElement tagName]):
* WebProcess/InjectedBundle/API/mac/WKDOMInternals.h:
* WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm:
(WebKit::WKDOMNodeClass):
(WebKit::toWebCoreText):
(WebKit::toWKDOMText):
(WebKit::toWebCoreRange):
* WebProcess/InjectedBundle/API/mac/WKDOMNode.h:
* WebProcess/InjectedBundle/API/mac/WKDOMNode.mm:
(-[WKDOMNode insertNode:before:]):
(-[WKDOMNode appendChild:]):
(-[WKDOMNode parentNode]):
(-[WKDOMNode firstChild]):
(-[WKDOMNode nextSibling]):
* WebProcess/InjectedBundle/API/mac/WKDOMRange.h:
* WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
(-[WKDOMRange setStart:offset:]):
(-[WKDOMRange setEnd:offset:]):
(-[WKDOMRange collapse:]):
(-[WKDOMRange selectNode:]):
(-[WKDOMRange selectNodeContents:]):
(-[WKDOMRange isCollapsed]):
* WebProcess/InjectedBundle/API/mac/WKDOMText.h: Added.
* WebProcess/InjectedBundle/API/mac/WKDOMText.mm: Added.
(-[WKDOMText data]):

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

8 years ago[Chromium] Unreviewed gardening, TestExpectation updated.
shinyak@chromium.org [Fri, 12 Oct 2012 06:33:24 +0000 (06:33 +0000)]
[Chromium] Unreviewed gardening, TestExpectation updated.

* platform/chromium/TestExpectations:

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

8 years agoBad copy constructor in StyleRareNonInheritedData
commit-queue@webkit.org [Fri, 12 Oct 2012 06:25:13 +0000 (06:25 +0000)]
Bad copy constructor in StyleRareNonInheritedData
https://bugs.webkit.org/show_bug.cgi?id=98950

Patch by Rik Cabanier <cabanier@adobe.com> on 2012-10-11
Reviewed by Eric Seidel.

Typo in copy constructor caused blendmode to always be the default.

Source/WebCore:

* rendering/style/StyleRareNonInheritedData.cpp:
(WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):

LayoutTests:

* platform/chromium/TestExpectations:
* transitions/blendmode-transitions-expected.txt: Added.
* transitions/blendmode-transitions.html: Added.
* transitions/resources/transition-test-helpers.js:
* transitions/svg-transitions-expected.txt:

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

8 years ago[WebKit IDL] remove all module from idl files.
commit-queue@webkit.org [Fri, 12 Oct 2012 06:10:17 +0000 (06:10 +0000)]
[WebKit IDL] remove all module from idl files.
https://bugs.webkit.org/show_bug.cgi?id=99007

Patch by Takashi Sakamoto <tasak@google.com> on 2012-10-11
Reviewed by Kentaro Hara.

Since current WebIDL spec doesn't support "module", remove
module from all idl files.

No new tests. I ran run-bindings-tests and no error was reported.

Source/WebCore:

* Modules/battery/BatteryManager.idl:
* Modules/battery/NavigatorBattery.idl:
* Modules/filesystem/DOMFileSystem.idl:
* Modules/filesystem/DOMFileSystemSync.idl:
* Modules/filesystem/DOMWindowFileSystem.idl:
* Modules/filesystem/DataTransferItemFileSystem.idl:
* Modules/filesystem/DirectoryEntry.idl:
* Modules/filesystem/DirectoryEntrySync.idl:
* Modules/filesystem/DirectoryReader.idl:
* Modules/filesystem/DirectoryReaderSync.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/FileEntrySync.idl:
* Modules/filesystem/FileSystemCallback.idl:
* Modules/filesystem/FileWriter.idl:
* Modules/filesystem/FileWriterCallback.idl:
* Modules/filesystem/FileWriterSync.idl:
* Modules/filesystem/HTMLInputElementFileSystem.idl:
* Modules/filesystem/Metadata.idl:
* Modules/filesystem/MetadataCallback.idl:
* Modules/filesystem/WorkerContextFileSystem.idl:
* Modules/gamepad/Gamepad.idl:
* Modules/gamepad/GamepadList.idl:
* Modules/gamepad/NavigatorGamepad.idl:
* Modules/geolocation/Geolocation.idl:
* Modules/geolocation/Geoposition.idl:
* Modules/geolocation/NavigatorGeolocation.idl:
* Modules/geolocation/PositionCallback.idl:
* Modules/geolocation/PositionError.idl:
* Modules/geolocation/PositionErrorCallback.idl:
* Modules/indexeddb/DOMWindowIndexedDatabase.idl:
* Modules/indexeddb/IDBAny.idl:
* Modules/indexeddb/IDBCursor.idl:
* Modules/indexeddb/IDBCursorWithValue.idl:
* Modules/indexeddb/IDBDatabase.idl:
* Modules/indexeddb/IDBDatabaseException.idl:
* Modules/indexeddb/IDBFactory.idl:
* Modules/indexeddb/IDBIndex.idl:
* Modules/indexeddb/IDBKey.idl:
* Modules/indexeddb/IDBKeyRange.idl:
* Modules/indexeddb/IDBObjectStore.idl:
* Modules/indexeddb/IDBOpenDBRequest.idl:
* Modules/indexeddb/IDBRequest.idl:
* Modules/indexeddb/IDBTransaction.idl:
* Modules/indexeddb/IDBUpgradeNeededEvent.idl:
* Modules/indexeddb/IDBVersionChangeEvent.idl:
* Modules/indexeddb/IDBVersionChangeRequest.idl:
* Modules/indexeddb/WorkerContextIndexedDatabase.idl:
* Modules/intents/DOMWindowIntents.idl:
* Modules/intents/DeliveredIntent.idl:
* Modules/intents/Intent.idl:
* Modules/intents/IntentResultCallback.idl:
* Modules/intents/NavigatorIntents.idl:
* Modules/mediasource/MediaSource.idl:
* Modules/mediasource/SourceBuffer.idl:
* Modules/mediasource/SourceBufferList.idl:
* Modules/mediastream/DOMWindowMediaStream.idl:
* Modules/mediastream/IceCallback.idl:
* Modules/mediastream/IceCandidate.idl:
* Modules/mediastream/LocalMediaStream.idl:
* Modules/mediastream/MediaStream.idl:
* Modules/mediastream/MediaStreamEvent.idl:
* Modules/mediastream/MediaStreamList.idl:
* Modules/mediastream/MediaStreamTrack.idl:
* Modules/mediastream/MediaStreamTrackEvent.idl:
* Modules/mediastream/MediaStreamTrackList.idl:
* Modules/mediastream/NavigatorMediaStream.idl:
* Modules/mediastream/NavigatorUserMediaError.idl:
* Modules/mediastream/NavigatorUserMediaErrorCallback.idl:
* Modules/mediastream/NavigatorUserMediaSuccessCallback.idl:
* Modules/mediastream/PeerConnection00.idl:
* Modules/mediastream/RTCErrorCallback.idl:
* Modules/mediastream/RTCIceCandidate.idl:
* Modules/mediastream/RTCIceCandidateEvent.idl:
* Modules/mediastream/RTCPeerConnection.idl:
* Modules/mediastream/RTCSessionDescription.idl:
* Modules/mediastream/RTCSessionDescriptionCallback.idl:
* Modules/mediastream/RTCStatsCallback.idl:
* Modules/mediastream/RTCStatsElement.idl:
* Modules/mediastream/RTCStatsReport.idl:
* Modules/mediastream/RTCStatsResponse.idl:
* Modules/mediastream/SessionDescription.idl:
* Modules/navigatorcontentutils/NavigatorContentUtils.idl:
* Modules/networkinfo/NavigatorNetworkInfoConnection.idl:
* Modules/networkinfo/NetworkInfoConnection.idl:
* Modules/notifications/DOMWindowNotifications.idl:
* Modules/notifications/Notification.idl:
* Modules/notifications/NotificationCenter.idl:
* Modules/notifications/NotificationPermissionCallback.idl:
* Modules/notifications/WorkerContextNotifications.idl:
* Modules/proximity/DeviceProximityEvent.idl:
* Modules/quota/DOMWindowQuota.idl:
* Modules/quota/StorageInfo.idl:
* Modules/quota/StorageInfoErrorCallback.idl:
* Modules/quota/StorageInfoQuotaCallback.idl:
* Modules/quota/StorageInfoUsageCallback.idl:
* Modules/speech/DOMWindowSpeech.idl:
* Modules/speech/SpeechGrammar.idl:
* Modules/speech/SpeechGrammarList.idl:
* Modules/speech/SpeechRecognition.idl:
* Modules/speech/SpeechRecognitionAlternative.idl:
* Modules/speech/SpeechRecognitionError.idl:
* Modules/speech/SpeechRecognitionEvent.idl:
* Modules/speech/SpeechRecognitionResult.idl:
* Modules/speech/SpeechRecognitionResultList.idl:
* Modules/vibration/NavigatorVibration.idl:
* Modules/webaudio/AudioBuffer.idl:
* Modules/webaudio/AudioBufferCallback.idl:
* Modules/webaudio/AudioBufferSourceNode.idl:
* Modules/webaudio/AudioChannelMerger.idl:
* Modules/webaudio/AudioChannelSplitter.idl:
* Modules/webaudio/AudioContext.idl:
* Modules/webaudio/AudioDestinationNode.idl:
* Modules/webaudio/AudioGain.idl:
* Modules/webaudio/AudioGainNode.idl:
* Modules/webaudio/AudioListener.idl:
* Modules/webaudio/AudioNode.idl:
* Modules/webaudio/AudioPannerNode.idl:
* Modules/webaudio/AudioParam.idl:
* Modules/webaudio/AudioProcessingEvent.idl:
* Modules/webaudio/AudioSourceNode.idl:
* Modules/webaudio/BiquadFilterNode.idl:
* Modules/webaudio/ConvolverNode.idl:
* Modules/webaudio/DOMWindowWebAudio.idl:
* Modules/webaudio/DelayNode.idl:
* Modules/webaudio/DynamicsCompressorNode.idl:
* Modules/webaudio/JavaScriptAudioNode.idl:
* Modules/webaudio/MediaElementAudioSourceNode.idl:
* Modules/webaudio/MediaStreamAudioSourceNode.idl:
* Modules/webaudio/OfflineAudioCompletionEvent.idl:
* Modules/webaudio/Oscillator.idl:
* Modules/webaudio/RealtimeAnalyserNode.idl:
* Modules/webaudio/WaveShaperNode.idl:
* Modules/webaudio/WaveTable.idl:
* Modules/webdatabase/DOMWindowWebDatabase.idl:
* Modules/webdatabase/Database.idl:
* Modules/webdatabase/DatabaseCallback.idl:
* Modules/webdatabase/DatabaseSync.idl:
* Modules/webdatabase/SQLError.idl:
* Modules/webdatabase/SQLException.idl:
* Modules/webdatabase/SQLResultSet.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/CloseEvent.idl:
* Modules/websockets/DOMWindowWebSocket.idl:
* Modules/websockets/WebSocket.idl:
* Modules/websockets/WorkerContextWebSocket.idl:
* bindings/scripts/test/TestCallback.idl:
* bindings/scripts/test/TestCustomNamedGetter.idl:
* bindings/scripts/test/TestDomainSecurity.idl:
* bindings/scripts/test/TestEventConstructor.idl:
* bindings/scripts/test/TestEventTarget.idl:
* bindings/scripts/test/TestException.idl:
* bindings/scripts/test/TestInterface.idl:
* bindings/scripts/test/TestMediaQueryListListener.idl:
* bindings/scripts/test/TestNamedConstructor.idl:
* bindings/scripts/test/TestNode.idl:
* bindings/scripts/test/TestObj.idl:
* bindings/scripts/test/TestSerializedScriptValueInterface.idl:
* bindings/scripts/test/TestSupplemental.idl:
* bindings/scripts/test/TestTypedArray.idl:
* css/CSSCharsetRule.idl:
* css/CSSFontFaceRule.idl:
* css/CSSImportRule.idl:
* css/CSSMediaRule.idl:
* css/CSSPageRule.idl:
* css/CSSPrimitiveValue.idl:
* css/CSSRule.idl:
* css/CSSRuleList.idl:
* css/CSSStyleDeclaration.idl:
* css/CSSStyleRule.idl:
* css/CSSStyleSheet.idl:
* css/CSSUnknownRule.idl:
* css/CSSValue.idl:
* css/CSSValueList.idl:
* css/Counter.idl:
* css/MediaList.idl:
* css/MediaQueryList.idl:
* css/MediaQueryListListener.idl:
* css/RGBColor.idl:
* css/Rect.idl:
* css/StyleMedia.idl:
* css/StyleSheet.idl:
* css/StyleSheetList.idl:
* css/WebKitCSSFilterValue.idl:
* css/WebKitCSSKeyframeRule.idl:
* css/WebKitCSSKeyframesRule.idl:
* css/WebKitCSSMatrix.idl:
* css/WebKitCSSRegionRule.idl:
* css/WebKitCSSTransformValue.idl:
* dom/Attr.idl:
* dom/BeforeLoadEvent.idl:
* dom/CDATASection.idl:
* dom/CharacterData.idl:
* dom/ClientRect.idl:
* dom/ClientRectList.idl:
* dom/Clipboard.idl:
* dom/Comment.idl:
* dom/CompositionEvent.idl:
* dom/CustomEvent.idl:
* dom/DOMCoreException.idl:
* dom/DOMError.idl:
* dom/DOMImplementation.idl:
* dom/DOMNamedFlowCollection.idl:
* dom/DOMStringList.idl:
* dom/DOMStringMap.idl:
* dom/DataTransferItem.idl:
* dom/DataTransferItemList.idl:
* dom/DeviceMotionEvent.idl:
* dom/DeviceOrientationEvent.idl:
* dom/Document.idl:
* dom/DocumentFragment.idl:
* dom/DocumentType.idl:
* dom/Element.idl:
* dom/Entity.idl:
* dom/EntityReference.idl:
* dom/ErrorEvent.idl:
* dom/Event.idl:
* dom/EventException.idl:
* dom/EventListener.idl:
* dom/EventTarget.idl:
* dom/HashChangeEvent.idl:
* dom/KeyboardEvent.idl:
* dom/MessageChannel.idl:
* dom/MessageEvent.idl:
* dom/MessagePort.idl:
* dom/MouseEvent.idl:
* dom/MutationCallback.idl:
* dom/MutationEvent.idl:
* dom/MutationObserver.idl:
* dom/MutationRecord.idl:
* dom/NamedNodeMap.idl:
* dom/Node.idl:
* dom/NodeFilter.idl:
* dom/NodeIterator.idl:
* dom/NodeList.idl:
* dom/Notation.idl:
* dom/OverflowEvent.idl:
* dom/PageTransitionEvent.idl:
* dom/PopStateEvent.idl:
* dom/ProcessingInstruction.idl:
* dom/ProgressEvent.idl:
* dom/PropertyNodeList.idl:
* dom/Range.idl:
* dom/RangeException.idl:
* dom/RequestAnimationFrameCallback.idl:
* dom/ShadowRoot.idl:
* dom/StringCallback.idl:
* dom/Text.idl:
* dom/TextEvent.idl:
* dom/Touch.idl:
* dom/TouchEvent.idl:
* dom/TouchList.idl:
* dom/TreeWalker.idl:
* dom/UIEvent.idl:
* dom/WebKitAnimationEvent.idl:
* dom/WebKitNamedFlow.idl:
* dom/WebKitTransitionEvent.idl:
* dom/WheelEvent.idl:
* editing/DOMTransaction.idl:
* editing/UndoManager.idl:
* fileapi/Blob.idl:
* fileapi/File.idl:
* fileapi/FileError.idl:
* fileapi/FileException.idl:
* fileapi/FileList.idl:
* fileapi/FileReader.idl:
* fileapi/FileReaderSync.idl:
* html/DOMFormData.idl:
* html/DOMSettableTokenList.idl:
* html/DOMTokenList.idl:
* html/DOMURL.idl:
* html/HTMLAllCollection.idl:
* html/HTMLAnchorElement.idl:
* html/HTMLAppletElement.idl:
* html/HTMLAreaElement.idl:
* html/HTMLAudioElement.idl:
* html/HTMLBRElement.idl:
* html/HTMLBaseElement.idl:
* html/HTMLBaseFontElement.idl:
* html/HTMLBodyElement.idl:
* html/HTMLButtonElement.idl:
* html/HTMLCanvasElement.idl:
* html/HTMLCollection.idl:
* html/HTMLDListElement.idl:
* html/HTMLDataListElement.idl:
* html/HTMLDetailsElement.idl:
* html/HTMLDialogElement.idl:
* html/HTMLDirectoryElement.idl:
* html/HTMLDivElement.idl:
* html/HTMLDocument.idl:
* html/HTMLElement.idl:
* html/HTMLEmbedElement.idl:
* html/HTMLFieldSetElement.idl:
* html/HTMLFontElement.idl:
* html/HTMLFormElement.idl:
* html/HTMLFrameElement.idl:
* html/HTMLFrameSetElement.idl:
* html/HTMLHRElement.idl:
* html/HTMLHeadElement.idl:
* html/HTMLHeadingElement.idl:
* html/HTMLHtmlElement.idl:
* html/HTMLIFrameElement.idl:
* html/HTMLImageElement.idl:
* html/HTMLInputElement.idl:
* html/HTMLIntentElement.idl:
* html/HTMLKeygenElement.idl:
* html/HTMLLIElement.idl:
* html/HTMLLabelElement.idl:
* html/HTMLLegendElement.idl:
* html/HTMLLinkElement.idl:
* html/HTMLMapElement.idl:
* html/HTMLMarqueeElement.idl:
* html/HTMLMediaElement.idl:
* html/HTMLMenuElement.idl:
* html/HTMLMetaElement.idl:
* html/HTMLMeterElement.idl:
* html/HTMLModElement.idl:
* html/HTMLOListElement.idl:
* html/HTMLObjectElement.idl:
* html/HTMLOptGroupElement.idl:
* html/HTMLOptionElement.idl:
* html/HTMLOptionsCollection.idl:
* html/HTMLOutputElement.idl:
* html/HTMLParagraphElement.idl:
* html/HTMLParamElement.idl:
* html/HTMLPreElement.idl:
* html/HTMLProgressElement.idl:
* html/HTMLPropertiesCollection.idl:
* html/HTMLQuoteElement.idl:
* html/HTMLScriptElement.idl:
* html/HTMLSelectElement.idl:
* html/HTMLSourceElement.idl:
* html/HTMLSpanElement.idl:
* html/HTMLStyleElement.idl:
* html/HTMLTableCaptionElement.idl:
* html/HTMLTableCellElement.idl:
* html/HTMLTableColElement.idl:
* html/HTMLTableElement.idl:
* html/HTMLTableRowElement.idl:
* html/HTMLTableSectionElement.idl:
* html/HTMLTextAreaElement.idl:
* html/HTMLTitleElement.idl:
* html/HTMLTrackElement.idl:
* html/HTMLUListElement.idl:
* html/HTMLUnknownElement.idl:
* html/HTMLVideoElement.idl:
* html/ImageData.idl:
* html/MediaController.idl:
* html/MediaError.idl:
* html/MediaKeyError.idl:
* html/MediaKeyEvent.idl:
* html/MicroDataItemValue.idl:
* html/RadioNodeList.idl:
* html/TextMetrics.idl:
* html/TimeRanges.idl:
* html/ValidityState.idl:
* html/VoidCallback.idl:
* html/canvas/ArrayBuffer.idl:
* html/canvas/ArrayBufferView.idl:
* html/canvas/CanvasGradient.idl:
* html/canvas/CanvasPattern.idl:
* html/canvas/CanvasRenderingContext.idl:
* html/canvas/CanvasRenderingContext2D.idl:
* html/canvas/DataView.idl:
* html/canvas/EXTTextureFilterAnisotropic.idl:
* html/canvas/Float32Array.idl:
* html/canvas/Float64Array.idl:
* html/canvas/Int16Array.idl:
* html/canvas/Int32Array.idl:
* html/canvas/Int8Array.idl:
* html/canvas/OESStandardDerivatives.idl:
* html/canvas/OESTextureFloat.idl:
* html/canvas/OESVertexArrayObject.idl:
* html/canvas/Uint16Array.idl:
* html/canvas/Uint32Array.idl:
* html/canvas/Uint8Array.idl:
* html/canvas/Uint8ClampedArray.idl:
* html/canvas/WebGLActiveInfo.idl:
* html/canvas/WebGLBuffer.idl:
* html/canvas/WebGLCompressedTextureS3TC.idl:
* html/canvas/WebGLContextAttributes.idl:
* html/canvas/WebGLContextEvent.idl:
* html/canvas/WebGLDebugRendererInfo.idl:
* html/canvas/WebGLDebugShaders.idl:
* html/canvas/WebGLDepthTexture.idl:
* html/canvas/WebGLFramebuffer.idl:
* html/canvas/WebGLLoseContext.idl:
* html/canvas/WebGLProgram.idl:
* html/canvas/WebGLRenderbuffer.idl:
* html/canvas/WebGLRenderingContext.idl:
* html/canvas/WebGLShader.idl:
* html/canvas/WebGLShaderPrecisionFormat.idl:
* html/canvas/WebGLTexture.idl:
* html/canvas/WebGLUniformLocation.idl:
* html/canvas/WebGLVertexArrayObjectOES.idl:
* html/shadow/HTMLContentElement.idl:
* html/shadow/HTMLShadowElement.idl:
* html/track/TextTrack.idl:
* html/track/TextTrackCue.idl:
* html/track/TextTrackCueList.idl:
* html/track/TextTrackList.idl:
* html/track/TrackEvent.idl:
* inspector/InjectedScriptHost.idl:
* inspector/InspectorFrontendHost.idl:
* inspector/JavaScriptCallFrame.idl:
* inspector/ScriptProfile.idl:
* inspector/ScriptProfileNode.idl:
* loader/appcache/DOMApplicationCache.idl:
* page/AbstractView.idl:
* page/BarInfo.idl:
* page/Console.idl:
* page/Coordinates.idl:
* page/Crypto.idl:
* page/DOMSecurityPolicy.idl:
* page/DOMSelection.idl:
* page/DOMWindow.idl:
* page/DOMWindowPagePopup.idl:
* page/EventSource.idl:
* page/History.idl:
* page/Location.idl:
* page/MemoryInfo.idl:
* page/Navigator.idl:
* page/PagePopupController.idl:
* page/Performance.idl:
* page/PerformanceEntry.idl:
* page/PerformanceEntryList.idl:
* page/PerformanceNavigation.idl:
* page/PerformanceResourceTiming.idl:
* page/PerformanceTiming.idl:
* page/Screen.idl:
* page/SpeechInputEvent.idl:
* page/SpeechInputResult.idl:
* page/SpeechInputResultList.idl:
* page/WebKitAnimation.idl:
* page/WebKitAnimationList.idl:
* page/WebKitPoint.idl:
* page/WorkerNavigator.idl:
* plugins/DOMMimeType.idl:
* plugins/DOMMimeTypeArray.idl:
* plugins/DOMPlugin.idl:
* plugins/DOMPluginArray.idl:
* storage/Storage.idl:
* storage/StorageEvent.idl:
* svg/ElementTimeControl.idl:
* svg/SVGAElement.idl:
* svg/SVGAltGlyphDefElement.idl:
* svg/SVGAltGlyphElement.idl:
* svg/SVGAltGlyphItemElement.idl:
* svg/SVGAngle.idl:
* svg/SVGAnimateColorElement.idl:
* svg/SVGAnimateElement.idl:
* svg/SVGAnimateMotionElement.idl:
* svg/SVGAnimateTransformElement.idl:
* svg/SVGAnimatedAngle.idl:
* svg/SVGAnimatedBoolean.idl:
* svg/SVGAnimatedEnumeration.idl:
* svg/SVGAnimatedInteger.idl:
* svg/SVGAnimatedLength.idl:
* svg/SVGAnimatedLengthList.idl:
* svg/SVGAnimatedNumber.idl:
* svg/SVGAnimatedNumberList.idl:
* svg/SVGAnimatedPreserveAspectRatio.idl:
* svg/SVGAnimatedRect.idl:
* svg/SVGAnimatedString.idl:
* svg/SVGAnimatedTransformList.idl:
* svg/SVGAnimationElement.idl:
* svg/SVGCircleElement.idl:
* svg/SVGClipPathElement.idl:
* svg/SVGColor.idl:
* svg/SVGComponentTransferFunctionElement.idl:
* svg/SVGCursorElement.idl:
* svg/SVGDefsElement.idl:
* svg/SVGDescElement.idl:
* svg/SVGDocument.idl:
* svg/SVGElement.idl:
* svg/SVGElementInstance.idl:
* svg/SVGElementInstanceList.idl:
* svg/SVGEllipseElement.idl:
* svg/SVGException.idl:
* svg/SVGExternalResourcesRequired.idl:
* svg/SVGFEBlendElement.idl:
* svg/SVGFEColorMatrixElement.idl:
* svg/SVGFEComponentTransferElement.idl:
* svg/SVGFECompositeElement.idl:
* svg/SVGFEConvolveMatrixElement.idl:
* svg/SVGFEDiffuseLightingElement.idl:
* svg/SVGFEDisplacementMapElement.idl:
* svg/SVGFEDistantLightElement.idl:
* svg/SVGFEDropShadowElement.idl:
* svg/SVGFEFloodElement.idl:
* svg/SVGFEFuncAElement.idl:
* svg/SVGFEFuncBElement.idl:
* svg/SVGFEFuncGElement.idl:
* svg/SVGFEFuncRElement.idl:
* svg/SVGFEGaussianBlurElement.idl:
* svg/SVGFEImageElement.idl:
* svg/SVGFEMergeElement.idl:
* svg/SVGFEMergeNodeElement.idl:
* svg/SVGFEMorphologyElement.idl:
* svg/SVGFEOffsetElement.idl:
* svg/SVGFEPointLightElement.idl:
* svg/SVGFESpecularLightingElement.idl:
* svg/SVGFESpotLightElement.idl:
* svg/SVGFETileElement.idl:
* svg/SVGFETurbulenceElement.idl:
* svg/SVGFilterElement.idl:
* svg/SVGFilterPrimitiveStandardAttributes.idl:
* svg/SVGFitToViewBox.idl:
* svg/SVGFontElement.idl:
* svg/SVGFontFaceElement.idl:
* svg/SVGFontFaceFormatElement.idl:
* svg/SVGFontFaceNameElement.idl:
* svg/SVGFontFaceSrcElement.idl:
* svg/SVGFontFaceUriElement.idl:
* svg/SVGForeignObjectElement.idl:
* svg/SVGGElement.idl:
* svg/SVGGlyphElement.idl:
* svg/SVGGlyphRefElement.idl:
* svg/SVGGradientElement.idl:
* svg/SVGHKernElement.idl:
* svg/SVGImageElement.idl:
* svg/SVGLangSpace.idl:
* svg/SVGLength.idl:
* svg/SVGLengthList.idl:
* svg/SVGLineElement.idl:
* svg/SVGLinearGradientElement.idl:
* svg/SVGLocatable.idl:
* svg/SVGMPathElement.idl:
* svg/SVGMarkerElement.idl:
* svg/SVGMaskElement.idl:
* svg/SVGMatrix.idl:
* svg/SVGMetadataElement.idl:
* svg/SVGMissingGlyphElement.idl:
* svg/SVGNumber.idl:
* svg/SVGNumberList.idl:
* svg/SVGPaint.idl:
* svg/SVGPathElement.idl:
* svg/SVGPathSeg.idl:
* svg/SVGPathSegArcAbs.idl:
* svg/SVGPathSegArcRel.idl:
* svg/SVGPathSegClosePath.idl:
* svg/SVGPathSegCurvetoCubicAbs.idl:
* svg/SVGPathSegCurvetoCubicRel.idl:
* svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
* svg/SVGPathSegCurvetoCubicSmoothRel.idl:
* svg/SVGPathSegCurvetoQuadraticAbs.idl:
* svg/SVGPathSegCurvetoQuadraticRel.idl:
* svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
* svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
* svg/SVGPathSegLinetoAbs.idl:
* svg/SVGPathSegLinetoHorizontalAbs.idl:
* svg/SVGPathSegLinetoHorizontalRel.idl:
* svg/SVGPathSegLinetoRel.idl:
* svg/SVGPathSegLinetoVerticalAbs.idl:
* svg/SVGPathSegLinetoVerticalRel.idl:
* svg/SVGPathSegList.idl:
* svg/SVGPathSegMovetoAbs.idl:
* svg/SVGPathSegMovetoRel.idl:
* svg/SVGPatternElement.idl:
* svg/SVGPoint.idl:
* svg/SVGPointList.idl:
* svg/SVGPolygonElement.idl:
* svg/SVGPolylineElement.idl:
* svg/SVGPreserveAspectRatio.idl:
* svg/SVGRadialGradientElement.idl:
* svg/SVGRect.idl:
* svg/SVGRectElement.idl:
* svg/SVGRenderingIntent.idl:
* svg/SVGSVGElement.idl:
* svg/SVGScriptElement.idl:
* svg/SVGSetElement.idl:
* svg/SVGStopElement.idl:
* svg/SVGStringList.idl:
* svg/SVGStylable.idl:
* svg/SVGStyleElement.idl:
* svg/SVGSwitchElement.idl:
* svg/SVGSymbolElement.idl:
* svg/SVGTRefElement.idl:
* svg/SVGTSpanElement.idl:
* svg/SVGTests.idl:
* svg/SVGTextContentElement.idl:
* svg/SVGTextElement.idl:
* svg/SVGTextPathElement.idl:
* svg/SVGTextPositioningElement.idl:
* svg/SVGTitleElement.idl:
* svg/SVGTransform.idl:
* svg/SVGTransformList.idl:
* svg/SVGTransformable.idl:
* svg/SVGURIReference.idl:
* svg/SVGUnitTypes.idl:
* svg/SVGUseElement.idl:
* svg/SVGVKernElement.idl:
* svg/SVGViewElement.idl:
* svg/SVGViewSpec.idl:
* svg/SVGZoomAndPan.idl:
* svg/SVGZoomEvent.idl:
* testing/InternalSettings.idl:
* testing/Internals.idl:
* testing/MallocStatistics.idl:
* workers/AbstractWorker.idl:
* workers/DedicatedWorkerContext.idl:
* workers/SharedWorker.idl:
* workers/SharedWorkerContext.idl:
* workers/Worker.idl:
* workers/WorkerContext.idl:
* workers/WorkerLocation.idl:
* xml/DOMParser.idl:
* xml/XMLHttpRequest.idl:
* xml/XMLHttpRequestException.idl:
* xml/XMLHttpRequestProgressEvent.idl:
* xml/XMLHttpRequestUpload.idl:
* xml/XMLSerializer.idl:
* xml/XPathEvaluator.idl:
* xml/XPathException.idl:
* xml/XPathExpression.idl:
* xml/XPathNSResolver.idl:
* xml/XPathResult.idl:
* xml/XSLTProcessor.idl:
Removed "module".

Tools:

* 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:
Removed "module".

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

8 years agoAdd a WKContext call to enable the NetworkProcess.
beidson@apple.com [Fri, 12 Oct 2012 05:58:31 +0000 (05:58 +0000)]
Add a WKContext call to enable the NetworkProcess.
https://bugs.webkit.org/show_bug.cgi?id=99140

Reviewed by Sam Weinig.

Add the SPI:
* UIProcess/API/C/WKContext.cpp:
(WKContextSetUsesNetworkProcess):
* UIProcess/API/C/WKContextPrivate.h:

Add a member for the flag and the first call site that will be interested in the flag's value:
* UIProcess/WebContext.cpp:
(WebKit::WebContext::WebContext):
(WebKit::WebContext::setUsesNetworkProcess):
(WebKit):
(WebKit::WebContext::createNewWebProcess):
(WebKit::WebContext::ensureNetworkProcess):
* UIProcess/WebContext.h:
(WebContext):

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

8 years ago[BlackBerry] Paused in Inspector, Browser doesn't exit cleanly
commit-queue@webkit.org [Fri, 12 Oct 2012 05:40:04 +0000 (05:40 +0000)]
[BlackBerry] Paused in Inspector, Browser doesn't exit cleanly
https://bugs.webkit.org/show_bug.cgi?id=97962

Patch by Peter Wang <peter.wang@torchmobile.com.cn> on 2012-10-11
Reviewed by George Staikos.

Before destroying webpage, close the inspector, so if the JSC is paused it will be resumed.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPage::destroy):

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

8 years ago[Chromium] Unreviewed gardening, TestExpectation updated.
shinyak@chromium.org [Fri, 12 Oct 2012 05:09:43 +0000 (05:09 +0000)]
[Chromium] Unreviewed gardening, TestExpectation updated.

* platform/chromium/TestExpectations:

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

8 years agoFix the 32-bit Mac build after r131138.
aestes@apple.com [Fri, 12 Oct 2012 04:52:21 +0000 (04:52 +0000)]
Fix the 32-bit Mac build after r131138.

* WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
(WebKit::InjectedBundle::load):

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

8 years ago[Chromium] Unreviewed gardening, TestExpectations updated.
shinyak@chromium.org [Fri, 12 Oct 2012 04:46:55 +0000 (04:46 +0000)]
[Chromium] Unreviewed gardening, TestExpectations updated.

* platform/chromium/TestExpectations:

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

8 years agoStop using Connection::deprecatedSend in WebConnection
andersca@apple.com [Fri, 12 Oct 2012 04:41:14 +0000 (04:41 +0000)]
Stop using Connection::deprecatedSend in WebConnection
https://bugs.webkit.org/show_bug.cgi?id=99130

Reviewed by Sam Weinig.

Instead of using deprecatedSend, just encode the data using a separate ArgumentEncoder and pass it along as a DataReference.

* DerivedSources.make:
* DerivedSources.pri:
* GNUmakefile.list.am:
Add new files.

* Platform/CoreIPC/MessageID.h:
Add WebConnectionMessageClass.

* Shared/WebConnection.cpp:
(WebKit::WebConnection::WebConnection):
Make WebConnection hold on to the CoreIPC::Connection.

(WebKit::WebConnection::postMessage):
Ask the subclasses to encode the body data, then send it.

(WebKit::WebConnection::handleMessage):
Ask the subclasses to decode the body data, then call didReceiveClient.

(WebKit::WebConnection::invalidate):
Null out m_connection.

* Shared/WebConnection.h:
(WebKit::WebConnection::connection):

* Shared/WebConnection.messages.in: Added.

* UIProcess/WebConnectionToWebProcess.cpp:
(WebKit::WebConnectionToWebProcess::WebConnectionToWebProcess):
Pass the connection to the WebConnection initializer.

(WebKit::WebConnectionToWebProcess::encodeMessageBody):
(WebKit::WebConnectionToWebProcess::decodeMessageBody):
Encode and decode the message body.

(WebKit::WebConnectionToWebProcess::didReceiveMessage):
Handle WebConnection messages.

* WebKit2.xcodeproj/project.pbxproj:
Add new files.

* WebProcess/WebConnectionToUIProcess.cpp:
(WebKit::WebConnectionToUIProcess::WebConnectionToUIProcess):
Pass the connection to the WebConnection initializer.

(WebKit::WebConnectionToUIProcess::encodeMessageBody):
(WebKit::WebConnectionToUIProcess::decodeMessageBody):
Encode and decode the message body.

(WebKit::WebConnectionToUIProcess::didReceiveMessage):
Handle WebConnection messages.

* win/WebKit2.vcproj:
Add new files.

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

8 years agoExpose the main frame's document to injected bundles via the Objective-C API
aestes@apple.com [Fri, 12 Oct 2012 04:37:16 +0000 (04:37 +0000)]
Expose the main frame's document to injected bundles via the Objective-C API
https://bugs.webkit.org/show_bug.cgi?id=99133

Patch by Sam Weinig.

Reviewed by Anders Carlsson.

Allow a bundle to declare a principle class which will be instantiated
by WebKit2 and passed an object to which WKBundleClient calls are
forwarded and which can access the main frame's WKDOMDocument.

* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.h:
* WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm: Instantiate
the bundle's principle class forward WKBundleClient calls to it.
* WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.h:
* WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
Add a property called mainFrameDocument which returns a WKDOMDocument.
* WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerInternal.h:
* WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInInternal.h:
* WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
(WebKit::InjectedBundle::load): Initialize the shared
WKWebProcessPlugInController with the bundle's principle class.

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

8 years agohttps://bugs.webkit.org/show_bug.cgi?id=98700
bdakin@apple.com [Fri, 12 Oct 2012 04:23:47 +0000 (04:23 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=98700
ScrollingCoordinator is a hot mess of if-defs

Reviewed by Anders Carlsson.

This patch moves all of the threaded scrolling code in
ScrollingCoordinator into a new class called ScrollingCoordinatorMac
which inherits from ScrollingCoordinator.

It also adds ScrollingCoordinatorChromium to do Chromium-specific work.
ScrollingCoordinator itself does work that is cross-platform.

Finally, this patch also eliminates ScrollingCoordinatorNone.
ScrollingCoordinator is now sufficient for platforms that relied on
ScrollingCoordinatorNone to build.

* CMakeLists.txt:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.exp.in:
* WebCore.xcodeproj/project.pbxproj:
* page/scrolling/ScrollingCoordinator.cpp:
(WebCore::ScrollingCoordinator::create):
(WebCore):
(WebCore::ScrollingCoordinator::ScrollingCoordinator):
(WebCore::ScrollingCoordinator::~ScrollingCoordinator):
(WebCore::ScrollingCoordinator::pageDestroyed):
(WebCore::ScrollingCoordinator::computeNonFastScrollableRegion):
(WebCore::ScrollingCoordinator::computeCurrentWheelEventHandlerCount):
(WebCore::ScrollingCoordinator::scrollLayerForFrameView):
(WebCore::ScrollingCoordinator::frameViewRootLayerDidChange):
* page/scrolling/ScrollingCoordinator.h:
(WebCore):
(ScrollingCoordinator):
(WebCore::ScrollingCoordinator::scrollingTree):
(WebCore::ScrollingCoordinator::commitTreeStateIfNeeded):
(WebCore::ScrollingCoordinator::frameViewLayoutUpdated):
(WebCore::ScrollingCoordinator::supportsFixedPositionLayers):
(WebCore::ScrollingCoordinator::requestScrollPositionUpdate):
(WebCore::ScrollingCoordinator::handleWheelEvent):
(WebCore::ScrollingCoordinator::updateMainFrameScrollPositionAndScrollLayerPosition):
(WebCore::ScrollingCoordinator::attachToStateTree):
(WebCore::ScrollingCoordinator::detachFromStateTree):
(WebCore::ScrollingCoordinator::clearStateTree):
(WebCore::ScrollingCoordinator::frameViewHorizontalScrollbarLayerDidChange):
(WebCore::ScrollingCoordinator::frameViewVerticalScrollbarLayerDidChange):
(WebCore::ScrollingCoordinator::scrollableAreaScrollLayerDidChange):
(WebCore::ScrollingCoordinator::setLayerIsContainerForFixedPositionLayers):
(WebCore::ScrollingCoordinator::setLayerIsFixedToContainerLayer):
(WebCore::ScrollingCoordinator::recomputeWheelEventHandlerCountForFrameView):
(WebCore::ScrollingCoordinator::setShouldUpdateScrollLayerPositionOnMainThread):
* page/scrolling/ScrollingCoordinatorNone.cpp: Removed.
* page/scrolling/chromium/ScrollingCoordinatorChromium.cpp:
(WebCore::ScrollingCoordinatorChromium::ScrollingCoordinatorChromium):
(WebCore::ScrollingCoordinatorChromium::~ScrollingCoordinatorChromium):
(WebCore::ScrollingCoordinatorChromium::frameViewLayoutUpdated):
(WebCore):
(WebCore::ScrollingCoordinatorChromium::frameViewRootLayerDidChange):
(WebCore::ScrollingCoordinatorChromium::frameViewHorizontalScrollbarLayerDidChange):
(WebCore::ScrollingCoordinatorChromium::frameViewVerticalScrollbarLayerDidChange):
(WebCore::ScrollingCoordinatorChromium::setScrollLayer):
(WebCore::ScrollingCoordinatorChromium::setNonFastScrollableRegion):
(WebCore::ScrollingCoordinatorChromium::setWheelEventHandlerCount):
(WebCore::ScrollingCoordinatorChromium::setShouldUpdateScrollLayerPositionOnMainThread):
(WebCore::ScrollingCoordinatorChromium::setLayerIsContainerForFixedPositionLayers):
(WebCore::ScrollingCoordinatorChromium::setLayerIsFixedToContainerLayer):
(WebCore::ScrollingCoordinatorChromium::scrollableAreaScrollLayerDidChange):
(WebCore::ScrollingCoordinatorChromium::recomputeWheelEventHandlerCountForFrameView):
* page/scrolling/chromium/ScrollingCoordinatorChromium.h: Added.
(WebCore):
(ScrollingCoordinatorChromium):
(WebCore::ScrollingCoordinatorChromium::supportsFixedPositionLayers):
* page/scrolling/mac/ScrollingCoordinatorMac.h: Added.
(WebCore):
(ScrollingCoordinatorMac):
(ScrollParameters):
* page/scrolling/mac/ScrollingCoordinatorMac.mm:
(WebCore::ScrollingCoordinatorMac::ScrollingCoordinatorMac):
(WebCore::ScrollingCoordinatorMac::~ScrollingCoordinatorMac):
(WebCore::ScrollingCoordinatorMac::pageDestroyed):
(WebCore):
(WebCore::ScrollingCoordinatorMac::scrollingTree):
(WebCore::ScrollingCoordinatorMac::commitTreeStateIfNeeded):
(WebCore::ScrollingCoordinatorMac::frameViewLayoutUpdated):
(WebCore::ScrollingCoordinatorMac::recomputeWheelEventHandlerCountForFrameView):
(WebCore::ScrollingCoordinatorMac::frameViewRootLayerDidChange):
(WebCore::ScrollingCoordinatorMac::frameViewHorizontalScrollbarLayerDidChange):
(WebCore::ScrollingCoordinatorMac::frameViewVerticalScrollbarLayerDidChange):
(WebCore::ScrollingCoordinatorMac::requestScrollPositionUpdate):
(WebCore::ScrollingCoordinatorMac::handleWheelEvent):
(WebCore::ScrollingCoordinatorMac::updateMainFrameScrollPositionAndScrollLayerPosition):
(WebCore::ScrollingCoordinatorMac::attachToStateTree):
(WebCore::ScrollingCoordinatorMac::detachFromStateTree):
(WebCore::ScrollingCoordinatorMac::clearStateTree):
(WebCore::ScrollingCoordinatorMac::stateNodeForID):
(WebCore::ScrollingCoordinatorMac::ensureRootStateNodeForFrameView):
(WebCore::ScrollingCoordinatorMac::setScrollLayerForNode):
(WebCore::ScrollingCoordinatorMac::setNonFastScrollableRegionForNode):
(WebCore::ScrollingCoordinatorMac::setScrollParametersForNode):
(WebCore::ScrollingCoordinatorMac::setWheelEventHandlerCountForNode):
(WebCore::ScrollingCoordinatorMac::setShouldUpdateScrollLayerPositionOnMainThread):
(WebCore::ScrollingCoordinatorMac::updateMainFrameScrollLayerPosition):
(WebCore::ScrollingCoordinatorMac::scheduleTreeStateCommit):
(WebCore::ScrollingCoordinatorMac::scrollingStateTreeCommitterTimerFired):
(WebCore::ScrollingCoordinatorMac::commitTreeState):

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

8 years ago[Shadow DOM] Insertion points need resetStyleInheritance
commit-queue@webkit.org [Fri, 12 Oct 2012 03:51:37 +0000 (03:51 +0000)]
[Shadow DOM] Insertion points need resetStyleInheritance
https://bugs.webkit.org/show_bug.cgi?id=93922

Patch by Takashi Sakamoto <tasak@google.com> on 2012-10-11
Reviewed by Dimitri Glazkov.

Source/WebCore:

Implemented resetStyleInheritance of insertion points.
Its spec link is http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#api-html-content-element-reset-style-inheritance

Test: fast/dom/shadow/insertion-point-resetStyleInheritance.html

* css/StyleResolver.cpp:
(WebCore::isResetStyleInheritance):
Added a new function to check whether there exists any insertion
point which has reset-style-inhertiance flag set to be true.
(WebCore::StyleResolver::initForStyleResolve):
Modified to use the above function to check reset-style-inheritance.
* html/shadow/HTMLContentElement.idl:
* html/shadow/HTMLShadowElement.idl:
Added a new attribute for reset-style-inheritance.
* html/shadow/InsertionPoint.cpp:
(WebCore::InsertionPoint::InsertionPoint):
Initialized a new member variable for reset-style-inheritance.
(WebCore::InsertionPoint::resetStyleInheritance):
(WebCore::InsertionPoint::setResetStyleInheritance):
Implemented setter/getter for reset-style-inheritance.
* html/shadow/InsertionPoint.h:
(InsertionPoint):
Added a new member variable for reset-style-inheritance.

LayoutTests:

* fast/dom/shadow/insertion-point-resetStyleInheritance-expected.txt: Added.
* fast/dom/shadow/insertion-point-resetStyleInheritance.html: Added.

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

8 years agoAttempt to fix build broken by r131125.
andersca@apple.com [Fri, 12 Oct 2012 03:49:15 +0000 (03:49 +0000)]
Attempt to fix build broken by r131125.

* page/PageSerializer.cpp:
(WebCore::PageSerializer::addImageToResources):
KURL::utf8String() is apparently a USE(GOOGLEURL) feature. Call url.string().utf8() instead.

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

8 years ago[Chromium] Use harfbuzz-ng by default on Linux
bashi@chromium.org [Fri, 12 Oct 2012 03:36:30 +0000 (03:36 +0000)]
[Chromium] Use harfbuzz-ng by default on Linux
https://bugs.webkit.org/show_bug.cgi?id=97281

Reviewed by Tony Chang.

Source/WebCore:

Switch old harfbuzz to harfbuzz-ng on chromium linux port.

No new tests. Existing tests should cover this switch.
Test expectations will be updated.

* WebCore.gyp/WebCore.gyp:

Source/WebKit/chromium:

* features.gypi: Enable WTF_USE_HARFBUZZ_NG when use_x11 == 1.

LayoutTests:

* platform/chromium/TestExpectations: Added temporary expectations.

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

8 years ago[Chromium] Unreviewed gardening, rebaselined.
shinyak@chromium.org [Fri, 12 Oct 2012 03:30:35 +0000 (03:30 +0000)]
[Chromium] Unreviewed gardening, rebaselined.

* platform/chromium-linux/platform/chromium/compositing/tiny-layer-rotated-expected.png:
* platform/chromium-mac/platform/chromium/compositing/tiny-layer-rotated-expected.png:
* platform/chromium-win/platform/chromium/compositing/tiny-layer-rotated-expected.png:

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

8 years agoBlockAllocator should use regions as its VM allocation abstraction
mhahnenberg@apple.com [Fri, 12 Oct 2012 03:10:30 +0000 (03:10 +0000)]
BlockAllocator should use regions as its VM allocation abstraction
https://bugs.webkit.org/show_bug.cgi?id=99107

Reviewed by Geoffrey Garen.

Currently the BlockAllocator allocates a single block at a time directly from the OS. Our block
allocations are on the large-ish side (64 KB) to amortize across many allocations the expense of
mapping new virtual memory from the OS. These large blocks are then shared between the MarkedSpace
and the CopiedSpace. This design makes it difficult to vary the size of the blocks in different
parts of the Heap while still allowing us to amortize the VM allocation costs.

We should redesign the BlockAllocator so that it has a layer of indirection between blocks that are
used by the allocator/collector and our primary unit of VM allocation from the OS. In particular,
the BlockAllocator should allocate Regions of virtual memory from the OS, which are then subdivided
into one or more Blocks to be used in our custom allocators. This design has the following nice properties:

1) We can remove the knowledge of PageAllocationAligned from HeapBlocks. Each HeapBlock will now
   only know what Region it belongs to. The Region maintains all the metadata for how to allocate
   and deallocate virtual memory from the OS.

2) We can easily allocate in larger chunks than we need to satisfy a particular request for a Block.
   We can then continue to amortize our VM allocation costs while allowing for smaller block sizes,
   which should increase locality in the mutator when allocating, lazy sweeping, etc.

3) By encapsulating the logic of where our memory comes from inside of the Region class, we can more
   easily transition over to allocating VM from a specific range of pre-reserved address space. This
   will be a necessary step along the way to 32-bit pointers.

This particular patch will not change the size of MarkedBlocks or CopiedBlocks, nor will it change how
much VM we allocate per failed Block request. It only sets up the data structures that we need to make
these changes in future patches.

Most of the changes in this patch relate to the addition of the Region class to be used by the
BlockAllocator and the threading of changes made to BlockAllocator's interface through to the call sites.

* heap/BlockAllocator.cpp: The BlockAllocator now has three lists that track the three disjoint sets of
Regions that it cares about: empty regions, partially full regions, and completely full regions.
Empty regions have no blocks currently in use and can be freed immediately if the freeing thread
determines they should be. Partial regions have some blocks used, but aren't completely in use yet.
These regions are preferred for recycling before empty regions to mitigate fragmentation within regions.
Completely full regions are no longer able to be used for allocations. Regions move between these
three lists as they are created and their constituent blocks are allocated and deallocated.
(JSC::BlockAllocator::BlockAllocator):
(JSC::BlockAllocator::~BlockAllocator):
(JSC::BlockAllocator::releaseFreeRegions):
(JSC::BlockAllocator::waitForRelativeTimeWhileHoldingLock):
(JSC::BlockAllocator::waitForRelativeTime):
(JSC::BlockAllocator::blockFreeingThreadMain):
* heap/BlockAllocator.h:
(JSC):
(DeadBlock):
(JSC::DeadBlock::DeadBlock):
(Region):
(JSC::Region::blockSize):
(JSC::Region::isFull):
(JSC::Region::isEmpty):
(JSC::Region::create): This function is responsible for doing the actual VM allocation. This should be the
only function in the entire JSC object runtime that calls out the OS for virtual memory allocation.
(JSC::Region::Region):
(JSC::Region::~Region):
(JSC::Region::allocate):
(JSC::Region::deallocate):
(BlockAllocator):
(JSC::BlockAllocator::tryAllocateFromRegion): Helper function that encapsulates checking a particular list
of regions for a free block.
(JSC::BlockAllocator::allocate):
(JSC::BlockAllocator::allocateCustomSize): This function is responsible for allocating one-off custom size
regions for use in oversize allocations in both the MarkedSpace and the CopiedSpace. These regions are not
tracked by the BlockAllocator. The only pointer to them is in the HeapBlock that is returned. These regions
contain exactly one block.
(JSC::BlockAllocator::deallocate):
(JSC::BlockAllocator::deallocateCustomSize): This function is responsible for deallocating one-off custom size
regions. The regions are deallocated back to the OS eagerly.
* heap/CopiedBlock.h: Re-worked CopiedBlocks to use Regions instead of PageAllocationAligned.
(CopiedBlock):
(JSC::CopiedBlock::createNoZeroFill):
(JSC::CopiedBlock::create):
(JSC::CopiedBlock::CopiedBlock):
(JSC::CopiedBlock::payloadEnd):
(JSC::CopiedBlock::capacity):
* heap/CopiedSpace.cpp:
(JSC::CopiedSpace::~CopiedSpace):
(JSC::CopiedSpace::tryAllocateOversize):
(JSC::CopiedSpace::tryReallocateOversize):
(JSC::CopiedSpace::doneCopying):
* heap/CopiedSpaceInlineMethods.h:
(JSC::CopiedSpace::allocateBlockForCopyingPhase):
(JSC::CopiedSpace::allocateBlock):
* heap/HeapBlock.h:
(JSC::HeapBlock::destroy):
(JSC::HeapBlock::HeapBlock):
(JSC::HeapBlock::region):
(HeapBlock):
* heap/MarkedAllocator.cpp:
(JSC::MarkedAllocator::allocateBlock):
* heap/MarkedBlock.cpp:
(JSC::MarkedBlock::create):
(JSC::MarkedBlock::MarkedBlock):
* heap/MarkedBlock.h:
(JSC::MarkedBlock::capacity):
* heap/MarkedSpace.cpp:
(JSC::MarkedSpace::freeBlock):

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

8 years agoExpose high-resolution on requestAnimationFrame callback
nduca@chromium.org [Fri, 12 Oct 2012 02:45:10 +0000 (02:45 +0000)]
Expose high-resolution on requestAnimationFrame callback
https://bugs.webkit.org/show_bug.cgi?id=66683

This changes requestAnimationFrame's animationStartTime argument
to be a high resolution DOM timestamp, per disucssion here:
http://lists.w3.org/Archives/Public/public-web-perf/2012Apr/0004.html

Reviewed by James Robinson.

Source/WebCore:

Covered by existing requestAnimationFrame tests.

* dom/Document.cpp:
(WebCore::Document::serviceScriptedAnimations):
* dom/Document.h:
(Document):
* dom/ScriptedAnimationController.cpp:
(WebCore::ScriptedAnimationController::ScriptedAnimationController):
(WebCore::ScriptedAnimationController::serviceScriptedAnimations):
(WebCore):
(WebCore::ScriptedAnimationController::windowScreenDidChange):
(WebCore::ScriptedAnimationController::scheduleAnimation):
(WebCore::ScriptedAnimationController::animationTimerFired):
(WebCore::ScriptedAnimationController::displayRefreshFired):
* dom/ScriptedAnimationController.h:
(ScriptedAnimationController):
* page/FrameView.cpp:
(WebCore::FrameView::serviceScriptedAnimations):
* page/FrameView.h:
(FrameView):
* platform/graphics/DisplayRefreshMonitor.cpp:
(WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor):
(WebCore::DisplayRefreshMonitor::notifyClients):
* platform/graphics/DisplayRefreshMonitor.h:
(DisplayRefreshMonitor):
* platform/graphics/blackberry/DisplayRefreshMonitorBlackBerry.cpp:
(WebCore::DisplayRefreshMonitor::displayLinkFired):
* platform/graphics/mac/DisplayRefreshMonitorMac.cpp:
(WebCore):
(WebCore::DisplayRefreshMonitor::requestRefreshCallback):
(WebCore::DisplayRefreshMonitor::displayLinkFired):

Source/WebKit/chromium:

* src/PageWidgetDelegate.cpp:
(WebKit::PageWidgetDelegate::animate):
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::updateAnimations):

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

8 years ago[Chromium] Unreviewed gardening, rebaselined.
shinyak@chromium.org [Fri, 12 Oct 2012 02:40:42 +0000 (02:40 +0000)]
[Chromium] Unreviewed gardening, rebaselined.

* platform/chromium-mac-snowleopard/svg/custom/foreign-object-skew-expected.png:

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

8 years agoAdd a helper function for initializing WebKit2 DOM objects
weinig@apple.com [Fri, 12 Oct 2012 02:38:56 +0000 (02:38 +0000)]
Add a helper function for initializing WebKit2 DOM objects
https://bugs.webkit.org/show_bug.cgi?id=99128

Reviewed by Anders Carlsson.

* WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm:
(WebKit::WKDOMNodeClass):
(WebKit::initWithImpl):
(WebKit::toWKDOMNode):
(WebKit::toWKDOMRange):
(WebKit::toWKDOMType):
Add toWKDOMType which implements the core object initialization and caching.

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

8 years agoUnreviewed, rolling out r131100.
commit-queue@webkit.org [Fri, 12 Oct 2012 02:29:22 +0000 (02:29 +0000)]
Unreviewed, rolling out r131100.
http://trac.webkit.org/changeset/131100
https://bugs.webkit.org/show_bug.cgi?id=99127

Caused an ASSERT (Requested by abarth|gardening on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-10-11

Source/WebCore:

* platform/graphics/filters/CustomFilterValidatedProgram.cpp:
(WebCore::CustomFilterValidatedProgram::compositeFunctionString):

LayoutTests:

* css3/filters/custom/custom-filter-composite-operators-expected.png: Removed.
* css3/filters/custom/custom-filter-composite-operators-expected.txt: Removed.
* css3/filters/custom/custom-filter-composite-operators.html: Removed.

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

8 years agoAdd baselines for the rest of the platforms after
abarth@webkit.org [Fri, 12 Oct 2012 02:22:04 +0000 (02:22 +0000)]
Add baselines for the rest of the platforms after
http://trac.webkit.org/changeset/131111

* platform/chromium-linux/fast/sub-pixel/sub-pixel-iframe-copy-on-scroll-expected.txt: Removed.
* platform/chromium-mac-snowleopard/fast/sub-pixel/sub-pixel-iframe-copy-on-scroll-expected.png: Added.
* platform/chromium-mac/fast/sub-pixel/sub-pixel-iframe-copy-on-scroll-expected.png: Added.
* platform/chromium-mac/fast/sub-pixel/sub-pixel-iframe-copy-on-scroll-expected.txt: Added.
* platform/chromium-win/fast/sub-pixel/sub-pixel-iframe-copy-on-scroll-expected.png: Added.
* platform/chromium-win/fast/sub-pixel/sub-pixel-iframe-copy-on-scroll-expected.txt: Added.

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

8 years ago[Chromium] Improve vertical text rendering of HarfBuzzShaper (Re-land)
bashi@chromium.org [Fri, 12 Oct 2012 02:16:28 +0000 (02:16 +0000)]
[Chromium] Improve vertical text rendering of HarfBuzzShaper (Re-land)
https://bugs.webkit.org/show_bug.cgi?id=98979

Reviewed by Tony Chang.

- Specify 'vert' and 'vrt2' features when we render vertical text.
- Set appropriate script so that harfbuzz-ng can use the features.

No new tests. fast/text/international/text-spliced-font.html should cover this change.
This change will affect after switching to harfbuzz-ng.

* platform/graphics/harfbuzz/ng/HarfBuzzNGFace.cpp:
(WebCore::HarfBuzzNGFace::HarfBuzzNGFace):
(WebCore::findScriptForVerticalGlyphSubstitution): Added.
(WebCore):
(WebCore::HarfBuzzNGFace::setScriptForVerticalGlyphSubstitution): Added.
* platform/graphics/harfbuzz/ng/HarfBuzzNGFace.h:
(HarfBuzzNGFace): Added m_scriptForVerticalText.
* platform/graphics/harfbuzz/ng/HarfBuzzShaper.cpp:
(WebCore::HarfBuzzShaper::setFontFeatures):
Set 'vert' and 'vrt2' features when orientation() == Vertical.
(WebCore::HarfBuzzShaper::shapeHarfBuzzRuns):
Call setScriptForVerticalGlyphSubstitution() when orientation() == Vertical.

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

8 years agoSource/WebCore: Fix for a crasher when generating MHTML for a page containing SVG...
jcivelli@chromium.org [Fri, 12 Oct 2012 02:14:01 +0000 (02:14 +0000)]
Source/WebCore: Fix for a crasher when generating MHTML for a page containing SVG images.
https://bugs.webkit.org/show_bug.cgi?id=99105

Reviewed by Adam Barth.

* page/PageSerializer.cpp:
(WebCore::PageSerializer::serializeCSSStyleSheet):
(WebCore::PageSerializer::addImageToResources):

Source/WebKit/chromium: Test for a fix for a crasher when generating MHTML for a page containing SVG images.
https://bugs.webkit.org/show_bug.cgi?id=99105

Reviewed by Adam Barth.

* page/PageSerializer.cpp:
(WebCore::PageSerializer::serializeCSSStyleSheet):
(WebCore::PageSerializer::addImageToResources):

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

8 years agoUnreviewed, rolling out r131107.
commit-queue@webkit.org [Fri, 12 Oct 2012 02:12:33 +0000 (02:12 +0000)]
Unreviewed, rolling out r131107.
http://trac.webkit.org/changeset/131107
https://bugs.webkit.org/show_bug.cgi?id=99126

Causes an ASSERT (Requested by abarth|gardening on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-10-11

Source/WebCore:

* accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::labelForElement):
* dom/DocumentOrderedMap.cpp:
* dom/DocumentOrderedMap.h:
(DocumentOrderedMap):
* dom/Element.cpp:
(WebCore::Element::insertedInto):
(WebCore::Element::removedFrom):
(WebCore):
(WebCore::Element::willModifyAttribute):
* dom/Element.h:
(Element):
* dom/TreeScope.cpp:
(WebCore::TreeScope::TreeScope):
* dom/TreeScope.h:
(WebCore):
(TreeScope):

Tools:

* DumpRenderTree/chromium/TestRunner/AccessibilityControllerChromium.cpp:
(AccessibilityController::getAccessibleElementById):
* DumpRenderTree/chromium/TestRunner/AccessibilityUIElementChromium.cpp:
(AccessibilityUIElement::titleUIElementCallback):

LayoutTests:

* accessibility/secure-textfield-title-ui.html:
* accessibility/title-ui-element-correctness-expected.txt: Removed.
* accessibility/title-ui-element-correctness.html: Removed.
* perf/accessibility-title-ui-element-expected.txt: Removed.
* perf/accessibility-title-ui-element.html: Removed.
* platform/chromium/TestExpectations:

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

8 years ago[EFL][WK2] Add support for Inspector
commit-queue@webkit.org [Fri, 12 Oct 2012 02:09:27 +0000 (02:09 +0000)]
[EFL][WK2] Add support for Inspector
https://bugs.webkit.org/show_bug.cgi?id=98639

Patch by Seokju Kwon <seokju.kwon@samsung.com> on 2012-10-11
Reviewed by Kenneth Rohde Christiansen.

Source/WebKit2:

Support inspector on WebKit2/Efl and add APIs to show and close the inspector.

* UIProcess/API/efl/ewk_view.cpp:
(ewk_view_inspector_show):
(ewk_view_inspector_close):
* UIProcess/API/efl/ewk_view.h:
* UIProcess/API/efl/tests/test_ewk2_view.cpp:
(TEST_F):
* UIProcess/WebInspectorProxy.h:
(WebInspectorProxy):
* UIProcess/efl/WebInspectorProxyEfl.cpp:
(WebKit::resizeInspectorWindow):
(WebKit):
(WebKit::destroyInspectorWindow):
(WebKit::closeInspectorWindow):
(WebKit::WebInspectorProxy::createInspectorWindow):
(WebKit::WebInspectorProxy::platformCreateInspectorPage):
(WebKit::WebInspectorProxy::platformOpen):

Tools:

Enable developer extensions when browser is created.
And Inspector can be opened by pressing Ctrl+i on browser.

* MiniBrowser/efl/main.c:
(on_key_down):
(window_create):

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

8 years ago[CMAKE] Add HIDDEN_PAGE_DOM_TIMER_THROTTLING feature
commit-queue@webkit.org [Fri, 12 Oct 2012 02:06:31 +0000 (02:06 +0000)]
[CMAKE] Add HIDDEN_PAGE_DOM_TIMER_THROTTLING feature
https://bugs.webkit.org/show_bug.cgi?id=99030

Patch by Jinwoo Song <jinwoo7.song@samsung.com> on 2012-10-11
Reviewed by Laszlo Gombos.

Add HIDDEN_PAGE_DOM_TIMER_THROTTLING feature which throttles DOM timers
on hidden pages to WebKitFeatures.cmake and cmakeconfig.h.cmake.

* Source/cmake/WebKitFeatures.cmake:
* Source/cmakeconfig.h.cmake:

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

8 years agoStop using deprecatedSend and deprecatedSendSync for sending messages to the UI process
andersca@apple.com [Fri, 12 Oct 2012 01:55:53 +0000 (01:55 +0000)]
Stop using deprecatedSend and deprecatedSendSync for sending messages to the UI process
https://bugs.webkit.org/show_bug.cgi?id=99125

Reviewed by Andreas Kling.

Instead of using deprecatedSend, just encode the data using a separate ArgumentEncoder and pass it along as a DataReference.

* UIProcess/WebContext.h:
* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::postMessage):
(WebKit):
(WebKit::WebProcessProxy::postSynchronousMessage):
* UIProcess/WebProcessProxy.h:
(WebProcessProxy):
* UIProcess/WebProcessProxy.messages.in:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::postMessage):
(WebKit::InjectedBundle::postSynchronousMessage):

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

8 years agoLocalCurrentGraphicsContext will never restore the current context to null
timothy_horton@apple.com [Fri, 12 Oct 2012 01:29:35 +0000 (01:29 +0000)]
LocalCurrentGraphicsContext will never restore the current context to null
https://bugs.webkit.org/show_bug.cgi?id=99122

Reviewed by Simon Fraser.

LocalCurrentGraphicsContext is meant to cause temporary changes to
NSGraphicsContext's currentContext. However, if it is entered when
currentContext is null, it will not restore to null, as a null
m_savedNSGraphicsContext was being used to indicate that the current and
passed-in graphics contexts were equal (and thus no save/restore was required).

Add a separate flag for whether or not we need to restore the context.

Also flip the order of calls to restore graphics context state so that
exiting LocalCurrentGraphicsContext does things in exactly the opposite
of entry.

* platform/mac/LocalCurrentGraphicsContext.h:
(LocalCurrentGraphicsContext):
* platform/mac/LocalCurrentGraphicsContext.mm:
(WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext):
(WebCore::LocalCurrentGraphicsContext::~LocalCurrentGraphicsContext):

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

8 years ago[EFL] Remove "web" word in web inspector
gyuyoung.kim@samsung.com [Fri, 12 Oct 2012 01:19:28 +0000 (01:19 +0000)]
[EFL] Remove "web" word in web inspector
https://bugs.webkit.org/show_bug.cgi?id=98724

Reviewed by Laszlo Gombos.

*web* word is redundant in web inspector. Beside r130494 and r130479 removed *web* from EFL WK2.

Source/WebKit/efl:

* WebCoreSupport/InspectorClientEfl.cpp:
(WebCore::notifyInspectorDestroy):
(WebCore::InspectorClientEfl::openInspectorFrontend):
(WebCore::InspectorFrontendClientEfl::InspectorFrontendClientEfl):
(WebCore::InspectorFrontendClientEfl::~InspectorFrontendClientEfl):
* ewk/ewk_view.cpp:
(ewk_view_inspector_show):
(ewk_view_inspector_close):
(ewk_view_inspector_view_get):
(ewk_view_inspector_view_set):
* ewk/ewk_view.h:

Tools:

* DumpRenderTree/efl/DumpRenderTreeChrome.cpp:
(DumpRenderTreeChrome::createInspectorView):
(DumpRenderTreeChrome::removeInspectorView):
(DumpRenderTreeChrome::waitInspectorLoadFinished):
(DumpRenderTreeChrome::onInspectorViewCreate):
(DumpRenderTreeChrome::onInspectorViewClose):
(DumpRenderTreeChrome::onInspectorFrameLoadFinished):
* DumpRenderTree/efl/DumpRenderTreeChrome.h:
(DumpRenderTreeChrome):
* DumpRenderTree/efl/TestRunnerEfl.cpp:
(TestRunner::showWebInspector):
(TestRunner::closeWebInspector):
* EWebLauncher/main.c:
(on_inspector_ecore_evas_resize):
(on_key_down):
(on_inspector_view_create):
(on_inspector_view_close):
(on_inspector_view_destroyed):
(browserCreate):
(webInspectorCreate):
(closeWindow):
(main_signal_exit):

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

8 years agoUnreviewed, rolling out r131109.
commit-queue@webkit.org [Fri, 12 Oct 2012 01:17:12 +0000 (01:17 +0000)]
Unreviewed, rolling out r131109.
http://trac.webkit.org/changeset/131109
https://bugs.webkit.org/show_bug.cgi?id=99124

Does not compile on chromium-mac (Requested by
abarth|gardening on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-10-11

* platform/graphics/harfbuzz/ng/HarfBuzzNGFace.cpp:
(WebCore::HarfBuzzNGFace::HarfBuzzNGFace):
* platform/graphics/harfbuzz/ng/HarfBuzzNGFace.h:
(HarfBuzzNGFace):
* platform/graphics/harfbuzz/ng/HarfBuzzShaper.cpp:
(WebCore::HarfBuzzShaper::setFontFeatures):
(WebCore::HarfBuzzShaper::shapeHarfBuzzRuns):

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

8 years agoStop using deprecatedSend for WebContext::postMessageToInjectedBundle
andersca@apple.com [Fri, 12 Oct 2012 00:56:10 +0000 (00:56 +0000)]
Stop using deprecatedSend for WebContext::postMessageToInjectedBundle
https://bugs.webkit.org/show_bug.cgi?id=99123

Reviewed by Andreas Kling.

Instead of using deprecatedSend, just encode the data using a separate ArgumentEncoder and pass it along as a DataReference.

* Platform/CoreIPC/MessageID.h:
Remove MessageClassInjectedBundle.

* Shared/CoreIPCSupport/InjectedBundleMessageKinds.h: Removed.
* UIProcess/WebContext.cpp:
(WebKit::WebContext::createNewWebProcess):
Stop using deprecatedSend.

(WebKit::WebContext::postMessageToInjectedBundle):
Stop using deprecatedSend. Remove now invalid FIXMEs.

* UIProcess/WebPageProxy.cpp:
Remove include.

* WebKit2.xcodeproj/project.pbxproj:
Remove InjectedBundleMessageKinds.h.

* WebProcess/InjectedBundle/InjectedBundle.cpp:
* WebProcess/InjectedBundle/InjectedBundle.h:
The injected bundle is no longer in charge of receiving IPC messages.

* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::didReceiveMessage):
Stop passing messages to the injected bundle.

(WebKit::WebProcess::postInjectedBundleMessage):
Decode the message and pass it to the injected bundle.

* WebProcess/WebProcess.messages.in:
Add PostInjectedBundleMessage.

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

8 years ago[Mac] Temporarily mark fast/canvas/webgl/arraybuffer-transfer-of-control.html as...
jpfau@apple.com [Fri, 12 Oct 2012 00:53:12 +0000 (00:53 +0000)]
[Mac] Temporarily mark fast/canvas/webgl/arraybuffer-transfer-of-control.html as failing
https://bugs.webkit.org/show_bug.cgi?id=99096

* platform/mac/TestExpectations:

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

8 years agoVersioning.
lforschler@apple.com [Fri, 12 Oct 2012 00:53:05 +0000 (00:53 +0000)]
Versioning.

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

8 years agoStop using deprecatedSend for WebPageProxy::postMessageToInjectedBundle
andersca@apple.com [Fri, 12 Oct 2012 00:34:09 +0000 (00:34 +0000)]
Stop using deprecatedSend for WebPageProxy::postMessageToInjectedBundle
https://bugs.webkit.org/show_bug.cgi?id=99120

Reviewed by Andreas Kling.

Instead of using deprecatedSend, just encode the data using a separate ArgumentEncoder and pass it along as a DataReference.

* Shared/CoreIPCSupport/InjectedBundleMessageKinds.h:
Remove PostMessageToPage.

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::postMessageToInjectedBundle):
Stop using deprecatedSend.

* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::didReceiveMessage):
Remove code to handle PostMessageToPage.

* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::postInjectedBundleMessage):
Decode the APIObject and send it along to the injected bundle.

* WebProcess/WebPage/WebPage.messages.in:
Add PostInjectedBundleMessage message.

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

8 years agohttps://bugs.webkit.org/show_bug.cgi?id=99111
bdakin@apple.com [Thu, 11 Oct 2012 23:48:53 +0000 (23:48 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=99111
ScrollingStateNode should keep its Vector of children in an OwnPtr

Reviewed by Ada Chan.

Vector<OwnPtr<ScrollingStateNode> >* m_children; is now:
 OwnPtr<Vector<OwnPtr<ScrollingStateNode> > > m_children;
* page/scrolling/ScrollingStateNode.cpp:
(WebCore::ScrollingStateNode::ScrollingStateNode):
(WebCore::ScrollingStateNode::~ScrollingStateNode):
(WebCore::ScrollingStateNode::appendChild):
* page/scrolling/ScrollingStateNode.h:
(ScrollingStateNode):

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

8 years ago[Sub pixel layout] Fast-path iframe scrolling can picks up an extra pixel
leviw@chromium.org [Thu, 11 Oct 2012 23:47:28 +0000 (23:47 +0000)]
[Sub pixel layout] Fast-path iframe scrolling can picks up an extra pixel
https://bugs.webkit.org/show_bug.cgi?id=98571

Reviewed by Emil A Eklund.

Source/WebCore:

Refactoring all coordinate-switching functionality to use a single "mode" flag
as opposed to having a bunch of boolean values. This enables the same set of
options across the board, and a consistent interface. This was previously
done for mapLocalToContainer.

The imptetus for this for this stems from the one logical change in this patch
which only effects sub-pixel layout. FrameView::convertToRenderer and
convertFromRenderer return IntPoint coordinates, and need to also snap transform
offsets to determine proper rects for scrolling.

Unlabeled functions below are simply being updated to these new interfaces.

Test: fast/sub-pixel/sub-pixel-iframe-copy-on-scroll.html

* WebCore.exp.in:
* dom/ContainerNode.cpp:
(WebCore::ContainerNode::getUpperLeftCorner):
(WebCore::ContainerNode::getLowerRightCorner):
* dom/Element.cpp:
(WebCore::Element::boundsInRootViewSpace):
* dom/MouseRelatedEvent.cpp:
(WebCore::MouseRelatedEvent::computeRelativePosition):
* dom/Node.cpp:
(WebCore::Node::convertToPage):
(WebCore::Node::convertFromPage):
* html/HTMLSelectElement.cpp:
(WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
* html/shadow/SliderThumbElement.cpp:
(WebCore::SliderThumbElement::setPositionFromPoint):
* html/shadow/SpinButtonElement.cpp:
(WebCore::SpinButtonElement::defaultEventHandler):
* page/FrameView.cpp:
(WebCore::FrameView::convertToRenderer): Now pixel-snaps offsets before passing
them to TransformState, which transforms the coordinates.
(WebCore::FrameView::convertFromRenderer): Ditto.
* rendering/LayoutState.cpp:
(WebCore::LayoutState::LayoutState):
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::absoluteQuads):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::absoluteQuads):
(WebCore::RenderBox::mapLocalToContainer):
(WebCore::RenderBox::mapAbsoluteToLocalPoint):
* rendering/RenderBox.h:
(RenderBox):
* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::mapAbsoluteToLocalPoint):
* rendering/RenderBoxModelObject.h:
(RenderBoxModelObject):
* rendering/RenderEmbeddedObject.cpp:
(WebCore::RenderEmbeddedObject::isInUnavailablePluginIndicator):
* rendering/RenderFrameSet.cpp:
(WebCore::RenderFrameSet::userResize):
* rendering/RenderGeometryMap.cpp:
(WebCore::RenderGeometryMap::absolutePoint):
* rendering/RenderInline.cpp:
(WebCore::RenderInline::mapLocalToContainer):
* rendering/RenderInline.h:
(RenderInline):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::absoluteToContents):
(WebCore::RenderLayer::calculateClipRects):
* rendering/RenderMediaControls.cpp:
(WebCore::RenderMediaControls::volumeSliderOffsetFromMuteButton):
* rendering/RenderMenuList.cpp:
(WebCore::RenderMenuList::showPopup):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::localToAbsolute):
(WebCore::RenderObject::absoluteToLocal):
(WebCore::RenderObject::mapLocalToContainer):
(WebCore::RenderObject::mapAbsoluteToLocalPoint):
(WebCore::RenderObject::localToContainerQuad):
(WebCore::RenderObject::localToContainerPoint):
* rendering/RenderObject.h:
(RenderObject): MapLocalToContainerFlags is now MapCoordinatesFlags since it's
now used for other conversion methods.
(WebCore::RenderObject::localToAbsoluteQuad):
* rendering/RenderTheme.cpp:
(WebCore::RenderTheme::volumeSliderOffsetFromMuteButton):
* rendering/RenderView.cpp:
(WebCore::RenderView::mapLocalToContainer):
(WebCore::RenderView::mapAbsoluteToLocalPoint):
* rendering/RenderView.h:
(RenderView):
* rendering/svg/RenderSVGForeignObject.cpp:
(WebCore::RenderSVGForeignObject::mapLocalToContainer):
* rendering/svg/RenderSVGForeignObject.h:
(RenderSVGForeignObject):
* rendering/svg/RenderSVGInline.cpp:
(WebCore::RenderSVGInline::mapLocalToContainer):
* rendering/svg/RenderSVGInline.h:
(RenderSVGInline):
* rendering/svg/RenderSVGModelObject.cpp:
(WebCore::RenderSVGModelObject::mapLocalToContainer):
* rendering/svg/RenderSVGModelObject.h:
(RenderSVGModelObject):
* rendering/svg/RenderSVGRoot.cpp:
(WebCore::RenderSVGRoot::mapLocalToContainer):
* rendering/svg/RenderSVGRoot.h:
(RenderSVGRoot):
* rendering/svg/RenderSVGText.cpp:
(WebCore::RenderSVGText::mapLocalToContainer):
* rendering/svg/RenderSVGText.h:
(RenderSVGText):
* rendering/svg/SVGRenderSupport.cpp:
(WebCore::SVGRenderSupport::mapLocalToContainer):
* svg/SVGSVGElement.cpp:
(WebCore::SVGSVGElement::localCoordinateSpaceTransform):

LayoutTests:

Tests scrolling of sub-pixel layers on sub-pixel platforms (Chromium).

* fast/sub-pixel/sub-pixel-iframe-copy-on-scroll.html: Added.
* platform/chromium-linux/fast/sub-pixel/sub-pixel-iframe-copy-on-scroll-expected.png: Added.
* platform/chromium-linux/fast/sub-pixel/sub-pixel-iframe-copy-on-scroll-expected.txt: Added.
* platform/chromium-linux/fast/repaint/repaint-across-writing-mode-boundary-expected.png:
The repaint rect shrinks safely by one pixel.
* platform/chromium/TestExpectations:
* platform/mac-lion/TestExpectations:
* platform/mac-snowleopard/TestExpectations:
* platform/mac-wk2/TestExpectations:
* platform/mac/TestExpectations:
* platform/qt-4.8/TestExpectations:
* platform/qt/TestExpectations:
* platform/win-wk2/TestExpectations:
* platform/win-xp/TestExpectations:
* platform/win/TestExpectations:
* platform/wincairo/TestExpectations:
* platform/wk2/TestExpectations:

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

8 years agoIncorrect/Illegal static cast in FrameView.cpp
abarth@webkit.org [Thu, 11 Oct 2012 23:44:02 +0000 (23:44 +0000)]
Incorrect/Illegal static cast in FrameView.cpp
https://bugs.webkit.org/show_bug.cgi?id=98943

Reviewed by Eric Seidel.

HTMLFrameElementBase is the common base class for <frame> and <iframe>.

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

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

8 years ago[Chromium] Improve vertical text rendering of HarfBuzzShaper
bashi@chromium.org [Thu, 11 Oct 2012 23:23:47 +0000 (23:23 +0000)]
[Chromium] Improve vertical text rendering of HarfBuzzShaper
https://bugs.webkit.org/show_bug.cgi?id=98979

Reviewed by Tony Chang.

- Specify 'vert' and 'vrt2' features when we render vertical text.
- Set appropriate script so that harfbuzz-ng can use the features.

No new tests. fast/text/international/text-spliced-font.html should cover this change.
This change will affect after switching to harfbuzz-ng.

* platform/graphics/harfbuzz/ng/HarfBuzzNGFace.cpp:
(WebCore::HarfBuzzNGFace::HarfBuzzNGFace):
(WebCore::findScriptForVerticalGlyphSubstitution): Added.
(WebCore):
(WebCore::HarfBuzzNGFace::setScriptForVerticalGlyphSubstitution): Added.
* platform/graphics/harfbuzz/ng/HarfBuzzNGFace.h:
(HarfBuzzNGFace): Added m_scriptForVerticalText.
* platform/graphics/harfbuzz/ng/HarfBuzzShaper.cpp:
(WebCore::HarfBuzzShaper::setFontFeatures):
Set 'vert' and 'vrt2' features when orientation() == Vertical.
(WebCore::HarfBuzzShaper::shapeHarfBuzzRuns):
Call setScriptForVerticalGlyphSubstitution() when orientation() == Vertical.

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

8 years agoUnreviewed watch list addition for Inspector.json.
timothy@apple.com [Thu, 11 Oct 2012 23:21:57 +0000 (23:21 +0000)]
Unreviewed watch list addition for Inspector.json.

* Scripts/webkitpy/common/config/watchlist:

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

8 years agoAX: labelForElement is slow when there are a lot of DOM elements
dmazzoni@google.com [Thu, 11 Oct 2012 23:13:25 +0000 (23:13 +0000)]
AX: labelForElement is slow when there are a lot of DOM elements
https://bugs.webkit.org/show_bug.cgi?id=97825

Reviewed by Ryosuke Niwa.

Source/WebCore:

Adds a DocumentOrderedMap to TreeScope that allows accessibility to
quickly map from an id to the label for that id. This speeds up
AccessibilityNode::labelForElement, which was a bottleneck in Chromium
when accessibility was on.

Tests: accessibility/title-ui-element-correctness.html
       perf/accessibility-title-ui-element.html

* accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::labelForElement):
* dom/DocumentOrderedMap.cpp:
(WebCore::keyMatchesLabelForAttribute):
(WebCore):
(WebCore::DocumentOrderedMap::getElementByLabelForAttribute):
* dom/DocumentOrderedMap.h:
(DocumentOrderedMap):
* dom/Element.cpp:
(WebCore::Element::insertedInto):
(WebCore::Element::removedFrom):
(WebCore::Element::updateLabel):
(WebCore):
(WebCore::Element::willModifyAttribute):
* dom/Element.h:
(Element):
* dom/TreeScope.cpp:
(WebCore::TreeScope::TreeScope):
(WebCore::TreeScope::addLabel):
(WebCore):
(WebCore::TreeScope::removeLabel):
(WebCore::TreeScope::labelElementForId):
* dom/TreeScope.h:
(WebCore):
(TreeScope):
(WebCore::TreeScope::shouldCacheLabelsByForAttribute):

Tools:

Implement titleUIElement in the chromium port of DRT, and
fix getAccessibleElementById so that it ensures the backing store
is up-to-date.

* DumpRenderTree/chromium/TestRunner/AccessibilityControllerChromium.cpp:
(AccessibilityController::getAccessibleElementById):
* DumpRenderTree/chromium/TestRunner/AccessibilityUIElementChromium.cpp:
(AccessibilityUIElement::titleUIElementCallback):

LayoutTests:

Adds two new tests for titleUIElement that run on both Mac and
Chromium. One tests correctness, the other tests speed.

Fixes one test so that it passes on Chromium.
Enables other tests that now pass on Chromium.

* accessibility/secure-textfield-title-ui.html:
* accessibility/title-ui-element-correctness-expected.txt: Added.
* accessibility/title-ui-element-correctness.html: Added.
* perf/accessibility-title-ui-element-expected.txt: Added.
* perf/accessibility-title-ui-element.html: Added.
* platform/chromium/TestExpectations:

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

8 years agounprefix window.performance.webkitNow()
simonjam@chromium.org [Thu, 11 Oct 2012 23:08:13 +0000 (23:08 +0000)]
unprefix window.performance.webkitNow()
https://bugs.webkit.org/show_bug.cgi?id=88278

Reviewed by Tony Gentilcore.

PerformanceTests:

* resources/runner.js: Bind to proper object to avoid invalid invocation errors.

Source/WebCore:

Test: fast/dom/Window/window-properties-performance.html
      fast/performance/performance-now-timestamps.html

* page/Performance.cpp:
(WebCore::Performance::now):
* page/Performance.h:
(Performance):
* page/Performance.idl:

LayoutTests:

* fast/dom/Window/window-properties-performance-expected.txt:
* fast/performance/performance-now-timestamps-expected.txt:
* fast/performance/script-tests/performance-now-timestamps.js:
* platform/chromium/TestExpectations: Remove skipped expectation.
* platform/efl/TestExpectations:
* platform/efl/fast/dom/Window/window-properties-performance-expected.txt:
* platform/gtk/TestExpectations:
* platform/qt/TestExpectations:
* platform/qt/fast/dom/Window/window-properties-performance-expected.txt:
* resources/magnitude-perf.js:
(Magnitude._runIteration):

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

8 years ago[WebGL] [Mac] only the mapped symbol for the first element of a uniform/attribute...
roger_fong@apple.com [Thu, 11 Oct 2012 23:06:25 +0000 (23:06 +0000)]
[WebGL] [Mac] only the mapped symbol for the first element of a uniform/attribute array is stored.
https://bugs.webkit.org/show_bug.cgi?id=98966

Reviewed by Dean Jackson.

We currently do not add name/mappedName symbol pairs for each element of a uniform/attribute array.
This is because we only add a number of symbols equal to how many symbols the shader compiler tells us there are.
The shader compiler treats an array as a single uniform. We need to be adding in symbols to the map for each element of the array ourselves.
The mappedName of each array element is the same between elements except for the "[index]" at the end so this is easy to do.

Tested using Khronos WebGL conformance suite:
conformance/glsl/misc/glsl-long-variable-names.html

* platform/graphics/ANGLEWebKitBridge.cpp:
(WebCore::getSymbolInfo):

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

8 years agoElementAttributeData shouldn't be managing Element's callbacks.
kling@webkit.org [Thu, 11 Oct 2012 22:51:36 +0000 (22:51 +0000)]
ElementAttributeData shouldn't be managing Element's callbacks.
<http://webkit.org/b/98987>

Reviewed by Anders Carlsson.

Dispatch the following attribute-related Element callbacks from within Element
instead of ElementAttributeData. Also made them private.

    - willModifyAttribute
    - didModifyAttribute
    - didAddAttribute
    - didRemoveAttribute

No behavior change, just making ElementAttributeData a bit dumber (a good thing.)

* dom/Element.cpp:
(WebCore::Element::detachAttribute):
(WebCore::Element::removeAttribute):
(WebCore::Element::setAttributeInternal):
(WebCore::Element::removeAttributeInternal):
(WebCore::Element::addAttributeInternal):
* dom/Element.h:
* dom/ElementAttributeData.cpp:
(WebCore::ElementAttributeData::addAttribute):
(WebCore::ElementAttributeData::removeAttribute):
* dom/ElementAttributeData.h:

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

8 years ago[CSS Shaders] Make custom filters use a premultiplied buffer.
commit-queue@webkit.org [Thu, 11 Oct 2012 22:42:08 +0000 (22:42 +0000)]
[CSS Shaders] Make custom filters use a premultiplied buffer.
https://bugs.webkit.org/show_bug.cgi?id=98396

Patch by Huang Dongsung <luxtella@company100.net> on 2012-10-11
Reviewed by Dean Jackson.

Source/WebCore:

Currently, a GLSL css_Composite function returns a premultiplied color, so
FECustomFilter must make a premultiplied buffer in the case when an author is
using the CSS mix function.

In addition, there are two performance benefits when FECustomFilter uses a premultiplied buffer.
1. FilterEffect::asImageBuffer is faster.
2. In the future when Accelerated Compositing implementations use
FECustomFilter, they do not need to convert an unmultiplied buffer to a
premultiplied buffer.

Test: css3/filters/custom/custom-filter-composite-fractional-source-alpha.html

* platform/graphics/filters/FECustomFilter.cpp:
(WebCore::FECustomFilter::applyShader):

LayoutTests:

Add test to check that the DOM element texture composites correctly
when source alpha is a fractional value.

* css3/filters/custom/custom-filter-composite-fractional-source-alpha-expected.html: Added.
* css3/filters/custom/custom-filter-composite-fractional-source-alpha.html: Added.

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

8 years ago[CMAKE] Do not add include dirs twice
rwlbuis@webkit.org [Thu, 11 Oct 2012 22:39:29 +0000 (22:39 +0000)]
[CMAKE] Do not add include dirs twice
https://bugs.webkit.org/show_bug.cgi?id=99099

Reviewed by Yong Li.

Do not add WebCore_INCLUDE_DIRECTORIES to WebCoreTestSupport_INCLUDE_DIRECTORIES, the includes_directory
call does this for us.

* CMakeLists.txt:

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

8 years agotest-webkitpy runs individual tests twice
dpranke@chromium.org [Thu, 11 Oct 2012 22:38:28 +0000 (22:38 +0000)]
test-webkitpy runs individual tests twice
https://bugs.webkit.org/show_bug.cgi?id=99098

Reviewed by Adam Barth.

If you were to run 'test-webkitpy webkitpy.test.main_unittests.TesterTests.test_no_tests_found',
it would actually run the test twice. This fixes that.

* Scripts/webkitpy/test/main.py:
(Tester._parse_args):
(Tester._test_names):
* Scripts/webkitpy/test/main_unittest.py:
(TesterTest.test_no_tests_found):
(TesterTest):
(TesterTest.test_individual_names_are_not_run_twice):

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

8 years ago[CSS Shaders] Implement all composite operators except destination and lighter.
commit-queue@webkit.org [Thu, 11 Oct 2012 22:34:21 +0000 (22:34 +0000)]
[CSS Shaders] Implement all composite operators except destination and lighter.
https://bugs.webkit.org/show_bug.cgi?id=97859

Patch by Huang Dongsung <luxtella@company100.net> on 2012-10-11
Reviewed by Dean Jackson.

Source/WebCore:

Add expressions for all composite operators except destination and
lighter. The expressions are lifted directly from the CSS Compositing
and Blending spec [1]. WebKit adds these compositing expressions to the
author's shader.

[1]: https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html#advancedcompositing

Test: css3/filters/custom/custom-filter-composite-operators.html

* platform/graphics/filters/CustomFilterValidatedProgram.cpp:
(WebCore::CustomFilterValidatedProgram::compositeFunctionString):

LayoutTests:

Add test to check that the DOM element texture composites correctly with the css_MixColor
variable from the author's shader for each composite operator.

* css3/filters/custom/custom-filter-composite-operators-expected.png: Added.
* css3/filters/custom/custom-filter-composite-operators-expected.txt: Added.
* css3/filters/custom/custom-filter-composite-operators.html: Added.

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

8 years ago[Chromium-Android] Exception when the layout test driver is stopped
wangxianzhu@chromium.org [Thu, 11 Oct 2012 22:25:52 +0000 (22:25 +0000)]
[Chromium-Android] Exception when the layout test driver is stopped
https://bugs.webkit.org/show_bug.cgi?id=99084

Reviewed by Dirk Pranke.

On chromium-android, the process is killed directly in ServerProcess.stop() as the pipes are closed first.
Should not try to read data from the pipes after the process is killed.

* Scripts/webkitpy/layout_tests/port/server_process.py:
(ServerProcess.stop): Don't read data after the process is killed.

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

8 years agoOne more baseline tweak after v8-i18n roll.
abarth@webkit.org [Thu, 11 Oct 2012 22:21:19 +0000 (22:21 +0000)]
One more baseline tweak after v8-i18n roll.

* platform/chromium/fast/js/date-proto-generic-invocation-expected.txt: Replaced.

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

8 years agoUInt32ToNumber and OSR exit should be aware of copy propagation and correctly recover...
fpizlo@apple.com [Thu, 11 Oct 2012 21:53:23 +0000 (21:53 +0000)]
UInt32ToNumber and OSR exit should be aware of copy propagation and correctly recover both versions of a variable that was subject to a UInt32ToNumber cast
https://bugs.webkit.org/show_bug.cgi?id=99100
<rdar://problem/12480955>

Reviewed by Michael Saboff and Mark Hahnenberg.

Source/JavaScriptCore:

Fixed by forcing UInt32ToNumber to use a different register. This "undoes" the copy propagation that we
would have been doing, since it has no performance effect in this case and has the benefit of making the
OSR exit compiler a lot simpler.

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

LayoutTests:

* fast/js/dfg-uint32-to-number-in-middle-of-copy-propagation-expected.txt: Added.
* fast/js/dfg-uint32-to-number-in-middle-of-copy-propagation.html: Added.
* fast/js/jsc-test-list:
* fast/js/script-tests/dfg-uint32-to-number-in-middle-of-copy-propagation.js: Added.
(foo):

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

8 years agoIndexedDB: IDL types defined in spec should be visible to scripts
jsbell@chromium.org [Thu, 11 Oct 2012 21:37:13 +0000 (21:37 +0000)]
IndexedDB: IDL types defined in spec should be visible to scripts
https://bugs.webkit.org/show_bug.cgi?id=99093

Reviewed by Adam Barth.

Source/WebCore:

Interfaces defined in the spec WebIDL, such as IDBCursorWithValue, should be exposed
to scripts as properties of the global object. A few types were missing - add them.

Test: storage/indexeddb/interfaces.html

* Modules/indexeddb/DOMWindowIndexedDatabase.idl:
* Modules/indexeddb/WorkerContextIndexedDatabase.idl:

LayoutTests:

Verify that interfaces defined in the IDB spec's WebIDL are present on the
global object.

* storage/indexeddb/interfaces-expected.txt: Added.
* storage/indexeddb/interfaces.html: Added.
* storage/indexeddb/resources/interfaces.js: Added.
* storage/indexeddb/resources/shared.js: Remove assertion redundant with this test.
(test):

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

8 years ago[Chromium] Improve the comment describing mainWorldScriptContext
abarth@webkit.org [Thu, 11 Oct 2012 21:13:09 +0000 (21:13 +0000)]
[Chromium] Improve the comment describing mainWorldScriptContext
https://bugs.webkit.org/show_bug.cgi?id=99092

Reviewed by James Robinson.

* public/WebFrame.h:
(WebFrame):
    - Add some more text about what this API does so that folks who
      call it know what they need to worry about.

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

8 years agoRebaseline these tests after v8-i18n roll.
abarth@webkit.org [Thu, 11 Oct 2012 21:03:19 +0000 (21:03 +0000)]
Rebaseline these tests after v8-i18n roll.

* platform/chromium/fast/js/kde/StringObject-expected.txt:
* platform/chromium/fast/js/kde/function_length-expected.txt: Added.
* platform/chromium/fast/js/kde/inbuilt_function_tostring-expected.txt: Added.
* platform/chromium/fast/js/string-prototype-properties-expected.txt:
* platform/chromium/inspector-protocol/runtime-getProperties-expected.txt:

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

8 years agoRemoved some more static assumptions about inline object capacity
ggaren@apple.com [Thu, 11 Oct 2012 20:56:31 +0000 (20:56 +0000)]
Removed some more static assumptions about inline object capacity
https://bugs.webkit.org/show_bug.cgi?id=98603

Reviewed by Filip Pizlo.

* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::emitAllocateBasicJSObject): Use JSObject::allocationSize()
for a little more flexibility. We still pass it a constant inline capacity
because the JIT doesn't have a strategy for selecting a size class based
on non-constant capacity yet. "INLINE_STORAGE_CAPACITY" is a marker for
code that makes static assumptions about object size.

* jit/JITInlineMethods.h:
(JSC::JIT::emitAllocateBasicJSObject):
* llint/LLIntData.cpp:
(JSC::LLInt::Data::performAssertions):
* llint/LowLevelInterpreter32_64.asm:
* llint/LowLevelInterpreter64.asm: Ditto for the rest of our many execution engines.

* runtime/JSObject.h:
(JSC::JSObject::allocationSize):
(JSC::JSFinalObject::finishCreation):
(JSC::JSFinalObject::create): New helper function for computing object
size dynamically, since we plan to have objects of different sizes.

(JSC::JSFinalObject::JSFinalObject): Note that our m_inlineStorage used
to auto-generate an implicit C++ constructor with default null initialization.
This memory is not observed in its uninitialized state, and our LLInt and
JIT allocators do not initialize it, so I did not add any explicit code
to do so, now that the implicit code is gone.

(JSC::JSObject::offsetOfInlineStorage): Changed the math here to match
inlineStorageUnsafe(), since we can rely on an explicit data member anymore.

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

8 years agoUnreviewed. Rolled DEPS.
abarth@webkit.org [Thu, 11 Oct 2012 20:47:52 +0000 (20:47 +0000)]
Unreviewed.  Rolled DEPS.

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-10-11

* DEPS:

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

8 years ago[EFL][WK2] WebProcess keeps on waiting for UIProcess
commit-queue@webkit.org [Thu, 11 Oct 2012 20:41:33 +0000 (20:41 +0000)]
[EFL][WK2] WebProcess keeps on waiting for UIProcess
https://bugs.webkit.org/show_bug.cgi?id=97646

Patch by Regina Chung <heejin.r.chung@samsung.com> on 2012-10-11
Reviewed by Kenneth Rohde Christiansen.

Set LayerTreeRenderer to active so UIProcess can send RenderNextFrame message to WebProcess
after accelerated compositing(AC) mode is entered, so WebProcess can start flushing changes to UIProcess.

* UIProcess/API/efl/EflViewportHandler.cpp: Added API for setting LayerTreeRenderer's active state.
(WebKit::EflViewportHandler::setActive):
(WebKit):
* UIProcess/API/efl/EflViewportHandler.h:
(EflViewportHandler):
* UIProcess/API/efl/ewk_view.cpp: Sets LayerTreeRenderer's active status to true after entering AC mode.
(ewk_view_accelerated_compositing_mode_enter):

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

8 years ago[WK2] WTR needs an implementation of setAsynchronousSpellCheckingEnabled
jpfau@apple.com [Thu, 11 Oct 2012 20:12:26 +0000 (20:12 +0000)]
[WK2] WTR needs an implementation of setAsynchronousSpellCheckingEnabled
https://bugs.webkit.org/show_bug.cgi?id=81042

Unreviewed, skipped a test that requires setAsynchronousSpellCheckingEnabled

* platform/wk2/TestExpectations:

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

8 years agoEnable RUNTIME_HEURISTICS all the time, for easier testing
ggaren@apple.com [Thu, 11 Oct 2012 19:58:16 +0000 (19:58 +0000)]
Enable RUNTIME_HEURISTICS all the time, for easier testing
https://bugs.webkit.org/show_bug.cgi?id=99090

Reviewed by Filip Pizlo.

I find myself using this a lot, and there doesn't seem to be an obvious
reason to compile it out, since it only runs once at startup.

* runtime/Options.cpp:
(JSC::overrideOptionWithHeuristic):
(JSC::Options::initialize):
* runtime/Options.h: Removed the #ifdef.

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

8 years agoRemoved ASSERT_CLASS_FITS_IN_CELL
ggaren@apple.com [Thu, 11 Oct 2012 19:54:38 +0000 (19:54 +0000)]
Removed ASSERT_CLASS_FITS_IN_CELL
https://bugs.webkit.org/show_bug.cgi?id=97634

Reviewed by Mark Hahnenberg.

Source/JavaScriptCore:

Our collector now supports arbitrarily sized objects, so the ASSERT is not needed.

* API/JSCallbackFunction.cpp:
* API/JSCallbackObject.cpp:
* heap/MarkedSpace.h:
* jsc.cpp:
* runtime/Arguments.cpp:
* runtime/ArrayConstructor.cpp:
* runtime/ArrayPrototype.cpp:
* runtime/BooleanConstructor.cpp:
* runtime/BooleanObject.cpp:
* runtime/BooleanPrototype.cpp:
* runtime/DateConstructor.cpp:
* runtime/DatePrototype.cpp:
* runtime/Error.cpp:
* runtime/ErrorConstructor.cpp:
* runtime/ErrorPrototype.cpp:
* runtime/FunctionConstructor.cpp:
* runtime/FunctionPrototype.cpp:
* runtime/InternalFunction.cpp:
* runtime/JSActivation.cpp:
* runtime/JSArray.cpp:
* runtime/JSBoundFunction.cpp:
* runtime/JSFunction.cpp:
* runtime/JSGlobalObject.cpp:
* runtime/JSGlobalThis.cpp:
* runtime/JSNameScope.cpp:
* runtime/JSNotAnObject.cpp:
* runtime/JSONObject.cpp:
* runtime/JSObject.cpp:
* runtime/JSPropertyNameIterator.cpp:
* runtime/JSScope.cpp:
* runtime/JSWithScope.cpp:
* runtime/JSWrapperObject.cpp:
* runtime/MathObject.cpp:
* runtime/NameConstructor.cpp:
* runtime/NamePrototype.cpp:
* runtime/NativeErrorConstructor.cpp:
* runtime/NativeErrorPrototype.cpp:
* runtime/NumberConstructor.cpp:
* runtime/NumberObject.cpp:
* runtime/NumberPrototype.cpp:
* runtime/ObjectConstructor.cpp:
* runtime/ObjectPrototype.cpp:
* runtime/RegExpConstructor.cpp:
* runtime/RegExpMatchesArray.cpp:
* runtime/RegExpObject.cpp:
* runtime/RegExpPrototype.cpp:
* runtime/StringConstructor.cpp:
* runtime/StringObject.cpp:
* runtime/StringPrototype.cpp:
* testRegExp.cpp: Removed the ASSERT.

Source/WebCore:

* bindings/js/JSDOMWindowShell.cpp:
(WebCore):
* bindings/js/JSImageConstructor.cpp:
(WebCore):
* bindings/js/JSNodeFilterCondition.cpp:
(WebCore):
* bindings/js/JSWorkerContextBase.cpp:
(WebCore):
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation):
* bindings/scripts/test/JS/JSFloat64Array.cpp:
(WebCore):
* bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
(WebCore):
* bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
(WebCore):
* bindings/scripts/test/JS/JSTestEventConstructor.cpp:
(WebCore):
* bindings/scripts/test/JS/JSTestEventTarget.cpp:
(WebCore):
* bindings/scripts/test/JS/JSTestException.cpp:
(WebCore):
* bindings/scripts/test/JS/JSTestInterface.cpp:
(WebCore):
* bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
(WebCore):
* bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
(WebCore):
* bindings/scripts/test/JS/JSTestNode.cpp:
(WebCore):
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore):
* bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
(WebCore):
* bridge/runtime_method.cpp:
(JSC):

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

8 years agoDFG should inline code blocks that use new_array_buffer
fpizlo@apple.com [Thu, 11 Oct 2012 19:36:04 +0000 (19:36 +0000)]
DFG should inline code blocks that use new_array_buffer
https://bugs.webkit.org/show_bug.cgi?id=98996

Reviewed by Geoffrey Garen.

This adds plumbing to drop in constant buffers from the inlinees to the inliner.
It's smart about not duplicating buffers needlessly but doesn't try to completely
hash-cons them, either.

* bytecode/CodeBlock.h:
(JSC::CodeBlock::numberOfConstantBuffers):
(JSC::CodeBlock::addConstantBuffer):
(JSC::CodeBlock::constantBufferAsVector):
(JSC::CodeBlock::constantBuffer):
* dfg/DFGAbstractState.cpp:
(JSC::DFG::AbstractState::execute):
* dfg/DFGByteCodeParser.cpp:
(ConstantBufferKey):
(JSC::DFG::ConstantBufferKey::ConstantBufferKey):
(JSC::DFG::ConstantBufferKey::operator==):
(JSC::DFG::ConstantBufferKey::hash):
(JSC::DFG::ConstantBufferKey::isHashTableDeletedValue):
(JSC::DFG::ConstantBufferKey::codeBlock):
(JSC::DFG::ConstantBufferKey::index):
(DFG):
(JSC::DFG::ConstantBufferKeyHash::hash):
(JSC::DFG::ConstantBufferKeyHash::equal):
(ConstantBufferKeyHash):
(WTF):
(ByteCodeParser):
(InlineStackEntry):
(JSC::DFG::ByteCodeParser::parseBlock):
(JSC::DFG::ByteCodeParser::InlineStackEntry::InlineStackEntry):
* dfg/DFGCapabilities.h:
(JSC::DFG::canInlineOpcode):
* dfg/DFGOperations.cpp:
* dfg/DFGOperations.h:
* dfg/DFGSpeculativeJIT.h:
(JSC::DFG::SpeculativeJIT::callOperation):
* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):

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

8 years agoI'm not 100% sure what caused this test to change behavior, but fewer
abarth@webkit.org [Thu, 11 Oct 2012 19:09:25 +0000 (19:09 +0000)]
I'm not 100% sure what caused this test to change behavior, but fewer
unexpected exceptions seems like a good thing.

* platform/chromium/http/tests/media: Added.
* platform/chromium/http/tests/media/media-source: Added.
* platform/chromium/http/tests/media/media-source/video-media-source-add-and-remove-buffers-expected.txt: Added.

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

8 years agoSwitch ResourceLoader::resourceData() from SharedBuffer to ResourceBuffer
beidson@apple.com [Thu, 11 Oct 2012 18:29:32 +0000 (18:29 +0000)]
Switch ResourceLoader::resourceData() from SharedBuffer to ResourceBuffer
https://bugs.webkit.org/show_bug.cgi?id=98976

Reviewed by Anders Carlsson.

Source/WebCore:

No new tests (No change in behavior).

* WebCore.exp.in:
* html/ImageDocument.cpp:
(WebCore::ImageDocumentParser::appendBytes):
(WebCore::ImageDocumentParser::finish):
* inspector/InspectorPageAgent.cpp:
(WebCore::InspectorPageAgent::mainResourceContent):
(WebCore::InspectorPageAgent::sharedBufferContent):
(WebCore):
(WebCore::InspectorPageAgent::dataContent):
* inspector/InspectorPageAgent.h:
* inspector/InspectorResourceAgent.cpp:
(WebCore::InspectorResourceAgent::didFinishLoading):
(WebCore::InspectorResourceAgent::didFailLoading):
* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::mainResourceData):
(WebCore::DocumentLoader::setupForReplaceByMIMEType):
(WebCore::DocumentLoader::maybeCreateArchive):
(WebCore::DocumentLoader::mainResource):
(WebCore::DocumentLoader::maybeFinishLoadingMultipartContent):
* loader/DocumentLoader.h:
(WebCore):
(DocumentLoader):
* loader/ResourceBuffer.cpp:
(WebCore::ResourceBuffer::append):
(WebCore):
(WebCore::ResourceBuffer::clear):
* loader/ResourceBuffer.h:
(ResourceBuffer):
* loader/ResourceLoader.cpp:
(WebCore::ResourceLoader::resourceData):
(WebCore::ResourceLoader::addData):
(WebCore::ResourceLoader::willStopBufferingData):
* loader/ResourceLoader.h:
(WebCore):
(ResourceLoader):
* loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::didReceiveResponse):
(WebCore::SubresourceLoader::sendDataToResource):
(WebCore::SubresourceLoader::didFinishLoading):
* loader/appcache/ApplicationCacheGroup.cpp:
(WebCore::ApplicationCacheGroup::finishedLoadingMainResource):

Source/WebKit/gtk:

* webkit/webkitwebdatasource.cpp:
(webkit_web_data_source_get_data):

Source/WebKit/mac:

* WebView/WebDataSource.mm:
(-[WebDataSource data]):

Source/WebKit/win:

* WebDataSource.cpp:
(WebDataSource::data):

Source/WebKit2:

* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::finishedLoading):
* WebProcess/WebPage/WebFrame.cpp:
(WebKit::WebFrame::source):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::getMainResourceDataOfFrame):

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

8 years agoNote that this test is flaky.
abarth@webkit.org [Thu, 11 Oct 2012 18:28:56 +0000 (18:28 +0000)]
Note that this test is flaky.

* platform/chromium/TestExpectations:

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

8 years agoWeb Inspector: node search does not work with elements on touch start listener
kpiascik@rim.com [Thu, 11 Oct 2012 18:04:27 +0000 (18:04 +0000)]
Web Inspector: node search does not work with elements on touch start listener
https://bugs.webkit.org/show_bug.cgi?id=95252

Reviewed by Pavel Feldman.

Source/WebCore:

Added new InspectorInstrumentation::handleTouchEvent() method which
will prevent a touch handler from firing and inspect and element if we
are already searching for a node to highlight.
Now when a user has chosen to inspect element (magnifying glass icon)
and touches on a page the event will be directed to inspector and
handled appropriately.

Not testable.

* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::handleTouchEvent):
(WebCore):
* inspector/InspectorDOMAgent.h:
(InspectorDOMAgent):
* inspector/InspectorInstrumentation.cpp:
(WebCore):
(WebCore::InspectorInstrumentation::handleTouchEventImpl):
* inspector/InspectorInstrumentation.h:
(InspectorInstrumentation):
(WebCore::InspectorInstrumentation::handleTouchEvent):
(WebCore):
* page/EventHandler.cpp:
(WebCore::EventHandler::handleTouchEvent):

Source/WebKit/blackberry:

Removed calls to InspectorInstrumentation that no didn't work anyway.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPage::touchEvent):

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

8 years ago[BlackBerry] Credentials for HTTPS urls are saved in the HTTP protection space
commit-queue@webkit.org [Thu, 11 Oct 2012 17:53:23 +0000 (17:53 +0000)]
[BlackBerry] Credentials for HTTPS urls are saved in the HTTP protection space
https://bugs.webkit.org/show_bug.cgi?id=99082

Patch by Otto Derek Cheung <otcheung@rim.com> on 2012-10-11
Reviewed by Rob Buis.

Adding support for secure ProtectionSpaces in Credentials
to prevent credentials from being overwritten/used when the user
accesses both versions of the same url.

PR 199457

The issue was the secure/non-secure version of the same protocol
were using the same ProtectionSpace enum in the network stack. When
the credentials are saved, it will overwrite each other since the
protection object is identical.

The fix is to use the WebKit provided secure enums when the protcol is secure.

To test this, access a restricted site that is running on http. Save the
password and access the same restricted site (same domain
and path) but on https. The browser should prompt for credentials.

* platform/network/blackberry/NetworkJob.cpp:
(WebCore::NetworkJob::notifyAuthReceived):
(WebCore::NetworkJob::handleFTPHeader):
(WebCore::NetworkJob::sendRequestWithCredentials):
(WebCore::NetworkJob::storeCredentials):
* platform/network/blackberry/NetworkManager.cpp:
(WebCore::NetworkManager::startJob):

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

8 years agoPerf-o-matic build fixes.
rniwa@webkit.org [Thu, 11 Oct 2012 17:47:16 +0000 (17:47 +0000)]
Perf-o-matic build fixes.

Get the password from the first item of the array now that each JSON contains an array as
the top-level structure instead of a dictionary, which is the first item in the array.

Remove spaces after comma to save space in Runs objects to work-around the AppEngine's
object size limit. This should buy us a couple of days. We'll implement a proper fix later.

* Websites/webkit-perf.appspot.com/models.py:
(Runs.update_incrementally):
* Websites/webkit-perf.appspot.com/models_unittest.py:
(RunsTest.test_update_or_insert):
* Websites/webkit-perf.appspot.com/report_handler.py:
(ReportHandler.post):

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

8 years ago[Qt] Unreviewed gardening, skip new failing tests.
ossy@webkit.org [Thu, 11 Oct 2012 17:36:55 +0000 (17:36 +0000)]
[Qt] Unreviewed gardening, skip new failing tests.

* platform/qt/TestExpectations:

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

8 years ago[Qt] Unreviewed gardening, unskip and rebase now passing tests.
ossy@webkit.org [Thu, 11 Oct 2012 17:31:46 +0000 (17:31 +0000)]
[Qt] Unreviewed gardening, unskip and rebase now passing tests.

* platform/qt/TestExpectations:
* platform/qt/css2.1/20110323/inline-table-001-expected.png: Added.
* platform/qt/css2.1/20110323/inline-table-001-expected.txt: Added.
* platform/qt/css2.1/20110323/inline-table-002a-expected.png: Copied from LayoutTests/platform/qt/svg/custom/visibility-override-filter-expected.png.
* platform/qt/css2.1/20110323/inline-table-002a-expected.txt: Added.
* platform/qt/css2.1/20110323/inline-table-003-expected.png: Added.
* platform/qt/css2.1/20110323/inline-table-003-expected.txt: Added.
* platform/qt/css2.1/20110323/table-height-algorithm-023-expected.png: Added.
* platform/qt/css2.1/20110323/table-height-algorithm-023-expected.txt: Added.
* platform/qt/css2.1/20110323/table-height-algorithm-024-expected.png: Added.
* platform/qt/css2.1/20110323/table-height-algorithm-024-expected.txt: Added.
* platform/qt/css2.1/t051201-c23-first-line-00-b-expected.png: Added.
* platform/qt/css2.1/t051201-c23-first-line-00-b-expected.txt:
* platform/qt/css3/filters/blur-filter-page-scroll-expected.png:
* platform/qt/css3/filters/blur-filter-page-scroll-parents-expected.png:
* platform/qt/css3/filters/blur-filter-page-scroll-self-expected.png: Copied from LayoutTests/platform/qt/css3/filters/blur-filter-page-scroll-expected.png.
* platform/qt/css3/filters/blur-filter-page-scroll-self-expected.txt: Added.
* platform/qt/css3/filters/composited-during-animation-expected.txt: Added.
* platform/qt/css3/filters/composited-during-animation-layertree-expected.txt: Added.
* platform/qt/css3/filters/composited-during-transition-layertree-expected.txt: Added.
* platform/qt/css3/filters/effect-reference-ordering-expected.png:
* platform/qt/css3/images/cross-fade-background-size-expected.png: Added.
* platform/qt/css3/images/cross-fade-background-size-expected.txt: Added.
* platform/qt/css3/unicode-bidi-isolate-basic-expected.png: Added.
* platform/qt/css3/unicode-bidi-isolate-basic-expected.txt: Added.
* platform/qt/editing/inserting/multiple-lines-selected-expected.png: Added.
* platform/qt/editing/inserting/multiple-lines-selected-expected.txt: Added.
* platform/qt/fast/borders/rtl-border-04-expected.png: Added.
* platform/qt/fast/borders/rtl-border-04-expected.txt: Added.
* platform/qt/fast/borders/rtl-border-05-expected.png: Added.
* platform/qt/fast/borders/rtl-border-05-expected.txt: Added.
* platform/qt/fast/box-shadow/single-pixel-shadow-expected.png: Added.
* platform/qt/fast/box-shadow/single-pixel-shadow-expected.txt: Added.
* platform/qt/fast/css/relative-positioned-block-with-inline-ancestor-and-parent-dynamic-expected.png: Added.
* platform/qt/fast/css/relative-positioned-block-with-inline-ancestor-and-parent-dynamic-expected.txt: Added.
* platform/qt/fast/css/text-overflow-ellipsis-text-align-center-expected.png: Added.
* platform/qt/fast/css/text-overflow-ellipsis-text-align-center-expected.txt: Added.
* platform/qt/fast/css/text-overflow-ellipsis-text-align-justify-expected.png: Added.
* platform/qt/fast/css/text-overflow-ellipsis-text-align-justify-expected.txt: Added.
* platform/qt/fast/css/text-overflow-ellipsis-text-align-left-expected.png: Added.
* platform/qt/fast/css/text-overflow-ellipsis-text-align-left-expected.txt: Added.
* platform/qt/fast/css/text-overflow-ellipsis-text-align-right-expected.png: Added.
* platform/qt/fast/css/text-overflow-ellipsis-text-align-right-expected.txt: Added.
* platform/qt/fast/css/vertical-text-overflow-ellipsis-text-align-center-expected.png: Added.
* platform/qt/fast/css/vertical-text-overflow-ellipsis-text-align-center-expected.txt: Added.
* platform/qt/fast/css/vertical-text-overflow-ellipsis-text-align-justify-expected.png: Added.
* platform/qt/fast/css/vertical-text-overflow-ellipsis-text-align-justify-expected.txt: Added.
* platform/qt/fast/css/vertical-text-overflow-ellipsis-text-align-left-expected.png: Added.
* platform/qt/fast/css/vertical-text-overflow-ellipsis-text-align-left-expected.txt: Added.
* platform/qt/fast/css/vertical-text-overflow-ellipsis-text-align-right-expected.png: Added.
* platform/qt/fast/css/vertical-text-overflow-ellipsis-text-align-right-expected.txt: Added.
* platform/qt/fast/dom/34176-expected.png: Added.
* platform/qt/fast/dom/34176-expected.txt: Added.
* platform/qt/fast/forms/input-placeholder-paint-order-expected.png: Added.
* platform/qt/fast/forms/input-placeholder-paint-order-expected.txt: Added.
* platform/qt/fast/forms/select/optgroup-rendering-expected.png: Added.
* platform/qt/fast/forms/select/optgroup-rendering-expected.txt: Added.
* platform/qt/fast/forms/textarea/textarea-placeholder-paint-order-expected.png: Added.
* platform/qt/fast/forms/textarea/textarea-placeholder-paint-order-expected.txt: Added.
* platform/qt/fast/inline/inline-box-background-expected.png: Added.
* platform/qt/fast/inline/inline-box-background-expected.txt: Added.
* platform/qt/fast/inline/inline-box-background-long-image-expected.png: Added.
* platform/qt/fast/inline/inline-box-background-long-image-expected.txt: Added.
* platform/qt/fast/inline/inline-box-background-repeat-x-expected.png: Added.
* platform/qt/fast/inline/inline-box-background-repeat-x-expected.txt: Added.
* platform/qt/fast/inline/inline-box-background-repeat-y-expected.png: Added.
* platform/qt/fast/inline/inline-box-background-repeat-y-expected.txt: Added.
* platform/qt/fast/multicol/shrink-to-column-height-for-pagination-expected.png: Copied from LayoutTests/platform/qt/svg/custom/visibility-override-filter-expected.png.
* platform/qt/fast/multicol/shrink-to-column-height-for-pagination-expected.txt: Added.
* platform/qt/fast/reflections/reflection-with-zoom-expected.png: Added.
* platform/qt/fast/reflections/reflection-with-zoom-expected.txt: Added.
* platform/qt/fast/repaint/repaint-during-scroll-with-zoom-expected.png: Copied from LayoutTests/platform/qt/css3/filters/blur-filter-page-scroll-expected.png.
* platform/qt/fast/repaint/repaint-during-scroll-with-zoom-expected.txt: Added.
* platform/qt/fast/speech/input-appearance-searchandspeech-expected.png:
* platform/qt/fast/speech/input-appearance-searchandspeech-expected.txt:
* platform/qt/fast/speech/input-appearance-speechbutton-expected.png:
* platform/qt/fast/speech/input-appearance-speechbutton-expected.txt:
* platform/qt/fast/table/mozilla-bug10296-vertical-align-1-expected.png: Added.
* platform/qt/fast/table/mozilla-bug10296-vertical-align-1-expected.txt: Added.
* platform/qt/fast/table/mozilla-bug10296-vertical-align-2-expected.png: Added.
* platform/qt/fast/table/mozilla-bug10296-vertical-align-2-expected.txt: Added.
* platform/qt/fast/table/table-row-outline-paint-expected.png: Added.
* platform/qt/fast/table/table-row-outline-paint-expected.txt: Added.
* platform/qt/http/tests/misc/willCacheResponse-delegate-callback-expected.txt: Added.
* platform/qt/svg/W3C-SVG-1.1-SE/styling-pres-02-f-expected.png: Added.
* platform/qt/svg/W3C-SVG-1.1-SE/styling-pres-02-f-expected.txt: Added.
* platform/qt/svg/W3C-SVG-1.1-SE/svgdom-over-01-f-expected.png:
* platform/qt/svg/W3C-SVG-1.1-SE/svgdom-over-01-f-expected.txt: Added.
* platform/qt/svg/W3C-SVG-1.1/coords-units-01-b-expected.txt:
* platform/qt/svg/W3C-SVG-1.1/coords-viewattr-01-b-expected.png: Added.
* platform/qt/svg/W3C-SVG-1.1/coords-viewattr-01-b-expected.txt: Added.
* platform/qt/svg/W3C-SVG-1.1/coords-viewattr-02-b-expected.png: Added.
* platform/qt/svg/W3C-SVG-1.1/coords-viewattr-02-b-expected.txt: Added.
* platform/qt/svg/W3C-SVG-1.1/fonts-desc-02-t-expected.png: Added.
* platform/qt/svg/W3C-SVG-1.1/fonts-desc-02-t-expected.txt: Added.
* platform/qt/svg/W3C-SVG-1.1/fonts-glyph-04-t-expected.png: Added.
* platform/qt/svg/W3C-SVG-1.1/fonts-glyph-04-t-expected.txt: Added.
* platform/qt/svg/W3C-SVG-1.1/metadata-example-01-b-expected.png: Added.
* platform/qt/svg/W3C-SVG-1.1/metadata-example-01-b-expected.txt: Added.
* platform/qt/svg/W3C-SVG-1.1/pservers-grad-02-b-expected.txt:
* platform/qt/svg/W3C-SVG-1.1/pservers-grad-04-b-expected.txt:
* platform/qt/svg/W3C-SVG-1.1/pservers-grad-05-b-expected.txt:
* platform/qt/svg/W3C-SVG-1.1/pservers-grad-06-b-expected.txt:
* platform/qt/svg/W3C-SVG-1.1/pservers-grad-11-b-expected.txt:
* platform/qt/svg/W3C-SVG-1.1/pservers-grad-12-b-expected.txt:
* platform/qt/svg/W3C-SVG-1.1/pservers-grad-13-b-expected.png:
* platform/qt/svg/W3C-SVG-1.1/pservers-grad-13-b-expected.txt:
* platform/qt/svg/W3C-SVG-1.1/pservers-grad-15-b-expected.txt:
* platform/qt/svg/W3C-SVG-1.1/shapes-polyline-01-t-expected.png: Added.
* platform/qt/svg/W3C-SVG-1.1/shapes-polyline-01-t-expected.txt: Added.
* platform/qt/svg/W3C-SVG-1.1/struct-use-05-b-expected.txt:
* platform/qt/svg/W3C-SVG-1.1/styling-inherit-01-b-expected.txt:
* platform/qt/svg/batik/filters/feTile-expected.png: Added.
* platform/qt/svg/batik/filters/feTile-expected.txt:
* platform/qt/svg/batik/paints/patternRegions-expected.png:
* platform/qt/svg/batik/paints/patternRegions-expected.txt:
* platform/qt/svg/batik/paints/patternRegions-positioned-objects-expected.png:
* platform/qt/svg/batik/paints/patternRegions-positioned-objects-expected.txt:
* platform/qt/svg/batik/text/textEffect-expected.png:
* platform/qt/svg/batik/text/textEffect-expected.txt:
* platform/qt/svg/batik/text/textEffect3-expected.png:
* platform/qt/svg/batik/text/textEffect3-expected.txt:
* platform/qt/svg/batik/text/textLayout-expected.png: Added.
* platform/qt/svg/batik/text/textLayout-expected.txt: Added.
* platform/qt/svg/batik/text/textOnPathSpaces-expected.png: Added.
* platform/qt/svg/batik/text/textOnPathSpaces-expected.txt: Added.
* platform/qt/svg/batik/text/textStyles-expected.png: Added.
* platform/qt/svg/batik/text/textStyles-expected.txt: Added.
* platform/qt/svg/batik/text/verticalText-expected.png: Added.
* platform/qt/svg/batik/text/verticalText-expected.txt: Added.
* platform/qt/svg/batik/text/xmlSpace-expected.png: Added.
* platform/qt/svg/batik/text/xmlSpace-expected.txt: Added.
* platform/qt/svg/clip-path/clip-in-clip-expected.png: Copied from LayoutTests/platform/qt/svg/custom/visibility-override-filter-expected.png.
* platform/qt/svg/clip-path/clip-in-clip-expected.txt: Added.
* platform/qt/svg/clip-path/clipper-placement-issue-expected.png: Copied from LayoutTests/platform/qt/svg/custom/visibility-override-filter-expected.png.
* platform/qt/svg/clip-path/clipper-placement-issue-expected.txt: Added.
* platform/qt/svg/css/group-with-shadow-expected.png: Added.
* platform/qt/svg/css/group-with-shadow-expected.txt: Added.
* platform/qt/svg/custom/clip-path-with-css-transform-1-expected.png: Copied from LayoutTests/platform/qt/css3/filters/blur-filter-page-scroll-expected.png.
* platform/qt/svg/custom/clip-path-with-css-transform-1-expected.txt: Added.
* platform/qt/svg/custom/clip-path-with-css-transform-2-expected.png: Copied from LayoutTests/platform/qt/css3/filters/blur-filter-page-scroll-expected.png.
* platform/qt/svg/custom/clip-path-with-css-transform-2-expected.txt: Added.
* platform/qt/svg/custom/feComponentTransfer-Discrete-expected.png: Added.
* platform/qt/svg/custom/feComponentTransfer-Discrete-expected.txt: Added.
* platform/qt/svg/custom/feComponentTransfer-Gamma-expected.png: Added.
* platform/qt/svg/custom/feComponentTransfer-Gamma-expected.txt: Added.
* platform/qt/svg/custom/feComponentTransfer-Linear-expected.png: Added.
* platform/qt/svg/custom/feComponentTransfer-Linear-expected.txt: Added.
* platform/qt/svg/custom/feComponentTransfer-Table-expected.png: Added.
* platform/qt/svg/custom/feComponentTransfer-Table-expected.txt: Added.
* platform/qt/svg/custom/gradient-deep-referencing-expected.txt:
* platform/qt/svg/custom/gradient-with-1d-boundingbox-expected.txt:
* platform/qt/svg/custom/hit-test-with-br-expected.png: Added.
* platform/qt/svg/custom/hit-test-with-br-expected.txt: Added.
* platform/qt/svg/custom/js-late-pattern-and-object-creation-expected.png: Added.
* platform/qt/svg/custom/js-late-pattern-and-object-creation-expected.txt: Added.
* platform/qt/svg/custom/js-late-pattern-creation-expected.png: Added.
* platform/qt/svg/custom/js-late-pattern-creation-expected.txt: Added.
* platform/qt/svg/custom/junk-data-expected.png: Added.
* platform/qt/svg/custom/junk-data-expected.txt: Added.
* platform/qt/svg/custom/missing-xlink-expected.png:
* platform/qt/svg/custom/missing-xlink-expected.txt:
* platform/qt/svg/custom/non-scaling-stroke-expected.png:
* platform/qt/svg/custom/non-scaling-stroke-expected.txt:
* platform/qt/svg/custom/painting-marker-07-f-inherit-expected.png: Copied from LayoutTests/platform/qt/css3/filters/blur-filter-page-scroll-expected.png.
* platform/qt/svg/custom/painting-marker-07-f-inherit-expected.txt: Added.
* platform/qt/svg/custom/path-bad-data-expected.png:
* platform/qt/svg/custom/path-bad-data-expected.txt:
* platform/qt/svg/custom/radial-gradient-with-outstanding-focalPoint-expected.png:
* platform/qt/svg/custom/radial-gradient-with-outstanding-focalPoint-expected.txt: Added.
* platform/qt/svg/custom/recursive-gradient-expected.txt:
* platform/qt/svg/custom/relative-sized-content-with-resources-expected.png:
* platform/qt/svg/custom/relative-sized-content-with-resources-expected.txt:
* platform/qt/svg/custom/small-rect-scale-expected.png: Copied from LayoutTests/platform/qt/svg/custom/visibility-override-filter-expected.png.
* platform/qt/svg/custom/small-rect-scale-expected.txt: Added.
* platform/qt/svg/custom/stroked-pattern-expected.txt:
* platform/qt/svg/custom/use-font-face-crash-expected.png:
* platform/qt/svg/custom/use-font-face-crash-expected.txt:
* platform/qt/svg/custom/use-invalid-pattern-expected.txt: Added.
* platform/qt/svg/custom/visibility-override-filter-expected.png:
* platform/qt/svg/dom/length-list-parser-expected.txt:
* platform/qt/svg/filters/big-sized-filter-2-expected.png: Added.
* platform/qt/svg/filters/big-sized-filter-2-expected.txt: Added.
* platform/qt/svg/filters/big-sized-filter-expected.png: Added.
* platform/qt/svg/filters/big-sized-filter-expected.txt: Added.
* platform/qt/svg/foreignObject/fO-display-none-expected.png: Copied from LayoutTests/platform/qt/css3/filters/blur-filter-page-scroll-expected.png.
* platform/qt/svg/foreignObject/fO-display-none-expected.txt: Added.
* platform/qt/svg/foreignObject/fO-display-none-with-relative-pos-content-expected.png: Copied from LayoutTests/platform/qt/css3/filters/blur-filter-page-scroll-expected.png.
* platform/qt/svg/foreignObject/fO-display-none-with-relative-pos-content-expected.txt: Added.
* platform/qt/svg/hixie/data-types/002-expected.png: Added.
* platform/qt/svg/hixie/data-types/002-expected.txt: Added.
* platform/qt/svg/hixie/error/012-expected.png: Added.
* platform/qt/svg/hixie/error/012-expected.txt: Added.
* platform/qt/svg/hixie/perf/006-expected.png:
* platform/qt/svg/hixie/perf/006-expected.txt:
* platform/qt/svg/text/bidi-embedded-direction-expected.png: Added.
* platform/qt/svg/text/bidi-embedded-direction-expected.txt: Added.
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-squeeze-1-expected.png: Added.
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-squeeze-1-expected.txt: Added.
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-squeeze-2-expected.png: Added.
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-squeeze-2-expected.txt: Added.
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-squeeze-3-expected.png: Added.
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-squeeze-3-expected.txt: Added.
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-squeeze-4-expected.png: Added.
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-squeeze-4-expected.txt: Added.
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-stretch-1-expected.png: Added.
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-stretch-1-expected.txt: Added.
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-stretch-2-expected.png: Added.
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-stretch-2-expected.txt: Added.
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-stretch-3-expected.png: Added.
* platform/qt/svg/text/select-textLength-spacingAndGlyphs-stretch-3-expected.txt: Added.
* platform/qt/svg/text/text-rescale-expected.png: Added.
* platform/qt/svg/text/text-rescale-expected.txt: Added.
* platform/qt/svg/zoom/page/zoom-coords-viewattr-01-b-expected.png:
* platform/qt/svg/zoom/page/zoom-coords-viewattr-01-b-expected.txt:
* platform/qt/svg/zoom/text/zoom-coords-viewattr-01-b-expected.png: Added.
* platform/qt/svg/zoom/text/zoom-coords-viewattr-01-b-expected.txt:

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

8 years ago[texmap] logic error in BitmapTextureGL::updateContents
commit-queue@webkit.org [Thu, 11 Oct 2012 17:28:02 +0000 (17:28 +0000)]
[texmap] logic error in BitmapTextureGL::updateContents
https://bugs.webkit.org/show_bug.cgi?id=98969

Patch by Arnaud Renevier <a.renevier@sisa.samsung.com> on 2012-10-11
Reviewed by Noam Rosenthal.

Incorrect test (bytesPerLine == targetRect.width() / 4) never
evaluates to true. Change it to correct test
(bytesPerLine == targetRect.width() * 4)

No new tests because no functional change.

* platform/graphics/texmap/TextureMapperGL.cpp:
(WebCore::BitmapTextureGL::updateContents):

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

8 years ago<rdar://problem/12477191> Combined text reverts to full-width font after a style...
mitz@apple.com [Thu, 11 Oct 2012 17:18:54 +0000 (17:18 +0000)]
<rdar://problem/12477191> Combined text reverts to full-width font after a style change
https://bugs.webkit.org/show_bug.cgi?id=99009

Reviewed by John Sullivan.

Source/WebCore:

Test: fast/text/text-combine-width-after-style-change.html

* rendering/RenderCombineText.cpp:
(WebCore::RenderCombineText::styleDidChange): Changed to reset m_isCombined to false, to
ensure that combineText() is called on the next layout.

LayoutTests:

* fast/text/text-combine-width-after-style-change-expected.html: Added.
* fast/text/text-combine-width-after-style-change.html: Added.

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

8 years agoaccelerated compositing does not work with ati driver
commit-queue@webkit.org [Thu, 11 Oct 2012 17:15:32 +0000 (17:15 +0000)]
accelerated compositing does not work with ati driver
https://bugs.webkit.org/show_bug.cgi?id=97472

Patch by Arnaud Renevier <a.renevier@sisa.samsung.com> on 2012-10-11
Reviewed by Martin Robinson.

Create m_parentWindow at positive position. Otherwise, parts of it are
not displayed on ati drivers.

Covered by existing tests.

* platform/gtk/RedirectedXCompositeWindow.cpp:
(WebCore::RedirectedXCompositeWindow::RedirectedXCompositeWindow):

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

8 years agoFix JPEG decoding faiure when IMAGE_DECODER_DOWN_SAMPLING is enabled
commit-queue@webkit.org [Thu, 11 Oct 2012 16:45:33 +0000 (16:45 +0000)]
Fix JPEG decoding faiure when IMAGE_DECODER_DOWN_SAMPLING is enabled
https://bugs.webkit.org/show_bug.cgi?id=98878

Patch by Jaehun Lim <ljaehun.lim@samsung.com> on 2012-10-11
Reviewed by Kenneth Russell.

When using libjpeg-turbo and enabling IMAGE_DECODER_DOWN_SAMPLING,
JPEG decoding failed because of no support for JCS_EXT_RGBA, JCS_EXT_BGRA.
Set RGBA values when color space is JCS_EXT_RGBA or JCS_EXT_BGRA.

No new tests.

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

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

8 years agoWeb Inspector: Preview HTML in ajax responses in network panel
vsevik@chromium.org [Thu, 11 Oct 2012 16:43:16 +0000 (16:43 +0000)]
Web Inspector: Preview HTML in ajax responses in network panel
https://bugs.webkit.org/show_bug.cgi?id=99066

Reviewed by Yury Semikhatsky.

HTML preview is now shown for XHR responses with text/html mime types.
Also RequestHTMLView is refactored to use sandbox iframe correctly.
Also extracted a method to generate dataURL from resource/request content.

* inspector/front-end/NetworkRequest.js:
(WebInspector.NetworkRequest):
(WebInspector.NetworkRequest.prototype.populateImageSource):
(WebInspector.NetworkRequest.prototype.asDataURL):
* inspector/front-end/RequestHTMLView.js:
(WebInspector.RequestHTMLView):
(WebInspector.RequestHTMLView.prototype._createIFrame):
* inspector/front-end/RequestPreviewView.js:
(WebInspector.RequestPreviewView.prototype._createPreviewView):
* inspector/front-end/Resource.js:
(WebInspector.Resource.prototype.populateImageSource):
* inspector/front-end/ResourceUtils.js:
(WebInspector.contentAsDataURL):

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

8 years agoRegression(r131058): Broke EFL build
commit-queue@webkit.org [Thu, 11 Oct 2012 16:37:54 +0000 (16:37 +0000)]
Regression(r131058): Broke EFL build
https://bugs.webkit.org/show_bug.cgi?id=99079

Unreviewed build fix.

Use iterator::value instead of iterator::second to fix
build break after r131058.

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-10-11

* platform/graphics/freetype/SimpleFontDataFreeType.cpp:
(WebCore::SimpleFontData::canRenderCombiningCharacterSequence):

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

8 years ago[GTK] REGRESSION(r131033): Favicons don't work in MiniBrowser
commit-queue@webkit.org [Thu, 11 Oct 2012 16:37:06 +0000 (16:37 +0000)]
[GTK] REGRESSION(r131033): Favicons don't work in MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=99019

Patch by Mario Sanchez Prada <msanchez@igalia.com> on 2012-10-11
Reviewed by Carlos Garcia Campos.

Enable the favicons database by specifying the default path for
the directory where the actual data will be stored.

* MiniBrowser/gtk/main.c:
(main): Set the default directory for the favicon database calling
webkit_web_context_set_favicon_database_directory().

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

8 years agoAlways enable the experiments tab for WebKit nightly
commit-queue@webkit.org [Thu, 11 Oct 2012 16:29:50 +0000 (16:29 +0000)]
Always enable the experiments tab for WebKit nightly

Web Inspector: Enabling experiments tab in WebKit nightly.
https://bugs.webkit.org/show_bug.cgi?id=98923

Patch by Mihai Balan <mibalan@adobe.com> on 2012-10-11
Reviewed by Pavel Feldman.

Enabling Web Inspector experiments tab in WebKit nightly. This is done by adding a new
Preference key, Preferences.experimentsEnabled. Default values are true for WebKit and false
for Chromium. They can also be overridden as before (in Chromium)

Source/WebCore:

* inspector/front-end/Settings.js:
(WebInspector.ExperimentsSettings.prototype.get experimentsEnabled):

Source/WebKit/chromium:

* src/js/DevTools.js:

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

8 years agoSource/WebCore: Support re-projection for Shadow DOM.
hayato@chromium.org [Thu, 11 Oct 2012 16:24:56 +0000 (16:24 +0000)]
Source/WebCore: Support re-projection for Shadow DOM.
https://bugs.webkit.org/show_bug.cgi?id=97151

Reviewed by Dimitri Glazkov.

Update node distribution algorithm so that nodes can be re-projected to insertion points
in nested shadow subtree.

See the latest Shadow DOM spec for what 're-projected' means:
- http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html
Also see the related W3C bug:
- http://www.w3.org/Bugs/Public/show_bug.cgi?id=18513

Since this change breaks existing behavior, we have to update several code at once, which includes:
- ContentDistributer: ContentDistributor now re-projects distributed nodes.
- ComposedShadowTreeWalker: ComposedShadowTreeWalker is now aware of re-projection. That can
  resolve re-projection transparently.
- AncestorChainWalker (formerly named ComposedShadowTreeParentWallker):
  AncestorChainWalker is now aware of re-projection. I've also added a crossingInsertionPoint()
  member function so that clients of the walker can know whether the walker is just crossing
  insertion points for a re-projected node.
- EventDispatcher: EventDispatcher now uses the updated AncestorChainWalker and its
  crossingInsertionPoint() so that EventDispatcher can compute relative target for each ancestor correctly.

I've also updated existing layout tests and added some layout tests for re-projection.
Re-projection for multiple shadow root is not supported yet. I'll address that in another bug.

Tests: fast/dom/shadow/composed-shadow-tree-walker.html
       fast/dom/shadow/shadow-dom-event-dispatching.html
       fast/dom/shadow/shadowdom-reprojection-1.html
       fast/dom/shadow/shadowdom-reprojection-2.html

* dom/ComposedShadowTreeWalker.cpp:
(WebCore::resolveReprojection):
(WebCore):
(WebCore::ComposedShadowTreeWalker::traverseSiblingOrBackToInsertionPoint):
(WebCore::ComposedShadowTreeWalker::traverseParent):
(WebCore::AncestorChainWalker::AncestorChainWalker):
(WebCore::AncestorChainWalker::parent):
* dom/ComposedShadowTreeWalker.h:
(AncestorChainWalker):
(WebCore::AncestorChainWalker::crossingInsertionPoint):
* dom/EventDispatcher.cpp:
(WebCore::EventRelatedTargetAdjuster::adjust):
(WebCore::EventDispatcher::ensureEventAncestors):
* dom/TreeScope.cpp:
(WebCore::TreeScope::focusedNode):
* html/HTMLLIElement.cpp:
(WebCore::HTMLLIElement::attach):
* html/shadow/ContentDistributor.cpp:
(WebCore::ContentDistributor::distribute):
* page/EventHandler.cpp:
(WebCore::EventHandler::updateMouseEventTargetNode):

LayoutTests: Update ComposedShadowTreeWalker for Shadow DOM re-projection.
https://bugs.webkit.org/show_bug.cgi?id=97151

Reviewed by Dimitri Glazkov.

* fast/dom/shadow/composed-shadow-tree-walker-expected.txt:
* fast/dom/shadow/composed-shadow-tree-walker.html:
* fast/dom/shadow/resources/shadow-dom.js:
(createShadowRootWithAttributes):
(createDOM):
* fast/dom/shadow/shadow-dom-event-dispatching.html:
* fast/dom/shadow/shadowdom-reprojection-1-expected.html: Added.
* fast/dom/shadow/shadowdom-reprojection-1.html: Added.
* fast/dom/shadow/shadowdom-reprojection-2-expected.html: Added.
* fast/dom/shadow/shadowdom-reprojection-2.html: Added.

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

8 years agoAdd missing WK_EXPORT for WKDOMTextIterator.
weinig@apple.com [Thu, 11 Oct 2012 16:20:55 +0000 (16:20 +0000)]
Add missing WK_EXPORT for WKDOMTextIterator.

Rubber-stamped by Brady Eidson.

* WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.h:

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

8 years agoMake ContentSelectorQuery work when siblings are passed explicitly.
shinyak@chromium.org [Thu, 11 Oct 2012 16:10:42 +0000 (16:10 +0000)]
Make ContentSelectorQuery work when siblings are passed explicitly.
https://bugs.webkit.org/show_bug.cgi?id=96990

Reviewed by Dimitri Glazkov.

When we implement content reprojection in ShadowDOM, we have to pass a node pool to SelectorChecker.
We introdue ShadowDOMSiblingTraversalStrategy, which traverses a node pool instead of real node siblings.

Since ContentSelector is a very hot place, we don't want to regress performance. In the previous patch,
we've make ContentSelector::checkOneSelector template to take SiblingTraversalStrategy as an argument.

We also move DOMSiblingTraversalStrategy to SiblingTraversalStrategies.h.

* GNUmakefile.list.am:
* Target.pri:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* css/SelectorChecker.cpp:
(WebCore):
* css/SelectorChecker.h:
* css/SiblingTraversalStrategies.h: Added.
(WebCore):
(DOMSiblingTraversalStrategy): Moved from SelectorChecker.
(WebCore::DOMSiblingTraversalStrategy::isFirstChild):
(WebCore::DOMSiblingTraversalStrategy::isLastChild):
(WebCore::DOMSiblingTraversalStrategy::isFirstOfType):
(WebCore::DOMSiblingTraversalStrategy::isLastOfType):
(WebCore::DOMSiblingTraversalStrategy::countElementsBefore):
(WebCore::DOMSiblingTraversalStrategy::countElementsOfTypeBefore):
(WebCore::DOMSiblingTraversalStrategy::countElementsAfter):
(WebCore::DOMSiblingTraversalStrategy::countElementsOfTypeAfter):
(WebCore::ShadowDOMSiblingTraversalStrategy::ShadowDOMSiblingTraversalStrategy):
(ShadowDOMSiblingTraversalStrategy): SiblingTraversalStrategy which uses a node pool instead of a real element
siblings. This strategy takes a vector of node which we traverse.
(WebCore::ShadowDOMSiblingTraversalStrategy::isFirstChild):
(WebCore::ShadowDOMSiblingTraversalStrategy::isLastChild):
(WebCore::ShadowDOMSiblingTraversalStrategy::isFirstOfType):
(WebCore::ShadowDOMSiblingTraversalStrategy::isLastOfType):
(WebCore::ShadowDOMSiblingTraversalStrategy::countElementsBefore):
(WebCore::ShadowDOMSiblingTraversalStrategy::countElementsAfter):
(WebCore::ShadowDOMSiblingTraversalStrategy::countElementsOfTypeBefore):
(WebCore::ShadowDOMSiblingTraversalStrategy::countElementsOfTypeAfter):
* css/StyleResolver.cpp:
* html/shadow/ContentDistributor.cpp:
(WebCore::ContentDistributor::distributeSelectionsTo):
* html/shadow/ContentSelectorQuery.cpp: Uses ShadowDOMSiblingTraversalStrategy instead of DOMSiblingTraversalStrategy.
(WebCore::ContentSelectorChecker::ContentSelectorChecker):
(WebCore):
(WebCore::ContentSelectorChecker::checkContentSelector):
(WebCore::ContentSelectorDataList::initialize):
(WebCore::ContentSelectorDataList::matches):
(WebCore::ContentSelectorQuery::ContentSelectorQuery):
(WebCore::ContentSelectorQuery::matches):
* html/shadow/ContentSelectorQuery.h:
(ContentSelectorChecker):
(WebCore):
(ContentSelectorDataList):
(ContentSelectorQuery):

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

8 years ago[EFL][WK2] NWTR should launch MiniBrowser instead of EWebLauncher after test run
commit-queue@webkit.org [Thu, 11 Oct 2012 16:01:49 +0000 (16:01 +0000)]
[EFL][WK2] NWTR should launch MiniBrowser instead of EWebLauncher after test run
https://bugs.webkit.org/show_bug.cgi?id=99075

Patch by Sudarsana Nagineni <sudarsana.nagineni@intel.com> on 2012-10-11
Reviewed by Kenneth Rohde Christiansen.

Pass the '-2' flag when executing run-launcher script after
testing with WebKitTestRunner.

* Scripts/webkitpy/layout_tests/port/efl.py:
(EflPort.show_results_html_file):

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

8 years agoRemoved incorrect pthread_mutex_trylock code in an ASSERT in TCMalloc_PageHeap::signa...
commit-queue@webkit.org [Thu, 11 Oct 2012 15:54:01 +0000 (15:54 +0000)]
Removed incorrect pthread_mutex_trylock code in an ASSERT in TCMalloc_PageHeap::signalScavenger. This
branch is used by the Webkit GTK code.

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

Patch by Mark Toller <mark.toller@samsung.com> on 2012-10-11
Reviewed by Geoffrey Garen.

The code was never compiled in, and was functionally broken. There is no need for locking around the
m_scavengeThreadActive flag, however, we should lock pageheap_lock before calling 'shouldScavenge()', as we
only want to scavenge when really required, so it's better to wait for any current memory operation to
complete before checking.

* wtf/FastMalloc.cpp:
(WTF::TCMalloc_PageHeap::signalScavenger):

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

8 years ago[Qt] GraphicsContextPlatformPrivate is leaking it's ShadowBlur
kbalazs@webkit.org [Thu, 11 Oct 2012 15:33:09 +0000 (15:33 +0000)]
[Qt] GraphicsContextPlatformPrivate is leaking it's ShadowBlur
https://bugs.webkit.org/show_bug.cgi?id=99073

Reviewed by Noam Rosenthal.

Stop leaking GraphicsContextPlatformPrivate::shadow.

No change in behavior so no new tests.

* platform/graphics/qt/GraphicsContextQt.cpp:
(WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
Always destroy shadow. It is obviously owned by the context so it has
nothing to do with the erly return.

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

8 years ago[EFL][WK2] Add support for Javascript popup boxes to MiniBrowser
commit-queue@webkit.org [Thu, 11 Oct 2012 15:25:07 +0000 (15:25 +0000)]
[EFL][WK2] Add support for Javascript popup boxes to MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=99021

Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-10-11
Reviewed by Kenneth Rohde Christiansen.

Add support for JavaScript popups (alert, confirm, prompt)
to MiniBrowser.

* MiniBrowser/efl/main.c:
(miniBrowserViewSmartClass):
(browser_view_find):
(quit_event_loop):
(on_ok_clicked):
(on_javascript_alert):
(on_javascript_confirm):
(on_javascript_prompt):
(window_create):
(elm_main):

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

8 years agoWebIDL: overloaded methods prevent number -> string conversion
jsbell@chromium.org [Thu, 11 Oct 2012 15:03:45 +0000 (15:03 +0000)]
WebIDL: overloaded methods prevent number -> string conversion
https://bugs.webkit.org/show_bug.cgi?id=85326

Reviewed by Kentaro Hara.

Source/WebCore:

Make the default behavior for overloaded methods matching DOMString arguments match the
default behavior for non-overloaded methods, which more closely matches the WebIDL spec.
Enable legacy behavior of only matching undefined/null/string/object(and not number,
boolean, etc) via the StrictTypeChecking attribute.

Tests: storage/indexeddb/cursor-overloads.html
       storage/indexeddb/legacy-constants.html
       ... and run-bindings-tests

* Modules/indexeddb/IDBCursor.cpp:
(WebCore::IDBCursor::stringToDirection): Handle "0"..."4" as stringified legacy constants.
* Modules/indexeddb/IDBCursor.h:
* Modules/indexeddb/IDBDatabase.cpp: Remove redundant overloads.
(WebCore::IDBDatabase::transaction): Remove redundant overloads.
* Modules/indexeddb/IDBDatabase.h:
(IDBDatabase):
* Modules/indexeddb/IDBDatabase.idl: Remove redundant overloads.
* Modules/indexeddb/IDBIndex.cpp: Remove redundant overloads.
(WebCore::IDBIndex::openCursor):
(WebCore::IDBIndex::openKeyCursor):
* Modules/indexeddb/IDBIndex.h: Remove redundant overloads.
(IDBIndex):
* Modules/indexeddb/IDBIndex.idl: Remove redundant overloads.
* Modules/indexeddb/IDBObjectStore.cpp: Remove redundant overloads.
(WebCore::IDBObjectStore::openCursor):
* Modules/indexeddb/IDBObjectStore.h: Remove redundant overloads.
(IDBObjectStore):
* Modules/indexeddb/IDBObjectStore.idl: Remove redundant overloads.
* Modules/indexeddb/IDBTransaction.cpp:
(WebCore::IDBTransaction::stringToMode): Handle "0"..."4" as stringified legacy constants.
* Modules/indexeddb/IDBTransaction.h:
* bindings/scripts/CodeGeneratorJS.pm: Check for StrictTypeChecking attribute.
(GenerateParametersCheckExpression):
* bindings/scripts/CodeGeneratorV8.pm: Ditto.
(GenerateParametersCheckExpression):
* bindings/scripts/test/JS/JSTestObj.cpp: Rebaselined.
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod11):
(WebCore):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod):
* bindings/scripts/test/TestObj.idl: Added [StrictTypeChecking] to DOMString overloads,
plus a new DOMString overload w/o it.
* bindings/scripts/test/V8/V8TestObj.cpp: Rebaselined.
(WebCore::TestObjV8Internal::overloadedMethod11Callback):
(TestObjV8Internal):
(WebCore::TestObjV8Internal::overloadedMethodCallback):
* html/canvas/CanvasRenderingContext2D.idl: Tag legacy overloads with [StrictTypeChecking].
* xml/XMLHttpRequest.idl: Ditto.

LayoutTests:

Updated expectations - new (more generic) console warnings.

* storage/indexeddb/cursor-overloads-expected.txt:
* storage/indexeddb/legacy-constants-expected.txt:

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

8 years agoUnreviewed GTK gardening.
zandobersek@gmail.com [Thu, 11 Oct 2012 15:01:55 +0000 (15:01 +0000)]
Unreviewed GTK gardening.

Cleaning up the expected failures section. Any test that is marked as a WontFix
should now have a small comment about the reasoning for such expectation, but no
bug modifier. Any other expectation should now have a dedicated bug entry in the
bugzilla that has the Gtk and LayoutTestFailure keywords. Also removed some
outdated expectations or moved them into the failing tests section.

* platform/gtk/TestExpectations:

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

8 years ago[EFL][jhbuild] Disable elm-web in elementary
ryuan.choi@samsung.com [Thu, 11 Oct 2012 14:52:17 +0000 (14:52 +0000)]
[EFL][jhbuild] Disable elm-web in elementary
https://bugs.webkit.org/show_bug.cgi?id=99005

Reviewed by Laszlo Gombos.

* efl/jhbuild.modules: Added --disable-web to elementary.

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

8 years ago[Qt] Unreviewed gardening after 131050, 131051.
kadam@inf.u-szeged.hu [Thu, 11 Oct 2012 14:51:54 +0000 (14:51 +0000)]
[Qt] Unreviewed gardening after 131050, 131051.

* platform/qt-5.0-wk2/TestExpectations:
* platform/qt/TestExpectations:

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

8 years ago[Chromium][Mac] r130994 seems to break chromium gpu test
commit-queue@webkit.org [Thu, 11 Oct 2012 14:49:57 +0000 (14:49 +0000)]
[Chromium][Mac] r130994 seems to break chromium gpu test
https://bugs.webkit.org/show_bug.cgi?id=98995

Patch by Justin Novosad <junov@chromium.org> on 2012-10-11
Reviewed by Stephen White.

Removing unnecessary assertion that was based on an invalid assumption
that 2d canvas draw operations were always called from within WebThread
tasks.

Test: Canvas2DAllowed chromium gpu_test

* platform/graphics/chromium/Canvas2DLayerManager.cpp:
(WebCore::Canvas2DLayerManager::willProcessTask):

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

8 years agoREGRESSION(130231): Causes 3 complex font test failures on EFL / Harfbuzz+Freetype
bashi@chromium.org [Thu, 11 Oct 2012 14:38:42 +0000 (14:38 +0000)]
REGRESSION(130231): Causes 3 complex font test failures on EFL / Harfbuzz+Freetype
https://bugs.webkit.org/show_bug.cgi?id=98247

Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

Implement canRenderCombiningCharacterSequence() for the Freetype case.

No new tests, covered by existing tests. Actually the lack of the implementation made
fast/text/atsui-multiple-renderers.html,  fast/text/atsui-spacing-features.html and
fast/text/wide-zero-width-space.html fail on EFL.

* platform/graphics/freetype/SimpleFontDataFreeType.cpp: Implement canRenderCombiningCharacterSequence().
(WebCore::SimpleFontData::canRenderCombiningCharacterSequence):

LayoutTests:

Removing temporary failures of complex font cases.

* platform/efl/TestExpectations:

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

8 years agoREGRESSION (r129478-r129480): http/tests/loading/text-content-type-with-binary-extens...
commit-queue@webkit.org [Thu, 11 Oct 2012 14:24:39 +0000 (14:24 +0000)]
REGRESSION (r129478-r129480): http/tests/loading/text-content-type-with-binary-extension.html failing on Apple MountainLion Debug WK2 (Tests)
https://bugs.webkit.org/show_bug.cgi?id=98527

Patch by Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> on 2012-10-11
Reviewed by Kenneth Rohde Christiansen.

Tools:

Added decidePolicyForResponse callback for WTR PagePolicyClient.

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

LayoutTests:

Rebased http/tests/loading/text-content-type-with-binary-extension.html for WK2 EFL, as dumping order is affected.
Other WK2 ports will have to do the same.

* platform/efl-wk2/http/tests/loading/text-content-type-with-binary-extension-expected.txt: Added.
* platform/gtk-wk2/TestExpectations:
* platform/mac-wk2/TestExpectations:
* platform/qt-5.0-wk2/TestExpectations:

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