Update comment added in r92139 per Darin's suggestion.
[WebKit.git] / Source / WebCore / ChangeLog
1 2011-08-01  Ryosuke Niwa  <rniwa@webkit.org>
2
3         Update comment added in r92139 per Darin's suggestion.
4
5         * css/CSSStyleSelector.cpp:
6         (WebCore::CSSStyleSelector::styleForElement):
7
8 2011-08-01  Ryosuke Niwa  <rniwa@webkit.org>
9
10         Search field in designMode causes a crash
11         https://bugs.webkit.org/show_bug.cgi?id=65362
12
13         Reviewed by Dimitri Glazkov.
14
15         The crashed was caused by editing code inadvertently deleting search and cancel buttons in the design mode.
16         Fixed the bug by avoid inheriting user-modify property from the shadow host.
17
18         Test: editing/input/search-field-crash-in-designmode.html
19
20         * css/CSSStyleSelector.cpp:
21         (WebCore::isAtShadowBoundary): Moved.
22         (WebCore::CSSStyleSelector::styleForElement): Overrides -webkit-user-modify by the initial value after m_style
23         inherited the values from m_parentStyle but before applying matched rules.
24         * dom/Node.cpp:
25         (WebCore::Node::rendererIsEditable): Ignore page's editability inside a shadow DOM.
26
27 2011-08-01  Marco Peereboom  <marco@peereboom.us>
28
29         [Soup] Set default max-conns to a more sane default value and fix comment 
30         https://bugs.webkit.org/show_bug.cgi?id=65335
31
32         Reviewed by Martin Robinson.
33
34         Rigged the xxxterm web browser and validated that the default values were set properly.
35
36         * platform/network/soup/ResourceHandleSoup.cpp:
37         (WebCore::ResourceHandle::defaultSession):
38
39 2011-07-28  Abhishek Arya  <inferno@chromium.org>
40
41         Regression(82144): Crash in TrailingObjects::updateMidpointsForTrailingBoxes
42         https://bugs.webkit.org/show_bug.cgi?id=65137
43
44         Fix the looping condition to prevent trailingSpaceMidpoint from becoming negative.
45
46         Reviewed by Dave Hyatt.
47
48         Test: fast/block/update-midpoints-for-trailing-boxes-crash.html
49
50         * rendering/RenderBlockLineLayout.cpp:
51         (WebCore::TrailingObjects::updateMidpointsForTrailingBoxes):
52
53 2011-08-01  Benjamin Poulain  <benjamin@webkit.org>
54
55         [Qt] OpenGLShims does not build on ARM
56         https://bugs.webkit.org/show_bug.cgi?id=65465
57
58         Reviewed by Noam Rosenthal.
59
60         Fix the build with OpenGL ES 2:
61         -lookupOpenGLFunctionAddress() was defined but not used for OpenGL ES.
62         -glBlitFramebuffer() and glRenderbufferStorageMultisample() are not part of the specification.
63         When those are available as platform extension, the extension has been added.
64         -GLchar is not defined on some platform. The patch adds the same typedef as the official definition
65         to avoid conflicts.
66
67         * platform/graphics/cairo/OpenGLShims.cpp:
68         (lookupOpenGLFunctionAddress):
69         (WebCore::initializeOpenGLShims):
70         * platform/graphics/cairo/OpenGLShims.h:
71
72 2011-08-01  Yury Semikhatsky  <yurys@chromium.org>
73
74         Unreviewed. Trivial fix for inspector/debugger/debugger-completions-on-call-frame.html after r92122.
75
76         * inspector/front-end/ConsoleView.js:
77
78 2011-08-01  Hayato Ito  <hayato@chromium.org>
79
80         Add support for getting an element in shadow root by its id into a window.internals object.
81         https://bugs.webkit.org/show_bug.cgi?id=64587
82
83         Reviewed by Hajime Morita.
84
85         Test: fast/dom/shadow/get-element-by-id-in-shadow-root.html
86
87         * WebCore.exp.in:
88         * testing/Internals.cpp:
89         (WebCore::Internals::getElementByIdInShadowRoot):
90         * testing/Internals.h:
91         * testing/Internals.idl:
92
93 2011-07-15  Hayato Ito  <hayato@chromium.org>
94
95         Add support for retrieving an element in TreeScope by id to window.internals object.
96         https://bugs.webkit.org/show_bug.cgi?id=64587
97
98         Reviewed by Hajime Morita.
99
100         Test: fast/dom/shadow/get-element-by-id-in-shadow.html
101
102         * WebCore.exp.in:
103         * testing/Internals.cpp:
104         (WebCore::Internals::getElementByIdInTreeScope):
105         * testing/Internals.h:
106         * testing/Internals.idl:
107
108 2011-08-01  Yury Semikhatsky  <yurys@chromium.org>
109
110         Web Inspector: typing an expression in an iframe leads to multiple "Unsafe JavaScript attempt to access frame..." errors
111         https://bugs.webkit.org/show_bug.cgi?id=65457
112
113         Console completions are now done using evaluation which returns a JSON object with all property names rather than a remote
114         object. Also Runtime.evaluate and Runtime.callFunctionOn commands were extended with an optional parameter that allows to
115         get result as JSON value.
116
117         Reviewed by Pavel Feldman.
118
119         Test: http/tests/inspector/console-cd-completions.html
120
121         * inspector/InjectedScript.cpp:
122         (WebCore::InjectedScript::evaluate):
123         (WebCore::InjectedScript::callFunctionOn):
124         * inspector/InjectedScript.h:
125         * inspector/InjectedScriptSource.js:
126         (.):
127         ():
128         * inspector/Inspector.json:
129         * inspector/InspectorRuntimeAgent.cpp:
130         (WebCore::asBool):
131         (WebCore::InspectorRuntimeAgent::evaluate):
132         (WebCore::InspectorRuntimeAgent::callFunctionOn):
133         * inspector/InspectorRuntimeAgent.h:
134         * inspector/front-end/ConsoleView.js:
135         (WebInspector.ConsoleView.prototype._completions.evaluated.getCompletions):
136         (WebInspector.ConsoleView.prototype._completions.evaluated):
137         (WebInspector.ConsoleView.prototype._completions.receivedPropertySet):
138         (WebInspector.ConsoleView.prototype._completions):
139         (WebInspector.ConsoleView.prototype.evalInInspectedWindow):
140         * inspector/front-end/RemoteObject.js:
141         (WebInspector.RemoteObject):
142         (WebInspector.RemoteObject.prototype.callFunction):
143         (WebInspector.RemoteObject.prototype.callFunctionJSON):
144         * inspector/front-end/WatchExpressionsSidebarPane.js:
145         (WebInspector.WatchExpressionsSection.prototype.update):
146
147 2011-08-01  Mihnea Ovidenie  <mihnea@adobe.com>
148
149         BORDER attribute with the object tag, using percentage values not working.
150         https://bugs.webkit.org/show_bug.cgi?id=65176
151
152         Reviewed by Hajime Morita.
153
154         When border presentational attribute for object element has % in it, it should be parsed using HTML parser rules.
155
156         Test: fast/borders/border-width-percent.html
157
158         * html/HTMLElement.cpp:
159         (WebCore::HTMLElement::parseBorderWidthAttribute):
160         * html/HTMLElement.h:
161         * html/HTMLImageElement.cpp:
162         * html/HTMLObjectElement.cpp:
163         (WebCore::HTMLObjectElement::parseMappedAttribute):
164
165 2011-08-01  Yuta Kitamura  <yutak@chromium.org>
166
167         WebSocket: Receive URL and subprotocol in WebSocketChannel::connect()
168         https://bugs.webkit.org/show_bug.cgi?id=65367
169
170         Reviewed by Kent Tamura.
171
172         To implement multiple subprotocols support (bug 65247), WebSocket::connect() will need to validate
173         the value of subprotocols after constructing WebSocketChannel, because the result depends on which
174         WebSocket protocol is used, which is obtained from WebSocketChannel::useHixie76Protocol(). This
175         means the subprotocol value will not be available at the time of WebSocketChannel construction.
176
177         This change moves URL and subprotocol arguments in WebSocketChannel constructor to
178         WebSocketChannel::connect(), which allows WebSocket::connect() function to check the subprotocol
179         value before the actual connection is established.
180
181         Relocating URL argument is technically not necessary, but seemed legitimate in terms of functional
182         correspondence between WebSocket and WebSocketChannel (constructor versus connect()).
183
184         No change in behavior, thus no new tests.
185
186         * websockets/ThreadableWebSocketChannel.cpp:
187         Remove "url" and "protocol" arguments from constructor and add them in connect().
188         (WebCore::ThreadableWebSocketChannel::create):
189         * websockets/ThreadableWebSocketChannel.h:
190         * websockets/WebSocket.cpp:
191         (WebCore::WebSocket::connect):
192         * websockets/WebSocketChannel.cpp: Same as ThreadableWebSocketChannel.
193         (WebCore::WebSocketChannel::WebSocketChannel):
194         (WebCore::WebSocketChannel::connect):
195         InspectorInstrumentation::didCreateWebSocket() call was moved to connect() because it needs URL.
196         This does not change behavior, because connect() is guaranteed to be called immediately after
197         WebSocketChannel is constructed.
198         * websockets/WebSocketChannel.h:
199         (WebCore::WebSocketChannel::create):
200         * websockets/WorkerThreadableWebSocketChannel.cpp: Same as ThreadableWebSocketChannel.
201         (WebCore::WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel):
202         (WebCore::WorkerThreadableWebSocketChannel::connect):
203         (WebCore::WorkerThreadableWebSocketChannel::Peer::Peer):
204         (WebCore::WorkerThreadableWebSocketChannel::Peer::connect):
205         (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel):
206         (WebCore::WorkerThreadableWebSocketChannel::Bridge::Bridge):
207         (WebCore::WorkerThreadableWebSocketChannel::mainThreadConnect):
208         (WebCore::WorkerThreadableWebSocketChannel::Bridge::connect):
209         * websockets/WorkerThreadableWebSocketChannel.h:
210         (WebCore::WorkerThreadableWebSocketChannel::create):
211         (WebCore::WorkerThreadableWebSocketChannel::Peer::create):
212         (WebCore::WorkerThreadableWebSocketChannel::Bridge::create):
213
214 2011-08-01  Luke Macpherson   <macpherson@chromium.org>
215
216         Add iterator to CSSValueList
217         https://bugs.webkit.org/show_bug.cgi?id=65297
218
219         Reviewed by Darin Adler.
220
221         No new tests / refactoring only.
222
223         * css/CSSPrimitiveValue.h:
224         (WebCore::CSSPrimitiveValue::isLength):
225         Add shorthand to determine if this primitive value is a length.
226         * css/CSSStyleSelector.cpp:
227         Use CSSValueListIterator throughout.
228         (WebCore::CSSStyleSelector::applyProperty):
229         (WebCore::CSSStyleSelector::applyPageSizeProperty):
230         (WebCore::CSSStyleSelector::createTransformOperations):
231         * css/CSSValueList.cpp:
232         (WebCore::CSSValueList::copy):
233         Use itemWithoutBoundsCheck() instead of item().
234         * css/CSSValueList.h:
235         Add CSSValueListIterator and CSSValueListInspector class definitions.
236         (WebCore::CSSValueList::item)
237         Provide inline definition of item.
238         (WebCore::CSSValueListIterator::CSSValueListIterator):
239         (WebCore::CSSValueListIterator::hasMore):
240         Return true if there are more values to consume, including the current value.
241         (WebCore::CSSValueListIterator::value):
242         Return the value at the current position.
243         (WebCore::CSSValueListIterator::next):
244         Move the iterator forward to the next item.
245         (WebCore::CSSValueListIterator::index):
246         Return the current position in the list.
247         (WebCore::CSSValueListInspector::item):
248         Return the item at a given index.
249         (WebCore::CSSValueListInspector::first):
250         Return the first item in the list.
251         (WebCore::CSSValueListInspector::second):
252         Return the second item in the list.
253         (WebCore::CSSValueListInspector::length):
254         Return the size of the underlying list.
255
256 2011-08-01  Pavel Feldman  <pfeldman@google.com>
257
258         Web Inspector: group scripts by folder in the scripts selector.
259         https://bugs.webkit.org/show_bug.cgi?id=65321
260
261         Reviewed by Yury Semikhatsky.
262
263         Test: inspector/debugger/scripts-sorting.html
264
265         * inspector/front-end/ScriptsPanel.js:
266         (WebInspector.ScriptsPanel.prototype._sourceFileAdded.get if):
267         (WebInspector.ScriptsPanel.prototype._addOptionToFilesSelect.insertOrdered.optionCompare):
268         (WebInspector.ScriptsPanel.prototype._addOptionToFilesSelect.insertOrdered):
269         (WebInspector.ScriptsPanel.prototype._addOptionToFilesSelect):
270         (WebInspector.ScriptsPanel.prototype._folderAndDisplayNameForScriptURL):
271         (WebInspector.ScriptsPanel.prototype.reset):
272         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.suggestedFileName):
273
274 2011-07-28  Pavel Feldman  <pfeldman@google.com>
275
276         Web Inspector: [protocol] methods where all parameters are optional should not require empty params object.
277         https://bugs.webkit.org/show_bug.cgi?id=65331
278
279         Reviewed by Yury Semikhatsky.
280
281         * inspector/CodeGeneratorInspector.pm:
282         (generateBackendFunction):
283         (generateArgumentGetters):
284
285 2011-08-01  Adam Barth  <abarth@webkit.org>
286
287         application/json MIME type shouldn't cause warnings in <script> tags
288         https://bugs.webkit.org/show_bug.cgi?id=65448
289
290         Reviewed by Pavel Feldman.
291
292         This patch stops the web inspector from logging a ton of spam warnings
293         when a web page uses a JSONP service (which points script tags at
294         application/json resources).
295
296         * inspector/front-end/inspector.js:
297         (WebInspector.reset):
298
299 2011-08-01  Yuta Kitamura  <yutak@chromium.org>
300
301         WebSocket: Rename SocketStreamHandleClient member functions
302         https://bugs.webkit.org/show_bug.cgi?id=65374
303
304         Reviewed by Kent Tamura.
305
306         Rename SocketStreamHandleClient member functions to avoid conflict of the names of
307         FileReaderLoaderClient functions.
308
309         No change in behavior, thus no new tests are added.
310
311         * platform/network/SocketStreamHandleClient.h:
312         (WebCore::SocketStreamHandleClient::didOpenSocketStream):
313         (WebCore::SocketStreamHandleClient::didCloseSocketStream):
314         (WebCore::SocketStreamHandleClient::didReceiveSocketStreamData):
315         (WebCore::SocketStreamHandleClient::didFailSocketStream):
316         * platform/network/brew/SocketStreamHandleBrew.cpp:
317         (WebCore::SocketStreamHandlePrivate::socketConnected):
318         (WebCore::SocketStreamHandlePrivate::socketReadyRead):
319         (WebCore::SocketStreamHandlePrivate::socketClosed):
320         (WebCore::SocketStreamHandlePrivate::socketError):
321         * platform/network/cf/SocketStreamHandleCFNet.cpp:
322         (WebCore::SocketStreamHandle::addCONNECTCredentials):
323         (WebCore::SocketStreamHandle::readStreamCallback):
324         (WebCore::SocketStreamHandle::writeStreamCallback):
325         (WebCore::SocketStreamHandle::reportErrorToClient):
326         (WebCore::SocketStreamHandle::platformClose):
327         * platform/network/qt/SocketStreamHandleQt.cpp:
328         (WebCore::SocketStreamHandlePrivate::socketConnected):
329         (WebCore::SocketStreamHandlePrivate::socketReadyRead):
330         (WebCore::SocketStreamHandlePrivate::socketClosedCallback):
331         (WebCore::SocketStreamHandlePrivate::socketErrorCallback):
332         * platform/network/soup/SocketStreamHandleSoup.cpp:
333         (WebCore::SocketStreamHandle::connected):
334         (WebCore::SocketStreamHandle::readBytes):
335         (WebCore::SocketStreamHandle::platformSend):
336         (WebCore::SocketStreamHandle::platformClose):
337         * websockets/WebSocketChannel.cpp:
338         (WebCore::WebSocketChannel::didOpenSocketStream):
339         (WebCore::WebSocketChannel::didCloseSocketStream):
340         (WebCore::WebSocketChannel::didReceiveSocketStreamData):
341         (WebCore::WebSocketChannel::didFailSocketStream):
342         (WebCore::WebSocketChannel::resumeTimerFired):
343         * websockets/WebSocketChannel.h:
344
345 2011-07-31  Sheriff Bot  <webkit.review.bot@gmail.com>
346
347         Unreviewed, rolling out r92094.
348         http://trac.webkit.org/changeset/92094
349         https://bugs.webkit.org/show_bug.cgi?id=65443
350
351         Triggered many asserts (Requested by abarth on #webkit).
352
353         * dom/EventDispatcher.cpp:
354         (WebCore::EventDispatcher::dispatchEvent):
355
356 2011-07-31  Dominic Cooney  <dominicc@chromium.org>
357
358         Event target set to null post event dispatch
359         https://bugs.webkit.org/show_bug.cgi?id=63934
360
361         Reviewed by Dimitri Glazkov.
362
363         Test: fast/events/event-target-reset.html
364
365         * dom/EventDispatcher.cpp:
366         (WebCore::EventDispatcher::dispatchEvent): Reset target to outermost
367         shadow host.
368
369 2011-07-31  Sam Weinig  <sam@webkit.org>
370
371         REGRESSION: getBoundingClientRect() method of Range incorrectly returns null for collapsed Range
372         https://bugs.webkit.org/show_bug.cgi?id=65324
373
374         Reviewed by Ryosuke Niwa.
375
376         Update to more closely match the spec.
377
378         * dom/Range.cpp:
379         (WebCore::Range::getClientRects):
380         Return an empty ClientRectList instead of null when the range is empty.
381
382         (WebCore::Range::getBoundingClientRect):
383         Always return a ClientRect, even for an empty bounding rect.
384
385 2011-07-29  Ryosuke Niwa  <rniwa@webkit.org>
386
387         [HTML5] Implement the selectionDirection property on input and textarea
388         https://bugs.webkit.org/show_bug.cgi?id=60403
389
390         Reviewed by Darin Adler.
391
392         Implements selectionDirection property as specified in HTML5 section 4.10.20:
393         http://www.whatwg.org/specs/web-apps/current-work/#textFieldSelection
394
395         selectionDirection is a property on input and textarea elements, which, on getting returns either "none",
396         "forward", or "backward" corresponding to the current selection direction, and on setting, modifies
397         the direction of the current selection. When selection doesn't exist or direction is unknown, "none"
398         is returned on getting. Setting the property value to neither of above values will result in setting "none".
399
400         This patch also adds the optional third argument, direction, to setSelectionRange.
401
402         Test: fast/forms/selection-direction.html
403               fast/forms/selection-wrongtype.html
404
405         * bindings/js/JSHTMLInputElementCustom.cpp:
406         (WebCore::JSHTMLInputElement::selectionDirection): Added.
407         (WebCore::JSHTMLInputElement::setSelectionDirection): Added.
408         (WebCore::JSHTMLInputElement::setSelectionRange): Processes the third argument.
409         * bindings/v8/custom/V8HTMLInputElementCustom.cpp:
410         (WebCore::V8HTMLInputElement::selectionDirectionAccessorGetter): Added.
411         (WebCore::V8HTMLInputElement::selectionDirectionAccessorSetter): Added.
412         (WebCore::V8HTMLInputElement::setSelectionRangeCallback): Processes the third argument.
413         * html/HTMLTextAreaElement.cpp:
414         (WebCore::HTMLTextAreaElement::updateFocusAppearance): Calls hasCachedSelection.
415         * html/HTMLInputElement.cpp:
416         (WebCore::HTMLInputElement::updateFocusAppearance): Ditto.
417         (WebCore::HTMLInputElement::setValue): Calls cacheSelection with SelectionHasNoDirection.
418         * html/HTMLTextAreaElement.idl: Added selectionDirection and the third argument to setSelectionRange.
419         * html/HTMLInputElement.idl: Ditto.
420         * html/HTMLTextFormControlElement.cpp:
421         (WebCore::HTMLTextFormControlElement::HTMLTextFormControlElement): Initializes
422         m_cachedSelectionDirection.
423         (WebCore::HTMLTextFormControlElement::setSelectionStart): Calls setSelectionRange.
424         (WebCore::HTMLTextFormControlElement::setSelectionEnd): Ditto.
425         (WebCore::HTMLTextFormControlElement::setSelectionDirection): Added.
426         (WebCore::HTMLTextFormControlElement::select): Calls setSelectionRange with SelectionHasNoDirection.
427         (WebCore::HTMLTextFormControlElement::setSelectionRange): Added the version that takes direction
428         string as the third argument, which calls the version that takes two ints and TextFieldSelectionDirection.
429         (WebCore::HTMLTextFormControlElement::selectionStart): Calls hasCachedSelection.
430         (WebCore::HTMLTextFormControlElement::selectionEnd): Ditto.
431         (WebCore::directionString): Added.
432         (WebCore::HTMLTextFormControlElement::selectionDirection): Added.
433         (WebCore::HTMLTextFormControlElement::computeSelectionDirection): Added.
434         (WebCore::HTMLTextFormControlElement::selection): Calls hasCachedSelection.
435         (WebCore::HTMLTextFormControlElement::restoreCachedSelection): Calls setSelectionRange.
436         (WebCore::HTMLTextFormControlElement::selectionChanged): Calls cacheSelection.
437         * html/HTMLTextFormControlElement.h:
438         (WebCore::HTMLTextFormControlElement::cacheSelection): Takes TextFieldSelectionDirection.
439         (WebCore::HTMLTextFormControlElement::hasCachedSelection): Extracted from hasCachedSelectionStart;
440         cacheSelection is the only function that modifies m_cacheSelectionStart and m_cacheSelectionEnd
441         and none of its callers ever set one of them be -1 so they are always both -1 or both non-negative.
442         Thus, having two separate functions for m_cacheSelectionStart and m_cacheSelectionEnd was redundant.
443
444 2011-07-31  Daniel Bates  <dbates@webkit.org>
445
446         [GTK] Remove unused variable coreChild in WebCore::getChildForTable()
447         https://bugs.webkit.org/show_bug.cgi?id=65427
448
449         This variable was unused when it was initially added in <http://trac.webkit.org/changeset/89660> (bug #62718)
450         and it is unused today. We should remove it. This will also resolve a compiler warning.
451
452         Reviewed by Xan Lopez.
453
454         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
455         (getChildForTable):
456
457 2011-07-30  Daniel Bates  <dbates@webkit.org>
458
459         Fix the WinCairo Debug build after <http://trac.webkit.org/changeset/91914>
460         (https://bugs.webkit.org/show_bug.cgi?id=64744)
461
462         * WebCore.vcproj/WebCore.vcproj: Remove ContextShadowCairo.cpp from the build since this
463           file was deleted in <http://trac.webkit.org/changeset/91914>.
464
465 2011-07-30  Daniel Bates  <dbates@webkit.org>
466
467         Fix the Chromium Linux Release Flexbot build after <http://trac.webkit.org/changeset/92004>
468         (https://bugs.webkit.org/show_bug.cgi?id=65342)
469
470         * rendering/RenderFlexibleBox.cpp:
471         (WebCore::RenderFlexibleBox::layoutBlock): Update the definition of RenderFlexibleBox::layoutBlock()
472         to be consistent with its declaration in RenderFlexibleBox.h; Add argument layoutPass of type BlockLayoutPass.
473
474 2011-07-30  Adam Barth  <abarth@webkit.org>
475
476         Update run-bindings-tests results after
477         http://trac.webkit.org/changeset/92068
478
479         * bindings/scripts/test/JS/JSTestCallback.cpp:
480
481 2011-07-30  Patrick Gansterer  <paroga@webkit.org>
482
483         Remove inclusion of MainThread.h from Threading.h
484         https://bugs.webkit.org/show_bug.cgi?id=65081
485
486         Reviewed by Darin Adler.
487
488         Add missing include statements for MainThread.
489
490         * bindings/js/DOMWrapperWorld.cpp:
491         * bindings/js/JSDOMWindowBase.cpp:
492         * bindings/scripts/CodeGeneratorJS.pm:
493         (GenerateCallbackImplementation):
494         * bindings/v8/DOMDataStore.cpp:
495         * bindings/v8/DOMWrapperWorld.cpp:
496         * bindings/v8/V8Binding.cpp:
497         * bindings/v8/V8DOMMap.cpp:
498         * bindings/v8/V8DOMWrapper.h:
499         * dom/EventTarget.cpp:
500         * fileapi/LocalFileSystem.cpp:
501         * loader/CrossOriginPreflightResultCache.cpp:
502         * loader/ResourceLoadScheduler.cpp:
503         * loader/WorkerThreadableLoader.cpp:
504         * loader/appcache/ApplicationCacheGroup.cpp:
505         * page/DOMWindow.cpp:
506         * page/History.cpp:
507         * page/SecurityOrigin.cpp:
508         * page/mac/EventHandlerMac.mm:
509         * platform/MIMETypeRegistry.cpp:
510         * platform/ThreadGlobalData.cpp:
511         * platform/ThreadTimers.cpp:
512         * platform/TreeShared.h:
513         * platform/audio/HRTFDatabaseLoader.cpp:
514         * platform/graphics/Font.cpp:
515         * platform/graphics/FontFallbackList.h:
516         * platform/graphics/FontFastPath.cpp:
517         * platform/graphics/Image.cpp:
518         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
519         * platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp:
520         * platform/graphics/cg/ImageBufferCG.cpp:
521         * platform/graphics/chromium/LayerRendererChromium.cpp:
522         * platform/graphics/chromium/cc/CCLayerTreeHostImplProxy.cpp:
523         * platform/mac/LocalizedStringsMac.mm:
524         * platform/mac/SharedBufferMac.mm:
525         * platform/network/BlobResourceHandle.cpp:
526         * platform/network/cf/DNSCFNet.cpp:
527         * platform/network/cf/LoaderRunLoopCF.cpp:
528         * platform/text/LocalizedNumberICU.cpp:
529         * platform/text/TextEncodingRegistry.cpp:
530         * platform/text/mac/LocalizedNumberMac.mm:
531         * platform/win/LocalizedStringsWin.cpp:
532         * storage/LocalStorageThread.cpp:
533         * storage/StorageAreaImpl.cpp:
534         * storage/StorageAreaSync.cpp:
535         * storage/StorageNamespaceImpl.cpp:
536         * storage/StorageSyncManager.cpp:
537         * webaudio/AsyncAudioDecoder.cpp:
538         * webaudio/AudioBufferSourceNode.cpp:
539         * webaudio/AudioContext.h
540         * webaudio/AudioContext.cpp:
541         * webaudio/AudioNode.cpp:
542         * webaudio/ConvolverNode.cpp:
543         * webaudio/OfflineAudioDestinationNode.cpp:
544         * webaudio/RealtimeAnalyser.cpp:
545         * webaudio/WaveShaperNode.cpp:
546         * websockets/WorkerThreadableWebSocketChannel.cpp:
547         * workers/WorkerMessagingProxy.cpp:
548
549 2011-07-30  Enrica Casucci  <enrica@apple.com>
550
551         REGRESSION: culledInlineAbsoluteRects needs to translate a 0,0 point to absolute
552         coordinates so that the top left position is accurate.
553         https://bugs.webkit.org/show_bug.cgi?id=65419
554         <rdar://problem/9408862>
555
556         This patch fixes a regression introduced in r83075.
557         Make sure that culledInlineAbsoluteRects still does
558         a translation of a 0,0 point to absolute coordinates so that the top left position is
559         accurate.
560         This code path could not be tested via JavaScript. The patch
561         extends the Internals object to be able to test this case.
562
563         Reviewed by Dan Bernstein.
564
565         Test: fast/inline/skipped-whitespace-boundingBox.html
566
567         * WebCore.exp.in: Added some exports.
568         * rendering/RenderInline.cpp:
569         (WebCore::RenderInline::culledInlineAbsoluteRects):
570         * testing/Internals.cpp:
571         (WebCore::Internals::boundingBox):
572         * testing/Internals.h:
573         * testing/Internals.idl:
574
575 2011-07-26  Pavel Podivilov  <podivilov@chromium.org>
576
577         Web Inspector: move location conversion functions to SourceFile.
578         https://bugs.webkit.org/show_bug.cgi?id=65185
579
580         Reviewed by Pavel Feldman.
581
582         Test: inspector/debugger/source-file.html
583
584         * inspector/front-end/DebuggerPresentationModel.js:
585         (WebInspector.DebuggerPresentationModel.prototype._scriptLocationToUILocation.didCreateSourceMapping):
586         (WebInspector.DebuggerPresentationModel.prototype._scriptLocationToUILocation):
587         (WebInspector.DebuggerPresentationModel.prototype._uiLocationToScriptLocation.didCreateSourceMapping):
588         (WebInspector.DebuggerPresentationModel.prototype._uiLocationToScriptLocation):
589         * inspector/front-end/SourceFile.js:
590         (WebInspector.SourceFile.prototype.rawLocationToUILocation):
591         (WebInspector.SourceFile.prototype.uiLocationToRawLocation):
592         (WebInspector.SourceFile.prototype._scriptForRawLocation):
593         (WebInspector.SourceFile.prototype.createSourceMappingIfNeeded):
594         (WebInspector.FormattedSourceFile.prototype.createSourceMappingIfNeeded):
595         (WebInspector.FormattedSourceFile.prototype._didRequestContent):
596
597 2011-07-29  Rob Buis  <rbuis@rim.com>
598
599         URL references are completely broken in SVG
600         https://bugs.webkit.org/show_bug.cgi?id=63283
601
602         Reviewed by Nikolas Zimmermann.
603
604         Change SVGURIElement::getTarget to be more strict about iri resolving and make it serve as a central
605         place to resolve a iri to a SVGElement. The iri can be same-document or external, for now we only handle
606         the former, the latter will be handled in bug 65344.
607         Accept as same-document if the iri combined with the base uri equals the document url (ignoring
608         the fragment identifier). For convenience a method is added to lookup the element, if found.
609
610         Tests: svg/custom/external-paintserver-reference.svg
611                svg/custom/linking-base-external-reference.xhtml
612                svg/custom/uri-reference-handling.svg
613
614         * css/CSSCursorImageValue.cpp:
615         (WebCore::resourceReferencedByCursorElement):
616         (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
617         (WebCore::CSSCursorImageValue::updateIfSVGCursorIsUsed):
618         * css/CSSFontFaceSource.cpp:
619         (WebCore::CSSFontFaceSource::getFontData):
620         * css/CSSFontSelector.h:
621         (WebCore::CSSFontSelector::document):
622         * css/SVGCSSStyleSelector.cpp:
623         (WebCore::CSSStyleSelector::applySVGProperty):
624         * rendering/svg/RenderSVGTextPath.cpp:
625         (WebCore::RenderSVGTextPath::layoutPath):
626         * rendering/svg/SVGResources.cpp:
627         (WebCore::targetReferenceFromResource):
628         (WebCore::paintingResourceFromSVGPaint):
629         * svg/SVGAltGlyphElement.cpp:
630         (WebCore::SVGAltGlyphElement::hasValidGlyphElements):
631         * svg/SVGFEImageElement.cpp:
632         (WebCore::SVGFEImageElement::requestImageResource):
633         (WebCore::SVGFEImageElement::build):
634         * svg/SVGGlyphRefElement.cpp:
635         (WebCore::SVGGlyphRefElement::hasValidGlyphElement):
636         * svg/SVGLinearGradientElement.cpp:
637         (WebCore::SVGLinearGradientElement::collectGradientAttributes):
638         * svg/SVGMPathElement.cpp:
639         (WebCore::SVGMPathElement::pathElement):
640         * svg/SVGPaint.cpp:
641         (WebCore::SVGPaint::matchesTargetURI):
642         * svg/SVGPatternElement.cpp:
643         (WebCore::SVGPatternElement::collectPatternAttributes):
644         * svg/SVGRadialGradientElement.cpp:
645         (WebCore::SVGRadialGradientElement::collectGradientAttributes):
646         * svg/SVGTRefElement.cpp:
647         (WebCore::SVGTRefElement::updateReferencedText):
648         (WebCore::SVGTRefElement::svgAttributeChanged):
649         (WebCore::SVGTRefElement::buildPendingResource):
650         * svg/SVGTextPathElement.cpp:
651         (WebCore::SVGTextPathElement::insertedIntoDocument):
652         * svg/SVGURIReference.cpp:
653         (WebCore::SVGURIReference::fragmentIdentifierFromIRIString):
654         (WebCore::SVGURIReference::targetElementFromIRIString):
655         * svg/SVGURIReference.h:
656         * svg/SVGUseElement.cpp:
657         (WebCore::SVGUseElement::buildPendingResource):
658         (WebCore::SVGUseElement::hasCycleUseReferencing):
659         (WebCore::SVGUseElement::expandUseElementsInShadowTree):
660         * svg/animation/SVGSMILElement.cpp:
661         (WebCore::SVGSMILElement::targetElement):
662
663 2011-07-29  James Simonsen  <simonjam@chromium.org>
664
665         Remove zipcar.com site specific hack added in r87361
666         https://bugs.webkit.org/show_bug.cgi?id=65405
667
668         Reviewed by Adam Barth.
669
670         * html/HTMLScriptElement.cpp:
671         (WebCore::HTMLScriptElement::insertedIntoDocument):
672
673 2011-07-29  James Robinson  <jamesr@chromium.org>
674
675         [chromium] Reorder functions in LayerRendererChromium.cpp to make bug 58840 easier to review
676         https://bugs.webkit.org/show_bug.cgi?id=65354
677
678         Reviewed by Kenneth Russell.
679
680         This moves a few function definitions in LayerRendererChromium around to make the patch on bug 58840 easier to
681         review.  In that patch, updatePropertiesAndRenderSurfaces() becomes a templated free function instead of a
682         member function, so it has to be near the top of the .cpp.
683
684         * platform/graphics/chromium/LayerRendererChromium.cpp:
685         (WebCore::calculateVisibleRect):
686         (WebCore::isScaleOrTranslation):
687         (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces):
688         (WebCore::LayerRendererChromium::updateLayers):
689
690 2011-07-29  Jeff Miller  <jeffm@apple.com>
691
692         Work-in-progress on Adopt AVCF media back end on Windows
693         https://bugs.webkit.org/show_bug.cgi?id=65400
694         <rdar://problem/9083559>
695         
696         Prepare WebCore.vcproj to support AVCF media back end on Windows.
697
698         Reviewed by Darin Adler.
699
700         No changes to functionality so no new tests.
701
702         * WebCore.vcproj/WebCore.vcproj: Added MediaPlayerPrivateAVFoundation and MediaPlayerPrivateAVFoundationCF sources.
703         * WebCore.vcproj/WebCoreMediaQT.vsprops: Added additional include directories and dleay load DLLs for AVCF.
704         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationCF.cpp: Added, just a stub for now.
705         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationCF.h: Added, just a stub for now.
706
707 2011-07-29  Jeff Miller  <jeffm@apple.com>
708
709         Work-in-progress on Adopt AVCF media back end on Windows
710         https://bugs.webkit.org/show_bug.cgi?id=65400
711         <rdar://problem/9083559>
712         
713         Make MediaPlayerPrivateAVFoundation::setDelayCallbacks() const and make the ivars
714         it references mutable so other const member functions can call it.
715
716         Reviewed by Darin Adler.
717
718         No changes to functionality so no new tests.
719
720         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
721         (WebCore::MediaPlayerPrivateAVFoundation::setDelayCallbacks):
722         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
723
724 2011-07-29  Zhenyao Mo  <zmo@google.com>
725
726         Unreviewed, rolling out r92011.
727         http://trac.webkit.org/changeset/92011
728         https://bugs.webkit.org/show_bug.cgi?id=65044
729
730         break chromium win build
731
732         * dom/WheelEvent.cpp:
733         (WebCore::WheelEvent::WheelEvent):
734         (WebCore::WheelEvent::initWheelEvent):
735         * dom/WheelEvent.h:
736         * page/EventHandler.cpp:
737         (WebCore::EventHandler::EventHandler):
738         (WebCore::EventHandler::handleGestureEvent):
739         (WebCore::EventHandler::handleTouchEvent):
740         (WebCore::EventHandler::resetGestureRecognizer):
741         * page/EventHandler.h:
742         * page/FrameView.cpp:
743         (WebCore::FrameView::reset):
744         * platform/PlatformGestureEvent.h:
745         * platform/PlatformGestureRecognizer.h:
746         * platform/ScrollAnimatorWin.cpp:
747         * platform/chromium/FramelessScrollView.h:
748         * platform/chromium/GestureRecognizerChromium.cpp:
749         (WebCore::InnerGestureRecognizer::InnerGestureRecognizer):
750         (WebCore::InnerGestureRecognizer::reset):
751         (WebCore::InnerGestureRecognizer::dispatchSyntheticClick):
752         (WebCore::InnerGestureRecognizer::processTouchEventForGesture):
753         (WebCore::InnerGestureRecognizer::scrollViaTouchMotion):
754         (WebCore::touchDown):
755         (WebCore::noGesture):
756         (WebCore::click):
757         (WebCore::isClickOrScroll):
758         (WebCore::inScroll):
759         * platform/chromium/GestureRecognizerChromium.h:
760         (WebCore::GestureRecognizerChromium::reset):
761         (WebCore::GestureRecognizerChromium::processTouchEventForGesture):
762         * platform/chromium/PopupMenuChromium.cpp:
763         * platform/chromium/PopupMenuChromium.h:
764         * platform/mac/ScrollAnimatorMac.mm:
765         (WebCore::ScrollAnimatorMac::handleGestureEvent):
766
767 2011-07-29  Adrienne Walker  <enne@google.com>
768
769         [chromium] Only force slow scrolling for iframes under --force-compositing-mode
770         https://bugs.webkit.org/show_bug.cgi?id=65394
771
772         Reviewed by James Robinson.
773
774         The previous code introduced by r91591 made composited frames as well
775         as non-composited subframes go down the slow scrolling path.  Adjust
776         the check to use ownerElement to test for subframe and use
777         hasCompositedContent() which is a more correct test for compositing
778         than isEnclosedInCompositingLayer.
779
780         * page/FrameView.cpp:
781         (WebCore::FrameView::useSlowRepaints):
782
783 2011-07-29  Emil A Eklund  <eae@chromium.org>
784
785         -webkit-marquee with anonymous node causes segmentation fault in Node::document
786         https://bugs.webkit.org/show_bug.cgi?id=64693
787
788         Reviewed by Simon Fraser.
789
790         Test: fast/css/webkit-marquee-anonymous-node-crash.html
791
792         * rendering/RenderLayer.cpp:
793         (WebCore::RenderLayer::scrollTo):
794         Add null check as renderer()->node() is null for anonymous nodes.
795
796 2011-07-29  Mike Reed  <reed@google.com>
797
798         [skia] never draw with GDI, so that all text can be gpu-accelerated
799         https://bugs.webkit.org/show_bug.cgi?id=65203
800
801         Reviewed by Kenneth Russell.
802
803         * platform/graphics/chromium/FontChromiumWin.cpp:
804         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::TransparencyAwareFontPainter):
805         (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::TransparencyAwareGlyphPainter):
806         (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::drawGlyphs):
807         (WebCore::TransparencyAwareFontPainter::TransparencyAwareUniscribePainter::TransparencyAwareUniscribePainter):
808         (WebCore::drawGlyphsWin):
809         (WebCore::Font::drawComplexText):
810         * platform/graphics/chromium/UniscribeHelper.cpp:
811         (WebCore::UniscribeHelper::draw):
812         * platform/graphics/skia/PlatformContextSkia.cpp:
813         * platform/graphics/skia/PlatformContextSkia.h:
814         * platform/graphics/skia/SkiaFontWin.cpp:
815         * platform/graphics/skia/SkiaFontWin.h:
816
817 2011-07-29  Sam Weinig  <sam@webkit.org>
818
819         Move Region code from WebKit2 to WebCore
820         https://bugs.webkit.org/show_bug.cgi?id=65392
821
822         Reviewed by David Hyatt.
823
824         * CMakeLists.txt:
825         * GNUmakefile.list.am:
826         * WebCore.gypi:
827         * WebCore.pro:
828         * WebCore.vcproj/WebCore.vcproj:
829         * WebCore.xcodeproj/project.pbxproj:
830         Update project files.
831
832         * WebCore.exp.in:
833         Update exports.
834
835         * platform/graphics/Region.cpp: Copied from Source/WebKit2/Platform/Region.cpp.
836         * platform/graphics/Region.h: Copied from Source/WebKit2/Platform/Region.h.
837         Add files.
838
839 2011-07-29  Robert Kroeger  <rjkroege@chromium.org>
840
841         [chromium] Layering violations in gesture recognizer
842         https://bugs.webkit.org/show_bug.cgi?id=65044
843
844         Reviewed by Adam Barth.
845
846         Divided the gesture recognizer up to correct a layering
847         violation by moving gesture implementation from it to
848         EventHandler::handleGestureEvent so that the gesture recognizer
849         could simply be an engine for generating gesture events from
850         touch events.
851
852         * dom/WheelEvent.cpp:
853         (WebCore::WheelEvent::WheelEvent):
854         (WebCore::WheelEvent::initWheelEvent):
855         * dom/WheelEvent.h:
856         Added symbolic contstant for tick multiplier.
857         * page/EventHandler.cpp:
858         (WebCore::EventHandler::EventHandler):
859         Removed construction of gesture recognizer.
860         (WebCore::EventHandler::handleGestureEvent):
861         Extended for new gesture events added in this patch.
862         (WebCore::EventHandler::handleTouchEvent):
863         Removed call into gesture recognizer.
864         * page/EventHandler.h:
865         * page/FrameView.cpp:
866         (WebCore::FrameView::reset):
867         Removed code to reset gesture recognizer.
868         * platform/PlatformGestureEvent.h:
869         (WebCore::PlatformGestureEvent::PlatformGestureEvent):
870         (WebCore::PlatformGestureEvent::deltaX):
871         (WebCore::PlatformGestureEvent::deltaY):
872         (WebCore::PlatformGestureEvent::shiftKey):
873         (WebCore::PlatformGestureEvent::ctrlKey):
874         (WebCore::PlatformGestureEvent::altKey):
875         (WebCore::PlatformGestureEvent::metaKey):
876         Added additional gesture types and parameters.
877         * platform/PlatformGestureRecognizer.h:
878         * platform/ScrollAnimatorWin.cpp:
879         (WebCore::ScrollAnimatorWin::handleGestureEvent):
880         Added missing method needed to fix the build on windows.
881         * platform/chromium/FramelessScrollView.h:
882         Added support for displatching gesture and touch events.
883         * platform/chromium/GestureRecognizerChromium.cpp:
884         (WebCore::InnerGestureRecognizer::InnerGestureRecognizer):
885         (WebCore::InnerGestureRecognizer::reset):
886         (WebCore::InnerGestureRecognizer::constructClickGestureEvent):
887         (WebCore::InnerGestureRecognizer::processTouchEventForGestures):
888         Removed all depedencies on EventHandler. Instead, create gesture
889         events from touch event stream.
890         (WebCore::InnerGestureRecognizer::constructScrollGesture):
891         (WebCore::touchDown):
892         (WebCore::noGesture):
893         (WebCore::click):
894         (WebCore::isClickOrScroll):
895         (WebCore::inScroll):
896         (WebCore::GestureRecognizerChromium::processTouchEventForGestures):
897         (WebCore::GestureRecognizerChromium::reset):
898         * platform/chromium/GestureRecognizerChromium.h:
899         * platform/chromium/PopupMenuChromium.cpp:
900         Added support to handle touch events and gesture events.
901         (WebCore::PopupContainer::handleTouchEvent):
902         (WebCore::PopupContainer::handleGestureEvent):
903         (WebCore::PopupListBox::handleTouchEvent):
904         (WebCore::PopupListBox::handleGestureEvent):
905         * platform/chromium/PopupMenuChromium.h:
906         * platform/mac/ScrollAnimatorMac.mm:
907         (WebCore::ScrollAnimatorMac::handleGestureEvent):
908         Ignores the newly added gesture event types.
909
910 2011-07-29  Eric Carlson  <eric.carlson@apple.com>
911
912         Load delegate not consulted before loading some poster images
913         https://bugs.webkit.org/show_bug.cgi?id=65270
914
915         Reviewed by Joseph Pecoraro.
916
917         * html/HTMLVideoElement.cpp:
918         (WebCore::HTMLVideoElement::setDisplayMode): Don't ask a load delegate if it is OK to 
919             load an empty poster url.
920
921 2011-07-29  Jeff Miller  <jeffm@apple.com>
922
923         Re-sort one more file in the WebCore project with Visual Studio.
924
925         * WebCore.vcproj/WebCore.vcproj:
926
927 2011-07-29  Jeff Miller  <jeffm@apple.com>
928
929         Re-sort the WebCore project with Visual Studio after recent changes that I assume were done by manually editing the XML.
930
931         * WebCore.vcproj/WebCore.vcproj:
932
933 2011-07-29  Dan Bernstein  <mitz@apple.com>
934
935         Added the regional indicator symbols to the set of codepoints that force use of the complex text code path.
936
937         Fixes <rdar://problem/9864578> Regional indicator symbols do not combine into national flags
938         https://bugs.webkit.org/show_bug.cgi?id=65380
939
940         Reviewed by Anders Carlsson.
941
942         Test: fast/text/regional-indicator-symobls.html
943
944         * platform/graphics/Font.cpp:
945         (WebCore::Font::codePath): Added handling of surrogate pairs, which returns Complex for characters in
946         the range U+1F1E6..U+1F1FF.
947
948 2011-07-28  David Hyatt  <hyatt@apple.com>
949
950         https://bugs.webkit.org/show_bug.cgi?id=65342
951
952         Add support for positioned floats being placed into a RenderBlock's FloatingObject list and for
953         correct propagation of those floating objects into descendants.
954
955         Reviewed by Sam Weinig.
956
957         * rendering/RenderBlock.cpp:
958         (WebCore::RenderBlock::layoutBlock):
959         The positioned float layout algorithm is 2-pass. You lay out without the positioned objects, and then
960         once they have been placed, you lay out again and use that placement to determine the float positions.
961         layoutBlock now has an extra parameter to indicate which layout pass you are in.
962         
963         (WebCore::RenderBlock::addOverflowFromFloats):
964         Don't add overflow from positioned floats ever, since the positioning overflow function takes care of that
965         already.
966
967         (WebCore::RenderBlock::layoutBlockChild):
968         Include positioned floats in the lowestFloatLogicalBottom we look at so that overhang is computed properly.
969
970         (WebCore::RenderBlock::simplifiedLayout):
971         If layoutPositionedObjects indicates that a positioned float moved, then we can't do simplified layout. Bail
972         instead and do a full layout.
973
974         (WebCore::RenderBlock::positionedFloatsNeedRelayout):
975         Helper for layoutBlock in order to bypass the 2-pass model if we can detect that none of the positioned objects
976         will actually need to lay out again. This allows incremental layout to not always fault back to 2-pass as normal
977         flow content streams in.
978
979         (WebCore::RenderBlock::layoutPositionedObjects):
980         Modified to return a boolean indicating whether a positioned float got a layout. If so, we will lay out again
981         once our positioned objects are placed.
982
983         (WebCore::RenderBlock::insertFloatingObject):
984         insertFloatingObject can now handle positioned objects being inserted.
985
986         (WebCore::RenderBlock::positionNewFloats):
987         positionNewFloats doesn't attempt to position this new type of float. It only handles left/right floats.
988
989         (WebCore::RenderBlock::addPositionedFloats):
990         Helper to add in the floating objects for positioned floats. This is used instead of positionNewFloats and
991         just walks the positioned objects instead.
992
993         (WebCore::RenderBlock::clearFloats):
994         clearFloats now handles adding in positioned floats if the layout pass says they should be included.
995
996         (WebCore::RenderBlock::marginLogicalLeftForChild):
997         (WebCore::RenderBlock::marginLogicalRightForChild):
998         New helpers used by addPositionedFloats.
999     
1000         (WebCore::RenderBlock::FloatingObjects::clear):
1001         (WebCore::RenderBlock::FloatingObjects::increaseObjectsCount):
1002         (WebCore::RenderBlock::FloatingObjects::decreaseObjectsCount):
1003         Make sure the object count tracking handles positioned floats as well as left/right floats.
1004     
1005         * rendering/RenderBlock.h:
1006         (WebCore::RenderBlock::logicalLeftForChild):
1007         New helper used by addPositionedFloats.
1008
1009         (WebCore::RenderBlock::FloatingObject::FloatingObject):
1010         Change the constructor to take the RenderStyle enum. This makes the construction simpler.
1011
1012         (WebCore::RenderBlock::hasPositionedFloats):
1013         A bit tracks whether or not a block has positioned floats in its positioned objects list.
1014
1015         (WebCore::RenderBlock::hasOverhangingFloats):
1016         Modified to include positioned floats.
1017
1018         (WebCore::RenderBlock::lowestFloatLogicalBottom):
1019         This function excludes positioned floats by default, so that places that - for example - expand to
1020         encompass their lowestFloatLogicalBottom won't accidentally expand to encompass positioned objects.
1021
1022         (WebCore::RenderBlock::lowestFloatLogicalBottomIncludingPositionedFloats):
1023         A new function that includes positioned floats for callers that care.
1024
1025         (WebCore::RenderBlock::FloatingObjects::FloatingObjects):
1026         (WebCore::RenderBlock::FloatingObjects::hasPositionedObjects):
1027         The object count tracking for positioned floats within a block's FloatingObjects list.
1028
1029         * rendering/RenderBox.cpp:
1030         (WebCore::RenderBox::updateBoxModelInfoFromStyle):
1031         Make sure isFloating is set even if isPositioned is also set for the positioned float case.
1032
1033         * rendering/RenderDeprecatedFlexibleBox.cpp:
1034         (WebCore::RenderDeprecatedFlexibleBox::layoutBlock):
1035         Modified to do the extra layout pass if needed.
1036
1037 2011-07-29  Scott Byer  <scottbyer@chromium.org>
1038
1039         Scroll animation refinements.
1040         https://bugs.webkit.org/show_bug.cgi?id=65154
1041
1042         Reviewed by Adam Barth.
1043
1044         Fix scroll animation bugs when scrolling to the ends of a document. Smooth over slow event repeat rates
1045         better. Fix tests to allow for unit testing of scrolling up and not just down.
1046
1047         Additional unit tests added to ScrollAnimatorNoneTest:
1048         ScrollQuadraticSmoothed, ScrollLotsQuadraticSmoothed, ScrollDownToBumper, ScrollUpToBumper
1049
1050         * platform/ScrollAnimatorNone.cpp:
1051         (WebCore::ScrollAnimatorNone::Parameters::Parameters):
1052         (WebCore::ScrollAnimatorNone::PerAxisData::updateDataFromParameters):
1053         (WebCore::ScrollAnimatorNone::scroll):
1054         * platform/ScrollAnimatorNone.h:
1055
1056 2011-07-29  Samuel White  <samuel_white@apple.com>
1057
1058         Add the ability to search the AccessibilityObject cache
1059         https://bugs.webkit.org/show_bug.cgi?id=64994
1060         
1061         To support searching the AccessibilityObject cache, we first need to
1062         implement a minimal set of functions that will allow AccessibilityObjects
1063         to be identified when searching using common search criteria. The additional
1064         functions below complement the existing identification functionality already
1065         available and together provide a basic working set to build search on top of.
1066         Additionally, the blockquoteLevel function has been moved into the AccessibilityObject
1067         class to make it available to all platforms.
1068
1069         Reviewed by Chris Fleizach.
1070
1071         New tests will be included in the following patch that will also implement
1072         basic search functionality.
1073
1074         * accessibility/AccessibilityObject.cpp:
1075         (WebCore::AccessibilityObject::isBlockquote):
1076         (WebCore::AccessibilityObject::isLandmark):
1077         (WebCore::AccessibilityObject::hasMisspelling):
1078         (WebCore::AccessibilityObject::blockquoteLevel):
1079         * accessibility/AccessibilityObject.h:
1080         (WebCore::AccessibilityObject::isUnvisited):
1081         (WebCore::AccessibilityObject::hasBoldFont):
1082         (WebCore::AccessibilityObject::hasItalicFont):
1083         (WebCore::AccessibilityObject::hasPlainText):
1084         (WebCore::AccessibilityObject::hasSameFont):
1085         (WebCore::AccessibilityObject::hasSameFontColor):
1086         (WebCore::AccessibilityObject::hasSameStyle):
1087         (WebCore::AccessibilityObject::hasStaticText):
1088         (WebCore::AccessibilityObject::hasUnderline):
1089         (WebCore::AccessibilityObject::tableLevel):
1090         * accessibility/AccessibilityRenderObject.cpp:
1091         (WebCore::AccessibilityRenderObject::isUnvisited):
1092         (WebCore::AccessibilityRenderObject::hasBoldFont):
1093         (WebCore::AccessibilityRenderObject::hasItalicFont):
1094         (WebCore::AccessibilityRenderObject::hasPlainText):
1095         (WebCore::AccessibilityRenderObject::hasSameFont):
1096         (WebCore::AccessibilityRenderObject::hasSameFontColor):
1097         (WebCore::AccessibilityRenderObject::hasSameStyle):
1098         (WebCore::AccessibilityRenderObject::hasUnderline):
1099         * accessibility/AccessibilityRenderObject.h:
1100         * accessibility/AccessibilityTable.cpp:
1101         (WebCore::AccessibilityTable::tableLevel):
1102         * accessibility/AccessibilityTable.h:
1103         * accessibility/mac/AccessibilityObjectWrapper.mm:
1104         (AXAttributeStringSetBlockquoteLevel):
1105         (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
1106
1107 2011-07-29  Zeng Huiqing  <huiqing.zeng@intel.com>
1108
1109         Avoid calling animation timer updates while the page is loading
1110         https://bugs.webkit.org/show_bug.cgi?id=64851
1111
1112         Reviewed by Simon Fraser.
1113
1114         There is no need to update the animation timer for a RenderObject that has not yet been inserted into the render tree, or that doesn't have animations. Our tests show that this improves page loading by up to 3x on pages with a large number of transitionable objects.
1115
1116         * page/animation/AnimationController.cpp:
1117         (WebCore::AnimationController::updateAnimations):
1118
1119 2011-07-29  Anders Carlsson  <andersca@apple.com>
1120
1121         Pass the HTTP referrer header for URLs loaded by plug-ins
1122         https://bugs.webkit.org/show_bug.cgi?id=65379
1123         <rdar://problem/9822116>
1124
1125         Reviewed by Sam Weinig.
1126
1127         Export a symbol needed by WebKit2.
1128
1129         * WebCore.exp.in:
1130
1131 2011-07-28  Leandro Gracia Gil  <leandrogracia@chromium.org>
1132
1133         Fix speech input icon rect on RTL directions.
1134         https://bugs.webkit.org/show_bug.cgi?id=65333
1135
1136         Reviewed by Tony Gentilcore.
1137
1138         No new tests. This is used by platforms, not WebCore, and
1139         the base functionality is not changed but only the failing cases.
1140
1141         * html/shadow/TextControlInnerElements.cpp:
1142         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
1143
1144 2011-07-29  Kent Tamura  <tkent@chromium.org>
1145
1146         Make the ExceptionCode argument of Element::setShadowPseudoId() ASSERT_NO_EXCEPTION by default
1147         https://bugs.webkit.org/show_bug.cgi?id=65363
1148
1149         Reviewed by Hajime Morita.
1150
1151         No new tests. Cleanup-only.
1152
1153         * dom/Element.h: Make the ExceptionCode argument ASSERT_NO_EXCEPTION by default.
1154         * html/ColorInputType.cpp:
1155         (WebCore::ColorInputType::createShadowSubtree): Remove the ExceptionCode argument and ASSERT(!ec).
1156         * html/HTMLTextAreaElement.cpp:
1157         (WebCore::HTMLTextAreaElement::updatePlaceholderText): ditto.
1158         * html/RangeInputType.cpp:
1159         (WebCore::RangeInputType::createShadowSubtree): ditto.
1160         * html/TextFieldInputType.cpp:
1161         (WebCore::TextFieldInputType::createShadowSubtree): ditto.
1162         (WebCore::TextFieldInputType::updatePlaceholderText): ditto.
1163         * html/ValidationMessage.cpp:
1164         (WebCore::ValidationMessage::buildBubbleTree): ditto.
1165
1166 2011-07-28  Luke Macpherson   <macpherson@chromium.org>
1167
1168         Remove remaining uses of CSSPrimitiveValue::computeLengthIntForLength()
1169         https://bugs.webkit.org/show_bug.cgi?id=64919
1170
1171         Reviewed by Darin Adler.
1172
1173         No new tests / cleanup only.
1174
1175         * css/CSSPrimitiveValue.cpp:
1176         (WebCore::CSSPrimitiveValue::computeLength):
1177         Remove implementation of computeLengthIntForLength()
1178         * css/CSSPrimitiveValue.h:
1179         Remove definition of computeLengthIntForLength()
1180         * css/CSSStyleApplyProperty.cpp:
1181         (WebCore::ApplyPropertyLength::applyValue):
1182         Remove use of computeLengthIntForLength()
1183         * css/CSSStyleSelector.cpp:
1184         (WebCore::CSSStyleSelector::applyProperty):
1185         Remove use of computeLengthIntForLength()
1186         * platform/Length.h:
1187         (WebCore::Length::setQuirk):
1188         Adds the ability to set the m_quirk member variable after construction.
1189
1190 2011-07-28  Anders Carlsson  <andersca@apple.com>
1191
1192         Unreviewed, rolling out r88601. (Requested by Sam Weinig).
1193         http://trac.webkit.org/changeset/88601
1194         https://bugs.webkit.org/show_bug.cgi?id=62230
1195
1196         Caused a regression, see https://bugs.webkit.org/show_bug.cgi?id=64378
1197
1198         * dom/StyledElement.cpp:
1199         * dom/StyledElement.h:
1200         * html/HTMLBodyElement.cpp:
1201         (WebCore::HTMLBodyElement::parseMappedAttribute):
1202         (WebCore::HTMLBodyElement::insertedIntoDocument):
1203         (WebCore::HTMLBodyElement::didMoveToNewOwnerDocument):
1204         * html/HTMLBodyElement.h:
1205
1206 2011-07-28  Justin Schuh  <jschuh@chromium.org>
1207
1208         Simplify createCanonicalUUIDString implementation.
1209         https://bugs.webkit.org/show_bug.cgi?id=65157
1210
1211         All ports support OS_RANDOMNESS, so better to have one implementation.
1212
1213         Reviewed by Adam Barth.
1214
1215         Change covered by existing tests.
1216
1217         * platform/UUID.cpp:
1218         (WebCore::createCanonicalUUIDString):
1219
1220 2011-07-28  Devdatta Deshpande  <pwjd73@motorola.com>
1221
1222         Fixed gif animation dependency on system time
1223         https://bugs.webkit.org/show_bug.cgi?id=64996
1224
1225         Reviewed by James Robinson.
1226
1227         Test: Load WebCore/manual-tests/animated-gif-looping.html
1228         Change system time to a time in past
1229
1230         * platform/graphics/BitmapImage.cpp:
1231         (WebCore::BitmapImage::startAnimation): Bitmap animation is now based
1232         on monotonicallyIncreasingTime instead of currentTime
1233
1234 2011-07-28  Luke Zarko  <lukezarko@gmail.com>
1235
1236         V8 should correctly serialize Boolean, Number and String objects.
1237
1238         https://bugs.webkit.org/show_bug.cgi?id=65286
1239
1240         Reviewed by David Levin.
1241         
1242         New APIs were exposed to allow V8 to correctly serialize Boolean, Number and String objects, as well as detect certain native errors as required by the HTML5 Structured Clone algorithm (http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#safe-passing-of-structured-data). SerializedScriptValue should make use of these APIs.
1243
1244         - Checks for and serializes Boolean, Number and String objects.
1245         - Checks for native errors and aborts should a script attempt to serialize them.
1246         - Small name change to clear up the code: m_objectReferenceStack => m_openCompositeReferenceStack
1247
1248         Tests: fast/dom/Window/window-postmessage-clone.html
1249                fast/loader/stateobjects/pushstate-object-types.html
1250
1251         * bindings/v8/SerializedScriptValue.cpp:
1252         (WebCore::V8ObjectMap::Writer::writeBooleanObject):
1253         (WebCore::V8ObjectMap::Writer::writeStringObject):
1254         (WebCore::V8ObjectMap::Writer::writeNumberObject):
1255         (WebCore::V8ObjectMap::Serializer::writeStringObject):
1256         (WebCore::V8ObjectMap::Serializer::writeNumberObject):
1257         (WebCore::V8ObjectMap::Serializer::writeBooleanObject):
1258         (WebCore::V8ObjectMap::Serializer::doSerialize):
1259         (WebCore::V8ObjectMap::Reader::read):
1260         (WebCore::V8ObjectMap::Reader::readStringObject):
1261         (WebCore::V8ObjectMap::Reader::readNumberObject):
1262         (WebCore::V8ObjectMap::Deserializer::deserialize):
1263         (WebCore::V8ObjectMap::Deserializer::openComposite):
1264         (WebCore::V8ObjectMap::Deserializer::closeComposite):
1265
1266 2011-07-28  Adam Barth  <abarth@webkit.org>
1267
1268         Old code about empty security origins could use a bath
1269         https://bugs.webkit.org/show_bug.cgi?id=64735
1270
1271         Reviewed by Dimitri Glazkov.
1272
1273         This patch cleans up some old code related to empty security origins.
1274         It also removes some dodgy code that seems wrong.
1275
1276         Test: http/tests/security/inactive-document-with-empty-security-origin.html
1277
1278         * bindings/generic/BindingSecurityBase.cpp:
1279         (WebCore::BindingSecurityBase::canAccess):
1280         * page/SecurityOrigin.cpp:
1281         (WebCore::SecurityOrigin::isEmpty):
1282         (WebCore::SecurityOrigin::isSecureTransitionTo):
1283         (WebCore::SecurityOrigin::toString):
1284
1285 2011-07-28  Vsevolod Vlasov  <vsevik@chromium.org>
1286
1287         Web Inspector: [REGRESSION] Inspected tab crashes if navigated with inspector open and there are watch expressions added.
1288         https://bugs.webkit.org/show_bug.cgi?id=65322
1289
1290         Reviewed by Pavel Feldman.
1291
1292         * inspector/InspectorController.cpp:
1293         * inspector/InspectorRuntimeAgent.cpp:
1294         (WebCore::InspectorRuntimeAgent::evaluate):
1295         * inspector/InspectorRuntimeAgent.h:
1296         * inspector/WorkerInspectorController.cpp:
1297
1298 2011-07-28  Mihnea Ovidenie  <mihnea@adobe.com>
1299
1300         [CSSRegions]Add basic RenderRegion support
1301         https://bugs.webkit.org/show_bug.cgi?id=64689
1302
1303         Reviewed by David Hyatt.
1304
1305         This patch introduces the RenderRegion object.
1306         A RenderObject that takes its content from a "named" flow will become a RenderRegion, an element that is used to display the content from a RenderFlowThread.
1307         A RenderRegion that is marked to take its content from a non existing flow, will have its content disconnected from the normal flow.
1308
1309         Tests: fast/regions/region-element-display-restriction.html
1310                fast/regions/region-element-dynamic-attach-flow.html
1311                fast/regions/region-element-dynamic-detach-flow.html
1312                fast/regions/render-region-renderer.html
1313
1314         * WebCore.vcproj/WebCore.vcproj:
1315         * WebCore.xcodeproj/project.pbxproj:
1316         * dom/Node.cpp:
1317         (WebCore::Node::diff):
1318         * rendering/RenderObject.cpp:
1319         (WebCore::RenderObject::createObject):
1320         * rendering/RenderObject.h:
1321         (WebCore::RenderObject::isRenderRegion):
1322         * rendering/RenderRegion.cpp: Added.
1323         (WebCore::RenderRegion::RenderRegion):
1324         (WebCore::RenderRegion::~RenderRegion):
1325         (WebCore::RenderRegion::layout):
1326         (WebCore::RenderRegion::paint):
1327         * rendering/RenderRegion.h: Added.
1328         (WebCore::RenderRegion::isRenderRegion):
1329         (WebCore::RenderRegion::renderName):
1330         (WebCore::toRenderRegion):
1331         * rendering/style/RenderStyle.cpp:
1332         (WebCore::RenderStyle::diff):
1333
1334 2011-07-28  Marco Peereboom  <marco@peereboom.us>
1335
1336         [Soup] Cannot override default max-conns and max-conns-per-host Soup Session settings
1337         https://bugs.webkit.org/show_bug.cgi?id=64355
1338         Default max-conns and max-conns-per-host are set at "first contact" with
1339         a site instead of at creation time.  This results in values being
1340         overwritten if they are set prior to said "first contact"; which is the
1341         most likely (or only) scenario.
1342
1343         Reviewed by Martin Robinson.
1344
1345         No new tests.  Rigged libsoup and xxxterm web browser to diagnose the
1346         issue and validate the patch.
1347
1348         * platform/network/soup/ResourceHandleSoup.cpp:
1349         (WebCore::ensureSessionIsInitialized): No longer ininitalize connection limits.
1350         (WebCore::ResourceHandle::defaultSession): Initialize connection limits here instead.
1351
1352 2011-07-28  Brady Eidson  <beidson@apple.com>
1353
1354         https://bugs.webkit.org/show_bug.cgi?id=65323
1355         r91931 causes NOTREACHED to be hit via StorageTracker
1356
1357         Change the meaning of the "has been initialized" flag to "needs initialization", and only set it to true
1358         if the ::initializeTracker() method has been called.
1359
1360         Reviewed by Sam Weinig.
1361
1362         * storage/StorageTracker.cpp:
1363         (WebCore::StorageTracker::initializeTracker): Set m_needsInitialization to true since the calling WebKit port expects full
1364           initialization instead of a dummy tracker.
1365         (WebCore::StorageTracker::internalInitialize):
1366         (WebCore::StorageTracker::tracker): Only initialize the tracker if it was created in the above initializeTracker().
1367         (WebCore::StorageTracker::StorageTracker):
1368         * storage/StorageTracker.h:
1369
1370 2011-07-28  David Kilzer  <ddkilzer@apple.com>
1371
1372         <http://webkit.org/b/65289> Remove GeolocationPositionCache
1373
1374         Reviewed by Adam Barth.
1375
1376         * CMakeLists.txt: Remove references to GeolocationPositionCache.
1377         * GNUmakefile.list.am: Ditto.
1378         * WebCore.gypi: Ditto.
1379         * WebCore.order: Ditto.
1380         * WebCore.pro: Ditto.
1381         * WebCore.vcproj/WebCore.vcproj: Ditto.
1382         * WebCore.xcodeproj/project.pbxproj: Ditto.
1383
1384         * page/Geolocation.cpp: Switch from using m_positionCache to
1385         m_cachedPosition.
1386         (WebCore::Geolocation::makeCachedPositionCallbacks):
1387         (WebCore::Geolocation::haveSuitableCachedPosition):
1388         (WebCore::Geolocation::positionChangedInternal):
1389         * page/Geolocation.h: Remove PositionCacheWrapper and replace
1390         with RefPtr<Geoposition>.
1391         * page/GeolocationPositionCache.cpp: Removed.
1392         * page/GeolocationPositionCache.h: Removed.
1393
1394 2011-07-28  Dan Bernstein  <mitz@apple.com>
1395
1396         <rdar://problem/9589433> Displaying Japanese dictionary contents in vertical orientation takes a couple of seconds
1397
1398         Reviewed by Darin Adler.
1399
1400         * WebCore.exp.in: Exported wkGetVerticalGlyphsForCharacters.
1401         * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
1402         (WebCore::GlyphPage::fill): Use wkGetVerticalGlyphsForCharacters. If it returns false, proceed
1403         with the existing, slower method of getting vertical glyphs.
1404         * platform/mac/WebCoreSystemInterface.h:
1405         * platform/mac/WebCoreSystemInterface.mm:
1406
1407 2011-07-28  Brady Eidson  <beidson@apple.com>
1408
1409         <rdar://problem/9714337> and https://bugs.webkit.org/show_bug.cgi?id=65306
1410         WebKitInitializeStorageIfNecessary() can take awhile performing i/o, isn't necessary for every WebView
1411
1412         Move the heavy lifting done in StorageTracker::initializeTracker() until when the global tracker is actually
1413         accessed, therefore deferring it until a web page actually uses LocalStorage or the app uses the API.
1414
1415         Reviewed by Maciej Stachowiak.
1416
1417         No new tests. (Not possible to test this API implementation detail)
1418
1419         * WebCore.exp.in:
1420
1421         * storage/StorageAreaImpl.cpp:
1422         (WebCore::StorageAreaImpl::StorageAreaImpl): Access the global StorageTracker to indicate that a web page
1423           is actually using the storage APIs.
1424
1425         * storage/StorageTracker.cpp:
1426         (WebCore::StorageTracker::initializeTracker): Moved the potentially hefty work from here...
1427         (WebCore::StorageTracker::internalInitialize): ...to here.
1428         (WebCore::StorageTracker::tracker): If the global tracker hasn't had internalInitialize() called, do so.
1429         (WebCore::StorageTracker::StorageTracker):
1430         * storage/StorageTracker.h:
1431
1432 2011-07-28  Carlos Garcia Campos  <cgarcia@igalia.com>
1433
1434         [GTK] Copy and paste is broken in WebKit2
1435         https://bugs.webkit.org/show_bug.cgi?id=65252
1436
1437         Reviewed by Martin Robinson.
1438
1439         Use gtk_clipboard_get_for_display() instead of
1440         gtk_widget_get_clipboard(), using the the default display when
1441         there's no page client widget, which is the case of WebKit2.
1442
1443         * platform/gtk/PasteboardHelper.cpp:
1444         (WebCore::displayFromFrame): Return the display of the current
1445         frame widget or the default display if there's no widget.
1446         (WebCore::PasteboardHelper::getClipboard):
1447         (WebCore::PasteboardHelper::getPrimarySelectionClipboard):
1448
1449 2011-07-28  Vsevolod Vlasov  <vsevik@chromium.org>
1450
1451         Web Inspector: Add resource initiator column to network panel.
1452         https://bugs.webkit.org/show_bug.cgi?id=65105
1453
1454         Reviewed by Pavel Feldman.
1455
1456         Test: http/tests/inspector/network/network-initiator.html
1457
1458         * English.lproj/localizedStrings.js:
1459         * dom/Document.cpp:
1460         (WebCore::Document::scheduleStyleRecalc):
1461         * inspector/Inspector.json:
1462         * inspector/InspectorInstrumentation.cpp:
1463         (WebCore::InspectorInstrumentation::willRecalculateStyleImpl):
1464         (WebCore::InspectorInstrumentation::didRecalculateStyleImpl):
1465         (WebCore::InspectorInstrumentation::didScheduleStyleRecalculationImpl):
1466         * inspector/InspectorInstrumentation.h:
1467         (WebCore::InspectorInstrumentation::didScheduleStyleRecalculation):
1468         * inspector/InspectorResourceAgent.cpp:
1469         (WebCore::InspectorResourceAgent::willSendRequest):
1470         (WebCore::InspectorResourceAgent::didLoadResourceFromMemoryCache):
1471         (WebCore::InspectorResourceAgent::willRecalculateStyle):
1472         (WebCore::InspectorResourceAgent::didRecalculateStyle):
1473         (WebCore::InspectorResourceAgent::didScheduleStyleRecalculation):
1474         (WebCore::InspectorResourceAgent::buildInitiatorObject):
1475         (WebCore::InspectorResourceAgent::InspectorResourceAgent):
1476         * inspector/InspectorResourceAgent.h:
1477         * inspector/front-end/NetworkManager.js:
1478         (WebInspector.NetworkDispatcher.prototype.requestWillBeSent):
1479         (WebInspector.NetworkDispatcher.prototype.resourceLoadedFromMemoryCache):
1480         (WebInspector.NetworkDispatcher.prototype._appendRedirect):
1481         (WebInspector.NetworkDispatcher.prototype._createResource):
1482         * inspector/front-end/NetworkPanel.js:
1483         (WebInspector.NetworkLogView.prototype._createTable):
1484         (WebInspector.NetworkLogView.prototype._createSortingFunctions):
1485         (WebInspector.NetworkLogView.prototype.switchToDetailedView):
1486         (WebInspector.NetworkLogView.prototype.switchToBriefView):
1487         (WebInspector.NetworkLogView.prototype._toggleGridMode):
1488         (WebInspector.NetworkLogView.prototype._toggleViewingResourceMode):
1489         (WebInspector.NetworkDataGridNode.prototype.createCells):
1490         (WebInspector.NetworkDataGridNode.prototype.refreshResource):
1491         (WebInspector.NetworkDataGridNode.prototype._refreshInitiatorCell):
1492         (WebInspector.NetworkDataGridNode.InitiatorComparator):
1493         * inspector/front-end/networkLogView.css:
1494         (.initiator-column a):
1495
1496 2011-07-28  Rob Buis  <rbuis@rim.com>
1497
1498         Use styling test from ietestcenter fails
1499         https://bugs.webkit.org/show_bug.cgi?id=62147 
1500
1501         Reviewed by Nikolas Zimmermann.
1502
1503         Make sure CSS selectors are applied to the DOM tree referenced by <use>, not the internal shadow tree. In order to quickly
1504         find the corresponding DOM tree element store this info in SVGElementRareData. 
1505
1506         Test: svg/W3C-SVG-1.1-SE/struct-use-11-f.svg
1507
1508         * rendering/svg/SVGShadowTreeElements.cpp:
1509         (WebCore::SVGShadowTreeContainerElement::styleForRenderer):
1510         * rendering/svg/SVGShadowTreeElements.h:
1511         * svg/SVGElement.cpp:
1512         (WebCore::SVGElement::correspondingElement):
1513         (WebCore::SVGElement::setCorrespondingElement):
1514         (WebCore::SVGElement::styleForRenderer):
1515         * svg/SVGElement.h:
1516         * svg/SVGElementInstance.cpp:
1517         (WebCore::SVGElementInstance::invalidateAllInstancesOfElement):
1518         * svg/SVGElementRareData.h:
1519         (WebCore::SVGElementRareData::SVGElementRareData):
1520         (WebCore::SVGElementRareData::correspondingElement):
1521         (WebCore::SVGElementRareData::setCorrespondingElement):
1522         * svg/SVGStyledElement.cpp:
1523         (WebCore::SVGStyledElement::removedFromDocument):
1524         * svg/SVGUseElement.cpp:
1525         (WebCore::SVGUseElement::associateInstancesWithShadowTreeElements):
1526         * svg/SVGUseElement.h:
1527
1528 2011-07-28  Denis Oliver Kropp  <dok@directfb.org>
1529
1530         This fixes build without video enabled.
1531         https://bugs.webkit.org/show_bug.cgi?id=65084
1532
1533         Reviewed by Philippe Normand.
1534
1535         Test with --disable-video.
1536
1537         * dom/EventDispatcher.cpp:
1538         (WebCore::EventDispatcher::determineDispatchBehavior):
1539
1540 2011-07-28  Yuta Kitamura  <yutak@chromium.org>
1541
1542         WebSocket: Pass the value of useHixie76Protocol flag to WebSocket object
1543         https://bugs.webkit.org/show_bug.cgi?id=65250
1544
1545         Reviewed by Alexey Proskuryakov.
1546
1547         Add useHixie76Protocol() method to WebSocketChannel and its family. To implement hybi-specific
1548         attributes in WebSocket object, WebSocket class needs to be able to get the value of
1549         useHixie76Protocol flag of WebSocketChannel.
1550
1551         If the WebSocket object is created in a worker thread, the flag value must be obtained from
1552         WebSocketChannel which resides in the loader thread (through WorkerThreadableWebSocketChannel).
1553         Since the value does not change after creation of WebSocketChannel, it can be cached in
1554         the worker thread.
1555
1556         There is no change in behavior, thus no new tests.
1557
1558         * websockets/ThreadableWebSocketChannel.h:
1559         * websockets/ThreadableWebSocketChannelClientWrapper.cpp:
1560         (WebCore::ThreadableWebSocketChannelClientWrapper::ThreadableWebSocketChannelClientWrapper):
1561         (WebCore::ThreadableWebSocketChannelClientWrapper::useHixie76Protocol):
1562         (WebCore::ThreadableWebSocketChannelClientWrapper::setUseHixie76Protocol):
1563         * websockets/ThreadableWebSocketChannelClientWrapper.h:
1564         * websockets/WebSocketChannel.cpp:
1565         (WebCore::WebSocketChannel::useHixie76Protocol):
1566         * websockets/WebSocketChannel.h:
1567         * websockets/WorkerThreadableWebSocketChannel.cpp:
1568         (WebCore::WorkerThreadableWebSocketChannel::useHixie76Protocol):
1569         (WebCore::WorkerThreadableWebSocketChannel::Peer::useHixie76Protocol):
1570         (WebCore::WorkerThreadableWebSocketChannel::Bridge::setWebSocketChannel):
1571         (WebCore::WorkerThreadableWebSocketChannel::Bridge::mainThreadCreateWebSocketChannel):
1572         * websockets/WorkerThreadableWebSocketChannel.h:
1573
1574 2011-07-28  Rob Buis  <rbuis@rim.com>
1575
1576         REGRESSION (r91125): Google Drawings is broken
1577         https://bugs.webkit.org/show_bug.cgi?id=65257
1578
1579         Reviewed by Darin Adler.
1580
1581         Only consider zero-length path rendering code path when a stroke is defined.
1582
1583         Test: svg/custom/zero-path-square-cap-rendering2.svg
1584
1585         * rendering/svg/RenderSVGPath.cpp:
1586         (WebCore::RenderSVGPath::shouldStrokeZeroLengthSubpath):
1587
1588 2011-07-22  Martin Robinson  <mrobinson@igalia.com>
1589
1590         [Cairo] Switch from ContextShadow to ShadowBlur
1591         https://bugs.webkit.org/show_bug.cgi?id=64744
1592
1593         Use ShadowBlur in the Cairo backend instead of ContextShadow. This allows us
1594         to share shadowing code with Qt and Mac ports and to correct some broken
1595         shadow rendering.
1596
1597         Reviewed by Dirk Schulze.
1598
1599         * CMakeLists.txt: Remove ContextShadow from the build.
1600         * CMakeListsEfl.txt: Ditto.
1601         * GNUmakefile.list.am: Add ShadowBlur source files and remove ContextShadow
1602         source files.
1603         * platform/graphics/GraphicsContext.cpp:Add #ifdefs to support ShadowBlur for Cairo.
1604         * platform/graphics/GraphicsContext.h: Remove Cairo ContextShadow code.
1605         * platform/graphics/ShadowBlur.cpp:
1606         (WebCore::ShadowBlur::drawInsetShadowWithTiling): Since the ShadowBlur is a property
1607         of the GraphicsContext, we cannot clear the GraphicsContext shadow until we have
1608         finished using properties like m_offset. If we clear the GrahpicsContext shadow
1609         before using these properties, they will be zero when we try to use them.
1610         (WebCore::ShadowBlur::drawRectShadowWithTiling):Ditto.
1611         (WebCore::ShadowBlur::drawLayerPieces): Ditto.
1612         (WebCore::ShadowBlur::beginShadowLayer):Cairo is the first port to keep ShadowBlur
1613         as a persistent property of GraphicsContext and use drawRectShadow and drawInsetShadow.
1614         Thus, we must manually clear the cached tiling values so that ShadowBlur does not
1615         try to reuse the scratch buffer for rectangular shadows after using beginShadowLayer
1616         and endShadowLayer.
1617         (WebCore::ShadowBlur::mustUseShadowBlur): Moved this method from the Qt port to
1618         this cross-platform location.
1619         * platform/graphics/ShadowBlur.h: Added new method declaration.
1620         * platform/graphics/cairo/ContextShadowCairo.cpp: Removed.
1621         * platform/graphics/cairo/FontCairo.cpp: Switched to using ShadowBlur.
1622         (WebCore::drawGlyphsShadow):Ditto.
1623         * platform/graphics/cairo/GraphicsContextCairo.cpp: Switch to using ShadowBlur.
1624         (WebCore::drawPathShadow): ShadowBlur has slightly different semantics than
1625         ContextShadow. When filling the shadow layer, we do not need to use the fill
1626         alpha. We also need to restore the Cairo path to the target context after
1627         endShadowLayer as it destroys the current path.
1628         * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h: Switch to using ShadowBlur.
1629         * platform/graphics/cairo/ImageCairo.cpp: Ditto.
1630         * platform/graphics/cairo/PlatformContextCairo.cpp:
1631         (WebCore::PlatformContextCairo::drawSurfaceToContext):Ditto.
1632         (WebCore::PlatformContextCairo::prepareForStroking): Add a mode ignoring alpha.
1633         * platform/graphics/cairo/PlatformContextCairo.h: Ditto.
1634         (WebCore::PlatformContextCairo::shadowBlur):Added.
1635         * platform/graphics/gtk/FontGtk.cpp: Update to use ShadowBlur.
1636         * platform/graphics/qt/GraphicsContextQt.cpp: Switch to using the new version of mustUseShadowBlur.
1637
1638 2011-07-27  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1639
1640         [EFL] Add dummy NotificationPresenterClientEfl
1641         https://bugs.webkit.org/show_bug.cgi?id=64064
1642
1643         Add two files to CMakeLists.txt for HTML5 Notification.
1644
1645         Reviewed by Antonio Gomes.
1646
1647         * CMakeLists.txt:
1648
1649 2011-07-27  Ryosuke Niwa  <rniwa@webkit.org>
1650
1651         Calling window.find immediately after mutating the document crashes WebKit.
1652         https://bugs.webkit.org/show_bug.cgi?id=65296
1653
1654         Reviewed by Darin Adler.
1655
1656         Don't forget to layout first.
1657
1658         Test: editing/text-iterator/find-after-mutation.html
1659
1660         * editing/TextIterator.cpp:
1661         (WebCore::findPlainText):
1662
1663 2011-07-27  Ben Wells  <benwells@chromium.org>
1664
1665         Remove skia special case for outline rendering code
1666         https://bugs.webkit.org/show_bug.cgi?id=65295
1667
1668         Reviewed by James Robinson.
1669
1670         The fix for bug 58999 (outlines with alpha channels showed artifacts in the corners) was
1671         excluded from skia builds until bug 61369 (skia drawConvexPoly didn't pay attention to
1672         shouldAntialias) was fixed. That bug is fixed so now the #if's can be removed.
1673
1674         * rendering/RenderInline.cpp:
1675         (WebCore::RenderInline::paintOutline):
1676         * rendering/RenderObject.cpp:
1677         (WebCore::RenderObject::paintOutline):
1678
1679 2011-07-27  Adam Barth  <abarth@webkit.org>
1680
1681         Crypto.idl doesn't need legacy optional arguments
1682         https://bugs.webkit.org/show_bug.cgi?id=65298
1683
1684         Reviewed by Darin Adler.
1685
1686         This API is relatively new and useless to call without its only argument.
1687
1688         * page/Crypto.idl:
1689
1690 2011-07-27  Mark Hahnenberg  <mhahnenberg@apple.com>
1691
1692         Remove operator new from JSCell
1693         https://bugs.webkit.org/show_bug.cgi?id=64999
1694
1695         Reviewed by Oliver Hunt.
1696
1697         No new tests.
1698
1699         Removed the implementation of operator new in JSCell, so any further uses
1700         will not successfully link.  Also removed any remaining uses of operator new.
1701
1702         * bridge/c/CRuntimeObject.h:
1703         (JSC::Bindings::CRuntimeObject::create):
1704         * bridge/c/c_instance.cpp:
1705         (JSC::Bindings::CInstance::newRuntimeObject):
1706         (JSC::Bindings::CRuntimeMethod::create):
1707         (JSC::Bindings::CRuntimeMethod::CRuntimeMethod):
1708         (JSC::Bindings::CInstance::getMethod):
1709         * bridge/jni/jsc/JavaInstanceJSC.cpp:
1710         (JavaInstance::newRuntimeObject):
1711         (JavaRuntimeMethod::create):
1712         (JavaRuntimeMethod::JavaRuntimeMethod):
1713         (JavaInstance::getMethod):
1714         * bridge/jni/jsc/JavaRuntimeObject.h:
1715         (JSC::Bindings::JavaRuntimeObject::create):
1716         * bridge/objc/ObjCRuntimeObject.h:
1717         (JSC::Bindings::ObjCRuntimeObject::create):
1718         * bridge/objc/objc_class.mm:
1719         (JSC::Bindings::ObjcClass::fallbackObject):
1720         * bridge/objc/objc_instance.mm:
1721         (ObjcInstance::newRuntimeObject):
1722         (ObjCRuntimeMethod::create):
1723         (ObjCRuntimeMethod::ObjCRuntimeMethod):
1724         (ObjcInstance::getMethod):
1725         * bridge/objc/objc_runtime.h:
1726         (JSC::Bindings::ObjcFallbackObjectImp::create):
1727
1728 2011-07-27  Vsevolod Vlasov  <vsevik@chromium.org>
1729
1730         Web Inspector: Network panel sidebar should have width saved in preferences when resource is selected.
1731         https://bugs.webkit.org/show_bug.cgi?id=65256
1732
1733         Reviewed by Pavel Feldman.
1734
1735         * inspector/front-end/NetworkPanel.js:
1736         (WebInspector.NetworkLogView.prototype._toggleViewingResourceMode):
1737         (WebInspector.NetworkPanel.prototype.restoreSidebarWidth):
1738         (WebInspector.NetworkPanel.prototype._showResource):
1739         (WebInspector.NetworkPanel.prototype._closeVisibleResource):
1740         (WebInspector.NetworkPanel.prototype._toggleViewingResourceMode):
1741         * inspector/front-end/Panel.js:
1742         (WebInspector.Panel.prototype.show):
1743         (WebInspector.Panel.prototype.preferredSidebarWidth):
1744         (WebInspector.Panel.prototype.get restoreSidebarWidth):
1745
1746 2011-07-27  Vsevolod Vlasov  <vsevik@chromium.org>
1747
1748         Web Inspector: [REGRESSION] [Chromium] Opening link in new tab does not work properly.
1749         https://bugs.webkit.org/show_bug.cgi?id=65279
1750
1751         Reviewed by Pavel Feldman.
1752
1753         * inspector/InspectorPageAgent.cpp:
1754         (WebCore::InspectorPageAgent::open):
1755
1756 2011-07-27  Adam Klein  <adamk@chromium.org>
1757
1758         [V8] Remove unused m_isWeak member of V8AbstractEventListener
1759         https://bugs.webkit.org/show_bug.cgi?id=65273
1760
1761         Reviewed by Adam Barth.
1762
1763         m_isWeak is set to true in the constructor and never changed,
1764         so the one if statement that tests it always executes; the
1765         code has been updated to make this clear.
1766
1767         No behavior change, thus no tests.
1768
1769         * bindings/v8/V8AbstractEventListener.cpp:
1770         (WebCore::V8AbstractEventListener::V8AbstractEventListener):
1771         (WebCore::V8AbstractEventListener::setListenerObject):
1772         * bindings/v8/V8AbstractEventListener.h:
1773
1774 2011-07-27  Fady Samuel  <fsamuel@chromium.org>
1775
1776         Popups on Chromium now check the minimum row height set through the Chromium WebKit API when
1777         computing the height of a row in a popup listbox.
1778         https://bugs.webkit.org/show_bug.cgi?id=64897
1779
1780         Reviewed by Darin Fisher.
1781
1782         No new tests.
1783
1784         * platform/chromium/PopupMenuChromium.cpp:
1785         (WebCore::PopupListBox::getRowHeight):
1786         * platform/chromium/PopupMenuChromium.h:
1787         (WebCore::PopupMenuChromium::minimumRowHeight):
1788         (WebCore::PopupMenuChromium::setMinimumRowHeight):
1789
1790 2011-07-27  MORITA Hajime  <morrita@google.com>
1791
1792         Inconsistent state of TreeScope reference.
1793         https://bugs.webkit.org/show_bug.cgi?id=65235
1794         
1795         The tree scope pointers on shadow tree nodes didn't cleared.
1796         even when the tree scope (shadow root) is destroyed.
1797         This change clear these poitners before detaching the shadow root.
1798
1799         Reviewed by Dimitri Glazkov.
1800
1801         Test: fast/dom/shadow/tree-scope-crash.html
1802
1803         * dom/Element.cpp:
1804         (WebCore::Element::removeShadowRoot):
1805
1806 2011-07-27  Rachel Blum  <groby@chromium.org>
1807
1808         Implement sizes attribute for link tag from HTML5
1809         https://bugs.webkit.org/show_bug.cgi?id=37674
1810
1811         Reviewed by Dimitri Glazkov.
1812
1813         Test: fast/dom/icon-size-property.html
1814
1815         * WebCore.gypi:
1816         * WebCore.pro:
1817         * bindings/js/JSHTMLLinkElementCustom.cpp:
1818         (WebCore::JSHTMLLinkElement::sizes):
1819         (WebCore::JSHTMLLinkElement::setSizes):
1820         * bindings/v8/custom/V8HTMLLinkElementCustom.cpp: Added.
1821         (WebCore::V8HTMLLinkElement::sizesAccessorGetter):
1822         (WebCore::V8HTMLLinkElement::sizesAccessorSetter):
1823         * html/HTMLAttributeNames.in:
1824         * html/HTMLLinkElement.cpp:
1825         (WebCore::HTMLLinkElement::HTMLLinkElement):
1826         (WebCore::HTMLLinkElement::parseMappedAttribute):
1827         (WebCore::HTMLLinkElement::sizes):
1828         (WebCore::HTMLLinkElement::setSizes):
1829         * html/HTMLLinkElement.h:
1830         * html/HTMLLinkElement.idl:
1831
1832 2011-07-27  Pratik Solanki  <psolanki@apple.com>
1833
1834         Incorrect arguments passed to LOG statement
1835         https://bugs.webkit.org/show_bug.cgi?id=65293
1836
1837         Reviewed by Oliver Hunt.
1838
1839         * platform/network/mac/ResourceHandleMac.mm:
1840         (-[WebCoreResourceHandleAsDelegate connection:canAuthenticateAgainstProtectionSpace:]):
1841
1842 2011-07-27  Levi Weintraub  <leviw@chromium.org>
1843
1844         Switch transform operations to FloatSize
1845         https://bugs.webkit.org/show_bug.cgi?id=64301
1846
1847         Reviewed by Simon Fraser.
1848
1849         Changing TransformOperation and its progeny to operate on FloatSizes instead of IntSizes.
1850
1851         * platform/graphics/transforms/IdentityTransformOperation.h:
1852         (WebCore::IdentityTransformOperation::apply):
1853         * platform/graphics/transforms/Matrix3DTransformOperation.cpp:
1854         (WebCore::Matrix3DTransformOperation::blend):
1855         * platform/graphics/transforms/Matrix3DTransformOperation.h:
1856         (WebCore::Matrix3DTransformOperation::apply):
1857         * platform/graphics/transforms/MatrixTransformOperation.cpp:
1858         (WebCore::MatrixTransformOperation::blend):
1859         * platform/graphics/transforms/MatrixTransformOperation.h:
1860         (WebCore::MatrixTransformOperation::apply):
1861         * platform/graphics/transforms/PerspectiveTransformOperation.h:
1862         (WebCore::PerspectiveTransformOperation::apply):
1863         * platform/graphics/transforms/RotateTransformOperation.h:
1864         (WebCore::RotateTransformOperation::apply):
1865         * platform/graphics/transforms/ScaleTransformOperation.h:
1866         (WebCore::ScaleTransformOperation::apply):
1867         * platform/graphics/transforms/SkewTransformOperation.h:
1868         (WebCore::SkewTransformOperation::apply):
1869         * platform/graphics/transforms/TransformOperation.h:
1870         * platform/graphics/transforms/TransformOperations.h:
1871         (WebCore::TransformOperations::apply):
1872         * platform/graphics/transforms/TranslateTransformOperation.h:
1873         (WebCore::TranslateTransformOperation::x):
1874         (WebCore::TranslateTransformOperation::y):
1875         (WebCore::TranslateTransformOperation::z):
1876         (WebCore::TranslateTransformOperation::apply):
1877
1878 2011-07-27  Levi Weintraub  <leviw@chromium.org>
1879
1880         unicode-bidi:-webkit-plaintext does not work on <textarea>
1881         https://bugs.webkit.org/show_bug.cgi?id=65074
1882
1883         Reviewed by Ryosuke Niwa.
1884
1885         Fixing unicode-bidi style propagation into text control shadow trees.
1886
1887         Test: fast/text/international/unicode-bidi-plaintext-in-textarea.html
1888
1889         * rendering/RenderTextControl.cpp:
1890         (WebCore::RenderTextControl::adjustInnerTextStyle):
1891
1892 2011-07-27  Eric Carlson  <eric.carlson@apple.com>
1893
1894         Load delegate not consulted before loading some poster images
1895         https://bugs.webkit.org/show_bug.cgi?id=65270
1896
1897         Reviewed by Darin Adler.
1898
1899         Test: media/video-poster-blocked-by-willsendrequest.html
1900
1901         * html/HTMLVideoElement.cpp:
1902         (WebCore::HTMLVideoElement::setDisplayMode): Don't ask media engine to set poster if
1903             willLoadMediaElementURL returns false.
1904
1905 2011-07-27  Stephen White  <senorblanco@chromium.org>
1906
1907         Fix for printing with accelerated <canvas>
1908         https://bugs.webkit.org/show_bug.cgi?id=62406
1909
1910         Reviewed by James Robinson.
1911
1912         The platform-independent side of this should be covered by existing
1913         tests.  Printing itself in Chrome has few tests, sadly.  :(
1914
1915         * html/HTMLCanvasElement.cpp:
1916         (WebCore::HTMLCanvasElement::paint):
1917         * platform/graphics/skia/ImageBufferSkia.cpp:
1918         (WebCore::ImageBuffer::draw):
1919
1920 2011-07-25  Mihai Parparita  <mihaip@chromium.org>
1921
1922         [Chromium] Add better WebKit API for chrome.tabs.insertCSS extension API
1923         https://bugs.webkit.org/show_bug.cgi?id=65158
1924
1925         Reviewed by David Hyatt.
1926
1927         Add per-Document instance user stylesheets (as opposed to the page 
1928         group user styles and the global page stylesheet).
1929
1930         * css/CSSStyleSelector.cpp:
1931         (WebCore::CSSStyleSelector::CSSStyleSelector):
1932         * css/CSSStyleSelector.h:
1933         * dom/Document.cpp:
1934         (WebCore::Document::~Document):
1935         (WebCore::Document::createStyleSelector):
1936         (WebCore::Document::addUserSheet):
1937         * dom/Document.h:
1938
1939 2011-07-27  Vsevolod Vlasov  <vsevik@chromium.org>
1940
1941         Web Inspector: Disable cache option should only clear memory cache, not disable it.
1942         https://bugs.webkit.org/show_bug.cgi?id=65184
1943
1944         Reviewed by Pavel Feldman.
1945
1946         * inspector/InspectorClient.h:
1947         * inspector/InspectorResourceAgent.cpp:
1948         (WebCore::InspectorResourceAgent::enable):
1949         (WebCore::InspectorResourceAgent::disable):
1950         (WebCore::InspectorResourceAgent::setCacheDisabled):
1951         (WebCore::InspectorResourceAgent::mainFrameNavigated):
1952
1953 2011-07-27  Rob Buis  <rbuis@rim.com>
1954
1955         Implement getIntersectionList(), getEnclosureList(), checkIntersection() and checkEnclosure() in SVGSVGElement
1956         https://bugs.webkit.org/show_bug.cgi?id=11274
1957
1958         Reviewed by Nikolas Zimmermann.
1959
1960         Implement checkIntersection/checkEnclosure and use it to implement getIntersectionList and getEnclosureList as well.
1961         The referenceElement is used to provide a DOM subtree to find matches in. Also we do not allow elements that specify
1962         pointer-events=none in the list.
1963
1964         Tests: svg/W3C-SVG-1.1-SE/struct-dom-11-f.svg
1965                svg/custom/intersection-list-clipping.svg
1966                svg/custom/intersection-list-nested-svg.svg
1967
1968         * rendering/svg/RenderSVGModelObject.cpp:
1969         (WebCore::getElementCTM):
1970         (WebCore::intersectsAllowingEmpty):
1971         (WebCore::isGraphicsElement):
1972         (WebCore::RenderSVGModelObject::checkIntersection):
1973         (WebCore::RenderSVGModelObject::checkEnclosure):
1974         * rendering/svg/RenderSVGModelObject.h:
1975         * svg/SVGSVGElement.cpp:
1976         (WebCore::SVGSVGElement::checkIntersection):
1977         (WebCore::SVGSVGElement::checkEnclosure):
1978
1979 2011-07-27  Becsi Andras  <abecsi@webkit.org>
1980
1981         [Qt][V8] Fix the build.
1982
1983         Unreviewed build fix.
1984
1985         No new tests needed.
1986
1987         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: Add missing CString.h include.
1988
1989 2011-07-27  Alexis Menard  <alexis.menard@openbossa.org>
1990
1991         [Qt] Unreviewed build fix for mac.
1992
1993         QtKit is now our default media player, the define is WTF_USE_QTKIT and it's not part
1994         of the options passed to build-webkit, therefore DerivedSources should now generate the
1995         includes when it's mac.
1996
1997         * DerivedSources.pro:
1998         * WebCore.pro:
1999
2000 2011-07-27  Yury Semikhatsky  <yurys@chromium.org>
2001
2002         Inspector should support cd(window) in the command line
2003         https://bugs.webkit.org/show_bug.cgi?id=19872
2004
2005         Added dropdown list with all iframes to allow selecting current evaluation context for console expressions.
2006
2007         Reviewed by Pavel Feldman.
2008
2009         Test: http/tests/inspector/console-cd.html
2010
2011         * WebCore.gypi:
2012         * inspector/Inspector.json:
2013         * inspector/InspectorController.cpp:
2014         (WebCore::InspectorController::InspectorController):
2015         * inspector/InspectorRuntimeAgent.cpp:
2016         (WebCore::InspectorRuntimeAgent::InspectorRuntimeAgent):
2017         (WebCore::InspectorRuntimeAgent::evaluate):
2018         * inspector/InspectorRuntimeAgent.h:
2019         * inspector/WorkerInspectorController.cpp:
2020         * inspector/front-end/ConsoleView.js:
2021         (WebInspector.ConsoleView.prototype.addContext):
2022         (WebInspector.ConsoleView.prototype.removeContext):
2023         (WebInspector.ConsoleView.prototype._contextUpdated):
2024         (WebInspector.ConsoleView.prototype.get _currentEvaluationContextId):
2025         (WebInspector.ConsoleView.prototype.evalInInspectedWindow):
2026         * inspector/front-end/ContextManager.js: Added.
2027         (WebInspector.ContextManager):
2028         (WebInspector.ContextManager.prototype._frameAdded):
2029         (WebInspector.ContextManager.prototype._frameNavigated):
2030         (WebInspector.ContextManager.prototype._frameDetached):
2031         (WebInspector.FrameEvaluationContext):
2032         (WebInspector.FrameEvaluationContext.prototype._frameNavigated):
2033         (WebInspector.FrameEvaluationContext.prototype.get id):
2034         (WebInspector.FrameEvaluationContext.prototype.get url):
2035         (WebInspector.FrameEvaluationContext.prototype.get displayName):
2036         * inspector/front-end/ResourceTreeModel.js:
2037         (WebInspector.ResourceTreeModel.prototype._cleanupFramesAfterNavigation):
2038         (WebInspector.ResourceTreeModel.prototype._addFramesRecursively):
2039         * inspector/front-end/WebKit.qrc:
2040         * inspector/front-end/inspector.html:
2041         * inspector/front-end/inspector.js:
2042
2043 2011-07-27  Shinya Kawanaka  <shinyak@google.com>
2044
2045         Uses isHTMLSpace to normalize white spaces.
2046         https://bugs.webkit.org/show_bug.cgi?id=57746
2047
2048         Reviewed by Kent Tamura.
2049
2050         Test: fast/forms/option-strip-unicode-spaces.html
2051
2052         * dom/OptionElement.cpp:
2053         (WebCore::OptionElement::normalizeText):
2054           Uses isHTMLSpace to trim and replace white spaces.
2055
2056 2011-05-15  Holger Hans Peter Freyther  <holger@moiji-mobile.com>
2057
2058         [chromium] Remove include of skia/ext/platform_canvas.h
2059         https://bugs.webkit.org/show_bug.cgi?id=60852
2060
2061         Reviewed by Hajime Morita.
2062
2063         In https://bugs.webkit.org/show_bug.cgi?id=57563 the usage of the
2064         skia::PlatformCanvas was eliminated in favor of directly using
2065         SkCanvas directly. The include of platform_canvas.h was not removed
2066         leaving the dependency on Chromium in the header files. Remove
2067         that dependency now.
2068
2069         * platform/graphics/skia/PlatformContextSkia.h: Remove platform_canvas.h
2070
2071 2011-07-27  Mikhail Naganov  <mnaganov@chromium.org>
2072
2073         Web Inspector: [Chromium] REGRESSION: Uncaught TypeError: Cannot read property 'isTracingToWindowObjects' of undefined
2074         https://bugs.webkit.org/show_bug.cgi?id=65213
2075
2076         Reviewed by Pavel Feldman.
2077
2078         * inspector/front-end/DetailedHeapshotView.js:
2079         (WebInspector.HeapSnapshotRetainingPathsList.prototype.refresh):
2080
2081 2011-07-27  Shinya Kawanaka  <shinyak@google.com>
2082
2083         Knob of a disabled or readonly range control should not be draggable.
2084         https://bugs.webkit.org/show_bug.cgi?id=54820
2085
2086         Reviewed by Kent Tamura.
2087
2088         Made disabled or readonly range control undraggable.
2089
2090         Test: fast/forms/range-drag.html
2091
2092         * html/RangeInputType.cpp:
2093         (WebCore::RangeInputType::handleMouseDownEvent):
2094           Added check that the element is readonly or disabled.
2095         * html/shadow/SliderThumbElement.cpp:
2096         (WebCore::SliderThumbElement::defaultEventHandler): ditto.
2097
2098 2011-07-27  Yuta Kitamura  <yutak@chromium.org>
2099
2100         WebSocket: CloseEvent attribute is not available on WebWorkers in JSC
2101         https://bugs.webkit.org/show_bug.cgi?id=65232
2102
2103         Reviewed by Kent Tamura.
2104
2105         Add [NoStaticTables] attribute to CloseEvent interface definition. This attribute
2106         makes the code generator obtain the attributes table used for building ClassInfo
2107         through JSGlobalData, instead of directly using a statically-allocated table.
2108
2109         Generally speaking, NoStaticTables needs to be specified in interfaces which
2110         may be accessed from workers.
2111
2112         Tests: http/tests/websocket/tests/hybi/workers/shared-worker-simple.html (updated)
2113                http/tests/websocket/tests/hybi/workers/worker-simple.html (updated)
2114
2115         * websockets/CloseEvent.idl: Fixed the formatting, too.
2116
2117 2011-07-26  James Robinson  <jamesr@chromium.org>
2118
2119         [chromium] REGRESSION(90963): Content layers are not redrawn after losing the compositor context
2120         https://bugs.webkit.org/show_bug.cgi?id=65224
2121
2122         Reviewed by Kenneth Russell.
2123
2124         There's no automated way to test lost compositor contexts (yet), but to test manually open up the poster circle
2125         page and kill the GPU process.
2126
2127         * platform/graphics/chromium/ContentLayerChromium.cpp:
2128         (WebCore::ContentLayerChromium::cleanupResources):
2129         * platform/graphics/chromium/ContentLayerChromium.h:
2130
2131 2011-07-26  Sheriff Bot  <webkit.review.bot@gmail.com>
2132
2133         Unreviewed, rolling out r91805.
2134         http://trac.webkit.org/changeset/91805
2135         https://bugs.webkit.org/show_bug.cgi?id=65226
2136
2137         Breaks @ symbols and changes other font rendering on Windows
2138         (Requested by enne on #webkit).
2139
2140         * platform/graphics/chromium/FontChromiumWin.cpp:
2141         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::TransparencyAwareFontPainter):
2142         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::init):
2143         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::initializeForGDI):
2144         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::~TransparencyAwareFontPainter):
2145         (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::TransparencyAwareGlyphPainter):
2146         (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::~TransparencyAwareGlyphPainter):
2147         (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::drawGlyphs):
2148         (WebCore::TransparencyAwareFontPainter::TransparencyAwareUniscribePainter::hdc):
2149         (WebCore::TransparencyAwareFontPainter::TransparencyAwareUniscribePainter::TransparencyAwareUniscribePainter):
2150         (WebCore::TransparencyAwareFontPainter::TransparencyAwareUniscribePainter::~TransparencyAwareUniscribePainter):
2151         (WebCore::drawGlyphsWin):
2152         (WebCore::Font::drawComplexText):
2153         * platform/graphics/chromium/UniscribeHelper.cpp:
2154         (WebCore::UniscribeHelper::draw):
2155         * platform/graphics/skia/PlatformContextSkia.cpp:
2156         (WebCore::PlatformContextSkia::isNativeFontRenderingAllowed):
2157         * platform/graphics/skia/PlatformContextSkia.h:
2158         * platform/graphics/skia/SkiaFontWin.cpp:
2159         (WebCore::windowsCanHandleDrawTextShadow):
2160         (WebCore::windowsCanHandleTextDrawing):
2161         (WebCore::windowsCanHandleTextDrawingWithoutShadow):
2162         * platform/graphics/skia/SkiaFontWin.h:
2163
2164 2011-07-26  Adrienne Walker  <enne@google.com>
2165
2166         Unreviewed, rolling out r91812.
2167         http://trac.webkit.org/changeset/91812
2168         https://bugs.webkit.org/show_bug.cgi?id=65210
2169
2170         Breaks OSX GPU tests.
2171
2172         * platform/graphics/chromium/LayerRendererChromium.cpp:
2173         (WebCore::LayerRendererChromium::drawLayers):
2174
2175 2011-07-26  Sheriff Bot  <webkit.review.bot@gmail.com>
2176
2177         Unreviewed, rolling out r91809.
2178         http://trac.webkit.org/changeset/91809
2179         https://bugs.webkit.org/show_bug.cgi?id=65225
2180
2181         Does not build on Chromium Windows (Requested by abarth on
2182         #webkit).
2183
2184         * dom/WheelEvent.cpp:
2185         (WebCore::WheelEvent::WheelEvent):
2186         (WebCore::WheelEvent::initWheelEvent):
2187         * dom/WheelEvent.h:
2188         * page/EventHandler.cpp:
2189         (WebCore::EventHandler::EventHandler):
2190         (WebCore::EventHandler::handleGestureEvent):
2191         (WebCore::EventHandler::handleTouchEvent):
2192         (WebCore::EventHandler::resetGestureRecognizer):
2193         * page/EventHandler.h:
2194         * page/FrameView.cpp:
2195         (WebCore::FrameView::reset):
2196         * platform/PlatformGestureEvent.h:
2197         * platform/PlatformGestureRecognizer.h:
2198         * platform/chromium/FramelessScrollView.h:
2199         * platform/chromium/GestureRecognizerChromium.cpp:
2200         (WebCore::InnerGestureRecognizer::InnerGestureRecognizer):
2201         (WebCore::InnerGestureRecognizer::reset):
2202         (WebCore::InnerGestureRecognizer::dispatchSyntheticClick):
2203         (WebCore::InnerGestureRecognizer::processTouchEventForGesture):
2204         (WebCore::InnerGestureRecognizer::scrollViaTouchMotion):
2205         (WebCore::touchDown):
2206         (WebCore::noGesture):
2207         (WebCore::click):
2208         (WebCore::isClickOrScroll):
2209         (WebCore::inScroll):
2210         * platform/chromium/GestureRecognizerChromium.h:
2211         (WebCore::GestureRecognizerChromium::reset):
2212         (WebCore::GestureRecognizerChromium::processTouchEventForGesture):
2213         * platform/chromium/PopupMenuChromium.cpp:
2214         * platform/chromium/PopupMenuChromium.h:
2215         * platform/mac/ScrollAnimatorMac.mm:
2216         (WebCore::ScrollAnimatorMac::handleGestureEvent):
2217
2218 2011-07-26  Dmitry Lomov  <dslomov@google.com>
2219
2220         [V8][Chromium] Run workers in a separate v8::Isolate 
2221         https://bugs.webkit.org/show_bug.cgi?id=65004
2222         This patch allocates a new v8::Isolate for every worker and enters it on worker thread.
2223
2224         Reviewed by David Levin.
2225
2226         Covered by existing chromium tests.
2227
2228         * bindings/v8/DOMDataStore.cpp:
2229         (WebCore::DOMDataStore::DOMDataStore):
2230         (WebCore::DOMDataStore::~DOMDataStore):
2231         * bindings/v8/StaticDOMDataStore.cpp:
2232         (WebCore::StaticDOMDataStore::StaticDOMDataStore):
2233         (WebCore::StaticDOMDataStore::~StaticDOMDataStore):
2234         * bindings/v8/StaticDOMDataStore.h:
2235         * bindings/v8/V8Binding.h:
2236         (WebCore::V8BindingPerIsolateData::registerDOMDataStore):
2237         (WebCore::V8BindingPerIsolateData::unregisterDOMDataStore):
2238         * bindings/v8/V8DOMMap.cpp:
2239         (WebCore::DOMDataStoreHandle::DOMDataStoreHandle):
2240         (WebCore::DOMDataStoreHandle::~DOMDataStoreHandle):
2241         * bindings/v8/WorkerContextExecutionProxy.cpp:
2242         (WebCore::WorkerContextExecutionProxy::WorkerContextExecutionProxy):
2243         (WebCore::WorkerContextExecutionProxy::initV8):
2244         * bindings/v8/WorkerContextExecutionProxy.h:
2245         * bindings/v8/WorkerScriptController.cpp:
2246         (WebCore::WorkerScriptController::WorkerScriptController):
2247         (WebCore::WorkerScriptController::~WorkerScriptController):
2248         * bindings/v8/WorkerScriptController.h:
2249
2250 2011-07-26  James Robinson  <jamesr@chromium.org>
2251
2252         [chromium] Avoid clearing the framebuffer when compositing in release builds
2253         https://bugs.webkit.org/show_bug.cgi?id=65210
2254
2255         Reviewed by Kenneth Russell.
2256
2257         We clear the default framebuffer to blue when compositing so it's
2258         easier to spot regions we miss. This is useful for debugging, but eats
2259         bandwidth unnecessarily in release builds.
2260
2261         * platform/graphics/chromium/LayerRendererChromium.cpp:
2262         (WebCore::LayerRendererChromium::drawLayers):
2263
2264 2011-07-26  Jeffrey Pfau  <jpfau@apple.com>
2265
2266         New XML tokenizer
2267         https://bugs.webkit.org/show_bug.cgi?id=64566
2268
2269         Reviewed by Adam Barth.
2270
2271         Add tokenizer for XML and tests in NewXMLDocumentParser for printing results of tokenization.
2272
2273         * GNUmakefile.list.am:
2274         * WebCore.gypi:
2275         * WebCore.pro:
2276         * WebCore.vcproj/WebCore.vcproj:
2277         * WebCore.xcodeproj/project.pbxproj:
2278         * xml/parser/NewXMLDocumentParser.cpp:
2279         (WebCore::NewXMLDocumentParser::NewXMLDocumentParser):
2280         (WebCore::NewXMLDocumentParser::append):
2281         * xml/parser/NewXMLDocumentParser.h:
2282         * xml/parser/XMLToken.h:
2283         * xml/parser/XMLTokenizer.cpp: Added.
2284         (WebCore::XMLTokenizer::XMLTokenizer):
2285         (WebCore::::shouldSkipNullCharacters):
2286         (WebCore::XMLTokenizer::nextToken):
2287         (WebCore::XMLTokenizer::bufferCharacter):
2288         (WebCore::XMLTokenizer::parseError):
2289         * xml/parser/XMLTokenizer.h: Added.
2290         (WebCore::XMLTokenizer::create):
2291         (WebCore::XMLTokenizer::gotError):
2292         (WebCore::XMLTokenizer::shouldSkipNullCharacters):
2293
2294 2011-07-26  Robert Kroeger  <rjkroege@chromium.org>
2295
2296         [chromium] Layering violations in gesture recognizer
2297         https://bugs.webkit.org/show_bug.cgi?id=65044
2298
2299         Reviewed by Adam Barth.
2300
2301         Divided the gesture recognizer up to correct a layering
2302         violation by moving gesture implementation from it to
2303         EventHandler::handleGestureEvent so that the gesture recognizer
2304         could simply be an engine for generating gesture events from
2305         touch events.
2306
2307         * page/EventHandler.cpp:
2308         (WebCore::EventHandler::EventHandler):
2309         Removed construction of gesture recognizer.
2310         (WebCore::EventHandler::handleGestureEvent):
2311         Extended for new gesture events added in this patch.
2312         (WebCore::EventHandler::handleTouchEvent):
2313         Removed call into gesture recognizer.
2314         * page/EventHandler.h:
2315         * page/FrameView.cpp:
2316         (WebCore::FrameView::reset):
2317         Removed code to reset gesture recognizer.
2318         * platform/PlatformGestureEvent.h:
2319         (WebCore::PlatformGestureEvent::PlatformGestureEvent):
2320         (WebCore::PlatformGestureEvent::deltaX):
2321         (WebCore::PlatformGestureEvent::deltaY):
2322         (WebCore::PlatformGestureEvent::shiftKey):
2323         (WebCore::PlatformGestureEvent::ctrlKey):
2324         (WebCore::PlatformGestureEvent::altKey):
2325         (WebCore::PlatformGestureEvent::metaKey):
2326         Added additional gesture types and parameters.
2327         * platform/PlatformGestureRecognizer.h:
2328         * platform/chromium/FramelessScrollView.h:
2329         Added support for displatching gesture and touch events.
2330         * platform/chromium/GestureRecognizerChromium.cpp:
2331         (WebCore::InnerGestureRecognizer::InnerGestureRecognizer):
2332         (WebCore::InnerGestureRecognizer::reset):
2333         (WebCore::InnerGestureRecognizer::constructClickGestureEvent):
2334         (WebCore::InnerGestureRecognizer::processTouchEventForGestures):
2335         Removed all depedencies on EventHandler. Instead, create gesture
2336         events from touch event stream.
2337         (WebCore::InnerGestureRecognizer::constructScrollGesture):
2338         (WebCore::touchDown):
2339         (WebCore::noGesture):
2340         (WebCore::click):
2341         (WebCore::isClickOrScroll):
2342         (WebCore::inScroll):
2343         (WebCore::GestureRecognizerChromium::processTouchEventForGestures):
2344         (WebCore::GestureRecognizerChromium::reset):
2345         * platform/chromium/GestureRecognizerChromium.h:
2346         * platform/chromium/PopupMenuChromium.cpp:
2347         Added support to handle touch events and gesture events.
2348         (WebCore::PopupContainer::handleTouchEvent):
2349         (WebCore::PopupContainer::handleGestureEvent):
2350         (WebCore::PopupListBox::handleTouchEvent):
2351         (WebCore::PopupListBox::handleGestureEvent):
2352         * platform/chromium/PopupMenuChromium.h:
2353         * platform/mac/ScrollAnimatorMac.mm:
2354         (WebCore::ScrollAnimatorMac::handleGestureEvent):
2355         Ignores the newly added gesture event types.
2356
2357 2011-07-26  Joseph Pecoraro  <joepeck@webkit.org>
2358
2359         Restore Composited Layers Faster from PageCache
2360         https://bugs.webkit.org/show_bug.cgi?id=65216
2361
2362         Reviewed by Simon Fraser.
2363
2364         Restore the layer tree hierarchy a little sooner, when
2365         restoring from the page cache. This more closely matches
2366         original restore behavior.
2367
2368         Existing test showed no change.
2369
2370         * page/FrameView.cpp:
2371         (WebCore::FrameView::restoreBackingStores):
2372
2373 2011-07-26  Mike Reed  <reed@google.com>
2374
2375         [skia] never draw with GDI, so that all text can be gpu-accelerated
2376         https://bugs.webkit.org/show_bug.cgi?id=65203
2377
2378         Reviewed by Kenneth Russell.
2379
2380         No new tests. existing tests apply to the new drawing path
2381
2382         * platform/graphics/chromium/FontChromiumWin.cpp:
2383         (WebCore::TransparencyAwareFontPainter::TransparencyAwareGlyphPainter::drawGlyphs):
2384         * platform/graphics/skia/SkiaFontWin.cpp:
2385         (WebCore::windowsCanHandleDrawTextShadow):
2386         (WebCore::windowsCanHandleTextDrawing):
2387         (WebCore::windowsCanHandleTextDrawingWithoutShadow):
2388
2389 2011-07-26  Kenneth Russell  <kbr@google.com>
2390
2391         Float32Array(ArrayBuffer, index, length) constructor working incorrectly.
2392         https://bugs.webkit.org/show_bug.cgi?id=57042
2393
2394         Reviewed by James Robinson.
2395
2396         * bindings/js/JSArrayBufferViewHelper.h:
2397         (WebCore::constructArrayBufferViewWithArrayBufferArgument):
2398         * bindings/v8/custom/V8ArrayBufferViewCustom.h:
2399         (WebCore::constructWebGLArrayWithArrayBufferArgument):
2400
2401 2011-07-26  Chris Rogers  <crogers@google.com>
2402
2403         V8 custom bindings for AudioNode must do proper object checking and throw exception in case of error
2404         https://bugs.webkit.org/show_bug.cgi?id=65222
2405
2406         Reviewed by James Robinson.
2407
2408         No new tests - this fixes upcoming audionode.html layout test
2409
2410         * bindings/v8/custom/V8AudioNodeCustom.cpp:
2411         (WebCore::V8AudioNode::connectCallback):
2412
2413 2011-07-26  Chris Rogers  <crogers@google.com>
2414
2415         AudioContext is not correctly accounting for hardware resources
2416         https://bugs.webkit.org/show_bug.cgi?id=65217
2417
2418         Reviewed by Kenneth Russell.
2419
2420         No new tests since audio API is not yet implemented.
2421
2422         * webaudio/AudioContext.cpp:
2423         (WebCore::AudioContext::create):
2424         (WebCore::AudioContext::AudioContext):
2425         (WebCore::AudioContext::lazyInitialize):
2426
2427 2011-07-26  Luke Macpherson   <macpherson@chromium.org>
2428
2429         Handle CSS Properties that can be either auto or a primitive value in CSSStyleApplyProperty
2430         https://bugs.webkit.org/show_bug.cgi?id=65164
2431
2432         Reviewed by Dimitri Glazkov.
2433
2434         No new tests / refactoring only.
2435
2436         * css/CSSPrimitiveValueMappings.h:
2437         Add casts to/from various numeric types.
2438         (WebCore::CSSPrimitiveValue::operator short):
2439         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
2440         (WebCore::CSSPrimitiveValue::operator unsigned short):
2441         (WebCore::CSSPrimitiveValue::operator int):
2442         (WebCore::CSSPrimitiveValue::operator float):
2443         * css/CSSStyleApplyProperty.cpp:
2444         Add class to handle properties that set an "auto" boolean on RenderStyle.
2445         (WebCore::ApplyPropertyAuto::ApplyPropertyAuto):
2446         (WebCore::ApplyPropertyAuto::applyInheritValue):
2447         (WebCore::ApplyPropertyAuto::applyInitialValue):
2448         (WebCore::ApplyPropertyAuto::applyValue):
2449         (WebCore::ApplyPropertyAuto::hasAuto):
2450         (WebCore::ApplyPropertyAuto::setAuto):
2451         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
2452         * css/CSSStyleSelector.cpp:
2453         Remove existing implementations.
2454         (WebCore::CSSStyleSelector::applyProperty):
2455
2456 2011-07-26  Pratik Solanki  <psolanki@apple.com>
2457
2458         Add protection space authentication callback code to CFNetwork loader on Mac
2459         https://bugs.webkit.org/show_bug.cgi?id=65190
2460         <rdar://problem/9842424>
2461
2462         Reviewed by Oliver Hunt.
2463
2464         Port over protection space authentication callback code from ResourceHandleMac.mm to
2465         ResourceHandleCFNet.cpp.
2466
2467         * platform/network/ResourceHandle.h:
2468         * platform/network/cf/ResourceHandleCFNet.cpp:
2469         (WebCore::canRespondToProtectionSpace):
2470         (WebCore::ResourceHandle::createCFURLConnection):
2471         (WebCore::ResourceHandle::canAuthenticateAgainstProtectionSpace):
2472         (WebCore::WebCoreSynchronousLoaderClient::canAuthenticateAgainstProtectionSpace):
2473         * platform/network/mac/ResourceHandleMac.mm:
2474         (-[WebCoreResourceHandleAsDelegate connection:canAuthenticateAgainstProtectionSpace:]): Add logging.
2475
2476 2011-07-26  Sadrul Habib Chowdhury  <sadrul@chromium.org>
2477
2478         Add support for download='filename' attribute in anchors.
2479         https://bugs.webkit.org/show_bug.cgi?id=64580
2480
2481         Reviewed by Adam Barth.
2482
2483         The download attribute allows the author of the hyperlink to cause the
2484         browser to download the linked URL.  The author can also supply a
2485         suggested file name in the attribute value.  This feature is a recent
2486         addition to HTML to better support offline applications that use blob
2487         URLs.  Traditionally, web sites use the HTTP Content-Disposition header
2488         to trigger downloads, but that option isn't available when working
2489         offline.
2490
2491         There is some question about whether we should initiate a download when
2492         we receive a DOM-created click event.  This patch does initiate the
2493         download, but we might revise that decision in the future as part of a
2494         larger change in how WebKit treats the interaction between default
2495         event handlers and DOM-created events.
2496
2497         Tests: fast/dom/HTMLAnchorElement/anchor-download.html
2498                fast/dom/HTMLAnchorElement/anchor-nodownload.html
2499                fast/dom/HTMLAnchorElement/anchor-download-unset.html
2500                fast/dom/HTMLAnchorElement/anchor-nodownload-set.html
2501
2502         * html/HTMLAnchorElement.cpp:
2503         (WebCore::HTMLAnchorElement::defaultEventHandler):
2504         (WebCore::HTMLAnchorElement::handleClick):
2505         * html/HTMLAnchorElement.h:
2506         * html/HTMLAnchorElement.idl:
2507         * html/HTMLAttributeNames.in:
2508         * loader/EmptyClients.h:
2509         (WebCore::EmptyFrameLoaderClient::startDownload):
2510         * loader/FrameLoaderClient.h:
2511
2512 2011-07-26  Mark Hahnenberg  <mhahnenberg@apple.com>
2513
2514         Refactor automatically generated JS DOM bindings to replace operator new with static create methods
2515         https://bugs.webkit.org/show_bug.cgi?id=64732
2516
2517         Reviewed by Oliver Hunt.
2518
2519         No new tests.
2520
2521         Replacing the public constructors in the automatically generated JS DOM bindings in CodeGeneratorJS.pm
2522         with static create methods.  This is part of a larger refactoring effort to use static create methods
2523         in the headers of the generated files (so as to be inline-able) in favor of public constructors throughout JSC.
2524
2525         * bindings/js/JSAudioConstructor.h:
2526         (WebCore::JSAudioConstructor::create):
2527         * bindings/js/JSDOMBinding.h:
2528         (WebCore::createWrapper):
2529         * bindings/js/JSDOMGlobalObject.h:
2530         (WebCore::getDOMConstructor):
2531         * bindings/js/JSDOMWindowCustom.cpp:
2532         (WebCore::JSDOMWindow::history):
2533         (WebCore::JSDOMWindow::location):
2534         * bindings/js/JSDOMWindowShell.cpp:
2535         (WebCore::JSDOMWindowShell::setWindow):
2536         * bindings/js/JSDocumentCustom.cpp:
2537         (WebCore::JSDocument::location):
2538         * bindings/js/JSImageConstructor.h:
2539         (WebCore::JSImageConstructor::create):
2540         * bindings/js/JSImageDataCustom.cpp:
2541         (WebCore::toJS):
2542         * bindings/js/JSOptionConstructor.h:
2543         (WebCore::JSOptionConstructor::create):
2544         * bindings/js/WorkerScriptController.cpp:
2545         (WebCore::WorkerScriptController::initScript):
2546         * bindings/scripts/CodeGeneratorJS.pm:
2547         (AddIncludesForTypeInImpl):
2548         (AddIncludesForTypeInHeader):
2549         (AddIncludesForType):
2550         (GenerateHeader):
2551         (GenerateImplementation):
2552         (GenerateCallbackImplementation):
2553         (GenerateConstructorDeclaration):
2554         * bindings/scripts/test/JS/JSTestInterface.cpp:
2555         (WebCore::JSTestInterfaceConstructor::create):
2556         (WebCore::JSTestInterface::createPrototype):
2557         * bindings/scripts/test/JS/JSTestInterface.h:
2558         (WebCore::JSTestInterface::create):
2559         (WebCore::JSTestInterfacePrototype::create):
2560         * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
2561         (WebCore::JSTestMediaQueryListListenerConstructor::create):
2562         (WebCore::JSTestMediaQueryListListener::createPrototype):
2563         * bindings/scripts/test/JS/JSTestMediaQueryListListener.h:
2564         (WebCore::JSTestMediaQueryListListener::create):
2565         (WebCore::JSTestMediaQueryListListenerPrototype::create):
2566         * bindings/scripts/test/JS/JSTestObj.cpp:
2567         (WebCore::JSTestObjConstructor::create):
2568         (WebCore::JSTestObj::createPrototype):
2569         * bindings/scripts/test/JS/JSTestObj.h:
2570         (WebCore::JSTestObj::create):
2571         (WebCore::JSTestObjPrototype::create):
2572         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
2573         (WebCore::JSTestSerializedScriptValueInterfaceConstructor::create):
2574         (WebCore::JSTestSerializedScriptValueInterface::createPrototype):
2575         * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.h:
2576         (WebCore::JSTestSerializedScriptValueInterface::create):
2577         (WebCore::JSTestSerializedScriptValueInterfacePrototype::create):
2578         * bridge/jni/jsc/JavaArrayJSC.cpp:
2579         (JavaArray::convertJObjectToArray):
2580         * bridge/jsc/BridgeJSC.cpp:
2581         (JSC::Bindings::Instance::newRuntimeObject):
2582         * bridge/objc/objc_utility.mm:
2583         (JSC::Bindings::convertObjcValueToValue):
2584         * bridge/qt/qt_runtime.cpp:
2585         (JSC::Bindings::convertQVariantToValue):
2586         * bridge/runtime_array.h:
2587         (JSC::RuntimeArray::create):
2588         * bridge/runtime_object.h:
2589         (JSC::Bindings::RuntimeObject::create):
2590
2591 2011-07-26  Xiaomei Ji  <xji@chromium.org>
2592
2593         --webkit-visual-word does not work in multi-line
2594         https://bugs.webkit.org/show_bug.cgi?id=61344
2595
2596         Reviewed by Ryosuke Niwa.
2597
2598         Replace Position(node, offset, PositionIsOffsetInAnchor) with 
2599         createPositionAvoidingIgnoredNode(node, offset) which takes care of creating position 
2600         before/after <br/> etc. editingIgnoresContent node. 
2601
2602         When iterate InlineBox, replace prevLeafChild and nextLeafChild (which only returns 
2603         InlineBox within the same line) with leftInlineBox and rightInlineBox (which returns 
2604         InlineBox across multiple lines).
2605
2606         * editing/htmlediting.cpp:
2607         (WebCore::createPositionAvoidingIgnoredNode):
2608         * editing/htmlediting.h:
2609         * editing/visible_units.cpp:
2610         (WebCore::previousWordBreakInBoxInsideBlockWithSameDirectionality): Replace Position() with
2611         createPositionAvoidingIgnoredNode().
2612         (WebCore::leftmostPositionInRTLBoxInLTRBlock): Ditto.
2613         (WebCore::rightmostPositionInLTRBoxInRTLBlock): Ditto.
2614         (WebCore::nextWordBreakInBoxInsideBlockWithDifferentDirectionality): Ditto.
2615         (WebCore::blockWithPreviousLineBox): Added.
2616         (WebCore::previousRootInlineBox): Added.
2617         (WebCore::blockWithNextLineBox): Added.
2618         (WebCore::nextRootInlineBox): Added.
2619         (WebCore::leftInlineBox): Added.
2620         (WebCore::rightInlineBox): Added.
2621         (WebCore::leftWordBoundary): Replace prevLeafChild/nextLeafChild with leftInlineBox()
2622         and rightInlineBox().
2623         (WebCore::rightWordBoundary): Ditto.
2624         (WebCore::leftWordPositionAcrossBoundary): Ditto.
2625         (WebCore::rightWordPositionAcrossBoundary): Ditto.
2626
2627 2011-07-26  David Hyatt  <hyatt@apple.com>
2628
2629         https://bugs.webkit.org/show_bug.cgi?id=60778
2630
2631         Use after free because of line box culling optimization regression.
2632
2633         In the case of a child with no line box being removed (typically
2634         a <br> in quirks mode), if there is no previous sibling with a line
2635         box, then we have a potential problem with the culling optimization.
2636
2637         The culled inline may still have other leaf line box children, but
2638         they may follow the removed <br>. In this case we can't rely on
2639         them, since we need a line box that comes before the <br>.
2640
2641         The fix is to simply recur up to the parent if we are a culled inline
2642         and could not find a previous line box.
2643
2644         Reviewed by Dan Bernstein.
2645
2646         Added editing/execCommand/crash-line-break-after-outdent.html
2647
2648         * rendering/RenderLineBoxList.cpp:
2649         (WebCore::RenderLineBoxList::dirtyLinesFromChangedChild):
2650
2651 2011-07-26  Dan Bernstein  <mitz@apple.com>
2652
2653         <rdar://problem/9842889> Add a generic pictograph font family
2654         https://bugs.webkit.org/show_bug.cgi?id=65197
2655
2656         Reviewed by Anders Carlsson.
2657
2658         Test: fast/css/font-family-pictograph.html
2659
2660         * WebCore.exp.in: Export Settings::setPictographFontFamily().
2661         * css/CSSComputedStyleDeclaration.cpp:
2662         (WebCore::identifierForFamily): Added -webkit-pictograph.
2663         * css/CSSFontSelector.cpp:
2664         (WebCore::CSSFontSelector::addFontFaceRule): Ditto.
2665         (WebCore::fontDataForGenericFamily): Ditto.
2666         * css/CSSStyleSelector.cpp:
2667         (WebCore::CSSStyleSelector::applyProperty): Ditto.
2668         * css/CSSValueKeywords.in:
2669         * inspector/front-end/CSSKeywordCompletions.js: Ditto.
2670         * inspector/front-end/SourceCSSTokenizer.js: Ditto.
2671         (WebInspector.SourceCSSTokenizer):
2672         * inspector/front-end/SourceCSSTokenizer.re2js: Ditto.
2673         * page/Settings.cpp:
2674         (WebCore::Settings::pictographFontFamily): Added this getter.
2675         (WebCore::Settings::setPictographFontFamily): Added this setter.
2676         * page/Settings.h:
2677         * platform/graphics/FontDescription.h: Added PictographFamily to the GenericFamilyType enum.
2678
2679 2011-07-26  Viet-Trung Luu  <viettrungluu@chromium.org>
2680
2681         Improve (i.e., speed up) .gyp(i) files for Chromium
2682         https://bugs.webkit.org/show_bug.cgi?id=65032
2683
2684         Reviewed by Adam Barth.
2685
2686         This re-applies r91595 with the source exclusion fixed.
2687
2688         Test by building (in all supported configurations).
2689
2690         * WebCore.gyp/WebCore.gyp:
2691         * WebCore.gypi:
2692
2693 2011-07-26  Alexis Menard  <alexis.menard@openbossa.org>
2694
2695         [Qt] Disable video support on linux if the dependencies are not found.
2696
2697         If we can't find the necessary dependencies to build the GStreamer media player
2698         we disable the video support. This is related to http://trac.webkit.org/changeset/91752.
2699
2700         Reviewed by Holger Freyther.
2701
2702         No new tests, it's a build fix.
2703
2704         * features.pri:
2705
2706 2011-07-26  Evan Martin  <evan@chromium.org>
2707
2708         regression: generating CSSValueKeywords should not print by default
2709         https://bugs.webkit.org/show_bug.cgi?id=65195
2710
2711         Reviewed by Tony Chang.
2712
2713         Some refactoring made some callers no longer pass the final 'beQuiet'
2714         parameter to applyPreprocessor.  This flag was only used to print the
2715         input filename anyway, so remove the flag and just make the caller
2716         print the filename if it wants this.
2717
2718         * bindings/scripts/IDLParser.pm:
2719         (Parse): print before calling applyPreprocessor, if necessary.
2720         * bindings/scripts/preprocessor.pm:
2721         (applyPreprocessor): remove the beQuiet flag; just always be quiet.
2722
2723 2011-07-26  Raphael Kubo da Costa  <kubo@profusion.mobi>
2724
2725         [EFL] Do not crash on the isSlider() assert.
2726         https://bugs.webkit.org/show_bug.cgi?id=65191
2727
2728         Reviewed by Antonio Gomes.
2729
2730         RenderThemeEfl's paintSliderThumb() just forwarded the call to
2731         paintSliderTrack(), which, on its turn, called code that assumed that
2732         object->isSlider() was true. That does not seem to be the case for
2733         slidethumbs, so any page with an <input type="range"> tag would crash
2734         WebKit.
2735
2736         We now do what RenderThemeQt does, and assume everything was properly
2737         done in the call to paintSliderTrack().
2738
2739         No new tests, as this has been uncovered by an existing test.
2740
2741         * platform/efl/RenderThemeEfl.cpp:
2742         (WebCore::RenderThemeEfl::paintSliderThumb):
2743
2744 2011-07-26  Brian Salomon  <bsalomon@google.com>
2745
2746         [SKIA] Make the skia GL context current when drawing text to gpu backed platform context.
2747         https://bugs.webkit.org/show_bug.cgi?id=65182
2748
2749         Reviewed by Stephen White.
2750
2751         No new tests. Not sure how to test wrong-ctx bugs in layout tests.
2752
2753         * platform/graphics/skia/SkiaFontWin.cpp:
2754         (WebCore::paintSkiaText):
2755
2756 2011-07-26  Emil A Eklund  <eae@chromium.org>
2757
2758         RenderText::absoluteRectsForRange() and absoluteQuadsForRange() have nearly duplicate code
2759         https://bugs.webkit.org/show_bug.cgi?id=62478
2760
2761         Reviewed by Simon Fraser.
2762
2763         Test: fast/dom/Range/getClientRects.html
2764
2765         * platform/graphics/FloatRect.h:
2766         (WebCore::FloatRect::isZero):
2767         Add izZero method, unlike isEmpty this checks if both the width and the
2768         height are zero.
2769
2770         * rendering/RenderText.cpp:
2771         (WebCore::absoluteQuadForTextBox):
2772         (WebCore::RenderText::absoluteRectsForRange):
2773         (WebCore::RenderText::absoluteQuadsForRange):
2774         Break duplicate code out of absoluteRectsForRange and
2775         absoluteQuadsForRange into shared static function.
2776         
2777         Fix what I presume to be a bug in the absoluteQuadsForRange where the
2778         logicalHeight was always used to set the size in absoluteQuadForTextBox
2779         as oppsued to the absoluteRectsForRange implementation that uses the
2780         logicalWidth or the logicalHeight depending on whether it's horizontal or
2781         vertical.
2782
2783 2011-07-26  Alexandru Chiculita  <achicu@adobe.com>
2784
2785         [CSSRegions] Collect flowed elements in different render element
2786         https://bugs.webkit.org/show_bug.cgi?id=64516
2787
2788         All the RenderObjects that have a specified "flow" name are moved out of the
2789         normal flow. A RenderFlowThread will collect all such RenderObjects. There is
2790         a RenderFlowThread for each flow name. The new RenderFlowThread is an anonymous
2791         RenderBlock that is positioned absolute and will not render directly. In a
2792         different bug/patch we will add RenderRegion that will take care of rendering the
2793         RenderFlowThread on screen.
2794
2795         Reviewed by Simon Fraser.
2796
2797         Tests: fast/regions/webkit-flow-renderer-layer.html
2798                fast/regions/webkit-flow-renderer-nested.html
2799                fast/regions/webkit-flow-renderer.html
2800
2801         * WebCore.vcproj/WebCore.vcproj:
2802         * WebCore.xcodeproj/project.pbxproj:
2803         * dom/Node.cpp:
2804         (WebCore::Node::diff):
2805         * dom/NodeRenderingContext.cpp:
2806         (WebCore::NodeRenderingContext::NodeRenderingContext):
2807         (WebCore::NodeRenderingContext::setStyle):
2808         (WebCore::NodeRenderingContext::nextRenderer):
2809         (WebCore::NodeRenderingContext::previousRenderer):
2810         (WebCore::NodeRenderingContext::parentRenderer):
2811         (WebCore::NodeRenderingContext::moveToFlowThreadIfNeeded):
2812         (WebCore::NodeRendererFactory::createRendererIfNeeded):
2813         * dom/NodeRenderingContext.h:
2814         (WebCore::NodeRenderingContext::hasFlowThreadParent):
2815         (WebCore::NodeRenderingContext::parentFlowRenderer):
2816         * rendering/RenderFlowThread.cpp: Added.
2817         (WebCore::RenderFlowThread::RenderFlowThread):
2818         (WebCore::RenderFlowThread::createFlowThreadStyle):
2819         (WebCore::RenderFlowThread::nextRendererForNode):
2820         (WebCore::RenderFlowThread::previousRendererForNode):
2821         (WebCore::RenderFlowThread::addChild):
2822         (WebCore::RenderFlowThread::removeChild):
2823         * rendering/RenderFlowThread.h: Added.
2824         (WebCore::toRenderFlowThread):
2825         * rendering/RenderLayer.cpp:
2826         (WebCore::RenderLayer::collectLayers):
2827         * rendering/RenderObject.h:
2828         (WebCore::RenderObject::isRenderFlowThread):
2829         * rendering/RenderTreeAsText.cpp:
2830         (WebCore::RenderTreeAsText::writeRenderObject):
2831         (WebCore::writeLayers):
2832         * rendering/RenderView.cpp:
2833         (WebCore::RenderView::renderFlowThreadWithName):
2834         * rendering/RenderView.h:
2835         * rendering/style/RenderStyle.cpp:
2836         (WebCore::RenderStyle::diff):
2837
2838 2011-07-26  Patrick Dubroy  <dubroy@chromium.org>
2839
2840         Filename text in file upload controls is not aligned with button text on
2841         chromium-linux, chromium-win, and gtk.
2842
2843         https://bugs.webkit.org/show_bug.cgi?id=64692
2844
2845         The fix is to not include the margin, border, and padding in the calculation,
2846         because those are already accounted for by RenderBlock::baselinePosition().
2847
2848         Reviewed by Dimitri Glazkov.
2849
2850         * rendering/RenderFileUploadControl.cpp:
2851         (WebCore::RenderFileUploadControl::paintObject):
2852
2853 2011-07-26  Sheriff Bot  <webkit.review.bot@gmail.com>
2854
2855         Unreviewed, rolling out r91746.
2856         http://trac.webkit.org/changeset/91746
2857         https://bugs.webkit.org/show_bug.cgi?id=65180
2858
2859         It broke SL build (Requested by Ossy on #webkit).
2860
2861         * dom/OptionElement.cpp:
2862         (WebCore::OptionElement::normalizeText):
2863
2864 2011-07-26  Pavel Feldman  <pfeldman@google.com>
2865
2866         Web Inspector: Better represent custom getters in the properties pane
2867         https://bugs.webkit.org/show_bug.cgi?id=16734
2868
2869         Reviewed by Yury Semikhatsky.
2870
2871         Test: inspector/runtime/runtime-getProperties.html
2872
2873         * inspector/InjectedScriptSource.js:
2874         (.):
2875         * inspector/Inspector.json:
2876         * inspector/front-end/ObjectPropertiesSection.js:
2877         (WebInspector.ObjectPropertyTreeElement.prototype.update):
2878
2879 2011-07-26  Alexis Menard  <alexis.menard@openbossa.org>
2880
2881         Reviewed by Andreas Kling.
2882
2883         [Qt] Change default backend to use GStreamer on Linux and QuickTime on Mac.
2884         https://bugs.webkit.org/show_bug.cgi?id=63472
2885
2886         Enable the GStreamer backend and the QuickTime backend as default media players
2887         for the Qt port on Mac and Linux. QtMultimedia is now a fallback option that you
2888         can enable by passing DEFINES+=USE_QT_MULTIMEDIA=1 to enforce its usage.
2889
2890         No new tests. The media layout tests are disabled on the Qt port but hopefully with this
2891         switch we can enable them again.
2892
2893         * WebCore.pri:
2894         * WebCore.pro:
2895         * features.pri:
2896
2897 2011-07-26  Pavel Feldman  <pfeldman@google.com>
2898
2899         Web Inspector: Implement setPropertyValue using evaluate and callFunctionOn
2900         https://bugs.webkit.org/show_bug.cgi?id=65112
2901
2902         Reviewed by Yury Semikhatsky.
2903
2904         Test: inspector/runtime/runtime-setPropertyValue.html
2905
2906         * inspector/InjectedScript.cpp:
2907         * inspector/InjectedScript.h:
2908         * inspector/InjectedScriptSource.js:
2909         (.):
2910         * inspector/Inspector.json:
2911         * inspector/InspectorRuntimeAgent.cpp:
2912         * inspector/InspectorRuntimeAgent.h:
2913         * inspector/front-end/RemoteObject.js:
2914         (WebInspector.RemoteObject.prototype.setPropertyValue.evaluatedCallback.setPropertyValue):
2915         (WebInspector.RemoteObject.prototype.setPropertyValue.evaluatedCallback):
2916         (WebInspector.RemoteObject.prototype.setPropertyValue.propertySetCallback):
2917         (WebInspector.RemoteObject.prototype.setPropertyValue):
2918
2919 2011-07-26  Pavel Feldman  <pfeldman@google.com>
2920
2921         Re-applying r91665 and r91668 with JSC issues fixed.
2922
2923         Web Inspector: use dedicated type for object id in the protocol.
2924         Web Inspector: refactor remote object structure to contain value for primitive values.
2925
2926         https://bugs.webkit.org/show_bug.cgi?id=65103
2927         https://bugs.webkit.org/show_bug.cgi?id=65110
2928
2929         Reviewed by Yury Semikhatsky.
2930
2931         * inspector/InjectedScript.cpp:
2932         (WebCore::InjectedScript::callFunctionOn):
2933         * inspector/InjectedScript.h:
2934         * inspector/InjectedScriptSource.js:
2935         * inspector/Inspector.json:
2936         * inspector/InspectorRuntimeAgent.cpp:
2937         (WebCore::InspectorRuntimeAgent::callFunctionOn):
2938         * inspector/InspectorValues.cpp:
2939         (WebCore::InspectorBasicValue::writeJSON):
2940         * inspector/front-end/ConsoleView.js:
2941         (WebInspector.ConsoleView.prototype._format):
2942         (WebInspector.ConsoleView.prototype._formatAsArrayEntry):
2943         (WebInspector.ConsoleMessage.prototype._format):
2944         * inspector/front-end/ElementsTreeOutline.js:
2945         (WebInspector.ElementsTreeElement.prototype._createTooltipForNode.setTooltip):
2946         * inspector/front-end/ObjectPropertiesSection.js:
2947         (WebInspector.ObjectPropertyTreeElement.prototype.update):
2948         * inspector/front-end/PropertiesSidebarPane.js:
2949         (WebInspector.PropertiesSidebarPane.prototype.update.nodePrototypesReady):
2950         * inspector/front-end/RemoteObject.js:
2951         (WebInspector.RemoteObject):
2952         (WebInspector.RemoteObject.fromPrimitiveValue):
2953         (WebInspector.RemoteObject.fromPayload):
2954         (WebInspector.RemoteObject.prototype.get subtype):
2955         (WebInspector.RemoteObject.prototype.callFunction):
2956         (WebInspector.LocalJSONObject.prototype.get description):
2957         (WebInspector.LocalJSONObject.prototype.get type):
2958         (WebInspector.LocalJSONObject.prototype.get subtype):
2959         * inspector/front-end/SourceFrame.js:
2960         (WebInspector.SourceFrame.prototype._showPopup.showObjectPopup):
2961         (WebInspector.SourceFrame.prototype._showPopup):
2962         * inspector/front-end/inspector.js:
2963         (WebInspector.log.logMessage):
2964         (WebInspector.log):
2965         (WebInspector.inspect):
2966
2967 2011-07-26  Nikolas Zimmermann  <nzimmermann@rim.com>
2968
2969         Prepare animVal support - phase 2
2970         https://bugs.webkit.org/show_bug.cgi?id=65167
2971
2972         Reviewed by Dirk Schulze.
2973
2974         Next patch preparing animVal support. Modify the SVGAnimatedProperty* classes & macros to assure that calling someElement->someProperty()
2975         will return the animVal, when the property is being animated. Not yet hooked into SVGAnimateElement, this is just a preparation.
2976
2977         Doesn't affect any tests, yet.
2978
2979         * svg/SVGPathElement.cpp: Adapt to SVGAnimatedProperty::lookupWrapper changes (new template parameters have been added).
2980         (WebCore::SVGPathElement::svgAttributeChanged):
2981         * svg/SVGPathSegWithContext.h: Ditto.
2982         (WebCore::SVGPathSegWithContext::animatedProperty):
2983         * svg/SVGPolyElement.cpp: Ditto.
2984         (WebCore::SVGPolyElement::parseMappedAttribute):
2985         * svg/properties/SVGAnimatedEnumerationPropertyTearOff.h: Implement currentAnimatedValue, an abstract way to retrieve the underlying animated value for any animated type.
2986         (WebCore::SVGAnimatedEnumerationPropertyTearOff::currentAnimatedValue): Forward call to SVGAnimatedStaticPropertyTearOff<int>, our base.
2987         * svg/properties/SVGAnimatedListPropertyTearOff.h:
2988         (WebCore::SVGAnimatedListPropertyTearOff::isAnimating): Returns whether this property is being animated or not.
2989         (WebCore::SVGAnimatedListPropertyTearOff::currentAnimatedValue):
2990         * svg/properties/SVGAnimatedProperty.h:
2991         (WebCore::SVGAnimatedProperty::updateAnimVal): Will be used from SVGAnim*Element to update the current animVal, exposed to JS.
2992         (WebCore::SVGAnimatedProperty::lookupOrCreateWrapper): Share more code with lookupWrapper.
2993         (WebCore::SVGAnimatedProperty::lookupWrapper): Cleanup code, avoid doing any work for non-SVGElement derived objects, like SVGViewSpec.
2994         * svg/properties/SVGAnimatedPropertyMacros.h: Make all lowerProperty() calls (eg. myRectElement->x()) return the animVal, if the property is being animated.
2995         * svg/properties/SVGAnimatedPropertyTearOff.h: Main logic for the new animVal stuff.
2996         (WebCore::SVGAnimatedPropertyTearOff::isAnimating):
2997         (WebCore::SVGAnimatedPropertyTearOff::currentAnimatedValue):
2998         (WebCore::SVGAnimatedPropertyTearOff::updateAnimVal):
2999         (WebCore::SVGAnimatedPropertyTearOff::SVGAnimatedPropertyTearOff):
3000         * svg/properties/SVGAnimatedStaticPropertyTearOff.h:
3001         (WebCore::SVGAnimatedStaticPropertyTearOff::isAnimating):
3002         (WebCore::SVGAnimatedStaticPropertyTearOff::currentAnimatedValue):
3003         * svg/properties/SVGPropertyTearOff.h:
3004         (WebCore::SVGPropertyTearOff::updateAnimVal):
3005
3006 2011-07-26  Shinya Kawanaka  <shinyak@google.com>
3007
3008         Uses isHTMLSpace to normalize white spaces.
3009         https://bugs.webkit.org/show_bug.cgi?id=57746
3010
3011         Reviewed by Kent Tamura.
3012
3013         Test: fast/forms/option-strip-unicode-spaces.html
3014
3015         * dom/OptionElement.cpp:
3016         (WebCore::OptionElement::normalizeText):
3017           Uses isHTMLSpace to trim and replace white spaces.
3018
3019 2011-07-25  Ryuan Choi  <ryuan.choi@samsung.com>
3020
3021         [CMAKE] Split JSC related files from WebCore/CMakeLists.txt
3022         https://bugs.webkit.org/show_bug.cgi?id=61350
3023
3024         Reviewed by Daniel Bates.
3025
3026         No new tests, just moving jsc related files from CMakeLists.txt to UseJSC.cmake.
3027
3028         * CMakeLists.txt:
3029         * UseJSC.cmake:
3030
3031 2011-07-25  Dan Bernstein  <mitz@apple.com>
3032
3033         Fix the build by committing a rename in this file that I neglected to include in the previous commit.
3034
3035         * css/CSSFontFaceSource.h:
3036
3037 2011-07-25  Dan Bernstein  <mitz@apple.com>
3038
3039         <rdar://problem/9835028> Font loading during layout can cause layout code to be re-entered via resource load delegate
3040         https://bugs.webkit.org/show_bug.cgi?id=65123
3041
3042         Reviewed by Anders Carlsson and Darin Adler.
3043
3044         Since CSSFontFaceSource::getFontData() can get called during layout, avoid calling out to loader
3045         code from under it, and instead defer that work using a zero-delay timer.
3046
3047         * css/CSSFontFaceSource.cpp:
3048         (WebCore::CSSFontFaceSource::CSSFontFaceSource):
3049         (WebCore::CSSFontFaceSource::~CSSFontFaceSource):
3050         (WebCore::CSSFontFaceSource::getFontData): Rather than starting the font load here, schedule
3051         a zero-delay timer to do it.
3052         (WebCore::CSSFontFaceSource::startLoadingTimerFired): Added. Starts loading the font if needed.
3053         * css/CSSFontFaceSource.h:
3054
3055 2011-07-25  Al Patrick  <apatrick@chromium.org>
3056
3057         Removed support for the GL_latch_CHROMIUM extension which Chromium no longer supports.
3058         Replaced calls to SetLatch with calls to Flush since Flush now has barrier semantics in Chromium.
3059         https://bugs.webkit.org/show_bug.cgi?id=65043
3060
3061         Reviewed by James Robinson.
3062
3063         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
3064         (WebCore::Canvas2DLayerChromium::updateCompositorResources):
3065         * platform/graphics/chromium/DrawingBufferChromium.cpp:
3066         (WebCore::DrawingBuffer::publishToPlatformLayer):
3067         * platform/graphics/chromium/Extensions3DChromium.h:
3068         * platform/graphics/chromium/LayerRendererChromium.cpp:
3069         (WebCore::LayerRendererChromium::LayerRendererChromium):
3070         (WebCore::LayerRendererChromium::drawLayers):
3071         (WebCore::LayerRendererChromium::addChildContext):
3072         (WebCore::LayerRendererChromium::removeChildContext):
3073         * platform/graphics/chromium/LayerRendererChromium.h:
3074
3075 2011-07-25  Sam Weinig  <sam@webkit.org>
3076
3077         Refactor ScrollableArea pinned predicates to be more generally useful
3078         <rdar://problem/9740379>
3079
3080         Reviewed by Dan Bernstein.
3081
3082         * platform/ScrollableArea.cpp:
3083         (WebCore::ScrollableArea::isPinnedInBothDirections):
3084         (WebCore::ScrollableArea::isPinnedHorizontallyInDirection):
3085         (WebCore::ScrollableArea::isPinnedVerticallyInDirection):
3086         * platform/ScrollableArea.h:
3087
3088 2011-07-25  Nico Weber  <thakis@chromium.org>
3089
3090         [chromium] components/mac: Make webcore not depend on CoreAnimation
3091         https://bugs.webkit.org/show_bug.cgi?id=65143
3092
3093         Reviewed by James Robinson.
3094
3095         * platform/chromium/ScrollAnimatorChromiumMac.mm:
3096
3097 2011-07-25  Ian Henderson  <ianh@apple.com>
3098
3099         WebFrame should have a method to determine its visual emptiness
3100         https://bugs.webkit.org/show_bug.cgi?id=64223
3101
3102         Reviewed by Dan Bernstein.
3103
3104         * page/FrameView.h:
3105         (WebCore::FrameView::isVisuallyNonEmpty): Add an accessor to FrameView
3106         so we can tell whether it's visually non-empty.
3107
3108 2011-07-25  Scott Graham  <scottmg@chromium.org>
3109
3110         REGRESSION (r39725?): Resources removed from document can not be freed until the document is deleted
3111         https://bugs.webkit.org/show_bug.cgi?id=61006
3112
3113         Reviewed by Nate Chapin.
3114
3115         Rollback previous patch. Occasional crashes seen caused by
3116         CachedResource being deleted twice.
3117
3118         * loader/cache/CachedResourceLoader.cpp:
3119         (WebCore::CachedResourceLoader::CachedResourceLoader):
3120         (WebCore::CachedResourceLoader::loadDone):
3121         * loader/cache/CachedResourceLoader.h:
3122
3123 2011-07-25  Chris Rogers  <crogers@google.com>
3124
3125         Deprecate AudioBufferSourceNode .looping attribute and implement .loop
3126         https://bugs.webkit.org/show_bug.cgi?id=65133
3127
3128         Reviewed by Kenneth Russell.
3129
3130         No new tests since audio API is not yet implemented.
3131
3132         * webaudio/AudioBufferSourceNode.cpp:
3133         (WebCore::AudioBufferSourceNode::renderFromBuffer):
3134         (WebCore::AudioBufferSourceNode::totalPitchRate):
3135         (WebCore::AudioBufferSourceNode::looping):
3136         (WebCore::AudioBufferSourceNode::setLooping):
3137         * webaudio/AudioBufferSourceNode.h:
3138         (WebCore::AudioBufferSourceNode::loop):
3139         (WebCore::AudioBufferSourceNode::setLoop):
3140         * webaudio/AudioBufferSourceNode.idl:
3141
3142 2011-07-25  James Robinson  <jamesr@chromium.org>
3143
3144         [chromium] HUD texture must be unreserved after drawing
3145         https://bugs.webkit.org/show_bug.cgi?id=65122
3146
3147         Unreserve the HUD texture after drawing.  To test, start chrome in debug with --show-fps-counter.  Since this is
3148         a debugging option, no tests.
3149
3150         * platform/graphics/chromium/cc/CCHeadsUpDisplay.cpp:
3151         (WebCore::CCHeadsUpDisplay::draw):
3152
3153 2011-07-25  David Grogan  <dgrogan@chromium.org>
3154
3155         Fix leveldb crash when compacting during destruction
3156         https://bugs.webkit.org/show_bug.cgi?id=64494
3157
3158         Reviewed by Nate Chapin.
3159
3160         Only tested manually so far by following the repro instructions at
3161         crbug.com/88944
3162
3163         * platform/leveldb/LevelDBDatabase.cpp:
3164         (WebCore::LevelDBDatabase::~LevelDBDatabase):
3165         * storage/IDBLevelDBBackingStore.cpp:
3166         (WebCore::IDBLevelDBBackingStore::~IDBLevelDBBackingStore):
3167
3168 2011-07-25  David Reveman  <reveman@chromium.org>
3169
3170         [Chromium] Use correct vertex shader when rendering video layer.
3171         https://bugs.webkit.org/show_bug.cgi?id=65131
3172
3173         Reviewed by James Robinson.
3174
3175         Add new VertexShaderQuad program that is used by LayerTilerChromium.
3176         Change VertexShaderPosTexTransform so it works with CCVideoLayerImpl.
3177
3178         * platform/graphics/chromium/LayerTilerChromium.h:
3179         * platform/graphics/chromium/ShaderChromium.cpp:
3180         (WebCore::VertexShaderPosTexTransform::VertexShaderPosTexTransform):
3181         (WebCore::VertexShaderPosTexTransform::init):
3182         (WebCore::VertexShaderPosTexTransform::getShaderString):
3183         (WebCore::VertexShaderQuad::VertexShaderQuad):
3184         (WebCore::VertexShaderQuad::init):
3185         (WebCore::VertexShaderQuad::getShaderString):
3186         * platform/graphics/chromium/ShaderChromium.h:
3187         (WebCore::VertexShaderQuad::matrixLocation):
3188         (WebCore::VertexShaderQuad::texTransformLocation):
3189
3190 2011-07-25  Patrick Gansterer  <paroga@webkit.org>
3191
3192         Fix AtomicString vs. String usage in accessibility code
3193         https://bugs.webkit.org/show_bug.cgi?id=65086
3194
3195         Reviewed by Darin Adler.
3196
3197         Use AtomicString instead of String where appropriate
3198         to avoid implicit type conversations.
3199         Also fix a invalid reference to a temporary String.
3200
3201         * accessibility/AccessibilityObject.h:
3202         (WebCore::AccessibilityObject::setAccessibleName):
3203         * accessibility/AccessibilityRenderObject.cpp:
3204         (WebCore::AccessibilityRenderObject::elementsFromAttribute):
3205         (WebCore::AccessibilityRenderObject::ariaAccessibilityDescription):
3206         (WebCore::AccessibilityRenderObject::setAccessibleName):
3207         * accessibility/AccessibilityRenderObject.h:
3208
3209 2011-07-25  Dan Bernstein  <mitz@apple.com>
3210
3211         Reverted r91699 due to
3212         <http://webkit.org/b/65134> REGRESSION: r91699 broke some font tests (image+text)
3213
3214         Many tests relied on font loading occurring synchronously in the cached and local cases.
3215
3216         * css/CSSFontFaceSource.cpp:
3217         (WebCore::CSSFontFaceSource::CSSFontFaceSource):
3218         (WebCore::CSSFontFaceSource::~CSSFontFaceSource):
3219         (WebCore::CSSFontFaceSource::getFontData):
3220         * css/CSSFontFaceSource.h:
3221
3222 2011-06-07  Martin Robinson  <mrobinson@igalia.com>
3223
3224         Reviewed by Gustavo Noronha Silva.
3225
3226         [GTK] Use WebCore scrollbars for the DRT instead of GtkScrolledWindow
3227         https://bugs.webkit.org/show_bug.cgi?id=62252
3228
3229         Properly handle the situation where the GtkWidget wants WebCore to draw its
3230         own main frame scrollbars.
3231
3232         * platform/gtk/ScrollViewGtk.cpp:
3233         (WebCore::shouldCreateMainFrameScrollbar): Abstract this logic into a helper function.
3234         (WebCore::ScrollView::createScrollbar): Use the new helper.
3235         (WebCore::ScrollView::visibleContentRect): Use the new helper.
3236
3237 2011-07-25  David Hyatt  <hyatt@apple.com>
3238
3239         https://bugs.webkit.org/show_bug.cgi?id=65125
3240         
3241         (1) Add the new CSS3 positioned value for floats.
3242         (2) Rename FLEFT, FRIGHT and FNONE to our more modern convention: NoFloat, LeftFloat, RightFloat.
3243         (3) Replace uses of == FNONE and != FNONE with isFloating and !isFloating.
3244
3245         Reviewed by Dan Bernstein.
3246
3247         * css/CSSParser.cpp:
3248         (WebCore::CSSParser::parseValue):
3249         * css/CSSPrimitiveValueMappings.h:
3250         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
3251         (WebCore::CSSPrimitiveValue::operator EFloat):
3252         * css/CSSStyleSelector.cpp:
3253         (WebCore::CSSStyleSelector::adjustRenderStyle):
3254         * css/CSSValueKeywords.in:
3255         * editing/ReplaceSelectionCommand.cpp:
3256         (WebCore::ReplaceSelectionCommand::removeRedundantStylesAndKeepStyleSpanInline):
3257         * rendering/RenderBlock.cpp:
3258         (WebCore::RenderBlock::insertFloatingObject):
3259         (WebCore::RenderBlock::positionNewFloats):
3260         (WebCore::RenderBlock::computeInlinePreferredLogicalWidths):
3261         (WebCore::RenderBlock::computeBlockPreferredLogicalWidths):
3262         * rendering/RenderObjectChildList.cpp:
3263         (WebCore::RenderObjectChildList::updateBeforeAfterContent):
3264         * rendering/style/RenderStyle.h:
3265         (WebCore::InheritedFlags::isFloating):
3266         (WebCore::InheritedFlags::initialFloating):
3267         * rendering/style/RenderStyleConstants.h:
3268
3269 2011-07-25  Dan Bernstein  <mitz@apple.com>
3270
3271         <rdar://problem/9835028> Font loading during layout can cause layout code to be re-entered via resource load delegate
3272         https://bugs.webkit.org/show_bug.cgi?id=65123
3273
3274         Reviewed by Anders Carlsson.
3275
3276         Since CSSFontFaceSource::getFontData() can get called during layout, avoid calling out to loader
3277         code from under it, and instead defer that work using a zero-delay timer.
3278
3279         * css/CSSFontFaceSource.cpp:
3280         (WebCore::CSSFontFaceSource::CSSFontFaceSource):
3281         (WebCore::CSSFontFaceSource::~CSSFontFaceSource):
3282         (WebCore::CSSFontFaceSource::getFontData): Rather than starting the font load here, schedule
3283         a zero-delay timer to do it.
3284         (WebCore::CSSFontFaceSource::startLoadingTimerFired): Added. Starts loading the font if needed.
3285         * css/CSSFontFaceSource.h:
3286
3287 2011-07-25  Andrew Wason  <rectalogic@rectalogic.com>
3288
3289         [Qt] Adopt GraphicsContext3DOpenGL.cpp and ANGLE (part 2)
3290         https://bugs.webkit.org/show_bug.cgi?id=64878
3291
3292         Reviewed by Noam Rosenthal.
3293
3294         Existing WebGL layout tests should test this.
3295
3296         Adopt GraphicsContext3DOpenGL.cpp and ANGLE compiler for Qt.
3297
3298         * WebCore.pro: Build ANGLE compiler and GraphicsContext3DOpenGL.cpp.
3299         * platform/graphics/ANGLEWebKitBridge.h:
3300         * platform/graphics/GraphicsContext3D.h: Expose exising ANGLEWebKitBridge compiler member for Qt.
3301         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
3302         * platform/graphics/qt/GraphicsContext3DQt.cpp:
3303         (WebCore::GraphicsContext3D::GraphicsContext3D): Initialize ANGLE resources.
3304
3305 2011-07-25  Daniel Bates  <dbates@rim.com>
3306
3307         REGRESSION (r85964): Improper relayout of some nested positioned elements
3308         https://bugs.webkit.org/show_bug.cgi?id=64286
3309
3310         Reviewed by David Hyatt.
3311
3312         Fixes an issue when traversing up the containing block hierarchy after skipping
3313         relatively positioned inlines.
3314
3315         When processing a positioned element we skip any intermediate inlines to get to
3316         to enclosing block B, but don't use the containing block for B (call this P_B) to
3317         properly continue traversing up the containing block hierarchy. So, B may be
3318         considered again instead of looking at P_B. Hence, we don't set the correct dirty
3319         bits for P_B and may not schedule a relayout with respect to the correct layout node.
3320
3321         Test: fast/block/positioning/relayout-nested-positioned-elements-crash.html
3322
3323         * rendering/RenderObject.h:
3324         (WebCore::RenderObject::markContainingBlocksForLayout):
3325
3326 2011-07-25  Arno Renevier  <arno@renevier.net>
3327
3328         removes last ENABLE(DRAG_SUPPORT) gtk check
3329         https://bugs.webkit.org/show_bug.cgi?id=64518
3330
3331         Reviewed by Martin Robinson.
3332
3333         * platform/gtk/ClipboardGtk.h:
3334
3335 2011-07-25  Alexandru Chiculita  <achicu@adobe.com>
3336
3337         [CSS Exclusions] Use HANDLE_INHERIT_AND_INITIAL when parsing -webkit-wrap-shape
3338         https://bugs.webkit.org/show_bug.cgi?id=65096
3339
3340         Also the 'inherit' keyword is now treated correctly. It will
3341         copy the value from the parent style.
3342
3343         Reviewed by Tony Chang.
3344
3345         * css/CSSStyleSelector.cpp:
3346         (WebCore::CSSStyleSelector::applyProperty):
3347
3348 2011-07-25  Andrew Wason  <rectalogic@rectalogic.com>
3349
3350         glActiveTexture(0) is invalid
3351         https://bugs.webkit.org/show_bug.cgi?id=65115
3352
3353         Reviewed by Kenneth Russell.
3354
3355         Existing WebGL layout tests.
3356
3357         Fix invalid glActiveTexture(0) call.
3358
3359         * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
3360         (WebCore::GraphicsContext3D::prepareTexture):
3361
3362 2011-07-25  Sheriff Bot  <webkit.review.bot@gmail.com>
3363
3364         Unreviewed, rolling out r91665.
3365         http://trac.webkit.org/changeset/91665
3366         https://bugs.webkit.org/show_bug.cgi?id=65118
3367
3368         Breaks inspector tests on JSC (Requested by pfeldman on
3369         #webkit).
3370
3371         * inspector/InjectedScriptSource.js:
3372         (.):
3373         ():
3374         * inspector/Inspector.json:
3375         * inspector/front-end/ConsoleView.js:
3376         (WebInspector.ConsoleView.prototype._format):
3377         (WebInspector.ConsoleView.prototype._formatAsArrayEntry):
3378         (WebInspector.ConsoleMessage.prototype._format):
3379         * inspector/front-end/ElementsTreeOutline.js:
3380         (WebInspector.ElementsTreeElement.prototype._createTooltipForNode.setTooltip):
3381         * inspector/front-end/ObjectPropertiesSection.js:
3382         (WebInspector.ObjectPropertyTreeElement.prototype.update):
3383         * inspector/front-end/PropertiesSidebarPane.js:
3384         (WebInspector.PropertiesSidebarPane.prototype.update.nodePrototypesReady):
3385         * inspector/front-end/RemoteObject.js:
3386         (WebInspector.RemoteObject):
3387         (WebInspector.RemoteObject.fromPrimitiveValue):
3388         (WebInspector.RemoteObject.fromPayload):
3389         (WebInspector.RemoteObject.prototype.callFunction):
3390         (WebInspector.LocalJSONObject.prototype.get type):
3391         * inspector/front-end/SourceFrame.js:
3392         (WebInspector.SourceFrame.prototype._showPopup.showObjectPopup):
3393         (WebInspector.SourceFrame.prototype._showPopup):
3394         * inspector/front-end/inspector.js:
3395         (WebInspector.log.logMessage):
3396         (WebInspector.log):
3397         (WebInspector.inspect):
3398
3399 2011-07-25  Sheriff Bot  <webkit.review.bot@gmail.com>
3400
3401         Unreviewed, rolling out r91668.
3402         http://trac.webkit.org/changeset/91668
3403         https://bugs.webkit.org/show_bug.cgi?id=65117
3404
3405         Breaks inspector tests on JSC (Requested by pfeldman on
3406         #webkit).
3407
3408         * inspector/InjectedScript.cpp:
3409         (WebCore::InjectedScript::callFunctionOn):
3410         * inspector/InjectedScript.h:
3411         * inspector/InjectedScriptSource.js:
3412         (.):
3413         * inspector/Inspector.json:
3414         * inspector/InspectorRuntimeAgent.cpp:
3415         (WebCore::InspectorRuntimeAgent::callFunctionOn):
3416
3417 2011-07-25  Pavel Feldman  <pfeldman@google.com>
3418
3419         Web Inspector: use dedicated type for object id in the protocol.
3420         https://bugs.webkit.org/show_bug.cgi?id=65110
3421
3422         Reviewed by Yury Semikhatsky.
3423
3424         * inspector/InjectedScript.cpp:
3425         (WebCore::InjectedScript::callFunctionOn):
3426         * inspector/InjectedScript.h:
3427         * inspector/InjectedScriptSource.js:
3428         (.):
3429         * inspector/Inspector.json:
3430         * inspector/InspectorRuntimeAgent.cpp:
3431         (WebCore::InspectorRuntimeAgent::callFunctionOn):
3432
3433 2011-07-25  Yury Semikhatsky  <yurys@chromium.org>
3434
3435         [Chromium] Web Inspector: live edit error should be revealed in Console
3436         https://bugs.webkit.org/show_bug.cgi?id=65109
3437
3438         Reviewed by Pavel Feldman.
3439
3440         * inspector/front-end/SourceFrame.js:
3441         (WebInspector.SourceFrame.prototype.commitEditing.didEditContent):
3442         (WebInspector.SourceFrame.prototype.commitEditing):
3443
3444 2011-07-25  Pavel Feldman  <pfeldman@google.com>
3445
3446         Web Inspector: refactor remote object structure to contain value for primitive values.
3447         https://bugs.webkit.org/show_bug.cgi?id=65103
3448
3449         Reviewed by Yury Semikhatsky.
3450
3451         * inspector/InjectedScriptSource.js:
3452         * inspector/Inspector.json:
3453         * inspector/front-end/ConsoleView.js:
3454         (WebInspector.ConsoleView.prototype._format):
3455         (WebInspector.ConsoleView.prototype._formatAsArrayEntry):
3456         (WebInspector.ConsoleMessage.prototype._format):
3457         * inspector/front-end/ElementsTreeOutline.js:
3458         (WebInspector.ElementsTreeElement.prototype._createTooltipForNode.setTooltip):
3459         * inspector/front-end/ObjectPropertiesSection.js:
3460         (WebInspector.ObjectPropertyTreeElement.prototype.update):
3461         * inspector/front-end/PropertiesSidebarPane.js:
3462         (WebInspector.PropertiesSidebarPane.prototype.update.nodePrototypesReady):
3463         * inspector/front-end/RemoteObject.js:
3464         (WebInspector.RemoteObject):
3465         (WebInspector.RemoteObject.fromPrimitiveValue):
3466         (WebInspector.RemoteObject.fromPayload):
3467         (WebInspector.RemoteObject.prototype.get subtype):
3468         (WebInspector.RemoteObject.prototype.callFunction):
3469         (WebInspector.LocalJSONObject.prototype.get type):
3470         (WebInspector.LocalJSONObject.prototype.get subtype):
3471         * inspector/front-end/SourceFrame.js:
3472         (WebInspector.SourceFrame.prototype._showPopup.showObjectPopup):
3473         (WebInspector.SourceFrame.prototype._showPopup):
3474         * inspector/front-end/inspector.js:
3475         (WebInspector.log.logMessage):
3476         (WebInspector.log):
3477         (WebInspector.inspect):
3478
3479 2011-07-25  Mikhail Naganov  <mnaganov@chromium.org>
3480
3481         Web Inspector: [Chromium] Fix mixing of retaining path in heap profiler.
3482         https://bugs.webkit.org/show_bug.cgi?id=65028
3483
3484         Reviewed by Pavel Feldman.
3485
3486         * inspector/front-end/DetailedHeapshotView.js:
3487         (WebInspector.HeapSnapshotPathFinderState): Added
3488         (WebInspector.HeapSnapshotRetainingPathsList): Extracted State-specific code
3489
3490 2011-07-25  Yury Semikhatsky  <yurys@chromium.org>
3491
3492         Web Inspector: worker inspector should show Scripts panel by default
3493         https://bugs.webkit.org/show_bug.cgi?id=65099
3494
3495         Reviewed by Pavel Feldman.
3496
3497         * inspector/front-end/inspector.js:
3498         (WebInspector._defaultPanelName):
3499         (WebInspector.showPanel):
3500
3501 2011-07-24  Luke Macpherson   <macpherson@chromium.org>
3502
3503         Small cleanup of m_fontDirty tracking in CSSStyleSelector
3504         https://bugs.webkit.org/show_bug.cgi?id=65090
3505
3506         Reviewed by Darin Adler.
3507
3508         1) Use existing setFontDescription helper where appropriate.
3509         2) Move always used m_fontDirty check into updateFont()
3510
3511         No new tests / cleanup only.
3512
3513         * css/CSSStyleSelector.cpp:
3514         (WebCore::CSSStyleSelector::styleForElement):
3515         (WebCore::CSSStyleSelector::styleForKeyframe):
3516         (WebCore::CSSStyleSelector::pseudoStyleForElement):
3517         (WebCore::CSSStyleSelector::styleForPage):
3518         (WebCore::CSSStyleSelector::updateFontIfDirty):
3519         (WebCore::CSSStyleSelector::applyProperty):
3520         * css/CSSStyleSelector.h:
3521
3522 2011-07-24  Kent Tamura  <tkent@chromium.org>
3523
3524         Validation message bubble position is incorrect if the containing block has paddings.
3525         https://bugs.webkit.org/show_bug.cgi?id=65091
3526
3527         Reviewed by Hajime Morita.
3528
3529         * html/ValidationMessage.cpp:
3530         (WebCore::adjustBubblePosition):
3531         We don't need to subtract paddings because the origin of
3532         position:aboslute is inside borders and outside of the padding.
3533
3534 2011-07-24  Rob Buis  <rbuis@rim.com>
3535
3536         Crash in SVGUseElement::updateContainerOffsets on <use> with no parent
3537         https://bugs.webkit.org/show_bug.cgi?id=63646
3538
3539         Reviewed by Darin Adler.
3540
3541         Prevent using invalid targetElementInstance->shadowTreeElement after shadow render tree recreation. This situation can
3542         only occur when there was a valid shadowTreeElement before setting xlink:href to empty/invalid.
3543
3544         Test: svg/custom/use-shadow-root-parent-removal.svg
3545
3546         * svg/SVGUseElement.cpp:
3547         (WebCore::SVGUseElement::svgAttributeChanged):
3548
3549 2011-07-24  Patrick Gansterer  <paroga@webkit.org>
3550
3551         Fix AtomicString vs. String usage in JSC binding
3552         https://bugs.webkit.org/show_bug.cgi?id=65085
3553
3554         Reviewed by Darin Adler.
3555
3556         Use ustringToAtomicString instead of ustringToString where appropriate.
3557
3558         * bindings/js/JSHTMLAllCollectionCustom.cpp:
3559         * bindings/js/JSHTMLCollectionCustom.cpp:
3560
3561 2011-07-24  Luke Macpherson   <macpherson@chromium.org>
3562