Set minimum priority for fast lane connections
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-04-14  Pratik Solanki  <psolanki@apple.com>
2
3         Reviewed by David Kilzer.
4
5         Set minimum priority for fast lane connections
6         https://bugs.webkit.org/show_bug.cgi?id=58353
7
8         * WebCore.exp.in:
9         * platform/mac/WebCoreSystemInterface.h:
10         * platform/mac/WebCoreSystemInterface.mm:
11         * platform/network/cf/ResourceRequestCFNet.cpp:
12         (WebCore::initializeMaximumHTTPConnectionCountPerHost): Call
13         wkSetHTTPPipeliningMinimumFastLanePriority to allow javascript resources to use the fast
14         lane connections.
15
16 2011-04-14  Kenneth Russell  <kbr@google.com>
17
18         Reviewed by Dimitri Glazkov.
19
20         Fix Web Audio build on Linux Debug and with stub FFTFrame
21         https://bugs.webkit.org/show_bug.cgi?id=58555
22
23         Built Chromium/Linux in Debug mode to test.
24
25         * platform/audio/FFTFrame.cpp:
26         * platform/audio/FFTFrameStub.cpp:
27         (WebCore::FFTFrame::initialize):
28         * webaudio/AudioContext.cpp:
29         * webaudio/DefaultAudioDestinationNode.cpp:
30
31 2011-04-14  Yury Semikhatsky  <yurys@chromium.org>
32
33         Reviewed by Pavel Feldman.
34
35         [v8] Web Inspector: add initial implementation of WorkerScriptDebugServer
36         https://bugs.webkit.org/show_bug.cgi?id=58552
37
38         * bindings/v8/DebuggerScript.js:
39         * bindings/v8/WorkerContextExecutionProxy.cpp:
40         (WebCore::WorkerContextExecutionProxy::initContextIfNeeded): each worker context
41         now have a debug id (similar to frame contexts).
42         * bindings/v8/WorkerScriptDebugServer.cpp:
43         (WebCore::retrieveWorkerContext):
44         (WebCore::WorkerScriptDebugServer::WorkerScriptDebugServer):
45         (WebCore::WorkerScriptDebugServer::addListener):
46         (WebCore::WorkerScriptDebugServer::removeListener):
47         (WebCore::WorkerScriptDebugServer::getDebugListenerForContext):
48         (WebCore::WorkerScriptDebugServer::runMessageLoopOnPause): run message loop until
49         debugger command is received and execution is resumed.
50         (WebCore::WorkerScriptDebugServer::quitMessageLoopOnPause):
51         * bindings/v8/WorkerScriptDebugServer.h:
52         * inspector/WorkerDebuggerAgent.cpp:
53         (WebCore::WorkerDebuggerAgent::startListeningScriptDebugServer):
54         (WebCore::WorkerDebuggerAgent::stopListeningScriptDebugServer):
55
56 2011-04-14  Jian Li  <jianli@chromium.org>
57
58         Reviewed by Darin Fisher.
59
60         Add webkit prefix to Blob.slice method and change its semantics to be
61         like Array.slice
62         https://bugs.webkit.org/show_bug.cgi?id=58496
63
64         Renamed Blob.slice to blob.webkitSlice and made it take start and end
65         parameters that're like Array.slice.
66
67         Test: fast/files/blob-slice-test.html
68
69         * fileapi/Blob.cpp:
70         (WebCore::Blob::webkitSlice):
71         * fileapi/Blob.h:
72         * fileapi/Blob.idl:
73
74 2011-04-14  Andreas Kling  <kling@webkit.org>
75
76         Reviewed by Benjamin Poulain.
77
78         [Qt] Height of "Ahem" font differs from all other ports.
79         https://bugs.webkit.org/show_bug.cgi?id=57954
80
81         QFontMetricsF::descent() returns the actual descent minus 1,
82         to account for the baseline. Add it back to get correct metrics
83         for WebKit.
84
85         QFontMetricsF::leading() may return negative values on some
86         platforms (those using FreeType), this breaks WebKit's assumption
87         that lineSpacing >= (ascent + descent), so we work around this in
88         the same fashion as SimpleFontDataFreeType and SimpleFontDataPango.
89
90         This is covered by thousands of layout tests.
91
92         * platform/graphics/qt/SimpleFontDataQt.cpp:
93         (WebCore::SimpleFontData::platformInit):
94
95 2011-04-14  Kevin Ollivier  <kevino@theolliviers.com>
96
97         [wx] Unreviewed build fixes for wxMSW and wx 2.9.1.1.
98
99         * platform/graphics/wx/FontPlatformDataWx.cpp:
100         (WebCore::FontPlatformData::FontPlatformData):
101         * platform/wx/FileSystemWx.cpp:
102         (WebCore::writeToFile):
103
104 2011-04-14  Anders Carlsson  <andersca@apple.com>
105
106         Fix build.
107
108         RuntimeApplicationChecks.h needs to be a private header so WebKit can find it.
109
110         * WebCore.xcodeproj/project.pbxproj:
111
112 2011-04-14  Pavel Podivilov  <podivilov@chromium.org>
113
114         Unreviewed, build fix for r83864.
115
116         * inspector/front-end/DOMAgent.js:
117         (WebInspector.DOMAgent.prototype._childNodeRemoved):
118
119 2011-04-14  Alexander Pavlov  <apavlov@chromium.org>
120
121         Reviewed by Pavel Feldman.
122
123         Web Inspector: Content area highlight does not cover scrollbars
124         https://bugs.webkit.org/show_bug.cgi?id=58528
125
126         * inspector/DOMNodeHighlighter.cpp:
127         (WebCore::DOMNodeHighlighter::DrawNodeHighlight):
128
129 2011-04-14  Pavel Podivilov  <podivilov@chromium.org>
130
131         Reviewed by Pavel Feldman.
132
133         Web Inspector: re-implement dom breakpoints.
134         https://bugs.webkit.org/show_bug.cgi?id=57038
135
136         * WebCore.gypi:
137         * WebCore.vcproj/WebCore.vcproj:
138         * inspector/front-end/BreakpointManager.js: Removed.
139         * inspector/front-end/BreakpointsSidebarPane.js:
140         (WebInspector.NativeBreakpointsSidebarPane):
141         (WebInspector.NativeBreakpointsSidebarPane.prototype._reset):
142         (WebInspector.XHRBreakpointsSidebarPane.prototype._restoreBreakpoints):
143         * inspector/front-end/CallStackSidebarPane.js:
144         (WebInspector.CallStackSidebarPane.prototype.update):
145         (WebInspector.CallStackSidebarPane.prototype.setStatus):
146         * inspector/front-end/DOMAgent.js:
147         (WebInspector.DOMNode):
148         (WebInspector.DOMAgent.prototype._childNodeRemoved):
149         * inspector/front-end/DOMBreakpointsSidebarPane.js: Added.
150         (WebInspector.DOMBreakpointsSidebarPane):
151         (WebInspector.DOMBreakpointsSidebarPane.prototype.setInspectedURL):
152         (WebInspector.DOMBreakpointsSidebarPane.prototype.populateNodeContextMenu.toggleBreakpoint):
153         (WebInspector.DOMBreakpointsSidebarPane.prototype.populateNodeContextMenu):
154         (WebInspector.DOMBreakpointsSidebarPane.prototype.createBreakpointHitStatusMessage.didPushNodeToFrontend):
155         (WebInspector.DOMBreakpointsSidebarPane.prototype.createBreakpointHitStatusMessage):
156         (WebInspector.DOMBreakpointsSidebarPane.prototype._doCreateBreakpointHitStatusMessage.formatters.s):
157         (WebInspector.DOMBreakpointsSidebarPane.prototype._doCreateBreakpointHitStatusMessage.append):
158         (WebInspector.DOMBreakpointsSidebarPane.prototype._doCreateBreakpointHitStatusMessage):
159         (WebInspector.DOMBreakpointsSidebarPane.prototype.nodeRemoved):
160         (WebInspector.DOMBreakpointsSidebarPane.prototype._removeBreakpointsForNode):
161         (WebInspector.DOMBreakpointsSidebarPane.prototype._setBreakpoint):
162         (WebInspector.DOMBreakpointsSidebarPane.prototype._removeBreakpoint):
163         (WebInspector.DOMBreakpointsSidebarPane.prototype._contextMenu.removeBreakpoint):
164         (WebInspector.DOMBreakpointsSidebarPane.prototype._contextMenu):
165         (WebInspector.DOMBreakpointsSidebarPane.prototype._checkboxClicked):
166         (WebInspector.DOMBreakpointsSidebarPane.prototype.highlightBreakpoint):
167         (WebInspector.DOMBreakpointsSidebarPane.prototype.clearBreakpointHighlight):
168         (WebInspector.DOMBreakpointsSidebarPane.prototype._createBreakpointId):
169         (WebInspector.DOMBreakpointsSidebarPane.prototype._saveBreakpoints):
170         (WebInspector.DOMBreakpointsSidebarPane.prototype.restoreBreakpoints):
171         * inspector/front-end/ElementsPanel.js:
172         (WebInspector.ElementsPanel):
173         (WebInspector.ElementsPanel.prototype.show):
174         (WebInspector.ElementsPanel.prototype.updateModifiedNodes):
175         (WebInspector.ElementsPanel.prototype.updateBreadcrumbSizes.coalesceCollapsedCrumbs):
176         * inspector/front-end/ElementsTreeOutline.js:
177         (WebInspector.ElementsTreeElement.prototype._populateTagContextMenu):
178         * inspector/front-end/ScriptsPanel.js:
179         (WebInspector.ScriptsPanel):
180         (WebInspector.ScriptsPanel.prototype.show):
181         (WebInspector.ScriptsPanel.prototype._debuggerPaused.didCreateBreakpointHitStatusMessage):
182         (WebInspector.ScriptsPanel.prototype._debuggerPaused.else.didGetSourceLocation):
183         (WebInspector.ScriptsPanel.prototype._debuggerPaused):
184         (WebInspector.ScriptsPanel.prototype._clearInterface):
185         * inspector/front-end/Settings.js:
186         (WebInspector.Settings):
187         (WebInspector.Settings.prototype._set):
188         * inspector/front-end/WebKit.qrc:
189         * inspector/front-end/inspector.html:
190         * inspector/front-end/inspector.js:
191         (WebInspector.inspectedURLChanged):
192         * inspector/front-end/utilities.js:
193         ():
194
195 2011-04-14  Satish Sampath  <satish@chromium.org>
196
197         Reviewed by Kent Tamura.
198
199         Disable speech input for readonly and disabled input fields.
200         https://bugs.webkit.org/show_bug.cgi?id=58540
201
202         Test: fast/speech/input-readonly-and-disabled.html
203
204         * html/shadow/TextControlInnerElements.cpp:
205         (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
206         (WebCore::InputFieldSpeechButtonElement::setRecognitionResult):
207
208 2011-04-14  Ilya Tikhonovsky  <loislo@chromium.org>
209
210         Unreviewed. Rollout r83849 and r83857.
211
212         * inspector/Inspector.json:
213         * inspector/InspectorDatabaseAgent.cpp:
214         (WebCore::InspectorDatabaseAgent::didOpenDatabase):
215         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
216         (WebCore::InspectorDatabaseAgent::setFrontend):
217         (WebCore::InspectorDatabaseAgent::clearFrontend):
218         (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
219         (WebCore::InspectorDatabaseAgent::executeSQL):
220         * inspector/InspectorDatabaseAgent.h:
221         * inspector/front-end/inspector.js:
222
223 2011-04-14  Dimitri Glazkov  <dglazkov@chromium.org>
224
225         Unreviewed, rolling out r83847.
226         http://trac.webkit.org/changeset/83847
227         https://bugs.webkit.org/show_bug.cgi?id=58477
228
229         Chromium media controls do use button borders, so this change
230         is incorrect.
231
232         * css/mediaControls.css:
233         (audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-button):
234         (audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-button):
235         (audio::-webkit-media-controls-timeline, video::-webkit-media-controls-timeline):
236         (audio::-webkit-media-controls-volume-slider, video::-webkit-media-controls-volume-slider):
237         (audio::-webkit-media-controls-seek-back-button, video::-webkit-media-controls-seek-back-button):
238         (audio::-webkit-media-controls-seek-forward-button, video::-webkit-media-controls-seek-forward-button):
239         (audio::-webkit-media-controls-fullscreen-button, video::-webkit-media-controls-fullscreen-button):
240         (audio::-webkit-media-controls-rewind-button, video::-webkit-media-controls-rewind-button):
241         (audio::-webkit-media-controls-return-to-realtime-button, video::-webkit-media-controls-return-to-realtime-button):
242         (audio::-webkit-media-controls-toggle-closed-captions-button, video::-webkit-media-controls-toggle-closed-captions-button):
243         (audio::-webkit-media-controls-volume-slider-mute-button, video::-webkit-media-controls-volume-slider-mute-button):
244
245 2011-04-14  Andrew Wason  <rectalogic@rectalogic.com>
246
247         Reviewed by Andreas Kling.
248
249         Fix GraphicsContext3DQt.cpp compilation warnings treated as errors
250         https://bugs.webkit.org/show_bug.cgi?id=58478
251
252         No new tests.
253
254         * platform/graphics/qt/GraphicsContext3DQt.cpp:
255         (WebCore::GraphicsContext3DInternal::getProcAddress):
256          Do not use deprecated QString constructor to avoid warning.
257         (WebCore::GraphicsContext3D::reshape):
258          Use parenthesis to avoid warning.
259
260 2011-04-14  Andrey Kosyakov  <caseq@chromium.org>
261
262         Unreviewed. Removed ScrollableArea::paintScrollCorner() added in r83820,
263         as it breaks chromium clang build (shadowed by RenderLayer::paintScrollCorner()
264         with a different signature)
265
266         * platform/ScrollableArea.h:
267
268 2011-04-14  Mikhail Naganov  <mnaganov@chromium.org>
269
270         Reviewed by Pavel Feldman.
271
272         Web Inspector: [Chromium] Ready to move detailed heap snapshots storage and processing into workers.
273         https://bugs.webkit.org/show_bug.cgi?id=58534
274
275         * inspector/front-end/DetailedHeapshotGridNodes.js:
276         (WebInspector.HeapSnapshotGenericObjectNode.prototype.get _countPercent):
277         (WebInspector.HeapSnapshotDiffNode):
278         (WebInspector.HeapSnapshotDiffNode.prototype.calculateDiff.diffCalculated):
279         (WebInspector.HeapSnapshotDiffNode.prototype.calculateDiff):
280         (WebInspector.HeapSnapshotDiffNode.prototype.calculateDiff.baseIdsReceived):
281         (WebInspector.HeapSnapshotDiffNode.prototype.calculateDiff.idsReceived):
282         (WebInspector.HeapSnapshotDiffNode.prototype._createNodesProvider.createProvider):
283         (WebInspector.HeapSnapshotDiffNode.prototype._createNodesProvider):
284         (WebInspector.HeapSnapshotDiffNode.prototype.get data):
285         * inspector/front-end/DetailedHeapshotView.js:
286         (WebInspector.HeapSnapshotDiffDataGrid.prototype.setBaseDataSource):
287         (WebInspector.HeapSnapshotDiffDataGrid.prototype.populateChildren.baseAggregatesReceived.aggregatesReceived.addNodeIfNonZeroDiff):
288         (WebInspector.HeapSnapshotDiffDataGrid.prototype.populateChildren.baseAggregatesReceived.aggregatesReceived):
289         (WebInspector.HeapSnapshotDiffDataGrid.prototype.populateChildren):
290         * inspector/front-end/HeapSnapshot.js:
291         (WebInspector.HeapSnapshot):
292         (WebInspector.HeapSnapshot.prototype.dispose):
293         (WebInspector.HeapSnapshot.prototype.nodeFieldValuesByIndex):
294         (WebInspector.HeapSnapshot.prototype._numbersComparator):
295         (WebInspector.HeapSnapshot.prototype.baseSnapshotHasNode):
296         (WebInspector.HeapSnapshot.prototype.updateBaseNodeIds):
297         (WebInspector.HeapSnapshotsDiff):
298         (WebInspector.HeapSnapshotsDiff.prototype.set baseIds):
299         (WebInspector.HeapSnapshotsDiff.prototype.set baseSelfSizes):
300         (WebInspector.HeapSnapshotsDiff.prototype.calculate):
301         * inspector/front-end/HeapSnapshotProxy.js:
302         (WebInspector.HeapSnapshotProxy):
303         (WebInspector.HeapSnapshotProxy.prototype.createDiff):
304         (WebInspector.HeapSnapshotProxy.prototype.createEdgesProvider):
305         (WebInspector.HeapSnapshotProxy.prototype.createNodesProvider):
306         (WebInspector.HeapSnapshotProxy.prototype.dispose):
307         (WebInspector.HeapSnapshotProxy.prototype.nodeFieldValuesByIndex):
308         (WebInspector.HeapSnapshotProxy.prototype.pushBaseIds):
309         (WebInspector.HeapSnapshotsDiffProxy):
310         (WebInspector.HeapSnapshotsDiffProxy.prototype.calculate):
311         (WebInspector.HeapSnapshotsDiffProxy.prototype.pushBaseIds):
312         (WebInspector.HeapSnapshotsDiffProxy.prototype.pushBaseSelfSizes):
313
314 2011-04-14  Ilya Tikhonovsky  <loislo@chromium.org>
315
316         Reviewed by Pavel Feldman.
317
318         Web Inspector: The list of Database entries is empty if the page opens a database just before Web Inspector.
319         https://bugs.webkit.org/show_bug.cgi?id=57833
320
321         * inspector/Inspector.json:
322         * inspector/InspectorDatabaseAgent.cpp:
323         (WebCore::InspectorDatabaseAgent::didOpenDatabase):
324         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
325         (WebCore::InspectorDatabaseAgent::setFrontend):
326         (WebCore::InspectorDatabaseAgent::enable):
327         (WebCore::InspectorDatabaseAgent::disable):
328         (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
329         (WebCore::InspectorDatabaseAgent::executeSQL):
330         * inspector/InspectorDatabaseAgent.h:
331         * inspector/front-end/inspector.js:
332
333 2011-04-14  Alexander Pavlov  <apavlov@chromium.org>
334
335         Reviewed by Yury Semikhatsky.
336
337         Web Inspector: [Chromium] "Remove Breakpoint" menu item is absent in the DOM breakpoints sidebar pane
338         https://bugs.webkit.org/show_bug.cgi?id=58530
339
340         * inspector/front-end/ElementsPanel.js:
341
342 2011-04-14  Alexis Menard  <alexis.menard@openbossa.org>
343
344         Reviewed by Dimitri Glazkov.
345
346         REGRESSION(r83397) [Qt] When clicking on the media elements they
347         grow 2 pixels.
348         https://bugs.webkit.org/show_bug.cgi?id=58477
349
350         Since r83397 the media controls elements are actual DOM elements.
351         Therefore the global style-sheet applies to them. html.css defines
352         input[type="button"]:active to be border-style: inset which means
353         that when the buttons are active they grow by their border size.
354
355         * css/mediaControls.css:
356         (audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-button):
357         (audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-button):
358         (audio::-webkit-media-controls-timeline, video::-webkit-media-controls-timeline):
359         (audio::-webkit-media-controls-volume-slider, video::-webkit-media-controls-volume-slider):
360         (audio::-webkit-media-controls-seek-back-button, video::-webkit-media-controls-seek-back-button):
361         (audio::-webkit-media-controls-seek-forward-button, video::-webkit-media-controls-seek-forward-button):
362         (audio::-webkit-media-controls-fullscreen-button, video::-webkit-media-controls-fullscreen-button):
363         (audio::-webkit-media-controls-rewind-button, video::-webkit-media-controls-rewind-button):
364         (audio::-webkit-media-controls-return-to-realtime-button, video::-webkit-media-controls-return-to-realtime-button):
365         (audio::-webkit-media-controls-toggle-closed-captions-button, video::-webkit-media-controls-toggle-closed-captions-button):
366         (audio::-webkit-media-controls-volume-slider-mute-button, video::-webkit-media-controls-volume-slider-mute-button):
367
368 2011-04-14  Diego Gonzalez  <diegohcg@webkit.org>
369
370         Reviewed by Kenneth Rohde Christiansen.
371
372         [Qt] Improve disable style for input elements in mobile theme
373         https://bugs.webkit.org/show_bug.cgi?id=58480
374
375         * platform/qt/QtMobileWebStyle.cpp:
376         (QtMobileWebStyle::drawControl):
377         (QtMobileWebStyle::drawPrimitive):
378         (QtMobileWebStyle::drawComplexControl):
379
380 2011-04-14  Pavel Feldman  <pfeldman@google.com>
381
382         Reviewed by Yury Semikhatsky.
383
384         Web Inspector: restore previous selection in Resources panel upon front-end reopen.
385         https://bugs.webkit.org/show_bug.cgi?id=58533
386
387         * inspector/front-end/ResourceTreeModel.js:
388         (WebInspector.ResourceTreeModel.prototype._processCachedResources):
389         * inspector/front-end/ResourcesPanel.js:
390         (WebInspector.ResourcesPanel.prototype._initDefaultSelection):
391         (WebInspector.ResourcesPanel.prototype._populateResourceTree):
392         (WebInspector.ResourcesPanel.prototype._cachedResourcesLoaded):
393         * inspector/front-end/inspector.css:
394         (#close-button-left, #close-button-right):
395
396 2011-04-14  Pavel Feldman  <pfeldman@google.com>
397
398         Reviewed by Yury Semikhatsky.
399
400         Web Inspector: implement incremental CSS free flow editing.
401         https://bugs.webkit.org/show_bug.cgi?id=58529
402
403         * inspector/front-end/CSSStyleModel.js:
404         (WebInspector.CSSStyleSheet.prototype.setText):
405         * inspector/front-end/Resource.js:
406         (WebInspector.Resource.prototype.isResourceRevision):
407         (WebInspector.Resource.prototype.setContent):
408         * inspector/front-end/ResourceView.js:
409         (WebInspector.CSSSourceFrame.prototype.isContentEditable):
410         (WebInspector.CSSSourceFrame.prototype.editContent):
411         (WebInspector.CSSSourceFrame.prototype.endEditing.commitIncrementalEdit):
412         (WebInspector.CSSSourceFrame.prototype.endEditing):
413         * inspector/front-end/SourceFrame.js:
414         (WebInspector.SourceFrame.prototype.commitEditing):
415         (WebInspector.SourceFrame.prototype.editContent):
416
417 2011-04-14  Ilya Tikhonovsky  <loislo@chromium.org>
418
419         Reviewed by Pavel Feldman.
420
421         Web Inspector:Duplicated display of storage db when running Web SQL from an iframe.
422         https://bugs.webkit.org/show_bug.cgi?id=57830
423
424         There was created a new InspectorDatabaseResource entry for every didOpenDatabase event.
425         Moreover there is new WebCore::Database for each didOpenDatabase event.
426         I decided to change the old instance of the Database to a new one if they both use the same file.
427
428         * inspector/InspectorDatabaseAgent.cpp:
429         (WebCore::InspectorDatabaseAgent::didOpenDatabase):
430         (WebCore::InspectorDatabaseAgent::findByFileName):
431         * inspector/InspectorDatabaseAgent.h:
432         * inspector/InspectorDatabaseResource.h:
433         (WebCore::InspectorDatabaseResource::setDatabase):
434
435 2011-04-14  Zoltan Herczeg  <zherczeg@inf.u-szeged.hu>
436
437         Reviewed by Dirk Schulze.
438
439         svg/W3C-SVG-1.1-SE/svgdom-over-01-f.svg crashes in Debug build
440         https://bugs.webkit.org/show_bug.cgi?id=58525
441
442         A renderer is created even for those filter primitives
443         which parent is not a filter. A rendererIsNeeded() is
444         added to SVGFilterPrimitiveStandardAttributes.
445
446         Test: svg/W3C-SVG-1.1-SE/svgdom-over-01-f.svg
447
448         * svg/SVGFilterPrimitiveStandardAttributes.cpp:
449         (WebCore::SVGFilterPrimitiveStandardAttributes::rendererIsNeeded):
450         * svg/SVGFilterPrimitiveStandardAttributes.h:
451
452 2011-04-14  Alexis Menard  <alexis.menard@openbossa.org>
453
454         Reviewed by Andreas Kling.
455
456         REGRESSION(r83397) [Qt] When the video is loading and the poster is shown
457         all the controls are not visible except the play button.
458         https://bugs.webkit.org/show_bug.cgi?id=58484
459
460         r83397 introduces a new API hasOwnDisabledStateHandlingFor to handle when
461         the controls should be disabled. Qt port paints its own controls, we don't want
462         the default implementation to handle the hidden/disable state for us.
463
464         Existing tests covers the visibility of the controls.
465
466         * platform/qt/RenderThemeQt.h:
467         (WebCore::RenderThemeQt::hasOwnDisabledStateHandlingFor):
468
469 2011-04-14  Andreas Kling  <andreas.kling@nokia.com>
470
471         Reviewed by Kenneth Rohde Christiansen.
472
473         [Qt] Disabled form controls don't actually look disabled.
474         https://bugs.webkit.org/show_bug.cgi?id=58490
475
476         Unsetting QStyle::State_Enabled is not enough to get the "disabled" appearance
477         when painting controls. We must also set the QStyleOption's palette's current
478         color group.
479
480         * platform/qt/RenderThemeQt.cpp:
481         (WebCore::RenderThemeQt::initializeCommonQStyleOptions):
482
483 2011-04-14  Nancy Piedra  <nancy.piedra@nokia.com>
484
485         Reviewed by Benjamin Poulain.
486
487         [Qt] MediaPlayerPrivateQt::supportsType does not parse codec parameter
488         https://bugs.webkit.org/show_bug.cgi?id=58188
489
490         The codec parameter in MediaPlayerPrivateQt::supportsType was not parsed into
491         a QStringList. This change parses and trims the list.
492
493         An additional test was added to video-can-play-type.html to test parsing of codec parameter.
494
495         * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
496         (WebCore::MediaPlayerPrivateQt::supportsType):
497
498 2011-04-14  Zoltan Herczeg  <zherczeg@webkit.org>
499
500         Reviewed by Nikolas Zimmermann.
501
502         Optimizing lightning filter to ARM-NEON SIMD instruction set
503         https://bugs.webkit.org/show_bug.cgi?id=54456
504
505         NEON is the SIMD instruction set for ARM. This instruction set
506         allows to speed-up the lighting filter by 4 times on ARM
507         (on WebCore/manual-tests/svg-filter-animation.svg).
508
509         * WebCore.pri:
510         * WebCore.pro:
511         * platform/graphics/filters/FELighting.cpp:
512         (WebCore::FELighting::drawLighting):
513         (WebCore::getPowerCoefficients):
514         (WebCore::FELighting::drawInteriorPixels):
515         * platform/graphics/filters/FELighting.h:
516         * platform/graphics/filters/arm/FELightingNEON.cpp: Added.
517         (__attribute__):
518         * platform/graphics/filters/arm/FELightingNEON.h: Added.
519
520 2011-04-14  Jarkko Sakkinen  <jarkko.j.sakkinen@gmail.com>
521
522         Reviewed by Benjamin Poulain.
523
524         [Qt] GraphicsContext3D internal buffers are not freed
525         https://bugs.webkit.org/show_bug.cgi?id=57530
526
527         * platform/graphics/qt/GraphicsContext3DQt.cpp:
528         (WebCore::GraphicsContext3DInternal::~GraphicsContext3DInternal):
529
530 2011-04-14  Andy Estes  <aestes@apple.com>
531
532         Reviewed by Maciej Stachowiak.
533
534         REGRESSION (r75555): Safari RSS sidebar jiggles when scrolling
535         https://bugs.webkit.org/show_bug.cgi?id=52988
536         
537         Safari RSS relies on synchronous dispatch of ScrollEvent to update the
538         position of its sidebar during scrolling without producing a jiggling
539         effect. Due to r75555, this event is no longer dispatched synchronously
540         which results in stale repaints before the onscroll handler gets a
541         chance to update the position of the sidebar.
542         
543         Since it is impractical to resolve this issue in Safari RSS itself, add
544         a quirk that restores synchronous ScrollEvent dispatch for Safari RSS.
545         
546         No tests. This is an app-specific change that doesn't affect web
547         content.
548
549         * Android.mk: Add platform/RuntimeApplicationChecks.[cpp|h]
550         * CMakeLists.txt: Ditto.
551         * GNUmakefile.list.am: Ditto.
552         * WebCore.gypi: Ditto.
553         * WebCore.pro: Ditto.
554         * WebCore.vcproj/WebCore.vcproj: Ditto.
555         * WebCore.xcodeproj/project.pbxproj: Ditto.
556         * dom/EventQueue.cpp:
557         (WebCore::shouldDispatchScrollEventSynchronously): Send ScrollEvent
558         synchronously if the embedding application is Safari and the document's
559         URL scheme is "feed" or "feeds".
560         (WebCore::EventQueue::enqueueOrDispatchScrollEvent): Dispatch
561         ScrollEvent synchronously if shouldDispatchScrollEventSynchronously()
562         returns true.
563         * dom/EventQueue.h:
564         * page/EventHandler.cpp:
565         (WebCore::EventHandler::sendScrollEvent): Call enqueueOrDispatchScrollEvent().
566         * platform/RuntimeApplicationChecks.cpp: Added.
567         (WebCore::mainBundleIsEqualTo): Add a helper routine for CF platforms
568         that checks if the main bundle's identifier is equal to a given string.
569         This function returns false for non-CF platforms.
570         (WebCore::applicationIsSafari): Call mainBundleIsEqualTo().
571         (WebCore::applicationIsAppleMail): Ditto.
572         (WebCore::applicationIsMicrosoftMessenger): Ditto.
573         (WebCore::applicationIsAdobeInstaller): Ditto.
574         (WebCore::applicationIsAOLInstantMessenger): Ditto.
575         (WebCore::applicationIsMicrosoftMyDay): Ditto.
576         (WebCore::applicationIsMicrosoftOutlook): Ditto.
577         * platform/mac/RuntimeApplicationChecks.mm: Removed. Functions moved to
578         RuntimeApplicationChecks.cpp.
579         * rendering/RenderLayer.cpp:
580         (WebCore::RenderLayer::scrollTo): Call enqueueOrDispatchScrollEvent().
581         * rendering/RenderListBox.cpp:
582         (WebCore::RenderListBox::scrollTo): Call enqueueOrDispatchScrollEvent().
583
584 2011-04-14  John Bates  <jbates@google.com>
585
586         Reviewed by Kenneth Russell.
587
588         Fix bug with adding wrong context to LayerRendererChromium and get rid of RefPtr loop.
589         https://bugs.webkit.org/show_bug.cgi?id=58383
590
591         * platform/graphics/chromium/LayerRendererChromium.cpp:
592         (WebCore::LayerRendererChromium::addChildContext):
593         (WebCore::LayerRendererChromium::removeChildContext):
594         * platform/graphics/chromium/LayerRendererChromium.h:
595
596 2011-04-14  Renata Hodovan  <reni@webkit.org>
597
598         Reviewed by Nikolas Zimmermann.
599
600         CSS related SVG*Element changes doesn't require relayout
601         https://bugs.webkit.org/show_bug.cgi?id=56906
602
603         The changes of some CSS related SVGFilter properties e.g. lighting_color, flood_color, flood_opacity
604         need only repaint. To avoid the default invalidation of filters in SVGResourceCache::clientStyleChange()
605         we need an early return. So RenderSVGResourceFilterPrimitive::styleDidChange() can handle these properties
606         via RenderSVGResourceFilter::primitiveAttributeChanged() the same way like we do it for the other SVGAttributes.
607
608         Tests: svg/dynamic-updates/SVGFEDiffuseLightingElement-inherit-lighting-color-css-prop.html
609                svg/dynamic-updates/SVGFEFloodElement-inherit-flood-color.html
610                svg/dynamic-updates/SVGFESpecularLightingElement-inherit-lighting-color-css-prop.html
611                svg/dynamic-updates/SVGFESpecularLightingElement-lighting-color-css-prop.html
612
613         * platform/graphics/filters/FEFlood.cpp:
614         (WebCore::FEFlood::setFloodColor):
615         (WebCore::FEFlood::setFloodOpacity):
616         * platform/graphics/filters/FEFlood.h:
617         * platform/graphics/filters/FESpecularLighting.cpp:
618         (WebCore::FESpecularLighting::setLightingColor):
619         * platform/graphics/filters/FESpecularLighting.h:
620         * rendering/svg/RenderSVGResourceFilterPrimitive.cpp:
621         (WebCore::RenderSVGResourceFilterPrimitive::styleDidChange):
622         * rendering/svg/RenderSVGResourceFilterPrimitive.h:
623         * rendering/svg/SVGResourcesCache.cpp:
624         (WebCore::SVGResourcesCache::clientStyleChanged):
625         * svg/SVGFEDiffuseLightingElement.cpp:
626         (WebCore::SVGFEDiffuseLightingElement::setFilterEffectAttribute):
627         * svg/SVGFEFloodElement.cpp:
628         (WebCore::SVGFEFloodElement::setFilterEffectAttribute):
629         * svg/SVGFEFloodElement.h:
630         * svg/SVGFESpecularLightingElement.cpp:
631         (WebCore::SVGFESpecularLightingElement::setFilterEffectAttribute):
632
633 2011-04-13  James Robinson  <jamesr@chromium.org>
634
635         Reviewed by Simon Fraser.
636
637         Allow setting composited backing stores for scrollbars and scroll corners
638         https://bugs.webkit.org/show_bug.cgi?id=57202
639
640         This teaches ScrollableArea to manage GraphicsLayer backings for the two scrollbars and
641         scroll corner. ScrollableArea can position the layers and route invalidation and paint calls to
642         the correct place but depends on subclasses to manage the lifetime of the GraphicsLayers and
643         place them into the correct place in the hierarchy.
644
645         FrameView and RenderLayerCompositor updated to provide layers for frames with overflow controls.
646         that need them.  The overflow control layers are siblings of the frame's clip layer.
647
648         RenderLayer and RenderLayerBacking updated to provide overflow control layers for layers that
649         need them.  Currently, layers are only created for overflow controls on layers that are already composited
650         for other reasons and not necessarily for every RenderLayer with overflow.  Overflow control layers are siblings
651         of the RenderLayerBacking's clipping layer if it exists, otherwise they are siblings of the layer's normal
652         children.
653
654         Tested by a number of compositing/ tests that have scrollbars and by these new tests:
655                compositing/iframes/repaint-after-losing-scrollbars.html
656                compositing/overflow/clip-content-under-overflow-controls.html
657                compositing/overflow/content-gains-scrollbars.html
658                compositing/overflow/content-loses-scrollbars.html
659                compositing/overflow/overflow-scrollbar-layers.html
660                compositing/overflow/repaint-after-losing-scrollbars.html
661
662         * css/CSSStyleSelector.cpp:
663         (WebCore::CSSStyleSelector::SelectorChecker::checkScrollbarPseudoClass):
664         * page/FrameView.cpp:
665         (WebCore::FrameView::layerForHorizontalScrollbar):
666         (WebCore::FrameView::layerForVerticalScrollbar):
667         (WebCore::FrameView::layerForScrollCorner):
668         (WebCore::FrameView::syncCompositingStateForThisFrame):
669         (WebCore::FrameView::contentsResized):
670         (WebCore::FrameView::updateScrollCorner):
671         * page/FrameView.h:
672         * platform/ScrollView.cpp:
673         (WebCore::ScrollView::wheelEvent):
674         * platform/ScrollView.h:
675         * platform/ScrollableArea.cpp:
676         (WebCore::ScrollableArea::invalidateScrollbar):
677         (WebCore::ScrollableArea::invalidateScrollCorner):
678         * platform/ScrollableArea.h:
679         (WebCore::ScrollableArea::paintScrollCorner):
680         (WebCore::ScrollableArea::layerForHorizontalScrollbar):
681         (WebCore::ScrollableArea::layerForVerticalScrollbar):
682         (WebCore::ScrollableArea::layerForScrollCorner):
683         * platform/Scrollbar.cpp:
684         (WebCore::Scrollbar::invalidateRect):
685         * platform/Scrollbar.h:
686         * platform/ScrollbarThemeComposite.cpp:
687         (WebCore::ScrollbarThemeComposite::paint):
688         * platform/graphics/chromium/ContentLayerChromium.cpp:
689         (WebCore::ContentLayerChromium::paintContentsIfDirty):
690         * platform/graphics/chromium/LayerRendererChromium.cpp:
691         (WebCore::LayerRendererChromium::create):
692         (WebCore::LayerRendererChromium::LayerRendererChromium):
693         (WebCore::LayerRendererChromium::invalidateRootLayerRect):
694         (WebCore::LayerRendererChromium::drawRootLayer):
695         (WebCore::LayerRendererChromium::setViewport):
696         (WebCore::LayerRendererChromium::updateAndDrawLayers):
697         (WebCore::LayerRendererChromium::updateLayers):
698         (WebCore::LayerRendererChromium::setRootLayer):
699         (WebCore::LayerRendererChromium::cleanupSharedObjects):
700         * platform/graphics/chromium/LayerRendererChromium.h:
701         * platform/mac/ScrollAnimatorMac.mm:
702         (-[ScrollbarPartAnimation setCurrentProgress:]):
703         * platform/win/PopupMenuWin.h:
704         (WebCore::PopupMenuWin::invalidateScrollCornerRect):
705         (WebCore::PopupMenuWin::isScrollCornerVisible):
706         (WebCore::PopupMenuWin::scrollCornerRect):
707         * rendering/RenderLayer.cpp:
708         (WebCore::RenderLayer::scrollCornerRect):
709         (WebCore::RenderLayer::scrollCornerAndResizerRect):
710         (WebCore::RenderLayer::isScrollCornerVisible):
711         (WebCore::RenderLayer::invalidateScrollbarRect):
712         (WebCore::RenderLayer::invalidateScrollCornerRect):
713         (WebCore::RenderLayer::positionOverflowControls):
714         (WebCore::RenderLayer::paintOverflowControls):
715         (WebCore::RenderLayer::paintScrollCorner):
716         (WebCore::RenderLayer::layerForHorizontalScrollbar):
717         (WebCore::RenderLayer::layerForVerticalScrollbar):
718         (WebCore::RenderLayer::layerForScrollCorner):
719         * rendering/RenderLayer.h:
720         (WebCore::RenderLayer::horizontalScrollbar):
721         (WebCore::RenderLayer::verticalScrollbar):
722         * rendering/RenderLayerBacking.cpp:
723         (WebCore::RenderLayerBacking::~RenderLayerBacking):
724         (WebCore::RenderLayerBacking::updateAfterWidgetResize):
725         (WebCore::RenderLayerBacking::updateGraphicsLayerConfiguration):
726         (WebCore::RenderLayerBacking::updateInternalHierarchy):
727         (WebCore::RenderLayerBacking::updateClippingLayers):
728         (WebCore::RenderLayerBacking::requiresHorizontalScrollbarLayer):
729         (WebCore::RenderLayerBacking::requiresVerticalScrollbarLayer):
730         (WebCore::RenderLayerBacking::requiresScrollCornerLayer):
731         (WebCore::RenderLayerBacking::updateOverflowControlsLayers):
732         (WebCore::paintScrollbar):
733         (WebCore::RenderLayerBacking::paintContents):
734         * rendering/RenderLayerBacking.h:
735         (WebCore::RenderLayerBacking::layerForHorizontalScrollbar):
736         (WebCore::RenderLayerBacking::layerForVerticalScrollbar):
737         (WebCore::RenderLayerBacking::layerForScrollCorner):
738         * rendering/RenderLayerCompositor.cpp:
739         (WebCore::RenderLayerCompositor::updateCompositingLayers):
740         (WebCore::RenderLayerCompositor::rebuildCompositingLayerTree):
741         (WebCore::RenderLayerCompositor::frameViewDidChangeLocation):
742         (WebCore::RenderLayerCompositor::frameViewDidChangeSize):
743         (WebCore::RenderLayerCompositor::rootPlatformLayer):
744         (WebCore::RenderLayerCompositor::updateRootLayerPosition):
745         (WebCore::paintScrollbar):
746         (WebCore::RenderLayerCompositor::paintContents):
747         (WebCore::shouldCompositeOverflowControls):
748         (WebCore::RenderLayerCompositor::requiresHorizontalScrollbarLayer):
749         (WebCore::RenderLayerCompositor::requiresVerticalScrollbarLayer):
750         (WebCore::RenderLayerCompositor::requiresScrollCornerLayer):
751         (WebCore::RenderLayerCompositor::updateOverflowControlsLayers):
752         (WebCore::RenderLayerCompositor::ensureRootPlatformLayer):
753         (WebCore::RenderLayerCompositor::destroyRootPlatformLayer):
754         (WebCore::RenderLayerCompositor::detachRootPlatformLayer):
755         * rendering/RenderLayerCompositor.h:
756         (WebCore::RenderLayerCompositor::layerForHorizontalScrollbar):
757         (WebCore::RenderLayerCompositor::layerForVerticalScrollbar):
758         (WebCore::RenderLayerCompositor::layerForScrollCorner):
759         * rendering/RenderListBox.h:
760         (WebCore::RenderListBox::isScrollCornerVisible):
761         (WebCore::RenderListBox::scrollCornerRect):
762         (WebCore::RenderListBox::invalidateScrollCornerRect):
763
764 2011-04-13  Cary Clark  <caryclark@chromium.org>
765  
766          Reviewed by Eric Seidel.
767           
768          [Chromium] allow concurrent Skia and CG datatypes
769          https://bugs.webkit.org/show_bug.cgi?id=57848
770
771          The Chromium port is experimenting with running Skia as the WebKit rendering engine, and CoreGraphics
772          as the UI rendering engine. This permits Chromium to unify its graphics story while leveraging OS X to
773          draw elements like scrollbars and buttons.
774  
775          Restructure the common graphics units, points, and rectangles, to convert to Sk-types and CG-types at
776          the same time. This requires only adding to the existing preprocessor commands, and will have no effect
777          on any existing platform.
778          
779          Eventually, WTF_USE_SKIA_ON_MAC_CHROME will be defined to enable this, but for now, there's no
780          functional change.
781  
782          No new tests as this provides no new functionality.
783  
784          * platform/graphics/FloatPoint.h: Add USE(SKIA_ON_MAC_CHROME) to make CG type and operators visible
785          to a Skia-based Chrome Mac build.
786          * platform/graphics/FloatRect.h: Ditto.
787          * platform/graphics/FloatSize.h: Ditto.
788          * platform/graphics/IntPoint.h: Ditto.
789          * platform/graphics/IntRect.h: Ditto.
790          * platform/graphics/IntSize.h: Ditto.
791          * platform/graphics/cg/FloatPointCG.cpp: Ditto.
792          * platform/graphics/cg/FloatRectCG.cpp: Ditto.
793          * platform/graphics/cg/FloatSizeCG.cpp: Ditto.
794          * platform/graphics/cg/IntPointCG.cpp: Ditto.
795          * platform/graphics/cg/IntRectCG.cpp: Ditto.
796          * platform/graphics/cg/IntSizeCG.cpp: Ditto.
797  
798 2011-04-13  Roland Steiner  <rolandsteiner@chromium.org>
799
800         Reviewed by Dimitri Glazkov.
801
802         Bug 58460 - childTypeAllowed() should be const
803         https://bugs.webkit.org/show_bug.cgi?id=58460
804
805         Made childTypeAllowed const.
806
807         No new tests. (minor refactoring).
808
809         * dom/Attr.cpp:
810         (WebCore::Attr::childTypeAllowed):
811         * dom/Attr.h:
812         * dom/CDATASection.cpp:
813         (WebCore::CDATASection::childTypeAllowed):
814         * dom/CDATASection.h:
815         * dom/Comment.cpp:
816         (WebCore::Comment::childTypeAllowed):
817         * dom/Comment.h:
818         * dom/Document.cpp:
819         (WebCore::Document::childTypeAllowed):
820         * dom/Document.h:
821         * dom/DocumentFragment.cpp:
822         (WebCore::DocumentFragment::childTypeAllowed):
823         * dom/DocumentFragment.h:
824         * dom/Element.cpp:
825         (WebCore::Element::childTypeAllowed):
826         * dom/Element.h:
827         * dom/Node.h:
828         (WebCore::Node::childTypeAllowed):
829         * dom/Notation.cpp:
830         (WebCore::Notation::childTypeAllowed):
831         * dom/Notation.h:
832         * dom/ProcessingInstruction.cpp:
833         (WebCore::ProcessingInstruction::childTypeAllowed):
834         * dom/ProcessingInstruction.h:
835         * dom/Text.cpp:
836         (WebCore::Text::childTypeAllowed):
837         * dom/Text.h:
838
839 2011-04-13  Jon Lee  <jonlee@apple.com>
840
841         Reviewed by Maciej Stachowiak.
842
843         REGRESSION(r81880): Paste menu is disabled for many edit fields (yahoo and google search, yahoo mail msg, forms, etc)
844         https://bugs.webkit.org/show_bug.cgi?id=58284
845         <rdar://problem/9246149>
846
847         * WebCore.exp.in: Exporting EditingBehavior.h for use in WebKit2
848         * editing/EditingBehavior.h:
849         (WebCore::EditingBehavior::shouldClearSelectionWhenLosingWebPageFocus): moving the platform-specific code out of an #ifdef and into this class for run-time instead of compile-time checking
850
851 2011-04-13  Yael Aharon  <yael.aharon@nokia.com>
852
853         Reviewed by Eric Seidel.
854
855         constructLine should take bidiRuns as a parameter
856         https://bugs.webkit.org/show_bug.cgi?id=58458
857
858         Pass bidiRuns to constructLine and move reachedEndOfTextRenderer so that it is
859         declared before constructLine.
860
861         No new tests as this is refactoring only.
862
863         * rendering/RenderBlock.h:
864         * rendering/RenderBlockLineLayout.cpp:
865         (WebCore::reachedEndOfTextRenderer):
866         (WebCore::RenderBlock::constructLine):
867         (WebCore::RenderBlock::layoutInlineChildren):
868
869 2011-04-13  Oliver Hunt  <oliver@apple.com>
870
871         Reviewed by Geoff Garen.
872
873         GC allocate Structure
874         https://bugs.webkit.org/show_bug.cgi?id=58483
875
876         Update WebCore for Structure being a GC allocated object
877
878         * WebCore.exp.in:
879         * bindings/js/JSAudioConstructor.h:
880         (WebCore::JSAudioConstructor::createStructure):
881         * bindings/js/JSDOMBinding.cpp:
882         (WebCore::cacheDOMStructure):
883         * bindings/js/JSDOMBinding.h:
884         (WebCore::DOMObjectWithGlobalPointer::createStructure):
885         (WebCore::DOMObjectWithGlobalPointer::DOMObjectWithGlobalPointer):
886         (WebCore::DOMConstructorObject::createStructure):
887         (WebCore::DOMConstructorObject::DOMConstructorObject):
888         (WebCore::DOMConstructorWithDocument::DOMConstructorWithDocument):
889         * bindings/js/JSDOMGlobalObject.cpp:
890         (WebCore::JSDOMGlobalObject::JSDOMGlobalObject):
891         (WebCore::JSDOMGlobalObject::markChildren):
892         * bindings/js/JSDOMGlobalObject.h:
893         (WebCore::JSDOMGlobalObject::createStructure):
894         * bindings/js/JSDOMWindowBase.cpp:
895         (WebCore::JSDOMWindowBase::JSDOMWindowBase):
896         * bindings/js/JSDOMWindowBase.h:
897         (WebCore::JSDOMWindowBase::createStructure):
898         * bindings/js/JSDOMWindowShell.cpp:
899         (WebCore::JSDOMWindowShell::JSDOMWindowShell):
900         (WebCore::JSDOMWindowShell::setWindow):
901         * bindings/js/JSDOMWindowShell.h:
902         (WebCore::JSDOMWindowShell::createStructure):
903         * bindings/js/JSDOMWrapper.h:
904         (WebCore::DOMObject::DOMObject):
905         * bindings/js/JSEventListener.cpp:
906         (WebCore::JSEventListener::JSEventListener):
907         * bindings/js/JSImageConstructor.h:
908         (WebCore::JSImageConstructor::createStructure):
909         * bindings/js/JSImageDataCustom.cpp:
910         (WebCore::toJS):
911         * bindings/js/JSOptionConstructor.h:
912         (WebCore::JSOptionConstructor::createStructure):
913         * bindings/js/JSWorkerContextBase.cpp:
914         (WebCore::JSWorkerContextBase::JSWorkerContextBase):
915         * bindings/js/JSWorkerContextBase.h:
916         (WebCore::JSWorkerContextBase::createStructure):
917         * bindings/js/ScriptCachedFrameData.h:
918         * bindings/js/SerializedScriptValue.h:
919         * bindings/js/WorkerScriptController.cpp:
920         (WebCore::WorkerScriptController::initScript):
921         * bindings/scripts/CodeGeneratorJS.pm:
922         * bridge/c/CRuntimeObject.h:
923         (JSC::Bindings::CRuntimeObject::createStructure):
924         * bridge/c/c_instance.cpp:
925         (JSC::Bindings::CRuntimeMethod::createStructure):
926         * bridge/jni/jsc/JavaInstanceJSC.cpp:
927         (JavaRuntimeMethod::createStructure):
928         * bridge/jni/jsc/JavaRuntimeObject.h:
929         (JSC::Bindings::JavaRuntimeObject::createStructure):
930         * bridge/objc/ObjCRuntimeObject.h:
931         (JSC::Bindings::ObjCRuntimeObject::createStructure):
932         * bridge/objc/objc_instance.mm:
933         (ObjCRuntimeMethod::createStructure):
934         * bridge/objc/objc_runtime.h:
935         (JSC::Bindings::ObjcFallbackObjectImp::createStructure):
936         * bridge/runtime_array.cpp:
937         (JSC::RuntimeArray::RuntimeArray):
938         * bridge/runtime_array.h:
939         (JSC::RuntimeArray::createStructure):
940         * bridge/runtime_method.cpp:
941         (JSC::RuntimeMethod::RuntimeMethod):
942         * bridge/runtime_method.h:
943         (JSC::RuntimeMethod::createStructure):
944         * bridge/runtime_object.cpp:
945         (JSC::Bindings::RuntimeObject::RuntimeObject):
946         * bridge/runtime_object.h:
947         (JSC::Bindings::RuntimeObject::createStructure):
948         * history/HistoryItem.h:
949
950 2011-04-13  Cary Clark  <caryclark@google.com>
951
952         Reviewed by Eric Seidel.
953
954         Allow CG Font support in Chrome Darwin build using Skia
955         https://bugs.webkit.org/show_bug.cgi?id=58321
956         
957         This allows Chrome to use Skia to do WebKit rendering, while
958         using CoreGraphics for glyph creation and computing font metrics.
959         It relies on an undefined platform token, WTF_USE_SKIA_ON_MAC_CHROME.
960
961         No new tests needed, no functionality change.
962
963         * loader/cache/CachedFont.cpp: Make CGFontRef functions and
964         CG-specific font code available to Chrome builds on Darwin using Skia.
965         * platform/graphics/FontPlatformData.h: Ditto.
966         (WebCore::FontPlatformData::hash): Ditto.
967         * platform/graphics/GlyphBuffer.h: Ditto.
968         (WebCore::GlyphBuffer::advanceAt): Ditto.
969         (WebCore::GlyphBuffer::add): Ditto.
970         (WebCore::GlyphBuffer::expandLastAdvance): Ditto.
971         * platform/graphics/SimpleFontData.h: Ditto.
972
973 2011-04-13  Alexis Menard  <alexis.menard@openbossa.org>
974
975         Reviewed by Dimitri Glazkov.
976
977         The timeline of the video controls is unusable if the multimedia backend returns a
978         infinite duration.
979         https://bugs.webkit.org/show_bug.cgi?id=58452
980
981         In case the underlaying media element backend returns crazy values, e.g.
982         an infinite duration for the video we need to bail out and hide the timeline
983         rather than in a broken state where you can't use it. The previous code was just
984         checking if the duration was NaN.
985
986         We can't control from JS what the backend will return as a duration for the video
987         so we can't make an test for it.
988
989         * html/shadow/MediaControlRootElement.cpp:
990         (WebCore::MediaControlRootElement::reset):
991
992 2011-04-13  Abhishek Arya  <inferno@chromium.org>
993
994         Reviewed by James Robinson.
995
996         Draw outline for render widgets.
997         https://bugs.webkit.org/show_bug.cgi?id=57439
998
999         Test: fast/frames/iframe-outline.html
1000
1001         * rendering/RenderWidget.cpp:
1002         (WebCore::RenderWidget::paint):
1003
1004 2011-04-13  Kent Tamura  <tkent@chromium.org>
1005
1006         Reviewed by Dimitri Glazkov.
1007
1008         Change the representation of ShadowRoot nodes in render tree dumps
1009         https://bugs.webkit.org/show_bug.cgi?id=58432
1010
1011         Show "#shadow-root" for ShadorRoot nodes instead of "#document-fragment"
1012         in DRT results.
1013
1014         No new tests. This change doesn't affect existing tests yet.
1015
1016         * dom/DocumentFragment.h:
1017           Make nodeName() protected in order that ShdowRoot can override it.
1018         * dom/ShadowRoot.cpp:
1019         (WebCore::ShadowRoot::nodeName): Returns "#shadow-root".
1020         * dom/ShadowRoot.h: Declare nodeName().
1021         * rendering/RenderTreeAsText.cpp:
1022         (WebCore::nodePosition): Don't show "child N " if the node is a shadow boundary.
1023           We don't use isShadowRoot() here because the legacy shadow root nodes
1024           return true for isShadowRoot() and we don't want to update existing
1025           test results.
1026
1027 2011-04-13  Ryosuke Niwa  <rniwa@webkit.org>
1028
1029         Reviewed by Eric Seidel.
1030
1031         Merge LineOffsets and LineWidth
1032         https://bugs.webkit.org/show_bug.cgi?id=58411
1033
1034         Merged lineOffsets into LineWidth.
1035
1036         After this patch, available width is updated in positionNewFloatOnLine via updateAvailableWidth and
1037         shrinkAvailableWidthForNewFloatIfNeeded instead of findNextBreak. This is correct because
1038         - LineOffsets::update and LineOffsets::shrinkWidthForNewFloatIfNeeded were only called in positionNewFloatOnLine
1039           besides LineOffsets' constructor
1040         - positionNewFloatOnLine was only called in skipLeadingWhitespace and findNextLineBreak
1041         - findNextLineBreak updates the available width whenever it calls skipLeadingWhitespace or positionNewFloatOnLine
1042
1043         * rendering/RenderBlock.h:
1044         * rendering/RenderBlockLineLayout.cpp:
1045         (WebCore::RenderBlock::skipLeadingWhitespace): Takes LineWidth instead of LineOffset
1046         (WebCore::LineWidth::LineWidth): Takes RenderBlock* and boolean isFirstLine; call updateAvailableWidth
1047         because the initial available width was used to be computed from lineOffsets.width().
1048         (WebCore::LineWidth::computeAvailableWidthFromLeftAndRight): Added.
1049         (WebCore::LineWidth::updateAvailableWidth): Renamed from LineOffsets::update; this function now updates
1050         m_availableWidth via computeAvailableWidthFromLeftAndRight as well as m_left and m_right.
1051         (WebCore::LineWidth::shrinkAvailableWidthForNewFloatIfNeeded): Renamed from
1052         LineOffsets::shrinkWidthForNewFloatIfNeeded. This function also calls computeAvailableWidthFromLeftAndRight.
1053         (WebCore::LineWidth::applyOverhang): No longer takes arguments since both arguments were member variables
1054         of LineOffsets.
1055         (WebCore::LineWidth::fitBelowFloats): No longer takes isFirstLine.
1056         (WebCore::RenderBlock::findNextLineBreak): Uses LineWidth.
1057         (WebCore::RenderBlock::positionNewFloatOnLine): Takes a reference to LineWidth.
1058
1059 2011-04-13  Ryuan Choi  <ryuan.choi@samsung.com>
1060
1061         Reviewed by Kenneth Rohde Christiansen.
1062
1063         [CMAKE] Separate DerivedSources.
1064         https://bugs.webkit.org/show_bug.cgi?id=58427
1065
1066         No new tests since these are refactoring only.
1067
1068         * CMakeLists.txt:
1069         * UseJSC.cmake:
1070
1071 2011-04-13  Noel Gordon  <noel.gordon@gmail.com>
1072
1073         Reviewed by Kenneth Russell.
1074
1075         [chromium] Fix canvas.toDataURL mimeType assertion
1076         https://bugs.webkit.org/show_bug.cgi?id=58425
1077
1078         Following r81213, reassert expected toDataURL() mimeType, remove an unused variable.
1079
1080         No new tests. Covered by existing tests.
1081
1082         * platform/graphics/skia/ImageBufferSkia.cpp:
1083         (WebCore::ImageToDataURL):
1084         (WebCore::ImageBuffer::toDataURL):
1085
1086 2011-04-12  Luiz Agostini  <luiz.agostini@openbossa.org>
1087
1088         Reviewed by Andreas Kling.
1089
1090         [Qt] QNetworkReplyHandler refactoring: remove nested event loop.
1091         https://bugs.webkit.org/show_bug.cgi?id=58375
1092
1093         As QNAM now makes actual synchronous loads there is no need for a nested event loop
1094         in ResourceHandleQt.
1095
1096         Moving the call for QNetworkReplyWrapper::synchronousLoad from
1097         ResourceHandle::loadResourceSynchronously to QNetworkReplyHandler::start for the
1098         redirections to work in synchronous requests.
1099
1100         * platform/network/qt/QNetworkReplyHandler.cpp:
1101         (WebCore::QNetworkReplyHandler::start):
1102         * platform/network/qt/QNetworkReplyHandler.h:
1103         * platform/network/qt/ResourceHandleQt.cpp:
1104         (WebCore::WebCoreSynchronousLoader::WebCoreSynchronousLoader):
1105         (WebCore::WebCoreSynchronousLoader::didReceiveResponse):
1106         (WebCore::WebCoreSynchronousLoader::didReceiveData):
1107         (WebCore::WebCoreSynchronousLoader::didFinishLoading):
1108         (WebCore::WebCoreSynchronousLoader::didFail):
1109         (WebCore::ResourceHandle::loadResourceSynchronously):
1110
1111 2011-04-13  Roland Steiner  <rolandsteiner@chromium.org>
1112
1113         Reviewed by David Hyatt.
1114
1115         Bug 55930 - Incorrect handling of 'display:' property within nested <ruby> tags
1116         https://bugs.webkit.org/show_bug.cgi?id=55930
1117
1118         Non-inline :before/:after generated content is now wrapped with an anonymous inline block.
1119
1120         Also, added an additional check in RenderObjectChildList::updateBeforeAfterContent()
1121         to verify that the created render object is legal under the parent.
1122
1123         Tests: fast/ruby/after-block-doesnt-crash.html
1124                fast/ruby/after-table-doesnt-crash.html
1125                fast/ruby/before-block-doesnt-crash.html
1126                fast/ruby/before-table-doesnt-crash.html
1127
1128         * rendering/RenderObjectChildList.cpp:
1129         (WebCore::RenderObjectChildList::updateBeforeAfterContent):
1130         * rendering/RenderRuby.cpp:
1131         (WebCore::isAnonymousRubyInlineBlock):
1132         (WebCore::rubyBeforeBlock):
1133         (WebCore::rubyAfterBlock):
1134         (WebCore::createAnonymousRubyInlineBlock):
1135         (WebCore::lastRubyRun):
1136         (WebCore::RenderRubyAsInline::addChild):
1137         (WebCore::RenderRubyAsInline::removeChild):
1138         (WebCore::RenderRubyAsBlock::addChild):
1139         (WebCore::RenderRubyAsBlock::removeChild):
1140         * rendering/RenderRuby.h:
1141
1142 2011-04-13  Matthew Delaney  <mdelaney@apple.com>
1143
1144         Reviewed by Simon Fraser.
1145
1146         [CG] Refactor get/putImageData routines from ImageBufferCG into a (new) ImageBufferDataCG.cpp
1147         https://bugs.webkit.org/show_bug.cgi?id=58084
1148
1149         No new tests. Does not affect outward behavior.
1150
1151         * WebCore.gypi:
1152         * WebCore.vcproj/WebCore.vcproj:
1153         * WebCore.xcodeproj/project.pbxproj:
1154         * platform/graphics/ImageBuffer.h:
1155         * platform/graphics/ImageBufferData.h: Added.
1156         * platform/graphics/cairo/ImageBufferData.h: Removed.
1157         * platform/graphics/cairo/ImageBufferDataCairo.h: Added.
1158         * platform/graphics/cg/ImageBufferCG.cpp:
1159         (WebCore::ImageBuffer::getUnmultipliedImageData):
1160         (WebCore::ImageBuffer::getPremultipliedImageData):
1161         (WebCore::ImageBuffer::putUnmultipliedImageData):
1162         (WebCore::ImageBuffer::putPremultipliedImageData):
1163         * platform/graphics/cg/ImageBufferDataCG.cpp: Added.
1164         (WebCore::ImageBufferData::ImageBufferData):
1165         (WebCore::haveVImageRoundingErrorFix):
1166         (WebCore::ImageBufferData::getData):
1167         (WebCore::ImageBufferData::putData):
1168         * platform/graphics/cg/ImageBufferData.h: Removed.
1169         * platform/graphics/cg/ImageBufferDataCG.h: Added.
1170         * platform/graphics/chromium/ImageBufferData.h: Removed.
1171         * platform/graphics/chromium/ImageBufferDataSkia.h: Added.
1172         * platform/graphics/haiku/ImageBufferData.h: Removed.
1173         * platform/graphics/haiku/ImageBufferDataHaiku.h: Added.
1174         * platform/graphics/qt/ImageBufferData.h: Removed.
1175         * platform/graphics/qt/ImageBufferDataQt.h: Added.
1176         * platform/graphics/wince/ImageBufferData.h: Removed.
1177         * platform/graphics/wince/ImageBufferDataWince.h: Added.
1178         * platform/graphics/wx/ImageBufferData.h: Removed.
1179         * platform/graphics/wx/ImageBufferDataWx.h: Added.
1180
1181 2011-04-13  Simon Fraser  <simon.fraser@apple.com>
1182
1183         Reviewed by Dan Bernstein.
1184
1185         Remove std:: prefix on some min/max calls
1186         https://bugs.webkit.org/show_bug.cgi?id=58493
1187
1188         Remove std:: namespacing on min/max in favor of a 'using' clause.
1189
1190         * platform/graphics/RoundedIntRect.cpp:
1191         (WebCore::RoundedIntRect::Radii::expand):
1192         * rendering/style/RenderStyle.cpp:
1193         (WebCore::calcConstraintScaleFor):
1194
1195 2011-04-13  Alexis Menard  <alexis.menard@openbossa.org>
1196
1197         Reviewed by Andreas Kling.
1198
1199         Replace our own RenderThemeQt::getMediaElementFromRenderObject by
1200         MediaControlsElement::toParentMediaElement used by every other port.
1201
1202         * platform/qt/RenderThemeQt.cpp:
1203         (WebCore::RenderThemeQt::paintMediaFullscreenButton):
1204         (WebCore::RenderThemeQt::paintMediaMuteButton):
1205         (WebCore::RenderThemeQt::paintMediaPlayButton):
1206         (WebCore::RenderThemeQt::paintMediaSliderTrack):
1207         * platform/qt/RenderThemeQt.h:
1208
1209 2011-04-13  Geoffrey Garen  <ggaren@apple.com>
1210
1211         Reviewed by Oliver Hunt.
1212
1213         Switched DOM wrappers to use HashMap of Weak<T> instead of WeakGCMap<T>
1214         https://bugs.webkit.org/show_bug.cgi?id=58482
1215
1216         This will allow wrappers to make individual decisions about their lifetimes.
1217
1218         * bindings/js/DOMWrapperWorld.cpp:
1219         (WebCore::DOMWrapperWorld::DOMWrapperWorld):
1220         (WebCore::JSNodeHandleOwner::isReachableFromOpaqueRoots):
1221         (WebCore::JSNodeHandleOwner::finalize):
1222         (WebCore::DOMObjectHandleOwner::isReachableFromOpaqueRoots):
1223         (WebCore::DOMObjectHandleOwner::finalize):
1224         * bindings/js/DOMWrapperWorld.h:
1225         (WebCore::JSNodeHandleOwner::JSNodeHandleOwner):
1226         (WebCore::DOMObjectHandleOwner::DOMObjectHandleOwner):
1227         (WebCore::DOMWrapperWorld::jsNodeHandleOwner):
1228         (WebCore::DOMWrapperWorld::domObjectHandleOwner): Added handle owners
1229         for JSNode and DOMObject, our two hash table values. For now, the owners
1230         just take care to remove their handles from their respective hash tables.
1231         
1232         Changed the hash table type to be a standard HashMap of weak pointers,
1233         instead of a WeakGCMap.
1234
1235         * bindings/js/JSDOMBinding.cpp:
1236         (WebCore::getCachedDOMObjectWrapper):
1237         (WebCore::cacheDOMObjectWrapper):
1238         (WebCore::cacheDOMNodeWrapper):
1239         (WebCore::isObservableThroughDOM):
1240         (WebCore::markDOMNodesForDocument):
1241         (WebCore::takeWrappers):
1242         (WebCore::updateDOMNodeDocument):
1243         (WebCore::markDOMObjectWrapper):
1244         (WebCore::markDOMNodeWrapper): Updated wrapper hash table access to
1245         accomodate its new data type.
1246
1247         * bindings/js/JSNodeCustom.h:
1248         (WebCore::getCachedDOMNodeWrapper): Ditto.
1249
1250         * dom/Document.h: Updated declaration to match the above.
1251
1252 2011-04-13  Sam Weinig  <sam@webkit.org>
1253
1254         Fix Mac builds.
1255
1256         * WebCore.exp.in:
1257
1258 2011-04-13  Sam Weinig  <sam@webkit.org>
1259
1260         Reviewed by Gavin Barraclough.
1261
1262         WebKit2 doesn't keep overlay scrollers shown while scroll gesture held
1263         <rdar://problem/9260518>
1264
1265         Notify the scrollbar painter controller when gesture scrolls begin and end.
1266
1267         * WebCore.exp.in:
1268         * platform/mac/ScrollAnimatorMac.h:
1269         * platform/mac/ScrollAnimatorMac.mm:
1270         (WebCore::ScrollAnimatorMac::didBeginScrollGesture):
1271         (WebCore::ScrollAnimatorMac::didEndScrollGesture):
1272         (WebCore::ScrollAnimatorMac::beginScrollGesture):
1273         (WebCore::ScrollAnimatorMac::endScrollGesture):
1274         * platform/mac/WebCoreSystemInterface.h:
1275         * platform/mac/WebCoreSystemInterface.mm:
1276
1277 2011-04-13  Eric Carlson  <eric.carlson@apple.com>
1278
1279         Reviewed by Maciej Stachowiak.
1280
1281         MediaPlayerPrivateAVFoundationObjC should adopt [AVURLAsset isPlayableExtendedMIMEType:]
1282         https://bugs.webkit.org/show_bug.cgi?id=58451
1283         <rdar://problem/9278468>
1284
1285         No new tests, supported MIME types haven't changed.
1286
1287         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationObjC.mm:
1288         (WebCore::MediaPlayerPrivateAVFoundationObjC::supportsType): Use 
1289         [AVURLAsset isPlayableExtendedMIMEType] instead of just the list of types.
1290
1291 2011-04-13  Eric Carlson  <eric.carlson@apple.com>
1292
1293         Reviewed by Alexey Proskuryakov.
1294
1295         Media engine fallback doesn't always work
1296         https://bugs.webkit.org/show_bug.cgi?id=58462
1297
1298         No new tests, this was verified manually with the url noted in the bug.
1299
1300         * platform/graphics/MediaPlayer.cpp:
1301         (WebCore::MediaPlayer::networkStateChanged):
1302
1303 2011-04-13  Zhenyao Mo  <zmo@google.com>
1304
1305         Reviewed by Kenneth Russell.
1306
1307         Extension3D needs to provide a way to check if an extension is enabled
1308         https://bugs.webkit.org/show_bug.cgi?id=58410
1309
1310         * html/canvas/WebGLRenderingContext.cpp:
1311         (WebCore::WebGLRenderingContext::setupFlags): Use isEnabled() instead of supports().
1312         * platform/graphics/Extensions3D.h: Add isEnabled().
1313         * platform/graphics/chromium/Extensions3DChromium.h: Ditto.
1314         * platform/graphics/opengl/Extensions3DOpenGL.cpp: Ditto.
1315         (WebCore::Extensions3DOpenGL::isEnabled):
1316         * platform/graphics/opengl/Extensions3DOpenGL.h: Ditto.
1317         * platform/graphics/qt/Extensions3DQt.cpp: Ditto.
1318         (WebCore::Extensions3DQt::isEnabled):
1319         * platform/graphics/qt/Extensions3DQt.h: Ditto.
1320
1321 2011-04-13  Oliver Hunt  <oliver@apple.com>
1322
1323         Reviewed by Gavin Barraclough.
1324
1325         Make PropertyMapEntry use a WriteBarrier for specificValue
1326         https://bugs.webkit.org/show_bug.cgi?id=58407
1327
1328         Pass JSGlobalData reference on to APIs that now need them
1329
1330         * bindings/js/JSDOMWindowShell.h:
1331         (WebCore::JSDOMWindowShell::setWindow):
1332         * bindings/js/JSHTMLDocumentCustom.cpp:
1333         (WebCore::JSHTMLDocument::all):
1334
1335 2011-04-12  Pavel Podivilov  <podivilov@chromium.org>
1336
1337         Reviewed by Pavel Feldman.
1338
1339         Web Inspector: fix source mapping for de-obfuscated scripts.
1340         https://bugs.webkit.org/show_bug.cgi?id=58231
1341
1342         * inspector/front-end/ScriptFormatterWorker.js:
1343         (buildMapping):
1344         * inspector/front-end/SourceFile.js:
1345         (WebInspector.SourceMapping):
1346         (WebInspector.SourceMapping.prototype.sourceLineToScriptLocation):
1347         (WebInspector.SourceMapping.prototype._sourceLocationToScriptLocation):
1348         (WebInspector):
1349         (WebInspector.FormattedSourceMapping):
1350         (WebInspector.FormattedSourceMapping.prototype.scriptLocationToSourceLine):
1351         (WebInspector.FormattedSourceMapping.prototype.sourceLineToScriptLocation):
1352
1353 2011-04-13  Mario Sanchez Prada  <msanchez@igalia.com>
1354
1355         Reviewed by Martin Robinson.
1356
1357         [GTK] Consider editable and non editable nodes when calculating selection offsets
1358         https://bugs.webkit.org/show_bug.cgi?id=58431
1359
1360         Use firstPositionInOrBeforeNode() and lastPositionInOrAfterNode().
1361
1362         This is needed to ensure that getSelectionOffsetsForObject() works
1363         well when non editable nodes are present in the selection, since
1364         firstPositionInNode() and lastPositionInNode() don't work in those
1365         cases (they assume the node is editable).
1366
1367         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1368         (getSelectionOffsetsForObject): Updated calls.
1369
1370 2011-04-13  Mario Sanchez Prada  <msanchez@igalia.com>
1371
1372         Reviewed by Martin Robinson.
1373
1374         [GTK] Missing nullchecks in GTK's a11y wrapper
1375         https://bugs.webkit.org/show_bug.cgi?id=58429
1376
1377         Add missing nullchecks for coreObject->document().
1378
1379         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1380         (atkParentOfRootObject): Add missing nullcheck.
1381         (getPangoLayoutForAtk): Ditto.
1382         (webkit_accessible_text_get_caret_offset): Ditto.
1383         (textExtents): Ditto.
1384         (webkit_accessible_editable_text_insert_text): Ditto.
1385         (webkit_accessible_editable_text_delete_text): Ditto.
1386
1387 2011-04-13  Thierry Reding  <thierry.reding@avionic-design.de>
1388
1389         Gtk+ port fails to build when enabling WebGL
1390         https://bugs.webkit.org/show_bug.cgi?id=58434
1391
1392         Fix the GTK+ WebGL build after the introduction of PlatformContextCairo.
1393
1394         * platform/graphics/GraphicsContext3D.h:
1395         * platform/graphics/cairo/GraphicsContext3DCairo.cpp:
1396         (WebCore::GraphicsContext3D::paintToCanvas):
1397
1398 2011-04-12  Philippe Normand  <pnormand@igalia.com>
1399
1400         Reviewed by Martin Robinson.
1401
1402         REGRESSION(r83561): doesn't pause in-window playback during fullscreen playback
1403         https://bugs.webkit.org/show_bug.cgi?id=58312
1404
1405         Make sure to link the videoValve in all cases, fpsdisplaysink
1406         being used or not.
1407
1408         No new test, this patch fixes an internal feature of the player,
1409         not publicly exposed. Having two video sinks and pausing one while
1410         the other displays the fullscreen video is an implementation
1411         detail of the GStreamer player.
1412
1413         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
1414         (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin):
1415
1416 2011-04-13  Ilya Tikhonovsky  <loislo@chromium.org>
1417
1418         Reviewed by Yury Semikhatsky.
1419
1420         Web Inspector: there is a problem if an optional param is not at the end of a params list.
1421         https://bugs.webkit.org/show_bug.cgi?id=58440
1422
1423         In InspectorBackend.dispatch method we are converting the message's params object into array of arguments
1424         for a callback. But in some cases the optional parameter is declared in the middle of the params list.
1425         That gets us into a problem if this param has been skipped in the message. In that case the tail of the
1426         event params will be shifted. We can slightly modify dispatcher and it will put the params in right places.
1427
1428         * inspector/CodeGeneratorInspector.pm:
1429
1430 2011-04-13  Ben Taylor  <bentaylor.solx86@gmail.com>
1431
1432         Reviewed by Eric Seidel.
1433
1434         https://bugs.webkit.org/show_bug.cgi?id=57337
1435
1436         Work around a bug in ternary opertions in the Solaris Studio
1437         12/12.1/12.2 compilers, using an if clause.
1438
1439         * dom/NodeRenderStyle.h:
1440         (WebCore::Node::renderStyle):
1441
1442 2011-04-13  Brian Salomon  <bsalomon@google.com>
1443
1444         Reviewed by Kenneth Russell.
1445
1446         Use new skia API for wrapping DrawingBuffer's FBO/Tex IDs in skia object
1447         https://bugs.webkit.org/show_bug.cgi?id=58363
1448
1449         No new tests needed, exercised by all existing canvas2d tests.
1450
1451         * platform/graphics/chromium/DrawingBufferChromium.cpp:
1452         (WebCore::DrawingBuffer::getGrPlatformSurfaceDesc):
1453         * platform/graphics/gpu/DrawingBuffer.h:
1454         * platform/graphics/skia/PlatformContextSkia.cpp:
1455         (WebCore::PlatformContextSkia::setSharedGraphicsContext3D):
1456
1457 2011-04-13  Andrey Kosyakov  <caseq@chromium.org>
1458
1459         Unreviewed. Fix chromium clang build problem:
1460         ApplyPropertyExpandingSuppressValue::applyValue() shadows a virtual method
1461         with a different signature in base class instead of overriding it.
1462
1463         * css/CSSStyleApplyProperty.cpp:
1464         (WebCore::ApplyPropertyExpandingSuppressValue::applyValue):
1465
1466 2011-04-13  Kinuko Yasuda  <kinuko@chromium.org>
1467
1468         Reviewed by David Levin.
1469
1470         Add mock implementation and plumbing code for unified Quota API
1471         https://bugs.webkit.org/show_bug.cgi?id=57927
1472
1473         Added mock implementation and some plumbing code for the quota API,
1474         that is based on the discussion on public-webapps:
1475         http://lists.w3.org/Archives/Public/public-webapps/2011JanMar/0346.html
1476
1477         No new tests: tests will be added when we expose the API.
1478
1479         * CMakeLists.txt: Added new file entries.
1480         * DerivedSources.cpp: Added new file entries.
1481         * DerivedSources.make: Added new file entries.
1482         * GNUmakefile.am: Added new file entries.
1483         * WebCore.gypi: Added new file entries.
1484         * WebCore.pro: Added new file entries.
1485         * WebCore.vcproj/WebCore.vcproj: Added new file entries.
1486         * WebCore.xcodeproj/project.pbxproj: Added new file entries.
1487         * storage/StorageInfo.cpp: Added.
1488         * storage/StorageInfo.h: Added.
1489         * storage/StorageInfoErrorCallback.h: Added.
1490         * storage/StorageInfoQuotaCallback.h: Added.
1491         * storage/StorageInfoUsageCallback.h: Added.
1492
1493 2011-04-13  Gustavo Noronha Silva  <gns@gnome.org>
1494
1495         Reviewed by Martin Robinson.
1496
1497         [GTK] PluginPackage should check whether a plugin mixes GTK+ 2 and 3 symbols itself
1498         https://bugs.webkit.org/show_bug.cgi?id=58297
1499
1500         Make sure we do not load plugins that use symbols of a different
1501         GTK+ major version to avoid bugs and crashes.
1502
1503         * plugins/gtk/PluginPackageGtk.cpp:
1504         (WebCore::moduleMixesGtkSymbols):
1505         (WebCore::PluginPackage::load):
1506
1507 2011-04-13  Andrey Adaikin  <aandrey@google.com>
1508
1509         Reviewed by Pavel Feldman.
1510
1511         Web Inspector: Implement undo/redo in text editor
1512         https://bugs.webkit.org/show_bug.cgi?id=58426
1513
1514         Native undo/redo does not work because we modify DOM structure (highlights, chunks and etc.)
1515         Implement it via keyboard shortcuts for now (Cmd/Ctrl+Z and Cmd/Ctrl+Shift+Z).
1516         FIXME: Do something with the popup's Undo and Redo menu options - they invoke native's undo/redo.
1517
1518         * inspector/front-end/SourceFrame.js:
1519         (WebInspector.SourceFrame.prototype.endEditing):
1520         * inspector/front-end/TextEditorModel.js:
1521         (WebInspector.TextEditorModel.prototype.setText):
1522         (WebInspector.TextEditorModel.prototype._innerSetText):
1523         (WebInspector.TextEditorModel.prototype._pushUndoableCommand):
1524         (WebInspector.TextEditorModel.prototype.undo):
1525         (WebInspector.TextEditorModel.prototype.redo):
1526         (WebInspector.TextEditorModel.prototype._doUndo):
1527         * inspector/front-end/TextViewer.js:
1528         (WebInspector.TextViewer.prototype._textChanged):
1529         (WebInspector.TextViewer.prototype._enterInternalTextChangeMode):
1530         (WebInspector.TextViewer.prototype._exitInternalTextChangeMode):
1531         (WebInspector.TextViewer.prototype._registerShortcuts):
1532         (WebInspector.TextViewer.prototype._cancelEditing):
1533         (WebInspector.TextViewer.prototype._handleUndoRedo):
1534         (WebInspector.TextEditorChunkedPanel.prototype.makeLineAChunk):
1535         (WebInspector.TextEditorChunkedPanel.prototype._repaintAll):
1536         (WebInspector.TextEditorGutterPanel.prototype.textChanged):
1537         (WebInspector.TextEditorMainPanel.prototype.handleUndoRedo.callback):
1538         (WebInspector.TextEditorMainPanel.prototype.handleUndoRedo):
1539         (WebInspector.TextEditorMainPanel.prototype._restoreSelection):
1540         (WebInspector.TextEditorMainPanel.prototype._applyDomUpdates):
1541         (WebInspector.TextEditorMainPanel.prototype.textChanged):
1542         (WebInspector.TextEditorMainPanel.prototype._updateChunksForRanges):
1543
1544 2011-04-13  Pavel Feldman  <pfeldman@chromium.org>
1545
1546         Reviewed by Yury Semikhatsky.
1547
1548         Web Inspector: make optional event parameter last to prevent regressions.
1549         https://bugs.webkit.org/show_bug.cgi?id=58433
1550
1551         * inspector/Inspector.json:
1552         * inspector/InspectorResourceAgent.cpp:
1553         (WebCore::InspectorResourceAgent::willSendRequest):
1554         * inspector/front-end/NetworkManager.js:
1555         (WebInspector.NetworkDispatcher.prototype.requestWillBeSent):
1556
1557 2011-04-13  Pavel Feldman  <pfeldman@chromium.org>
1558
1559         Not reviewed: revert Inspector.json change for breaking world.
1560
1561         * inspector/Inspector.json:
1562
1563 2011-04-13  Pavel Feldman  <pfeldman@chromium.org>
1564
1565         Not reviewed: swap methods in the Inspector.json.
1566
1567         * inspector/Inspector.json:
1568
1569 2011-04-13  Csaba Osztrogonác  <ossy@webkit.org>
1570
1571         Unreviewed, rolling out r83695.
1572         http://trac.webkit.org/changeset/83695
1573         https://bugs.webkit.org/show_bug.cgi?id=58375
1574
1575         [Qt][WK2]It broke http tests
1576
1577         * platform/network/qt/QNetworkReplyHandler.cpp:
1578         (WebCore::QNetworkReplyHandler::start):
1579         (WebCore::QNetworkReplyHandler::synchronousLoad):
1580         * platform/network/qt/QNetworkReplyHandler.h:
1581         * platform/network/qt/ResourceHandleQt.cpp:
1582         (WebCore::WebCoreSynchronousLoader::resourceResponse):
1583         (WebCore::WebCoreSynchronousLoader::resourceError):
1584         (WebCore::WebCoreSynchronousLoader::data):
1585         (WebCore::WebCoreSynchronousLoader::setReplyFinished):
1586         (WebCore::WebCoreSynchronousLoader::WebCoreSynchronousLoader):
1587         (WebCore::WebCoreSynchronousLoader::didReceiveResponse):
1588         (WebCore::WebCoreSynchronousLoader::didReceiveData):
1589         (WebCore::WebCoreSynchronousLoader::didFinishLoading):
1590         (WebCore::WebCoreSynchronousLoader::didFail):
1591         (WebCore::WebCoreSynchronousLoader::waitForCompletion):
1592         (WebCore::ResourceHandle::loadResourceSynchronously):
1593
1594 2011-04-13  Pavel Podivilov  <podivilov@chromium.org>
1595
1596         Reviewed by Pavel Feldman.
1597
1598         Web Inspector: inactive style sheets should be read only.
1599         https://bugs.webkit.org/show_bug.cgi?id=58423
1600
1601         * inspector/front-end/ResourceView.js:
1602         (WebInspector.CSSSourceFrame):
1603         (WebInspector.CSSSourceFrame.prototype.isContentEditable):
1604         (WebInspector.CSSSourceFrame.prototype._loadStyleSheet.didGetAllStyleSheets.didCreateForId):
1605         (WebInspector.CSSSourceFrame.prototype._loadStyleSheet):
1606
1607 2011-04-13  Mikhail Naganov  <mnaganov@chromium.org>
1608
1609         Reviewed by Pavel Feldman.
1610
1611         Web Inspector: [Chromium] Prepare to move detailed heap snapshots storage and processing into workers.
1612         https://bugs.webkit.org/show_bug.cgi?id=58320
1613
1614         Introduce a proxy object that emulates worker behavior and change UI code to cope with it.
1615
1616         * WebCore.gypi:
1617         * WebCore.vcproj/WebCore.vcproj:
1618         * inspector/front-end/DetailedHeapshotGridNodes.js:
1619         (WebInspector.HeapSnapshotGridNode.prototype._populate.doPopulate.sorted):
1620         (WebInspector.HeapSnapshotGridNode.prototype._populate.doPopulate):
1621         (WebInspector.HeapSnapshotGridNode.prototype._populate):
1622         (WebInspector.HeapSnapshotGridNode.prototype.populateChildren.childrenRetrieved.notify):
1623         (WebInspector.HeapSnapshotGridNode.prototype.populateChildren.childrenRetrieved):
1624         (WebInspector.HeapSnapshotGridNode.prototype.populateChildren):
1625         (WebInspector.HeapSnapshotGridNode.prototype.sort.doSort.afterSort.afterPopulate):
1626         (WebInspector.HeapSnapshotGridNode.prototype.sort.doSort.afterSort):
1627         (WebInspector.HeapSnapshotGridNode.prototype.sort):
1628         (WebInspector.HeapSnapshotGenericObjectNode):
1629         (WebInspector.HeapSnapshotGenericObjectNode.prototype.get _shallowSizePercent):
1630         (WebInspector.HeapSnapshotGenericObjectNode.prototype._updateHasChildren):
1631         (WebInspector.HeapSnapshotObjectNode):
1632         (WebInspector.HeapSnapshotObjectNode.prototype._createChildNode):
1633         (WebInspector.HeapSnapshotObjectNode.prototype._createProvider):
1634         (WebInspector.HeapSnapshotInstanceNode):
1635         (WebInspector.HeapSnapshotInstanceNode.prototype._createChildNode):
1636         (WebInspector.HeapSnapshotInstanceNode.prototype._createProvider):
1637         (WebInspector.HeapSnapshotConstructorNode.prototype._createChildNode):
1638         (WebInspector.HeapSnapshotConstructorNode.prototype._createNodesProvider):
1639         (WebInspector.HeapSnapshotIteratorsTuple.prototype.sortAndRewind):
1640         (WebInspector.HeapSnapshotDiffNode.prototype._calculateDiff):
1641         (WebInspector.HeapSnapshotDiffNode.prototype._createChildNode):
1642         (WebInspector.HeapSnapshotDiffNode.prototype._createNodesProvider.createProvider):
1643         (WebInspector.HeapSnapshotDiffNode.prototype._createNodesProvider):
1644         (WebInspector.HeapSnapshotDiffNode.prototype._childHashForEntity):
1645         (WebInspector.HeapSnapshotDiffNode.prototype._childHashForNode):
1646         (WebInspector.HeapSnapshotDiffNode.prototype.populateChildren.firstProviderPopulated):
1647         (WebInspector.HeapSnapshotDiffNode.prototype.populateChildren.else.firstProviderPopulated):
1648         (WebInspector.HeapSnapshotDiffNode.prototype.populateChildren):
1649         (WebInspector.HeapSnapshotDominatorObjectNode):
1650         (WebInspector.HeapSnapshotDominatorObjectNode.prototype._createChildNode):
1651         (WebInspector.HeapSnapshotDominatorObjectNode.prototype._createProvider):
1652         * inspector/front-end/DetailedHeapshotView.js:
1653         (WebInspector.HeapSnapshotSortableDataGrid.prototype.sortingChanged):
1654         (WebInspector.HeapSnapshotSortableDataGrid.prototype._performSorting):
1655         (WebInspector.HeapSnapshotConstructorsDataGrid.prototype.setDataSource):
1656         (WebInspector.HeapSnapshotConstructorsDataGrid.prototype.populateChildren):
1657         (WebInspector.HeapSnapshotDiffDataGrid.prototype.setBaseDataSource.baseSnapshotNodeIdsReceived):
1658         (WebInspector.HeapSnapshotDiffDataGrid.prototype.setBaseDataSource.pushBaseSnapshotNodeIds):
1659         (WebInspector.HeapSnapshotDiffDataGrid.prototype.setBaseDataSource.snapshotNodeIdsReceived):
1660         (WebInspector.HeapSnapshotDiffDataGrid.prototype.setBaseDataSource):
1661         (WebInspector.HeapSnapshotDiffDataGrid.prototype.populateChildren.baseAggregatesReceived.aggregatesReceived):
1662         (WebInspector.HeapSnapshotDiffDataGrid.prototype.populateChildren):
1663         (WebInspector.HeapSnapshotRetainingPathsList):
1664         (WebInspector.HeapSnapshotRetainingPathsList.prototype._resetPaths):
1665         (WebInspector.HeapSnapshotRetainingPathsList.prototype.setDataSource):
1666         (WebInspector.HeapSnapshotRetainingPathsList.prototype.refresh):
1667         (WebInspector.HeapSnapshotRetainingPathsList.prototype.showNext.pathFound):
1668         (WebInspector.HeapSnapshotRetainingPathsList.prototype.showNext.startSearching):
1669         (WebInspector.HeapSnapshotRetainingPathsList.prototype.showNext):
1670         (WebInspector.DetailedHeapshotView.profileCallback):
1671         (WebInspector.DetailedHeapshotView):
1672         (WebInspector.DetailedHeapshotView.prototype.get profileWrapper):
1673         (WebInspector.DetailedHeapshotView.prototype.get baseProfileWrapper):
1674         (WebInspector.DetailedHeapshotView.prototype.show.profileCallback1):
1675         (WebInspector.DetailedHeapshotView.prototype.show.profileCallback2):
1676         (WebInspector.DetailedHeapshotView.prototype.show):
1677         (WebInspector.DetailedHeapshotView.prototype._changeBase.baseProfileLoaded):
1678         * inspector/front-end/HeapSnapshot.js:
1679         * inspector/front-end/HeapSnapshotProxy.js: Added.
1680         * inspector/front-end/PleaseWaitMessage.js:
1681         * inspector/front-end/ProfilesPanel.js:
1682         (WebInspector.ProfilesPanel.prototype._reset):
1683         (WebInspector.ProfilesPanel.prototype.loadHeapSnapshot):
1684         (WebInspector.ProfilesPanel.prototype._addHeapSnapshotChunk):
1685         (WebInspector.ProfilesPanel.prototype._finishHeapSnapshot.doParse):
1686         (WebInspector.ProfilesPanel.prototype._finishHeapSnapshot.else.parsed):
1687         (WebInspector.ProfilesPanel.prototype._finishHeapSnapshot):
1688         * inspector/front-end/WebKit.qrc:
1689         * inspector/front-end/inspector.html:
1690
1691 2011-04-13  Alexander Pavlov  <apavlov@chromium.org>
1692
1693         Reviewed by Pavel Feldman.
1694
1695         Web Inspector: Web Page Performance auditing fails
1696         https://bugs.webkit.org/show_bug.cgi?id=58322
1697
1698         * inspector/front-end/AuditRules.js:
1699         (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback):
1700         (WebInspector.AuditRules.UnusedCssRule.prototype.doRun.evalCallback.documentLoaded):
1701         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
1702         (WebInspector.AuditRules.CssInHeadRule.prototype.doRun.externalStylesheetsReceived):
1703         (WebInspector.AuditRules.CssInHeadRule.prototype.doRun.inlineStylesReceived):
1704         (WebInspector.AuditRules.CssInHeadRule.prototype.doRun.onDocumentAvailable):
1705         (WebInspector.AuditRules.CssInHeadRule.prototype.doRun):
1706         (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun.cssBeforeInlineReceived):
1707         (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun.lateStylesReceived):
1708         (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun.onDocumentAvailable):
1709         (WebInspector.AuditRules.StylesScriptsOrderRule.prototype.doRun):
1710
1711 2011-04-13  Pavel Feldman  <pfeldman@google.com>
1712
1713         Reviewed by Yury Semikhatsky.
1714
1715         Web Inspector: enumerate properties in Inspector.json using array, not object keys.
1716         https://bugs.webkit.org/show_bug.cgi?id=58418
1717
1718         * inspector/Inspector.json:
1719
1720 2011-04-06  Pavel Podivilov  <podivilov@chromium.org>
1721
1722         Reviewed by Pavel Feldman.
1723
1724         Web Inspector: add "De-obfuscate Source" item to source frame text area context menu.
1725         https://bugs.webkit.org/show_bug.cgi?id=57942
1726
1727         * English.lproj/localizedStrings.js:
1728         * inspector/front-end/DebuggerPresentationModel.js:
1729         (WebInspector.DebuggerPresentationModel.prototype.formatSourceFilesToggled):
1730         * inspector/front-end/ScriptsPanel.js:
1731         (WebInspector.ScriptsPanel):
1732         (WebInspector.ScriptsPanel.prototype._togglePauseOnExceptions):
1733         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.releaseEvaluationResult):
1734         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.toggleFormatSourceFiles):
1735         (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.formatSourceFilesToggled):
1736         * inspector/front-end/SourceFrame.js:
1737         (WebInspector.SourceFrame.prototype._contextMenu):
1738         (WebInspector.SourceFrame.prototype._populateLineGutterContextMenu):
1739         (WebInspector.SourceFrame.prototype._populateTextAreaContextMenu):
1740         (WebInspector.SourceFrameDelegate.prototype.releaseEvaluationResult):
1741         (WebInspector.SourceFrameDelegate.prototype.toggleFormatSourceFiles):
1742         (WebInspector.SourceFrameDelegate.prototype.formatSourceFilesToggled):
1743
1744 2011-04-13  Nikolas Zimmermann  <nzimmermann@rim.com>
1745
1746         Reviewed by Dirk Schulze.
1747
1748         SVGTextContentElements textLength returns 0
1749         https://bugs.webkit.org/show_bug.cgi?id=52543
1750
1751         Add proper handling of the SVGTextContentElement textLength property, according to SVG 1.1 2nd edition.
1752
1753         If the textLength attributes is not explicitely set "textContentElement.textLength.baseVal"
1754         will return the same as "textContentElement.getComputedTextLength()". If it's set the values
1755         aren't equal anymore. getComputedTextLength() ignores the textLength attributes as well as the
1756         lengthAdjust attribute. Adapt all of SVGTextQuery to ignore the lengthAdjust/textLength attributes.
1757         This is how Opera implements it, and it makes sense to a certain degree, as otherwhise getComputedTextLength()
1758         and textLength.baseVal.value would always be the same. Nor does the spec mention that textLength is honored
1759         in the SVG Text DOM API.
1760
1761         Fixes svg/custom/text-dom-01-f.svg (from SVG 1.1 2nd edition, should be moved into the new W3C-SVG-1.1-SE directory).
1762         Fixes svg/W3C-SVG-1.1-SE/svgdom-over-01-f.svg (last subtest related to textLength now passes).
1763
1764         Added new svg/dynamic-updates testcases covering dynamic changes of lengthAdjust/textLength and the synchronization
1765         with getComputedTextLength().
1766
1767         Tests: svg/W3C-SVG-1.1-SE/svgdom-over-01-f.svg
1768                svg/dynamic-updates/SVGTextElement-dom-lengthAdjust-attr.html
1769                svg/dynamic-updates/SVGTextElement-dom-textLength-attr.html
1770                svg/dynamic-updates/SVGTextElement-svgdom-lengthAdjust-prop.html
1771                svg/dynamic-updates/SVGTextElement-svgdom-textLength-prop.html
1772
1773         * rendering/svg/RenderSVGInlineText.cpp:
1774         (WebCore::RenderSVGInlineText::positionForPoint):
1775         * rendering/svg/SVGInlineFlowBox.cpp:
1776         (WebCore::SVGInlineFlowBox::computeTextMatchMarkerRectForRenderer):
1777         * rendering/svg/SVGInlineTextBox.cpp:
1778         (WebCore::SVGInlineTextBox::offsetForPositionInFragment):
1779         (WebCore::SVGInlineTextBox::selectionRect):
1780         (WebCore::SVGInlineTextBox::paintSelectionBackground):
1781         (WebCore::SVGInlineTextBox::paint):
1782         (WebCore::SVGInlineTextBox::calculateBoundaries):
1783         * rendering/svg/SVGTextChunkBuilder.cpp:
1784         (WebCore::SVGTextChunkBuilder::buildTextChunks):
1785         (WebCore::SVGTextChunkBuilder::layoutTextChunks):
1786         (WebCore::SVGTextChunkBuilder::addTextChunk):
1787         (WebCore::SVGTextChunkBuilder::processTextChunk):
1788         (WebCore::SVGTextChunkBuilder::processTextLengthSpacingCorrection):
1789         (WebCore::SVGTextChunkBuilder::processTextAnchorCorrection):
1790         * rendering/svg/SVGTextFragment.h:
1791         (WebCore::SVGTextFragment::SVGTextFragment):
1792         (WebCore::SVGTextFragment::buildFragmentTransform):
1793         (WebCore::SVGTextFragment::transformAroundOrigin):
1794         (WebCore::SVGTextFragment::buildTransformForTextOnPath):
1795         (WebCore::SVGTextFragment::buildTransformForTextOnLine):
1796         * rendering/svg/SVGTextLayoutEngine.cpp:
1797         (WebCore::SVGTextLayoutEngine::parentDefinesTextLength):
1798         (WebCore::SVGTextLayoutEngine::beginTextPathLayout):
1799         (WebCore::dumpTextBoxes):
1800         (WebCore::SVGTextLayoutEngine::finalizeTransformMatrices):
1801         (WebCore::SVGTextLayoutEngine::finishLayout):
1802         (WebCore::SVGTextLayoutEngine::layoutTextOnLineOrPath):
1803         * rendering/svg/SVGTextQuery.cpp:
1804         (WebCore::SVGTextQuery::textLengthCallback):
1805         (WebCore::SVGTextQuery::subStringLengthCallback):
1806         (WebCore::SVGTextQuery::startPositionOfCharacterCallback):
1807         (WebCore::SVGTextQuery::endPositionOfCharacterCallback):
1808         (WebCore::SVGTextQuery::rotationOfCharacterCallback):
1809         (WebCore::calculateGlyphBoundaries):
1810         * svg/SVGTextContentElement.cpp:
1811         (WebCore::SVGTextContentElement::SVGTextContentElement):
1812         (WebCore::SVGTextContentElement::synchronizeTextLength):
1813         (WebCore::SVGTextContentElement::textLengthAnimated):
1814         (WebCore::SVGTextContentElement::parseMappedAttribute):
1815         (WebCore::SVGTextContentElement::svgAttributeChanged):
1816         * svg/SVGTextContentElement.h:
1817         (WebCore::SVGTextContentElement::specifiedTextLength):
1818         * svg/SVGTextPathElement.cpp:
1819         (WebCore::SVGTextPathElement::svgAttributeChanged):
1820         * svg/SVGTextPositioningElement.cpp:
1821         (WebCore::SVGTextPositioningElement::svgAttributeChanged):
1822
1823 2011-04-13  Pavel Feldman  <pfeldman@google.com>
1824
1825         Reviewed by Yury Semikhatsky.
1826
1827         Web Inspector: requestDocument can result in race condition in DOMAgent.js
1828         https://bugs.webkit.org/show_bug.cgi?id=58415
1829
1830         * inspector/front-end/DOMAgent.js:
1831         (WebInspector.DOMAgent.prototype.requestDocument.onDocumentAvailable):
1832         (WebInspector.DOMAgent.prototype.requestDocument):
1833
1834 2011-04-12  Pavel Feldman  <pfeldman@google.com>
1835
1836         Reviewed by Yury Semikhatsky.
1837
1838         Web Inspector: another pass of protocol renames.
1839         https://bugs.webkit.org/show_bug.cgi?id=58340
1840
1841         * inspector/Inspector.json:
1842         * inspector/InspectorDOMAgent.cpp:
1843         (WebCore::InspectorDOMAgent::getDocument):
1844         (WebCore::InspectorDOMAgent::performSearch):
1845         (WebCore::InspectorDOMAgent::setSearchingForNode):
1846         * inspector/InspectorDOMAgent.h:
1847         * inspector/InspectorDebuggerAgent.cpp:
1848         (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
1849         * inspector/InspectorDebuggerAgent.h:
1850         * inspector/InspectorRuntimeAgent.cpp:
1851         (WebCore::InspectorRuntimeAgent::evaluate):
1852         * inspector/InspectorRuntimeAgent.h:
1853         * inspector/front-end/ElementsPanel.js:
1854         (WebInspector.ElementsPanel.prototype._setSearchingForNode):
1855         (WebInspector.ElementsPanel.prototype.setSearchingForNode):
1856
1857 2011-04-12  Luke Macpherson   <macpherson@chromium.org>
1858
1859         Reviewed by Dimitri Glazkov.
1860
1861         Implement remaining Background and Mask css properties in CSSStyleApplyProperty
1862         https://bugs.webkit.org/show_bug.cgi?id=58390
1863
1864         No new tests required as no functionality changed.
1865
1866         * css/CSSStyleApplyProperty.cpp:
1867         (WebCore::ApplyPropertyExpanding): Class to expand one property to 0-4 properties.
1868         (WebCore::ApplyPropertyExpandingSuppressValue): Expand properties but suppress applyValue.
1869
1870         (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
1871         (WebCore::CSSStyleSelector::applyProperty): Remove implementations that have been moved to CSSStyleApplyProperty.
1872
1873 2011-04-12  Sergey Glazunov  <serg.glazunov@gmail.com>
1874
1875         Reviewed by Dimitri Glazkov.
1876
1877         Element::setAttribute should check the namespace of an id attribute
1878         https://bugs.webkit.org/show_bug.cgi?id=58359
1879
1880         Test: fast/dom/id-attribute-with-namespace-crash.html
1881
1882         * dom/Element.cpp:
1883         (WebCore::Element::setAttribute):
1884
1885 2011-04-12  Mike Lawther  <mikelawther@chromium.org>
1886
1887         Reviewed by James Robinson.
1888
1889         Update boolean operators in RenderStyle to be compatible with check-webkit-style
1890         https://bugs.webkit.org/show_bug.cgi?id=58409
1891
1892         No new functionality, so no new tests.
1893
1894         * rendering/style/RenderStyle.cpp:
1895         (WebCore::RenderStyle::operator==):
1896         (WebCore::RenderStyle::inheritedNotEqual):
1897         (WebCore::positionedObjectMoved):
1898         (WebCore::RenderStyle::diff):
1899         (WebCore::RenderStyle::applyTransform):
1900         * rendering/style/RenderStyle.h:
1901         (WebCore::InheritedFlags::isOriginalDisplayInlineType):
1902
1903 2011-04-12  Luiz Agostini  <luiz.agostini@openbossa.org>
1904
1905         Reviewed by Andreas Kling.
1906
1907         [Qt] QNetworkReplyHandler refactoring: remove nested event loop.
1908         https://bugs.webkit.org/show_bug.cgi?id=58375
1909
1910         As QNAM now makes actual synchronous loads there is no need for a nested event loop
1911         in ResourceHandleQt.
1912
1913         Moving the call for QNetworkReplyWrapper::synchronousLoad from
1914         ResourceHandle::loadResourceSynchronously to QNetworkReplyHandler::start for the
1915         redirections to work in synchronous requests.
1916
1917         * platform/network/qt/QNetworkReplyHandler.cpp:
1918         (WebCore::QNetworkReplyHandler::start):
1919         * platform/network/qt/QNetworkReplyHandler.h:
1920         * platform/network/qt/ResourceHandleQt.cpp:
1921         (WebCore::WebCoreSynchronousLoader::WebCoreSynchronousLoader):
1922         (WebCore::WebCoreSynchronousLoader::didReceiveResponse):
1923         (WebCore::WebCoreSynchronousLoader::didReceiveData):
1924         (WebCore::WebCoreSynchronousLoader::didFinishLoading):
1925         (WebCore::WebCoreSynchronousLoader::didFail):
1926         (WebCore::ResourceHandle::loadResourceSynchronously):
1927
1928 2011-04-12  Vangelis Kokkevis  <vangelis@chromium.org>
1929
1930         Reviewed by James Robinson.
1931
1932         [chromium] Move the calculation of the layer's z coordinate to the
1933         right spot so that it can be picked up by its sublayers.
1934         https://bugs.webkit.org/show_bug.cgi?id=58397
1935
1936         Test: platform/chromium/compositing/child-layer-3d-sorting.html
1937
1938         * platform/graphics/chromium/LayerRendererChromium.cpp:
1939         (WebCore::LayerRendererChromium::updatePropertiesAndRenderSurfaces):
1940
1941 2011-04-12  Luiz Agostini  <luiz.agostini@openbossa.org>
1942
1943         Reviewed by Andreas Kling.
1944
1945         [Qt] QNetworkReplyHandler refactoring: signal queue
1946         https://bugs.webkit.org/show_bug.cgi?id=57075
1947
1948         The idea is to make all signals that come from the QNetworkReply to pass through a queue and to
1949         stop that queue when loading is deferred. This way almost all the deferred logic can be removed
1950         from QNetworkReplyHandler class and encapsulated in its own class.
1951
1952         To stop the queue during wrapper methods execution avoids stacking handler methods over wrapper
1953         methods. Because of this there is no chance for the wrapper to be destroyed inside one of its methods.
1954         This together with empting the queue at wrapper destruction time makes sure that the handler will
1955         not receive calls from a dead wrapper.
1956
1957         The new class is named QNetworkReplyHandlerCallQueue.
1958
1959         * platform/network/qt/QNetworkReplyHandler.cpp:
1960         (WebCore::QNetworkReplyHandlerCallQueue::QNetworkReplyHandlerCallQueue):
1961         (WebCore::QNetworkReplyHandlerCallQueue::push):
1962         (WebCore::QNetworkReplyHandlerCallQueue::lock):
1963         (WebCore::QNetworkReplyHandlerCallQueue::unlock):
1964         (WebCore::QNetworkReplyHandlerCallQueue::setDeferSignals):
1965         (WebCore::QNetworkReplyHandlerCallQueue::flush):
1966         (WebCore::QueueLocker::QueueLocker):
1967         (WebCore::QueueLocker::~QueueLocker):
1968         (WebCore::QNetworkReplyWrapper::QNetworkReplyWrapper):
1969         (WebCore::QNetworkReplyWrapper::~QNetworkReplyWrapper):
1970         (WebCore::QNetworkReplyWrapper::receiveMetaData):
1971         (WebCore::QNetworkReplyWrapper::readyRead):
1972         (WebCore::QNetworkReplyWrapper::didReceiveFinished):
1973         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
1974         (WebCore::QNetworkReplyHandler::resetState):
1975         (WebCore::QNetworkReplyHandler::release):
1976         (WebCore::QNetworkReplyHandler::finish):
1977         (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
1978         (WebCore::QNetworkReplyHandler::forwardData):
1979         (WebCore::QNetworkReplyHandler::start):
1980         (WebCore::QNetworkReplyHandler::synchronousLoad):
1981         * platform/network/qt/QNetworkReplyHandler.h:
1982         (WebCore::QNetworkReplyHandlerCallQueue::deferSignals):
1983         (WebCore::QNetworkReplyHandlerCallQueue::clear):
1984         (WebCore::QNetworkReplyWrapper::synchronousLoad):
1985         (WebCore::QNetworkReplyHandler::setLoadingDeferred):
1986         * platform/network/qt/ResourceHandleQt.cpp:
1987         (WebCore::ResourceHandle::loadResourceSynchronously):
1988
1989 2011-04-12  Kenichi Ishibashi  <bashi@chromium.org>
1990
1991         Reviewed by Kent Tamura.
1992
1993         Fix wrong calculation of HTMLFormElement::m_associatedElementsAfterIndex.
1994         https://bugs.webkit.org/show_bug.cgi?id=58247
1995
1996         - Increment m_associatedElementsAfterIndex when the form owner and an
1997         inserted form associated element have the same parent chain.
1998         - Always iterate over m_associatedElements to decrease indexes when a
1999         form associated element is removed. This is needed for a case that the
2000         form associated element is removed from the form element due to
2001         deleting the 'form' attribute. No behavioral change expected with this
2002         change.
2003
2004         Tests: fast/dom/HTMLFormElement/associated-elements-after-index-assertion-fail1.html
2005                fast/dom/HTMLFormElement/associated-elements-after-index-assertion-fail2.html
2006
2007         * html/HTMLFormElement.cpp:
2008         (WebCore::HTMLFormElement::formElementIndexWithFormAttribute):
2009         Incremet m_associatedElementsAfterIndex when compareDocumentPosition()
2010         returns DOCUMENT_POSITION_CONTAINED_BY.
2011         (WebCore::HTMLFormElement::removeFormElement):
2012         Always iterate m_associatedElements to adjust indexes.
2013
2014 2011-04-12  Diego Gonzalez  <diegohcg@webkit.org>
2015
2016         Reviewed by Kenneth Rohde Christiansen.
2017
2018         [Qt] Do not show scrollbars when use mobile theme
2019         https://bugs.webkit.org/show_bug.cgi?id=58380
2020
2021         * platform/qt/ScrollbarThemeQt.cpp:
2022         (WebCore::ScrollbarThemeQt::scrollbarThickness):
2023
2024 2011-04-12  Anantanarayanan G Iyengar  <ananta@chromium.org>
2025
2026         Reviewed by Alexey Proskuryakov.
2027
2028         The default backspace event handler should mark the event as handled if navigation succeeds.
2029         https://bugs.webkit.org/show_bug.cgi?id=58379
2030
2031         We should mark the event as handled only if we were able to successfully navigate backwards or forwards.
2032         These navigations can fail if there is now back/forward history. This can occur in cases like ChromeFrame
2033         where history is managed by an external browser like IE.
2034
2035         No new tests added as this scenario can occur when the history view is split across two browsers (WebKit and IE)
2036         It is non trivial to simulate this environment.
2037
2038         * page/EventHandler.cpp:
2039         (WebCore::EventHandler::defaultBackspaceEventHandler):
2040
2041 2011-04-12  Ryosuke Niwa  <rniwa@webkit.org>
2042
2043         Reviewed by Eric Seidel.
2044
2045         Make availableWidth and totalOverhangWidth in findNextLineBreak member variables of LineWidth
2046         https://bugs.webkit.org/show_bug.cgi?id=58400
2047
2048         Added m_availableWidth and m_overhangWidth to LineWidth this allows us to encapsulate m_overhangWidth.
2049
2050         * rendering/RenderBlock.h:
2051         * rendering/RenderBlockLineLayout.cpp:
2052         (WebCore::LineWidth::LineWidth):
2053         (WebCore::LineWidth::fitsOnLine): Added; returns true if current width + first argument <= availableWidth.
2054         (WebCore::LineWidth::availableWidth): Added.
2055         (WebCore::LineWidth::setAvailableWidth): Added; takes LineOffsets.
2056         (WebCore::LineWidth::applyOverhang): Added; obtains the overhang width from ruby run and inflates
2057         the available width.
2058         (WebCore::LineWidth::fitBelowFloats): Moved from RenderBlock.
2059         (WebCore::RenderBlock::findNextLineBreak): Uses LineWidth.
2060
2061 2011-04-12  Alexis Menard  <alexis.menard@openbossa.org>
2062
2063         Unreviewed warning fix.
2064
2065         MediaControlElements has been moved to html/shadow.
2066
2067         * WebCore.pro:
2068
2069 2011-04-12  Yael Aharon  <yael.aharon@nokia.com>
2070
2071         Reviewed by Eric Seidel.
2072
2073         Rename onEndChain and make it a static method.
2074         https://bugs.webkit.org/show_bug.cgi?id=58403
2075
2076         No new tests since this is refactoring only.
2077
2078         * rendering/InlineFlowBox.cpp:
2079         (WebCore::isLastChildForRenderer):
2080         (WebCore::InlineFlowBox::determineSpacingForFlowBoxes):
2081         * rendering/InlineFlowBox.h:
2082
2083 2011-04-12  Eric Carlson  <eric.carlson@apple.com>
2084
2085         Not reviewed, build fix.
2086
2087         Fix non-accelerated build after r83667.
2088
2089         * html/HTMLMediaElement.cpp:
2090         (WebCore::HTMLMediaElement::mediaPlayerFirstVideoFrameAvailable): Guard call to 
2091             mediaPlayerRenderingModeChanged with USE(ACCELERATED_COMPOSITING.
2092
2093 2011-04-12  Adrienne Walker  <enne@google.com>
2094
2095         Reviewed by James Robinson.
2096
2097         [chromium] TilingData mishandles very small texture sizes
2098         https://bugs.webkit.org/show_bug.cgi?id=58364
2099
2100         Use zero tiles when the texture size is too small for tiling.
2101
2102         * platform/graphics/gpu/TilingData.cpp:
2103         (WebCore::TilingData::TilingData):
2104         (WebCore::TilingData::setMaxTextureSize):
2105
2106 2011-04-12  Csaba Osztrogonác  <ossy@webkit.org>
2107
2108         Unreviewed, rolling out r83634 and r83659.
2109         http://trac.webkit.org/changeset/83634
2110         http://trac.webkit.org/changeset/83659
2111         https://bugs.webkit.org/show_bug.cgi?id=57075
2112
2113         It made 2 tests time out
2114
2115         * platform/network/qt/QNetworkReplyHandler.cpp:
2116         (WebCore::QNetworkReplyWrapper::QNetworkReplyWrapper):
2117         (WebCore::QNetworkReplyWrapper::~QNetworkReplyWrapper):
2118         (WebCore::QNetworkReplyWrapper::receiveMetaData):
2119         (WebCore::QNetworkReplyWrapper::didReceiveFinished):
2120         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
2121         (WebCore::QNetworkReplyHandler::resetState):
2122         (WebCore::QNetworkReplyHandler::setLoadingDeferred):
2123         (WebCore::QNetworkReplyHandler::resumeDeferredLoad):
2124         (WebCore::QNetworkReplyHandler::release):
2125         (WebCore::QNetworkReplyHandler::finish):
2126         (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
2127         (WebCore::QNetworkReplyHandler::forwardData):
2128         (WebCore::QNetworkReplyHandler::start):
2129         * platform/network/qt/QNetworkReplyHandler.h:
2130         * platform/network/qt/ResourceHandleQt.cpp:
2131         (WebCore::WebCoreSynchronousLoader::resourceResponse):
2132         (WebCore::WebCoreSynchronousLoader::resourceError):
2133         (WebCore::WebCoreSynchronousLoader::data):
2134         (WebCore::WebCoreSynchronousLoader::setReplyFinished):
2135         (WebCore::WebCoreSynchronousLoader::WebCoreSynchronousLoader):
2136         (WebCore::WebCoreSynchronousLoader::didReceiveResponse):
2137         (WebCore::WebCoreSynchronousLoader::didReceiveData):
2138         (WebCore::WebCoreSynchronousLoader::didFinishLoading):
2139         (WebCore::WebCoreSynchronousLoader::didFail):
2140         (WebCore::WebCoreSynchronousLoader::waitForCompletion):
2141         (WebCore::ResourceHandle::loadResourceSynchronously):
2142
2143 2011-04-12  Sam Weinig  <sam@webkit.org>
2144
2145         Reviewed by Simon Fraser.
2146
2147         Frames prevent scrolling containing page
2148         <rdar://problem/8990409>
2149         https://bugs.webkit.org/show_bug.cgi?id=58392
2150
2151         Also fixes:
2152         Should rubber-band on pages with no scrollbars
2153         <rdar://problem/9034280>
2154
2155         * page/FrameView.cpp:
2156         (WebCore::FrameView::FrameView):
2157         Make the main frame rubber-band horizontally and vertically always.
2158
2159         * platform/ScrollTypes.h:
2160         Add ScrollElasticity enum.
2161
2162         * platform/ScrollableArea.cpp:
2163         Default to no elasticity.
2164
2165         (WebCore::ScrollableArea::ScrollableArea):
2166         * platform/ScrollableArea.h:
2167         (WebCore::ScrollableArea::setVerticalScrollElasticity):
2168         (WebCore::ScrollableArea::verticalScrollElasticity):
2169         (WebCore::ScrollableArea::setHorizontalScrollElasticity):
2170         (WebCore::ScrollableArea::horizontalScrollElasticity):
2171         Add state for horizontal and vertical elasticity.
2172
2173         * platform/mac/ScrollAnimatorMac.mm:
2174         (WebCore::ScrollAnimatorMac::handleWheelEvent):
2175         Bail out of new scrolling behavior if we can't rubber-band. By bailing before
2176         accepting the wheel event, we allow the wheel event to be forwarded. We will
2177         need to refine this logic to allow subframe scrolling in the future.
2178
2179         (WebCore::ScrollAnimatorMac::allowsVerticalStretching):
2180         (WebCore::ScrollAnimatorMac::allowsHorizontalStretching):
2181         Switch stretching behavior based on the ScrollableArea's elasticity.
2182
2183 2011-04-12  Geoffrey Garen  <ggaren@apple.com>
2184
2185         Not reviewed.
2186
2187         Try to fix the Chromium build.
2188         
2189         Why have one URL when you can have two at twice the price?
2190
2191         * platform/KURL.h:
2192         (WebCore::KURL::KURL):
2193         (WebCore::KURL::isHashTableDeletedValue):
2194         * platform/KURLGoogle.cpp:
2195         (WebCore::KURLGooglePrivate::KURLGooglePrivate):
2196         * platform/KURLGooglePrivate.h: Added a GoogleURL path for KURL's hash
2197         table deleted value constructor.
2198
2199 2011-04-12  Stephanie Lewis  <slewis@apple.com>
2200
2201         Reviewed by Oliver Hunt.
2202         https://bugs.webkit.org/show_bug.cgi?id=58280
2203         Fix a layout test by correctly comparing enums, and not adding exceptions.
2204
2205         * bindings/js/SerializedScriptValue.cpp:
2206         (WebCore::SerializedScriptValue::create):
2207         (WebCore::SerializedScriptValue::deserialize):
2208         * bindings/js/SerializedScriptValue.h:
2209
2210 2011-04-12  Eric Carlson  <eric.carlson@apple.com>
2211
2212         Reviewed by Simon Fraser.
2213
2214         Apple movie trailers play only audio
2215         https://bugs.webkit.org/show_bug.cgi?id=58339
2216         <rdar://problem/9237606>
2217
2218         No new tests, covered by existing layout and manual tests.
2219
2220         * html/HTMLMediaElement.cpp:
2221         (WebCore::HTMLMediaElement::mediaPlayerEngineUpdated): Do the logging before calling any functions.
2222         (WebCore::HTMLMediaElement::mediaPlayerFirstVideoFrameAvailable): New, if still displaying the poster 
2223             change the display mode to Video and force a style recalc so the video layer gets hooked
2224             up the the render tree.
2225         * html/HTMLMediaElement.h: Define new display mode, PosterWaitingForVideo, to signal that we
2226             want to stop displaying the poster as soon as the first frame of video is available.
2227
2228         * html/HTMLVideoElement.cpp:
2229         (WebCore::HTMLVideoElement::setDisplayMode): Change display mode to PosterWaitingForVideo when
2230             we want to display Video but the media engines doesn't have the first frame yet.
2231         * html/HTMLVideoElement.h:
2232         (WebCore::HTMLVideoElement::shouldDisplayPosterImage): Update to return true when display mode
2233             is PosterWaitingForVideo.
2234
2235         * manual-tests/media-elements/video-replaces-poster.html: Clean up bit-rot from patch changes.
2236
2237         * platform/graphics/MediaPlayer.cpp:
2238         (WebCore::MediaPlayer::firstVideoFrameAvailable): New, passthrough from media engien to element.
2239         * platform/graphics/MediaPlayer.h:
2240         (WebCore::MediaPlayerClient::mediaPlayerFirstVideoFrameAvailable):
2241
2242         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
2243         (WebCore::MediaPlayerPrivateAVFoundation::MediaPlayerPrivateAVFoundation): Initialize 
2244             m_haveReportedFirstVideoFrame and m_playWhenFramesAvailable.
2245         (WebCore::MediaPlayerPrivateAVFoundation::play): Don't actually start playback until the first
2246             frame of video has loaded, or audio will begin to play before we can show video.
2247         (WebCore::MediaPlayerPrivateAVFoundation::pause): Clear m_playWhenFramesAvailable.
2248         (WebCore::MediaPlayerPrivateAVFoundation::updateStates): When first frame of video is
2249             available, inform elment and begin playback if it was previousl requested.
2250         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
2251
2252         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationObjC.h:
2253         * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationObjC.mm:
2254         (WebCore::MediaPlayerPrivateAVFoundationObjC::destroyContextVideoRenderer): Correct logging.
2255         (WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoLayer): Ditto.
2256         (WebCore::MediaPlayerPrivateAVFoundationObjC::platformPlay): Renamed from play.
2257         (WebCore::MediaPlayerPrivateAVFoundationObjC::platformPause): Rename from pause.
2258
2259 2011-04-12  Jian Li  <jianli@chromium.org>
2260
2261         Unreviewed, rolling out r83649.
2262         http://trac.webkit.org/changeset/83649
2263         https://bugs.webkit.org/show_bug.cgi?id=57563
2264
2265         This patch causes compiling errors for chromium
2266
2267         * platform/graphics/chromium/FontChromiumWin.cpp:
2268         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::initializeForGDI):
2269         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::~TransparencyAwareFontPainter):
2270         (WebCore::Font::drawComplexText):
2271         * platform/graphics/chromium/ImageBufferData.h:
2272         * platform/graphics/chromium/LayerChromium.h:
2273         * platform/graphics/chromium/LayerRendererChromium.h:
2274         * platform/graphics/chromium/PlatformCanvas.cpp:
2275         (WebCore::PlatformCanvas::resize):
2276         * platform/graphics/chromium/PlatformCanvas.h:
2277         * platform/graphics/chromium/TransparencyWin.cpp:
2278         (WebCore::TransparencyWin::compositeTextComposite):
2279         (WebCore::TransparencyWin::makeLayerOpaque):
2280         * platform/graphics/skia/ImageBufferSkia.cpp:
2281         (WebCore::ImageBuffer::ImageBuffer):
2282         * platform/graphics/skia/ImageSkia.cpp:
2283         (WebCore::paintSkBitmap):
2284         (WebCore::Image::drawPattern):
2285         * platform/graphics/skia/PlatformContextSkia.cpp:
2286         (WebCore::PlatformContextSkia::PlatformContextSkia):
2287         (WebCore::PlatformContextSkia::setCanvas):
2288         (WebCore::PlatformContextSkia::isPrinting):
2289         (WebCore::PlatformContextSkia::isNativeFontRenderingAllowed):
2290         * platform/graphics/skia/PlatformContextSkia.h:
2291         (WebCore::PlatformContextSkia::canvas):
2292
2293 2011-04-12  Enrica Casucci  <enrica@apple.com>
2294
2295         Reviewed by Alexey Proskuryakov.
2296
2297         Implement non-activating clicks to allow dragging out of a background window.
2298         https://bugs.webkit.org/show_bug.cgi?id=55053
2299         <rdar://problem/9042197>
2300
2301         * WebCore.exp.in: Added new exported method.
2302
2303 2011-04-12  Geoffrey Garen  <ggaren@apple.com>
2304
2305         Reviewed by Geoffrey Garen.
2306
2307         Cleaned up hash traits, and added hash traits for handles
2308         https://bugs.webkit.org/show_bug.cgi?id=58381
2309
2310         * dom/QualifiedName.h: Use new SimpleClassHashTraits to avoid duplication.
2311
2312         * platform/KURL.h:
2313         (WebCore::KURL::KURL):
2314         (WebCore::KURL::isHashTableDeletedValue): Added explicit hash table
2315         deleted value constructor, to be more explicit and enable use of
2316         SimpleClassHashTraits.
2317
2318         * platform/KURLHash.h: Use new SimpleClassHashTraits to avoid duplication.
2319
2320         * platform/graphics/FontCache.cpp: Ditto.
2321         * platform/network/ProtectionSpaceHash.h: Ditto.
2322         * svg/properties/SVGAnimatedPropertyDescription.h: Ditto.
2323
2324 2011-04-12  Luiz Agostini  <luiz.agostini@openbossa.org>
2325
2326         Reviewed by Andreas Kling.
2327
2328         [Qt] QNetworkReplyHandler refactoring: remove nested event loop.
2329         https://bugs.webkit.org/show_bug.cgi?id=58375
2330
2331         As QNAM now makes actual synchronous loads there is no need for a nested event loop
2332         in ResourceHandleQt.
2333
2334         Moving the call for QNetworkReplyWrapper::synchronousLoad from
2335         ResourceHandle::loadResourceSynchronously to QNetworkReplyHandler::start for the
2336         redirections to work in synchronous requests.
2337
2338         * platform/network/qt/QNetworkReplyHandler.cpp:
2339         (WebCore::QNetworkReplyHandler::start):
2340         * platform/network/qt/QNetworkReplyHandler.h:
2341         * platform/network/qt/ResourceHandleQt.cpp:
2342         (WebCore::WebCoreSynchronousLoader::WebCoreSynchronousLoader):
2343         (WebCore::WebCoreSynchronousLoader::didReceiveResponse):
2344         (WebCore::WebCoreSynchronousLoader::didReceiveData):
2345         (WebCore::WebCoreSynchronousLoader::didFinishLoading):
2346         (WebCore::WebCoreSynchronousLoader::didFail):
2347         (WebCore::ResourceHandle::loadResourceSynchronously):
2348
2349 2011-04-11  Jer Noble  <jer.noble@apple.com>
2350
2351         Reviewed by Simon Fraser.
2352
2353         REGRESSION: Vimeo fullscreen video displays incorrectly
2354         https://bugs.webkit.org/show_bug.cgi?id=58291
2355
2356         Set the RenderFullScreen's zIndex to the max.  And make sure to override
2357         a video element's specified width and height by making its full screen rules
2358         important.  Also, always show the controls when a media element is in full
2359         screen mode.
2360
2361         Test: fullscreen/video-specified-size.html
2362         Test: fullscreen/full-screen-zIndex.html
2363
2364         * css/fullscreen.css:
2365         (video:-webkit-full-screen): 
2366         * html/HTMLMediaElement.cpp:
2367         (WebCore::HTMLMediaElement::controls): Always show controls in full screen mode.
2368         (WebCore::HTMLMediaElement::preDispatchEventHandler): Added. Handle the fullscreen
2369             change event and hide or show the controls accordingly.
2370         * html/HTMLMediaElement.h:
2371         * rendering/RenderFullScreen.cpp:
2372         (RenderFullScreen::createFullScreenStyle): Set the zIndex to INT_MAX and use a 
2373             vertical flexbox instead of a horizontal one.
2374
2375 2011-04-12  Chris Marrin  <cmarrin@apple.com>
2376
2377         Reviewed by Simon Fraser.
2378
2379         Page tears and stutters in WebKit2 when page is > 2048 pixels wide
2380         https://bugs.webkit.org/show_bug.cgi?id=58330
2381
2382         Added API to GraphicsLayer to disable switching to tiled layers. This is 
2383         set in the nonCompositedContentLayer in WK2, causing that layer to never
2384         switch to tiles and avoiding the asynchronous update of the content during
2385         scroll.
2386
2387         * platform/graphics/ca/GraphicsLayerCA.cpp:
2388             Implement setAllowTiledLayer() to simulate a SizeChanged action to 
2389             properly switch between tiled and untiled layer.
2390         * platform/graphics/ca/GraphicsLayerCA.h:
2391
2392 2011-04-12  Alok Priyadarshi  <alokp@chromium.org>
2393
2394         Reviewed by James Robinson.
2395
2396         Remove dependency on chromium skia::PlatformCanvas
2397         https://bugs.webkit.org/show_bug.cgi?id=57563
2398
2399         This patch does not change any functionality, just the type of object skia::PlatformCanvas -> SkCanvas.
2400         The object is still being created by a factory method skia::CreateBitmapCanvas defined in Chromium.
2401         We will eventually define an API that every port using skia will define.
2402
2403         * platform/graphics/chromium/FontChromiumWin.cpp:
2404         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::initializeForGDI):
2405         (WebCore::TransparencyAwareFontPainter::TransparencyAwareFontPainter::~TransparencyAwareFontPainter):
2406         (WebCore::Font::drawComplexText):
2407         * platform/graphics/chromium/ImageBufferData.h:
2408         * platform/graphics/chromium/LayerChromium.h:
2409         * platform/graphics/chromium/LayerRendererChromium.h:
2410         * platform/graphics/chromium/PlatformCanvas.cpp:
2411         (WebCore::PlatformCanvas::resize):
2412         * platform/graphics/chromium/PlatformCanvas.h:
2413         * platform/graphics/chromium/TransparencyWin.cpp:
2414         (WebCore::TransparencyWin::compositeTextComposite):
2415         (WebCore::TransparencyWin::makeLayerOpaque):
2416         * platform/graphics/skia/ImageBufferSkia.cpp:
2417         (WebCore::ImageBuffer::ImageBuffer):
2418         * platform/graphics/skia/ImageSkia.cpp:
2419         (WebCore::paintSkBitmap):
2420         (WebCore::Image::drawPattern):
2421         * platform/graphics/skia/PlatformContextSkia.cpp:
2422         (WebCore::PlatformContextSkia::PlatformContextSkia):
2423         (WebCore::PlatformContextSkia::setCanvas):
2424         (WebCore::PlatformContextSkia::isNativeFontRenderingAllowed):
2425         * platform/graphics/skia/PlatformContextSkia.h:
2426         (WebCore::PlatformContextSkia::canvas):
2427         (WebCore::PlatformContextSkia::printing):
2428         (WebCore::PlatformContextSkia::setPrinting):
2429
2430 2011-04-11  Stephanie Lewis  <slewis@apple.com>
2431
2432         Reviewed by Oliver Hunt.
2433
2434         https://bugs.webkit.org/show_bug.cgi?id=58280
2435         <rdar://problem/9252824> javascript in an inconsistent state due to serialization returning an un-handled exception
2436         Currently serialization and deserialization can throw javascript exceptions.  Since SerializedScriptValue is called in
2437         several places that do not always involve direct calls into javascript have the functions return an error code and the callers
2438         decide whether or not to throw exceptions.
2439
2440         Don't allow SerializedScriptValue to attempt to serialize objects that inherit from JSNavigator.h.  Walking that object creates
2441         additional objects which eventually causes serialization to end up throwing a stack overflow error.  Instead fail immediately.
2442
2443         Untangle header includes.  SerializedScriptValue was inheriting ScriptValue.h, but not using it.  Since ScriptValue depends on
2444         SerializedScriptValue this could lead to a circular header dependency.
2445
2446         No change in functionality, covered by current tests
2447
2448         * WebCore.exp.in:
2449         * bindings/js/JSMessageEventCustom.cpp:
2450         (WebCore::JSMessageEvent::initMessageEvent):
2451         * bindings/js/ScriptValue.cpp:
2452         (WebCore::ScriptValue::serialize):
2453         (WebCore::ScriptValue::deserialize):
2454         * bindings/js/ScriptValue.h:
2455         * bindings/js/SerializedScriptValue.cpp:
2456         (WebCore::CloneSerializer::serialize):
2457         (WebCore::CloneSerializer::dumpIfTerminal):
2458         (WebCore::CloneDeserializer::deserialize):
2459         (WebCore::SerializedScriptValue::create):
2460         (WebCore::SerializedScriptValue::deserialize):
2461         (WebCore::SerializedScriptValue::maybeThrowExceptionIfSerializationFailed):
2462         (WebCore::SerializedScriptValue::serializationDidCompleteSuccessfully):
2463         * bindings/js/SerializedScriptValue.h:
2464
2465         * bindings/js/JSWorkerContextBase.cpp: header include fix
2466         * loader/FrameLoader.h: header include fix
2467         * page/Frame.cpp: header include fix
2468
2469 2011-03-28  Adam Barth  <abarth@webkit.org>
2470
2471         Reviewed by Kenneth Russell.
2472
2473         Move libtess from WebCore/thirdparty to ThirdParty
2474         https://bugs.webkit.org/show_bug.cgi?id=57288
2475
2476         * WebCore.gyp/WebCore.gyp:
2477             - Add libtess as a legit dependency.
2478         * WebCore.gypi:
2479             - Remove libtess files from the gypi.
2480         * thirdparty/glu: Removed.
2481
2482 2011-04-12  Ryosuke Niwa  <rniwa@webkit.org>
2483
2484         Reviewed by David Hyatt.
2485
2486         Bundle w and tmpW in findNextLineBreak together as a class
2487         https://bugs.webkit.org/show_bug.cgi?id=58362
2488
2489         Renamed w, tempW, and width in findNextLineBreak to committedWidth, uncommittedWidth,
2490         and availableWidth respectively. Also bundled committedWidth and uncommittedWith as a class
2491         named LineWidth.
2492
2493         * rendering/RenderBlockLineLayout.cpp:
2494         (WebCore::LineWidth::LineWidth): Added.
2495         (WebCore::LineWidth::currentWidth): Added; returns the sum of committed and uncommitted width.
2496         (WebCore::LineWidth::uncommittedWidth): Added.
2497         (WebCore::LineWidth::committedWidth): Added.
2498         (WebCore::LineWidth::addUncommittedWidth): Added; adds the specified width to the uncommitted width.
2499         (WebCore::LineWidth::commit): Added; commits the current width and clears the uncommitted width.
2500         (WebCore::RenderBlock::findNextLineBreak): Uses LineWidth.
2501
2502 2011-04-12  Yael Aharon  <yael.aharon@nokia.com>
2503
2504         Reviewed by Eric Seidel.
2505
2506         REGRESSION(r82419): extra border in t0805-c5519-ibrdr-r-00-a.html
2507         https://bugs.webkit.org/show_bug.cgi?id=57459
2508
2509         Slightly change the way we decide if a InlineFlowBox is the last box for its renderer.
2510         We include the border in that box under these conditions:
2511         (1) The next line was not created, or it is constructed. We check the previous line for rtl.
2512         (2) The logicallyLastRun is not a descendant of this renderer.
2513         (3) The logicallyLastRun is a descendant of this renderer, but it is the last child of this renderer and it does not wrap to the next line.
2514         I added the tests from bug 47210, because now the draw the borders correctly.
2515
2516         Tests: fast/borders/bidi-002.html
2517                fast/borders/bidi-004.html
2518                fast/borders/bidi-009a.html
2519
2520         * rendering/InlineFlowBox.cpp:
2521         (WebCore::InlineFlowBox::onEndChain):
2522         (WebCore::isAnsectorAndWithinBlock):
2523         (WebCore::InlineFlowBox::determineSpacingForFlowBoxes):
2524         * rendering/InlineFlowBox.h:
2525         * rendering/RenderBlock.h:
2526         * rendering/RenderBlockLineLayout.cpp:
2527         (WebCore::RenderBlock::constructLine):
2528         (WebCore::RenderBlock::layoutInlineChildren):
2529
2530 2011-04-12  Geoffrey Garen  <ggaren@apple.com>
2531
2532         Reviewed by Sam Weinig.
2533
2534         Cleaned up some Vector traits, and added missing Vector traits for handles
2535         https://bugs.webkit.org/show_bug.cgi?id=58372
2536
2537         * platform/graphics/BitmapImage.h: Added a FIXME because the current
2538         Vector traits for FrameData are logically incorrect, but I couldn't find
2539         a place where this currently results in bad behavior, and it's not
2540         immediately obvious what the right solution is.
2541
2542 2011-04-12  Dimitri Glazkov  <dglazkov@chromium.org>
2543
2544         Reviewed by Eric Seidel.
2545
2546         Move MediaControlElements to html/shadow.
2547         https://bugs.webkit.org/show_bug.cgi?id=58347
2548
2549         Mechanical move of the files.
2550
2551         * Android.mk: Updated the build file.
2552         * CMakeLists.txt: Ditto.
2553         * GNUmakefile.list.am: Ditto.
2554         * WebCore.gypi: Ditto.
2555         * WebCore.pro: Ditto.
2556         * WebCore.vcproj/WebCore.vcproj: Ditto.
2557         * WebCore.xcodeproj/project.pbxproj: Ditto, also ran sort-XCode-project-files.
2558         * html/shadow/MediaControlElements.cpp: Copied from Source/WebCore/rendering/MediaControlElements.cpp.
2559         (WebCore::MediaControlFullscreenButtonElement::defaultEventHandler):
2560         * html/shadow/MediaControlElements.h: Copied from Source/WebCore/rendering/MediaControlElements.h.
2561         * rendering/MediaControlElements.cpp: Removed.
2562         * rendering/MediaControlElements.h: Removed.
2563         * rendering/RenderingAllInOne.cpp: Removed the files that were moved.
2564
2565 2011-04-12  Luiz Agostini  <luiz.agostini@openbossa.org>
2566
2567         Reviewed by Andreas Kling.
2568
2569         [Qt] QNetworkReplyHandler refactoring: signal queue
2570         https://bugs.webkit.org/show_bug.cgi?id=57075
2571
2572         The idea is to make all signals that come from the QNetworkReply to pass through a queue and to
2573         stop that queue when loading is deferred. This way almost all the deferred logic can be removed
2574         from QNetworkReplyHandler class and encapsulated in its own class.
2575
2576         To stop the queue during wrapper methods execution avoids stacking handler methods over wrapper
2577         methods. Because of this there is no chance for the wrapper to be destroyed inside one of its methods.
2578         This together with empting the queue at wrapper destruction time makes sure that the handler will
2579         not receive calls from a dead wrapper.
2580
2581         The new class is named QNetworkReplyHandlerCallQueue.
2582
2583         * platform/network/qt/QNetworkReplyHandler.cpp:
2584         (WebCore::QNetworkReplyHandlerCallQueue::QNetworkReplyHandlerCallQueue):
2585         (WebCore::QNetworkReplyHandlerCallQueue::push):
2586         (WebCore::QNetworkReplyHandlerCallQueue::lock):
2587         (WebCore::QNetworkReplyHandlerCallQueue::unlock):
2588         (WebCore::QNetworkReplyHandlerCallQueue::setDeferSignals):
2589         (WebCore::QueueLocker::QueueLocker):
2590         (WebCore::QueueLocker::~QueueLocker):
2591         (WebCore::QNetworkReplyWrapper::QNetworkReplyWrapper):
2592         (WebCore::QNetworkReplyWrapper::~QNetworkReplyWrapper):
2593         (WebCore::QNetworkReplyWrapper::receiveMetaData):
2594         (WebCore::QNetworkReplyWrapper::readyRead):
2595         (WebCore::QNetworkReplyWrapper::didReceiveFinished):
2596         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
2597         (WebCore::QNetworkReplyHandler::resetState):
2598         (WebCore::QNetworkReplyHandler::release):
2599         (WebCore::QNetworkReplyHandler::finish):
2600         (WebCore::QNetworkReplyHandler::sendResponseIfNeeded):
2601         (WebCore::QNetworkReplyHandler::forwardData):
2602         (WebCore::QNetworkReplyHandler::start):
2603         (WebCore::QNetworkReplyHandler::synchronousLoad):
2604         * platform/network/qt/QNetworkReplyHandler.h:
2605         (WebCore::QNetworkReplyHandlerCallQueue::deferSignals):
2606         (WebCore::QNetworkReplyHandlerCallQueue::clear):
2607         (WebCore::QNetworkReplyWrapper::synchronousLoad):
2608         (WebCore::QNetworkReplyHandler::setLoadingDeferred):
2609         * platform/network/qt/ResourceHandleQt.cpp:
2610         (WebCore::ResourceHandle::loadResourceSynchronously):
2611
2612 2011-04-12  David Hyatt  <hyatt@apple.com>
2613
2614         Reviewed by Dan Bernstein.
2615
2616         https://bugs.webkit.org/show_bug.cgi?id=58176
2617         
2618         Inline replaced elements following positioned elements on lines are not rendered. Make sure the
2619         logic for skipping run construction in appendRunsForObject matches the new logic that I added
2620         to findNextLineBreak. If they don't match up, you risk confusing the run construction code and
2621         causing it to not make runs for objects that follow the positioned object on the line.
2622
2623         Added fast/inline/positioned-object-between-replaced-elements.html
2624         
2625         * rendering/RenderBlockLineLayout.cpp:
2626         (WebCore::RenderBlock::appendRunsForObject):
2627
2628 2011-04-12  Alice Liu  <alice.liu@apple.com>
2629
2630         Reviewed by Sam Weinig.
2631
2632         https://bugs.webkit.org/show_bug.cgi?id=58292
2633         Provide new setting to allow site icon loading despite disabling automatic image loading in general.
2634
2635         Test: http/tests/misc/favicon-loads-with-icon-loading-override.html
2636
2637         * WebCore.exp.in: Added export symbol
2638         * loader/FrameLoader.cpp:
2639         (WebCore::FrameLoader::startIconLoader): Check new setting before deciding that site icon images shouldn't be loaded.
2640         * page/Settings.cpp:
2641         (WebCore::Settings::Settings): Add initializer for new setting
2642         (WebCore::Settings::setLoadsSiteIconsIgnoringImageLoadingSetting): Add setter for new setting.
2643         * page/Settings.h: Explain nuances regarding loadsImagesAutomatically setting.
2644         (WebCore::Settings::loadsSiteIconsIgnoringImageLoadingSetting): Added getter.
2645
2646 2011-04-12  Ryosuke Niwa  <rniwa@webkit.org>
2647
2648         Reviewed by Eric Seidel.
2649
2650         Move StyleChange and other global functions from ApplyStyleCommand to EditingStyle
2651         https://bugs.webkit.org/show_bug.cgi?id=55974
2652
2653         Moved StyleChange, getIdentifierValue, and legacyFontSizeFromCSSValue from ApplyStyleCommand
2654         to EditingStyle. Also moved reconcileTextDecorationProperties, getIdentifierValue,
2655         setTextDecorationProperty, isCSSValueLength, legacyFontSizeFromCSSValue, extractTextStyles,
2656         diffTextDecorations, fontWeightIsBold, getTextAlignment, and getPropertiesNotIn.
2657
2658         Because of this move, getPropertiesNotIn is no longer visible outside of EditingStyle.cpp
2659
2660         * editing/ApplyStyleCommand.cpp:
2661         * editing/ApplyStyleCommand.h:
2662         * editing/EditingStyle.cpp:
2663         (WebCore::reconcileTextDecorationProperties):
2664         (WebCore::StyleChange::StyleChange):
2665         (WebCore::setTextDecorationProperty):
2666         (WebCore::getRGBAFontColor):
2667         (WebCore::StyleChange::extractTextStyles):
2668         (WebCore::diffTextDecorations):
2669         (WebCore::fontWeightIsBold):
2670         (WebCore::getTextAlignment):
2671         (WebCore::getPropertiesNotIn):
2672         (WebCore::getIdentifierValue):
2673         (WebCore::isCSSValueLength):
2674         (WebCore::legacyFontSizeFromCSSValue):
2675         * editing/EditingStyle.h:
2676         (WebCore::StyleChange::cssStyle):
2677         (WebCore::StyleChange::applyBold):
2678         (WebCore::StyleChange::applyItalic):
2679         (WebCore::StyleChange::applyUnderline):
2680         (WebCore::StyleChange::applyLineThrough):
2681         (WebCore::StyleChange::applySubscript):
2682         (WebCore::StyleChange::applySuperscript):
2683         (WebCore::StyleChange::applyFontColor):
2684         (WebCore::StyleChange::applyFontFace):
2685         (WebCore::StyleChange::applyFontSize):
2686         (WebCore::StyleChange::fontColor):
2687         (WebCore::StyleChange::fontFace):
2688         (WebCore::StyleChange::fontSize):
2689         (WebCore::StyleChange::operator==):
2690         (WebCore::StyleChange::operator!=):
2691
2692 2011-04-12  Diego Gonzalez  <diegohcg@webkit.org>
2693
2694         Reviewed by Kenneth Rohde Christiansen.
2695
2696         [Qt] Better padding for inputs and comboxes in mobile theme
2697         https://bugs.webkit.org/show_bug.cgi?id=58248
2698
2699         * platform/qt/RenderThemeQt.cpp:
2700         (WebCore::RenderThemeQt::setButtonPadding):
2701         (WebCore::RenderThemeQt::adjustTextFieldStyle):
2702         (WebCore::RenderThemeQt::paintTextField):
2703         (WebCore::RenderThemeQt::adjustMenuListStyle):
2704
2705 2011-04-11  Abhishek Arya  <inferno@chromium.org>
2706
2707         Reviewed by Dave Hyatt.
2708
2709         Replace insertChildNode with addChild in handleRunIn's reparenting
2710         of inlineRunIn to currBlock.
2711         https://bugs.webkit.org/show_bug.cgi?id=58228
2712
2713         Use addChild instead of insertChildNode since it handles 
2714         correct placement of the children, esp where we cannot insert
2715         anything before the first child. e.g. details tag requires that its
2716         first child be a summary child and won't be able to remove child if
2717         that is not the case.
2718
2719         Test: fast/runin/runin-reparent-crash.html
2720
2721         * rendering/RenderBlock.cpp:
2722         (WebCore::RenderBlock::handleRunInChild):
2723
2724 2011-04-12  Chris Fleizach  <cfleizach@apple.com>
2725
2726         Unreviewed. Fixing Leopard build.
2727
2728         REGRESSION: WK2: misspelled AX attributes no longer returned from text fields
2729         https://bugs.webkit.org/show_bug.cgi?id=58304
2730
2731         checkTextOfParagraph is not available on Leopard. That code needs to be conditionalized with USE(UNIFIED_TEXT_CHECKING).
2732
2733         * accessibility/mac/AccessibilityObjectWrapper.mm:
2734         (AXAttributeStringSetSpelling):
2735
2736 2011-04-12  Mario Sanchez Prada  <msanchez@igalia.com>
2737
2738         Unreviewed. Added missing files to GNUmakefile.list.am.
2739
2740         * GNUmakefile.list.am: Added IDBLevelDBBackingStore.[h|cpp].
2741
2742 2011-04-12  Cris Neckar  <cdn@chromium.org>
2743
2744         Reviewed by Nikolas Zimmermann.
2745
2746         Add handling for non-svg inline text boxes in text box lists.
2747         https://bugs.webkit.org/show_bug.cgi?id=57933
2748
2749         Test: svg/text/svg-rtl-text-crash.html
2750
2751         * rendering/svg/RenderSVGInlineText.cpp:
2752         (WebCore::RenderSVGInlineText::positionForPoint):
2753         * rendering/svg/SVGInlineFlowBox.cpp:
2754         (WebCore::SVGInlineFlowBox::computeTextMatchMarkerRectForRenderer):
2755         * rendering/svg/SVGRenderTreeAsText.cpp:
2756         (WebCore::writeSVGInlineTextBoxes):
2757         * rendering/svg/SVGRootInlineBox.cpp:
2758         (WebCore::SVGRootInlineBox::closestLeafChildForPosition):
2759         (WebCore::reverseInlineBoxRangeAndValueListsIfNeeded):
2760         * rendering/svg/SVGTextQuery.cpp:
2761         (WebCore::SVGTextQuery::collectTextBoxesInFlowBox):
2762
2763 2011-04-12  Mario Sanchez Prada  <msanchez@igalia.com>
2764
2765         Reviewed by Chris Fleizach.
2766
2767         [GTK] Expose menu items and menus as children of a menu bar
2768         https://bugs.webkit.org/show_bug.cgi?id=56659
2769
2770         Ensure menu items get exposed when they're children of menu bars.
2771
2772         * accessibility/AccessibilityRenderObject.cpp:
2773         (WebCore::AccessibilityRenderObject::determineAriaRoleAttribute):
2774         Consider menu bars as potential parent objects for menu items.
2775
2776 2011-04-12  Pavel Feldman  <pfeldman@google.com>
2777
2778         Reviewed by Yury Semikhatsky.
2779
2780         Web Inspector: remove scriptWorldType from the protocol.
2781         https://bugs.webkit.org/show_bug.cgi?id=58324
2782
2783         * inspector/Inspector.json:
2784         * inspector/InspectorDebuggerAgent.cpp:
2785         (WebCore::InspectorDebuggerAgent::didParseSource):
2786         * inspector/ScriptDebugListener.h:
2787         (WebCore::ScriptDebugListener::~ScriptDebugListener):
2788         * inspector/front-end/DebuggerModel.js:
2789         (WebInspector.DebuggerModel.prototype._parsedScriptSource):
2790         (WebInspector.DebuggerDispatcher.prototype.scriptParsed):
2791         * inspector/front-end/Script.js:
2792         (WebInspector.Script):
2793         * inspector/front-end/ScriptsPanel.js:
2794         * inspector/front-end/SourceFile.js:
2795         (WebInspector.SourceFile):
2796
2797 2011-04-11  Dimitri Glazkov  <dglazkov@chromium.org>
2798
2799         Reviewed by Eric Carlson.
2800
2801         Should MediaControls::changedNetworkState fiddle with Fullscreen controls?
2802         https://bugs.webkit.org/show_bug.cgi?id=58163
2803
2804         Covered by existing tests and manual-tests/media-controls.html.
2805
2806         * html/shadow/MediaControls.cpp:
2807         (WebCore::MediaControls::reset): Moved fullscreen showing/hiding here.
2808         (WebCore::MediaControls::changedNetworkState): ... from here.
2809
2810 2011-04-12  Ilya Tikhonovsky  <loislo@chromium.org>
2811
2812         Reviewed by Pavel Feldman.
2813
2814         Web Inspector: remove unnecessary method InspectorAgent.didEvaluateForTestInFrontend.
2815         https://bugs.webkit.org/show_bug.cgi?id=58335
2816
2817         It was the method for Inspector layout tests.
2818         We can use RuntimeAgent.evaluate instead.
2819
2820         * inspector/Inspector.json:
2821         * inspector/InspectorAgent.cpp:
2822         * inspector/InspectorAgent.h:
2823         * inspector/InspectorController.cpp:
2824         (WebCore::InspectorController::connectFrontend):
2825         * inspector/front-end/TestController.js:
2826         (WebInspector.TestController.prototype.notifyDone):
2827
2828 2011-04-12  Philippe Normand  <pnormand@igalia.com>
2829
2830         Reviewed by Martin Robinson.
2831
2832         [GStreamer] some public callbacks remain
2833         https://bugs.webkit.org/show_bug.cgi?id=58307
2834
2835         Cleanup of the player public/private APIs. Moving the GstMessage
2836         handling code inside of the player allowed some APIs to move to
2837         the private scope of the class.
2838
2839         No new tests, this patch is a cleanup and should not affect
2840         current tests coverage.
2841
2842         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2843         (WebCore::mediaPlayerPrivateMessageCallback):
2844         (WebCore::mediaPlayerPrivateSourceChangedCallback):
2845         (WebCore::mediaPlayerPrivateVolumeChangedCallback):
2846         (WebCore::mediaPlayerPrivateMuteChangedCallback):
2847         (WebCore::mediaPlayerPrivateRepaintCallback):
2848         (WebCore::MediaPlayerPrivateGStreamer::playbackPosition):
2849         (WebCore::MediaPlayerPrivateGStreamer::currentTime):
2850         (WebCore::MediaPlayerPrivateGStreamer::seek):
2851         (WebCore::MediaPlayerPrivateGStreamer::setRate):
2852         (WebCore::MediaPlayerPrivateGStreamer::handleMessage):
2853         (WebCore::MediaPlayerPrivateGStreamer::sourceChanged):
2854         (WebCore::MediaPlayerPrivateGStreamer::triggerRepaint):
2855         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
2856
2857 2011-04-12  Philippe Normand  <pnormand@igalia.com>
2858
2859         Reviewed by Martin Robinson.
2860
2861         [GStreamer] advertize HTTP Live Streaming mime-type
2862         https://bugs.webkit.org/show_bug.cgi?id=58318
2863
2864         Register the hls mime-type in the internal cache if found in the
2865         typefind factories.
2866
2867         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
2868         (WebCore::mimeTypeCache):
2869
2870 2011-04-11  MORITA Hajime  <morrita@google.com>
2871
2872         Reviewed by Ryosuke Niwa.
2873         
2874         RenderIndicator and ShadowBlockElement are no longer used.
2875         https://bugs.webkit.org/show_bug.cgi?id=58277
2876
2877         Removed RenderIndicator and ShadowBlockElement.
2878         
2879         No new tests. Just removed unused code.
2880
2881         * CMakeLists.txt:
2882         * GNUmakefile.list.am:
2883         * WebCore.gypi:
2884         * WebCore.pro:
2885         * WebCore.vcproj/WebCore.vcproj:
2886         * WebCore.xcodeproj/project.pbxproj:
2887         * rendering/RenderIndicator.cpp: Removed.
2888         * rendering/RenderIndicator.h: Removed.
2889         * rendering/RenderMeter.h:
2890         * rendering/RenderingAllInOne.cpp:
2891         * rendering/ShadowElement.cpp:
2892         * rendering/ShadowElement.h:
2893
2894 2011-04-12  Csaba Osztrogonác  <ossy@webkit.org>
2895
2896         Reviewed by Benjamin Poulain.
2897
2898         fast/css/dashboard-regions-attr-crash.html asserts
2899         https://bugs.webkit.org/show_bug.cgi?id=58233
2900
2901         Move DASHBOARD_SUPPORT feature detection from features.pri to CodeGenerators.pri
2902         not to generate incorrect properties into CSSPropertyNames.h.
2903
2904         * CodeGenerators.pri:
2905         * features.pri:
2906
2907 2011-04-12  Chris Fleizach  <cfleizach@apple.com>
2908
2909         Reviewed by Dan Bernstein.
2910
2911         REGRESSION: WK2: misspelled AX attributes no longer returned from text fields
2912         https://bugs.webkit.org/show_bug.cgi?id=58304
2913
2914         checkSpellingOfString is no longer implemented in WK2. Accessibility needs to change to use
2915         checkTextOfParagraph in order to retrieve misspelled ranges.
2916
2917         Existing tests cover this functionality.
2918
2919         * accessibility/mac/AccessibilityObjectWrapper.mm:
2920         (AXAttributeStringSetSpelling):
2921
2922 2011-04-12  Sergio Villar Senin  <svillar@igalia.com>
2923
2924         Reviewed by Martin Robinson.
2925
2926         [GTK] Remove m_idleHandler from ResourceHandleSoup
2927         https://bugs.webkit.org/show_bug.cgi?id=58319
2928
2929         The m_idleHandler attribute is no longer used in ResourceHandleSoup.
2930         No new tests needed, no functionality change.
2931
2932         * platform/network/ResourceHandleInternal.h:
2933         (WebCore::ResourceHandleInternal::ResourceHandleInternal):
2934         * platform/network/soup/ResourceHandleSoup.cpp:
2935         (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
2936
2937 2011-04-12  Andrey Adaikin  <aandrey@google.com>
2938
2939         Reviewed by Yury Semikhatsky.
2940
2941         Web Inspector: Breakpoints and execution line decoration should stay in place if the edited line is not whitespace
2942         https://bugs.webkit.org/show_bug.cgi?id=58314
2943
2944         * inspector/front-end/SourceFrame.js:
2945         (WebInspector.SourceFrame.prototype._lineNumberAfterEditing):
2946
2947 2011-04-11  Pavel Podivilov  <podivilov@chromium.org>
2948
2949         Reviewed by Pavel Feldman.
2950
2951         Web Inspector: move shortcut handlers from SourceFrame to TextViewer.
2952         https://bugs.webkit.org/show_bug.cgi?id=58238
2953
2954         Commit/cancel editing functionality is common for all resource types, and it deals with TextViewer state.
2955
2956         * inspector/front-end/SourceFrame.js:
2957         (WebInspector.SourceFrame):
2958         (WebInspector.SourceFrame.prototype.isContentEditable):
2959         (WebInspector.SourceFrame.prototype._createTextViewer):
2960         (WebInspector.SourceFrame.prototype.commitEditing.didEditContent):
2961         (WebInspector.SourceFrame.prototype.commitEditing):
2962         (WebInspector.SourceFrame.prototype.cancelEditing):
2963         * inspector/front-end/TextViewer.js:
2964         (WebInspector.TextViewer.prototype._doubleClick):
2965         (WebInspector.TextViewer.prototype._registerShortcuts):
2966         (WebInspector.TextViewer.prototype._handleKeyDown):
2967         (WebInspector.TextViewer.prototype._commitEditing.didCommitEditing):
2968         (WebInspector.TextViewer.prototype._commitEditing):
2969         (WebInspector.TextViewer.prototype._cancelEditing):
2970         (WebInspector.TextViewerDelegate.prototype.endEditing):
2971         (WebInspector.TextViewerDelegate.prototype.commitEditing):
2972         (WebInspector.TextViewerDelegate.prototype.cancelEditing):
2973
2974 2011-04-12  Pavel Feldman  <pfeldman@google.com>
2975
2976         Reviewed by Yury Semikhatsky.
2977
2978         Web Inspector: cookies view is empty even for sites with cookies.
2979         https://bugs.webkit.org/show_bug.cgi?id=58316
2980
2981         Test: http/tests/inspector/resource-tree-model.html
2982
2983         * inspector/front-end/ResourceTreeModel.js:
2984         (WebInspector.ResourceTreeModel.prototype._callForFrameResources):
2985
2986 2011-04-11  Stephen White  <senorblanco@chromium.org>
2987
2988         Reviewed by James Robinson.
2989
2990         [chromium] GPU-accelerated canvas-to-canvas drawImage is incorrect.
2991         https://bugs.webkit.org/show_bug.cgi?id=58258
2992
2993         When one accelerated canvas is drawn to another via drawImage(), if the
2994         prior call in the source canvas was non-accelerated, the 
2995         hardware canvas is not up-to-date, and the results will be incorrect.
2996         Fixed by calling prepareForHardwareDraw() on the source context.
2997
2998         Test: fast/canvas/canvas-to-canvas.html
2999
3000         * platform/graphics/skia/ImageBufferSkia.cpp:
3001         (WebCore::ImageBuffer::draw):
3002
3003 2011-04-12  Mikhail Naganov  <mnaganov@chromium.org>
3004
3005         Reviewed by Pavel Feldman.
3006
3007         Web Inspector: [Chromium] Add some more tests for detailed heap snapshots UI.
3008         https://bugs.webkit.org/show_bug.cgi?id=58146
3009
3010         Tests: inspector/profiler/detailed-heapshots-comparison-expansion-preserved-when-sorting.html
3011                inspector/profiler/detailed-heapshots-comparison-show-all.html
3012                inspector/profiler/detailed-heapshots-comparison-show-next.html
3013                inspector/profiler/detailed-heapshots-comparison-shown-node-count-preserved-when-sorting.html
3014                inspector/profiler/detailed-heapshots-comparison-sorting.html
3015                inspector/profiler/detailed-heapshots-containment-shown-node-count-preserved-when-sorting.html
3016                inspector/profiler/detailed-heapshots-dominators-expansion-preserved-when-sorting.html
3017                inspector/profiler/detailed-heapshots-dominators-show-all.html
3018                inspector/profiler/detailed-heapshots-dominators-show-next.html
3019                inspector/profiler/detailed-heapshots-dominators-shown-node-count-preserved-when-sorting.html
3020                inspector/profiler/detailed-heapshots-dominators-sorting.html
3021                inspector/profiler/detailed-heapshots-summary-shown-node-count-preserved-when-sorting.html
3022
3023         * inspector/front-end/DetailedHeapshotView.js:
3024         (WebInspector.HeapSnapshotDiffDataGrid):
3025
3026 2011-04-12  Ilya Tikhonovsky  <loislo@chromium.org>
3027
3028         Reviewed by Yury Semikhatsky.
3029
3030         Web Inspector: there was incorrect value of id property of responses for malformed json-rpc 2.0 requests.
3031         https://bugs.webkit.org/show_bug.cgi?id=58305
3032
3033         It was 0 if the message is not a json object or it has no id property. But according to spec it must be null.
3034
3035         * inspector/CodeGeneratorInspector.pm:
3036
3037 2011-04-11  Pavel Podivilov  <podivilov@chromium.org>
3038
3039         Reviewed by Pavel Feldman.
3040
3041         Web Inspector: [chromium] script formatting doesn't work when chromium is built with debug_devtools=1.
3042         https://bugs.webkit.org/show_bug.cgi?id=58232
3043
3044         * WebCore.gypi:
3045
3046 2011-04-12  Pavel Podivilov  <podivilov@chromium.org>
3047
3048         Reviewed by Pavel Feldman.
3049
3050         Web Inspector: REGRESSION: Most resources in the Network panel show a blank panel when clicked.
3051         https://bugs.webkit.org/show_bug.cgi?id=58273
3052
3053         * inspector/front-end/SourceFrame.js:
3054         (WebInspector.SourceFrame):
3055         (WebInspector.SourceFrame.prototype.get visible):
3056         (WebInspector.SourceFrame.prototype.set visible):
3057         (WebInspector.SourceFrame.prototype.show):
3058         (WebInspector.SourceFrame.prototype.hide):
3059         (WebInspector.SourceFrame.prototype.detach):
3060         (WebInspector.SourceFrame.prototype._ensureContentLoaded):
3061         (WebInspector.SourceFrame.prototype.markDiff):
3062         (WebInspector.SourceFrame.prototype.addMessage):
3063         (WebInspector.SourceFrame.prototype.clearMessages):
3064         (WebInspector.SourceFrame.prototype.get scrollTop):
3065         (WebInspector.SourceFrame.prototype.set scrollTop):
3066         (WebInspector.SourceFrame.prototype.highlightLine):
3067         (WebInspector.SourceFrame.prototype._clearLineHighlight):
3068         (WebInspector.SourceFrame.prototype._initializeTextViewer):
3069         (WebInspector.SourceFrame.prototype.performSearch):
3070         (WebInspector.SourceFrame.prototype.searchCanceled):
3071         (WebInspector.SourceFrame.prototype._jumpToSearchResult):
3072         (WebInspector.SourceFrame.prototype.setExecutionLine):
3073         (WebInspector.SourceFrame.prototype.clearExecutionLine):
3074         (WebInspector.SourceFrame.prototype.resize):
3075
3076 2011-04-12  Pavel Feldman  <pfeldman@google.com>
3077
3078         Reviewed by Yury Semikhatsky.
3079
3080         Web Inspector: document runtime agent, share remote object definition between domains.
3081         https://bugs.webkit.org/show_bug.cgi?id=58246
3082
3083         * inspector/Inspector.json:
3084
3085 2011-04-12  Pavel Feldman  <pfeldman@google.com>
3086
3087         Reviewed by Yury Semikhatsky.
3088
3089         Web Inspector: document console domain, support cross-domain type references.
3090         https://bugs.webkit.org/show_bug.cgi?id=58240
3091
3092         * inspector/ConsoleMessage.cpp:
3093         (WebCore::messageSourceValue):
3094         (WebCore::messageTypeValue):
3095         (WebCore::messageLevelValue):
3096         (WebCore::ConsoleMessage::addToFrontend):
3097         * inspector/Inspector.json:
3098         * inspector/ScriptCallFrame.cpp:
3099         (WebCore::ScriptCallFrame::buildInspectorObject):
3100         * inspector/front-end/ConsoleView.js:
3101         (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher.dispatcher.messageAdded):
3102         (WebInspector.ConsoleMessage):
3103         (WebInspector.ConsoleMessage.prototype._populateStackTraceTreeElement):
3104         (WebInspector.ConsoleMessage.prototype.isEqual):
3105         * inspector/front-end/NetworkManager.js:
3106         (WebInspector.NetworkDispatcher.prototype.requestWillBeSent):
3107         * inspector/generate-inspector-idl:
3108         * page/Console.h:
3109
3110 2011-04-06  Philippe Normand  <pnormand@igalia.com>
3111
3112         Reviewed by Martin Robinson.
3113
3114         [GStreamer] RTSP playback broken
3115         https://bugs.webkit.org/show_bug.cgi?id=56930
3116
3117         Rely on {audio,video}-changed playbin2 signals instead of the
3118         -tags-changed signals because some media don't provide tags and
3119         then can trick the media-player to not paint video, for instance.
3120
3121         Also trigger a video size calculation after the video sink
3122         negotiated its caps. This is useful in the cases where
3123         audio-changed signal is emitted but the video sink takes more time
3124         to negociate caps with its peer.
3125
3126         This patch also fixes the rtsp manual-test with a new stream url
3127         which seems to be more permanent than the previous WWDC keynote
3128         stream.
3129
3130         * manual-tests/video-rtsp.html:
3131         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
3132         (WebCore::mediaPlayerPrivateVideoChangedCallback):
3133         (WebCore::mediaPlayerPrivateAudioChangedCallback):
3134         (WebCore::mediaPlayerPrivateAudioChangeTimeoutCallback):
3135         (WebCore::mediaPlayerPrivateVideoChangeTimeoutCallback):
3136         (WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer):
3137         (WebCore::MediaPlayerPrivateGStreamer::~MediaPlayerPrivateGStreamer):
3138         (WebCore::MediaPlayerPrivateGStreamer::naturalSize):
3139         (WebCore::MediaPlayerPrivateGStreamer::videoChanged):
3140         (WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfVideo):
3141         (WebCore::MediaPlayerPrivateGStreamer::audioChanged):
3142         (WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfAudio):
3143         (WebCore::MediaPlayerPrivateGStreamer::paint):
3144         (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin):
3145         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
3146
3147 2011-04-12  Vsevolod Vlasov  <vsevik@chromium.org>
3148
3149         Reviewed by Pavel Feldman.
3150
3151         Web Inspector: Failed/canceled resource requests kept showing as Pending in network panel.
3152         https://bugs.webkit.org/show_bug.cgi?id=58135
3153
3154         Added statuses for failed/canceled resource loading.
3155
3156         * English.lproj/localizedStrings.js:
3157         * inspector/Inspector.json:
3158         * inspector/InspectorResourceAgent.cpp:
3159         (WebCore::InspectorResourceAgent::didFailLoading):
3160         * inspector/front-end/NetworkManager.js:
3161         * inspector/front-end/NetworkPanel.js:
3162         * inspector/front-end/Resource.js:
3163
3164 2011-04-12  Steve Block  <steveblock@google.com>
3165
3166         Reviewed by Oliver Hunt.
3167
3168         Callable objects created via JavaScriptCore API cannot be used as Geolocation callbacks
3169         https://bugs.webkit.org/show_bug.cgi?id=40012
3170
3171         Covered by fast/dom/Geolocation/argument-types.html
3172
3173         * bindings/js/CallbackFunction.cpp:
3174         (WebCore::checkFunctionOnlyCallback):
3175
3176 2011-04-07  Philippe Normand  <pnormand@igalia.com>
3177
3178         Reviewed by Martin Robinson.
3179
3180         [GStreamer] report playback statistics
3181         https://bugs.webkit.org/show_bug.cgi?id=58033
3182
3183         Provide media playback statistics using fpsdisplaysink and
3184         position queries.
3185
3186         * manual-tests/video-statistics.html: Added.
3187         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
3188         (WebCore::MediaPlayerPrivateGStreamer::decodedFrameCount):
3189         (WebCore::MediaPlayerPrivateGStreamer::droppedFrameCount):
3190         (WebCore::MediaPlayerPrivateGStreamer::audioDecodedByteCount):
3191         (WebCore::MediaPlayerPrivateGStreamer::videoDecodedByteCount):
3192         (WebCore::MediaPlayerPrivateGStreamer::updateAudioSink):
3193         (WebCore::MediaPlayerPrivateGStreamer::updateStates):
3194         (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin):
3195         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
3196
3197 2011-04-11  Philippe Normand  <pnormand@igalia.com>
3198
3199         Reviewed by Martin Robinson.
3200
3201         [GStreamer] warnings in media/video-set-rate-from-pause.html
3202         https://bugs.webkit.org/show_bug.cgi?id=58220
3203
3204         * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
3205         (WebCore::MediaPlayerPrivateGStreamer::setRate): Pause the
3206         pipeline if new rate is zero, like advised in the GStreamer
3207         documentation of gst_event_new_seek().
3208
3209 2011-04-11  Vangelis Kokkevis  <vangelis@chromium.org>
3210
3211         Reviewed by James Robinson.
3212
3213         [chromium] Properly invalidate the contents of ImageLayerChromium's
3214         when the actual image contents change.
3215         https://bugs.webkit.org/show_bug.cgi?id=58181
3216
3217         Test: compositing/images/content-image-change.html
3218
3219         * platform/graphics/chromium/ContentLayerChromium.cpp:
3220         (WebCore::ContentLayerChromium::updateTexture):
3221         * platform/graphics/chromium/ImageLayerChromium.cpp:
3222         (WebCore::ImageLayerChromium::ImageLayerChromium):
3223         (WebCore::ImageLayerChromium::setContents):
3224         (WebCore::ImageLayerChromium::paintContentsIfDirty):
3225         * platform/graphics/chromium/ImageLayerChromium.h:
3226
3227 2011-04-11  Simon Fraser  <simon.fraser@apple.com>
3228
3229         Reviewed by Dan Bernstein.
3230
3231         -webkit-box-shadow:inset does not animate transform as an inset shadow
3232         https://bugs.webkit.org/show_bug.cgi?id=45176
3233         
3234         Two fixes:
3235         1. Don't run transitions between different shadow styles (normal vs. inset).
3236         2. When either source or destination is null, use a default shadow with a
3237         matching style so that the transition runs.
3238
3239         Test: transitions/mismatched-shadow-styles.html
3240
3241         * page/animation/AnimationBase.cpp:
3242         (WebCore::blendFunc):
3243         (WebCore::PropertyWrapperShadow::blend):
3244
3245 2011-04-11  John Bates  <jbates@google.com>
3246
3247         Reviewed by Kenneth Russell.
3248
3249         chromium support for glSetLatch and glWaitLatch between 3D contexts
3250         https://bugs.webkit.org/show_bug.cgi?id=58003
3251
3252         * platform/graphics/chromium/Canvas2DLayerChromium.cpp:
3253         (WebCore::Canvas2DLayerChromium::~Canvas2DLayerChromium):
3254         (WebCore::Canvas2DLayerChromium::setDrawingBuffer):
3255         (WebCore::Canvas2DLayerChromium::setLayerRenderer):
3256         * platform/graphics/chromium/Canvas2DLayerChromium.h:
3257         * platform/graphics/chromium/Extensions3DChromium.h:
3258         * platform/graphics/chromium/GLES2Canvas.cpp:
3259         (WebCore::Cubic::Cubic):
3260         * platform/graphics/chromium/LayerRendererChromium.cpp:
3261         (WebCore::LayerRendererChromium::LayerRendererChromium):
3262         (WebCore::LayerRendererChromium::updateAndDrawLayers):
3263         (WebCore::LayerRendererChromium::updateLayers):
3264         (WebCore::LayerRendererChromium::addChildContext):
3265         (WebCore::LayerRendererChromium::removeChildContext):
3266         * platform/graphics/chromium/LayerRendererChromium.h:
3267         * platform/graphics/chromium/WebGLLayerChromium.cpp:
3268         (WebCore::WebGLLayerChromium::~WebGLLayerChromium):
3269         (WebCore::WebGLLayerChromium::updateCompositorResources):
3270         (WebCore::WebGLLayerChromium::setContext):
3271         (WebCore::WebGLLayerChromium::setLayerRenderer):
3272         * platform/graphics/chromium/WebGLLayerChromium.h:
3273
3274 2011-04-11  Alexey Marinichev  <amarinichev@chromium.org>
3275
3276         Reviewed by James Robinson.
3277
3278         LayerChromium/CCLayerImpl ownership fix
3279         https://bugs.webkit.org/show_bug.cgi?id=58283
3280
3281         CCLayerImpl's m_owner field lifetime should match the lifetime of the
3282         corresponding LayerChromium.  This change moves resetting of m_owner
3283         into LayerChromium's destructor.
3284
3285         Tested similarly to bug 57577.
3286
3287         * platform/graphics/chromium/LayerChromium.cpp:
3288         (WebCore::LayerChromium::~LayerChromium):
3289         * platform/graphics/chromium/cc/CCLayerImpl.cpp:
3290         (WebCore::CCLayerImpl::cleanupResources):
3291         * platform/graphics/chromium/cc/CCLayerImpl.h:
3292         (WebCore::CCLayerImpl::resetOwner):
3293
3294 2011-04-11  Daniel Bates  <dbates@rim.com>
3295
3296         Attempt to fix the GTK build after changeset 83527 <http://trac.webkit.org/changeset/83527>
3297         (https://bugs.webkit.org/show_bug.cgi?id=53556).
3298
3299         * GNUmakefile.list.am: Append files HTMLTrackElement.{h, cpp} to the list webcore_sources.
3300
3301 2011-04-11  Brady Eidson  <beidson@apple.com>
3302
3303         Reviewed by Maciej Stachowiak.
3304
3305         <rdar://problem/9251515> and https://bugs.webkit.org/show_bug.cgi?id=58072
3306         URLs accessed as a result of pushState/replaceState should count as "visited" and be in the global history
3307
3308         Test: fast/loader/stateobjects/state-url-sets-links-visited.html
3309
3310         * loader/HistoryController.cpp:
3311         (WebCore::HistoryController::pushState): Notify the history client and add the visited link.
3312         (WebCore::HistoryController::replaceState): Ditto.
3313
3314 2011-04-11  Dimitri Glazkov  <dglazkov@chromium.org>
3315
3316         Reviewed by Eric Carlson.
3317
3318         Rename MediaControls to MediaControlRootElement.
3319         https://bugs.webkit.org/show_bug.cgi?id=58250
3320
3321         Mechanical move using do-webcore-rename.
3322
3323 2011-04-11  Dean Jackson  <dino@apple.com>
3324
3325         Reviewed by Simon Fraser.
3326
3327         https://bugs.webkit.org/show_bug.cgi?id=58285
3328         CompositeAnimation is cleared while an AnimationBase is waiting for notification
3329
3330         Occasionally hardware animations would trigger a state where
3331         they would tell the AnimationControllerPrivate that it should notify
3332         any waiting animations that they are ready to start, even though
3333         the RenderObject had gone away and hence the CompositeAnimation
3334         had been destroyed. The fix is to zero the pointer from AnimationBase
3335         when the CompositeAnimation destructor runs (or its animations are
3336         cleared) and test the validity of the CompositeAnimation before it
3337         is used in AnimationBase.
3338
3339         * page/animation/AnimationBase.cpp:
3340         (WebCore::AnimationBase::updateStateMachine):
3341         (WebCore::AnimationBase::fireAnimationEventsIfNeeded):
3342         (WebCore::AnimationBase::updatePlayState):
3343         (WebCore::AnimationBase::freezeAtTime):
3344         (WebCore::AnimationBase::beginAnimationUpdateTime):
3345         - test that the CompositeAnimation exists
3346         * page/animation/AnimationBase.h:
3347         (WebCore::AnimationBase::clear):
3348         - rename clearRenderer() to clear() as it now also clears the CompositeAnimation
3349         * page/animation/CompositeAnimation.cpp:
3350         (WebCore::CompositeAnimation::clearRenderer):
3351         (WebCore::CompositeAnimation::updateKeyframeAnimations):
3352         - call clear() rather than clearRenderer()
3353
3354 2011-04-11  Justin Novosad  <junov@chromium.org>
3355
3356         Reviewed by Kenneth Russell.
3357
3358         [Chromium] Text anti-aliasing fails when rendering text with shadow
3359         https://bugs.webkit.org/show_bug.cgi?id=57584
3360
3361         * platform/graphics/chromium/FontChromiumWin.cpp:
3362         (WebCore::drawGlyphsWin): new static function, code factored-out
3363         from WebCore::Font::drawGlyphs
3364         (WebCore::Font::drawGlyphs): may separate font rendering into two
3365         passes to allow foreground glyphs to be rendered with GDI when Skia 
3366         is required for rendering shadows
3367         * platform/graphics/skia/SkiaFontWin.cpp:
3368         (WebCore::windowsCanHandleDrawTextShadow):
3369         Modified method so that it does not assume a shadow is present, and
3370         returns true if there is no shadow (GDI can draw 'no shadow')
3371         (WebCore::windowsCanHandleTextDrawing):
3372         Factored out into sub methods so that the the shadow and foregound
3373         glyph properties can be tested separately independently.
3374         (WebCore::windowsCanHandleTextDrawingWithoutShadow):
3375         New method returns true if the foreground glyph only has effect
3376         that can be draw with GDI
3377         (WebCore::paintSkiaText):
3378         * platform/graphics/skia/SkiaFontWin.h:
3379
3380 2011-04-11  Ryosuke Niwa  <rniwa@webkit.org>
3381
3382         Unreviewed, rolling out r83515.
3383         http://trac.webkit.org/changeset/83515
3384         https://bugs.webkit.org/show_bug.cgi?id=57178
3385
3386         Broke GTK builds. nextOnLineExists and prevOnLineExists are still used in AccessibilityObjectWrapperAtk.cpp.
3387
3388         * rendering/InlineBox.cpp:
3389         (WebCore::InlineBox::nextOnLineExists):
3390         (WebCore::InlineBox::prevOnLineExists):
3391         * rendering/InlineBox.h:
3392         (WebCore::InlineBox::InlineBox):
3393
3394 2011-04-11  Brady Eidson  <beidson@apple.com>
3395
3396         Reverting, seeing something else still broken.  Sorry.
3397
3398         * html/HTMLTrackElement.cpp:
3399
3400 2011-04-11  Brady Eidson  <beidson@apple.com>
3401
3402         Fix the build.
3403
3404         * html/HTMLTrackElement.cpp: Case-sensitive, please.
3405
3406 2011-04-11  Alexis Menard  <alexis.menard@openbossa.org>
3407
3408         Unreviewed build fix for Mac.
3409
3410         An idl file was added in the wrong place.
3411
3412         * WebCore.xcodeproj/project.pbxproj:
3413
3414 2011-04-11  Chris Marrin  <cmarrin@apple.com>
3415
3416         Rubberstamped by Dan Bernstein.
3417
3418         xhr.responseType = 'arraybuffer' works on Mac but not on Windows
3419         https://bugs.webkit.org/show_bug.cgi?id=50334
3420
3421         Got rid of guards around arraybuffer logic in XHR. ArrayBuffer and friends
3422         are always turned on now, so there's not need for the guard. I reenabled the
3423         test that was Skipped on Windows and it works now.
3424
3425         * bindings/js/JSXMLHttpRequestCustom.cpp:
3426         (WebCore::JSXMLHttpRequest::markChildren):
3427         (WebCore::JSXMLHttpRequest::send):
3428         (WebCore::JSXMLHttpRequest::response):
3429         * xml/XMLHttpRequest.cpp:
3430         (WebCore::XMLHttpRequest::responseArrayBuffer):
3431         (WebCore::XMLHttpRequest::setResponseType):
3432         (WebCore::XMLHttpRequest::send):
3433         (WebCore::XMLHttpRequest::clearResponseBuffers):
3434         (WebCore::XMLHttpRequest::didReceiveData):
3435         * xml/XMLHttpRequest.h:
3436         (WebCore::XMLHttpRequest::optionalResponseArrayBuffer):
3437
3438 2011-04-11  Anna Cavender  <annacc@chromium.org>
3439
3440         Reviewed by Eric Carlson.
3441
3442         Setup ENABLE(TRACK) feature define + initial HTMLTrackElement
3443         https://bugs.webkit.org/show_bug.cgi?id=53556
3444
3445         No new tests. No real functionality added just yet.
3446
3447         * CMakeLists.txt:
3448         * CodeGenerators.pri:
3449         * Configurations/FeatureDefines.xcconfig:
3450         * DerivedSources.make:
3451         * GNUmakefile.am:
3452         * GNUmakefile.list.am:
3453         * WebCore.gypi:
3454         * WebCore.xcodeproj/project.pbxproj:
3455         * features.pri:
3456         * html/HTMLAttributeNames.in:
3457         * html/HTMLTagNames.in:
3458         * html/HTMLTrackElement.cpp: Added.
3459         (WebCore::HTMLTrackElement::HTMLTrackElement):
3460         (WebCore::HTMLTrackElement::create):
3461         (WebCore::HTMLTrackElement::insertedIntoTree):
3462         (WebCore::HTMLTrackElement::willRemove):
3463         (WebCore::HTMLTrackElement::src):
3464         (WebCore::HTMLTrackElement::setSrc):
3465         (WebCore::HTMLTrackElement::kind):
3466         (WebCore::HTMLTrackElement::setKind):
3467         (WebCore::HTMLTrackElement::srclang):
3468         (WebCore::HTMLTrackElement::setSrclang):
3469         (WebCore::HTMLTrackElement::label):
3470         (WebCore::HTMLTrackElement::setLabel):
3471         (WebCore::HTMLTrac