2011-02-22 Ilya Tikhonovsky <loislo@chromium.org>
[WebKit-https.git] / Source / WebCore / ChangeLog
1 2011-02-22  Ilya Tikhonovsky  <loislo@chromium.org>
2
3         Reviewed by Yury Semikhatsky.
4
5         Web Inspector: Inspector.IDL change. rename attribute notify -> event.
6         https://bugs.webkit.org/show_bug.cgi?id=54958
7
8         * inspector/CodeGeneratorInspector.pm:
9         * inspector/Inspector.idl:
10
11 2011-02-22  Yury Semikhatsky  <yurys@chromium.org>
12
13         Reviewed by Pavel Feldman.
14
15         Web Inspector: Timeline agent should have same lifetime as InspectorAgent
16         https://bugs.webkit.org/show_bug.cgi?id=54951
17
18         * inspector/CodeGeneratorInspector.pm:
19         * inspector/Inspector.idl:
20         * inspector/InspectorAgent.cpp:
21         (WebCore::InspectorAgent::InspectorAgent):
22         (WebCore::InspectorAgent::restoreInspectorStateFromCookie):
23         (WebCore::InspectorAgent::setFrontend):
24         (WebCore::InspectorAgent::disconnectFrontend):
25         (WebCore::InspectorAgent::releaseFrontendLifetimeAgents):
26         (WebCore::InspectorAgent::didCommitLoad):
27         (WebCore::InspectorAgent::domContentLoadedEventFired):
28         (WebCore::InspectorAgent::loadEventFired):
29         * inspector/InspectorAgent.h:
30         * inspector/InspectorController.cpp:
31         (WebCore::InspectorController::startTimelineProfiler):
32         (WebCore::InspectorController::stopTimelineProfiler):
33         (WebCore::InspectorController::timelineProfilerEnabled):
34         * inspector/InspectorInstrumentation.cpp:
35         (WebCore::InspectorInstrumentation::retrieveTimelineAgent):
36         * inspector/InspectorTimelineAgent.cpp:
37         (WebCore::InspectorTimelineAgent::~InspectorTimelineAgent):
38         (WebCore::InspectorTimelineAgent::setFrontend):
39         (WebCore::InspectorTimelineAgent::clearFrontend):
40         (WebCore::InspectorTimelineAgent::restore):
41         (WebCore::InspectorTimelineAgent::startTimelineProfiler):
42         (WebCore::InspectorTimelineAgent::stopTimelineProfiler):
43         (WebCore::InspectorTimelineAgent::timelineProfilerStarted):
44         (WebCore::InspectorTimelineAgent::didCommitLoad):
45         (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
46         (WebCore::InspectorTimelineAgent::clearRecordStack):
47         * inspector/InspectorTimelineAgent.h:
48         (WebCore::InspectorTimelineAgent::create):
49         * inspector/front-end/TimelinePanel.js:
50         (WebInspector.TimelinePanel.prototype._toggleTimelineButtonClicked):
51
52 2011-02-22  Ilya Tikhonovsky  <loislo@chromium.org>
53
54         Reviewed by Pavel Feldman.
55
56         Web Inspector: flakyness of inspector tests.
57         https://bugs.webkit.org/show_bug.cgi?id=54729
58
59         As far as we have the protocol with sequence numbers we can simplify test harness support
60         and drop out chomium specific methods.
61
62         * inspector/CodeGeneratorInspector.pm:
63         * inspector/front-end/TestController.js:
64         (WebInspector.TestController):
65         (WebInspector.TestController.prototype.notifyDone):
66         (WebInspector.TestController.prototype.runAfterPendingDispatches):
67         (WebInspector.TestController.prototype._evaluateForTestInFrontend):
68         * inspector/front-end/inspector.js:
69         (WebInspector.dispatch):
70
71 2011-02-22  Mario Sanchez Prada  <msanchez@igalia.com>
72
73         Reviewed by Martin Robinson.
74
75         [GTK] Combo boxes should emit object:selection-changed even when collapsed
76         https://bugs.webkit.org/show_bug.cgi?id=53146
77
78         Emit the selection-changed signals when the menu list value has changed
79
80         Test: platform/gtk/accessibility/combo-box-collapsed-selection-changed.html
81
82         * accessibility/gtk/AXObjectCacheAtk.cpp:
83         (WebCore::getListObject): New, return the right list object for
84         menu lists and list boxes.
85         (WebCore::notifyChildrenSelectionChange): Support menu lists.
86         (WebCore::AXObjectCache::postPlatformNotification): Call function
87         notifyChildrenSelectionChange for AXMenuListValueChanged.
88
89 2011-02-22  Andras Becsi  <abecsi@webkit.org>
90
91         Reviewed by Laszlo Gombos.
92
93         [Qt] Redesign the build system
94         https://bugs.webkit.org/show_bug.cgi?id=51339
95
96         Part 2.
97
98         Build WebCore as a static library, compile the WebKit API and WebKit2 API
99         in a final step and link to WebKit2, WebCore and JSC libraries to fix
100         linking issues resulting from stripped away symbols.
101
102         No new tests needed.
103
104         * WebCore.pri: Add needed rules for handling the static library.
105         * WebCore.pro: Reorganize API and linker options to QtWebKit.pro.
106
107 2011-02-22  Pavel Podivilov  <podivilov@chromium.org>
108
109         Reviewed by Pavel Feldman.
110
111         Web Inspector: [REGRESSION] navigation does not work when inspector is opened.
112         https://bugs.webkit.org/show_bug.cgi?id=54947
113
114         * inspector/InspectorAgent.cpp:
115         (WebCore::InspectorAgent::restoreInspectorStateFromCookie):
116         * inspector/InspectorState.cpp:
117         (WebCore::InspectorState::loadFromCookie):
118         * inspector/InspectorState.h:
119
120 2011-02-15  Jer Noble  <jer.noble@apple.com>
121
122         Reviewed by Darin Adler.
123
124         Built-in HTML5 <audio> (and sometimes <video>) UI doesn't update playhead location or time displays
125         https://bugs.webkit.org/show_bug.cgi?id=46142
126
127         Push a LayoutStateMaintainer in RenderMedia::layout() before calling layout() on the
128         container elements.  This is necessary because, during layout(), the child renderers
129         query the current LayoutState to determine where they will be repainting.  If a new
130         LayoutState is not pushed here, child renderers will attempt to repaint relative to
131         their grandparent's origin instead of their parents', and repaint operations will fail.
132
133         * rendering/RenderMedia.cpp:
134         (WebCore::RenderMedia::layout):
135
136 2011-02-22  Benjamin Poulain  <benjamin.poulain@nokia.com>
137
138         Reviewed by Kenneth Rohde Christiansen.
139
140         Cleaning: remove a overzealous check for the pointer "files" from Chrome::setToolTip()
141         https://bugs.webkit.org/show_bug.cgi?id=54952
142
143         Remove the unnecessary condition from the if(), HTMLInputElement::files() always return
144         a valid reference for the input type FileInputType. 
145
146         * page/Chrome.cpp:
147         (WebCore::Chrome::setToolTip):
148
149 2011-02-22  Philippe Normand  <pnormand@igalia.com>
150
151         Reviewed by Xan Lopez.
152
153         [GTK] make distcheck fails
154         https://bugs.webkit.org/show_bug.cgi?id=54943
155
156         Added new headers and removed references to deleted files.
157
158         * GNUmakefile.am:
159
160 2011-02-21  Yury Semikhatsky  <yurys@chromium.org>
161
162         Reviewed by Pavel Feldman.
163
164         Web Inspector: make DOM storage and Database agents have the same lifetime as InspectorAgent
165         https://bugs.webkit.org/show_bug.cgi?id=54891
166
167         * inspector/InspectorAgent.cpp:
168         (WebCore::InspectorAgent::InspectorAgent):
169         (WebCore::InspectorAgent::setFrontend):
170         (WebCore::InspectorAgent::disconnectFrontend):
171         (WebCore::InspectorAgent::createFrontendLifetimeAgents):
172         (WebCore::InspectorAgent::releaseFrontendLifetimeAgents):
173         (WebCore::InspectorAgent::didCommitLoad):
174         * inspector/InspectorAgent.h:
175         (WebCore::InspectorAgent::instrumentingAgents):
176         * inspector/InspectorDOMStorageAgent.cpp:
177         (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
178         (WebCore::InspectorDOMStorageAgent::~InspectorDOMStorageAgent):
179         (WebCore::InspectorDOMStorageAgent::setFrontend):
180         (WebCore::InspectorDOMStorageAgent::clearFrontend):
181         (WebCore::InspectorDOMStorageAgent::selectDOMStorage):
182         (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId):
183         (WebCore::InspectorDOMStorageAgent::didUseDOMStorage):
184         (WebCore::InspectorDOMStorageAgent::clearResources):
185         * inspector/InspectorDOMStorageAgent.h:
186         (WebCore::InspectorDOMStorageAgent::create):
187         * inspector/InspectorDatabaseAgent.cpp:
188         (WebCore::InspectorDatabaseAgent::didOpenDatabase):
189         (WebCore::InspectorDatabaseAgent::clearResources):
190         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
191         (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent):
192         (WebCore::InspectorDatabaseAgent::setFrontend):
193         (WebCore::InspectorDatabaseAgent::clearFrontend):
194         (WebCore::InspectorDatabaseAgent::databaseForId):
195         (WebCore::InspectorDatabaseAgent::selectDatabase):
196         * inspector/InspectorDatabaseAgent.h:
197         (WebCore::InspectorDatabaseAgent::create):
198         * inspector/InspectorInstrumentation.cpp:
199         (WebCore::InspectorInstrumentation::didOpenDatabaseImpl):
200         (WebCore::InspectorInstrumentation::didUseDOMStorageImpl):
201
202 2011-02-22  Andrey Kosyakov  <caseq@chromium.org>
203
204         Reviewed by Pavel Feldman.
205
206         Web Inspector: provide a button to expand inspector toolbar when not all panel buttons fit
207         https://bugs.webkit.org/show_bug.cgi?id=54671
208
209         - factored toolbar handling out of inspector.js
210         - added toolbar dropdown
211
212         * WebCore.gypi:
213         * WebCore.vcproj/WebCore.vcproj:
214         * inspector/front-end/ExtensionServer.js:
215         (WebInspector.ExtensionServer.prototype._onCreatePanel):
216         * inspector/front-end/Panel.js:
217         (WebInspector.Panel.prototype.get toolbarItem):
218         * inspector/front-end/Toolbar.js: Added.
219         (WebInspector.Toolbar):
220         (WebInspector.Toolbar.prototype.resize):
221         (WebInspector.Toolbar.prototype.addPanel):
222         (WebInspector.Toolbar.prototype._toolbarDragStart):
223         (WebInspector.Toolbar.prototype._toolbarDragEnd):
224         (WebInspector.Toolbar.prototype._toolbarDrag):
225         (WebInspector.Toolbar.prototype._onClose):
226         (WebInspector.Toolbar.prototype._setDropdownVisible):
227         (WebInspector.Toolbar.prototype._toggleDropdown):
228         (WebInspector.Toolbar.prototype._updateDropdownButtonAndHideDropdown):
229         (WebInspector.Toolbar.createPanelToolbarItem.onToolbarItemClicked):
230         (WebInspector.Toolbar.createPanelToolbarItem):
231         (WebInspector.ToolbarDropdown):
232         (WebInspector.ToolbarDropdown.prototype.show):
233         (WebInspector.ToolbarDropdown.prototype.hide):
234         (WebInspector.ToolbarDropdown.prototype.get visible):
235         (WebInspector.ToolbarDropdown.prototype._populate):
236         (WebInspector.ToolbarDropdown.prototype._onKeyDown):
237         * inspector/front-end/WebKit.qrc:
238         * inspector/front-end/inspector.css:
239         (#toolbar):
240         (.toolbar-item):
241         (.toolbar-item.toggleable):
242         (.toolbar-item.toggleable.toggled-on):
243         (#toolbar-dropdown .toolbar-icon):
244         (#toolbar-dropdown .toolbar-label):
245         (#toolbar-controls):
246         (#toolbar-dropdown-arrow):
247         (body.attached #toolbar-dropdown-arrow):
248         (#toolbar-dropdown-arrow.dropdown-visible):
249         (#toolbar-dropdown-arrow:hover):
250         (#toolbar-dropdown-arrow:active):
251         (#toolbar-dropdown):
252         (body.detached.platform-mac-snowleopard #toolbar-dropdown):
253         (#toolbar-dropdown .scrollable-content):
254         (#toolbar-dropdown .toolbar-item):
255         (#toolbar-dropdown .toolbar-item.toggleable.toggled-on):
256         (#toolbar-dropdown .toolbar-item:hover):
257         (#toolbar-dropdown .toolbar-item.toggleable.toggled-on:hover):
258         (#toolbar-dropdown .toolbar-item:active .toolbar-icon):
259         (.scrollable-content):
260         (.scrollable-content::-webkit-scrollbar):
261         (.scrollable-content::-webkit-resizer):
262         (.scrollable-content::-webkit-scrollbar-thumb:vertical):
263         (.scrollable-content::-webkit-scrollbar-thumb:vertical:active):
264         (.scrollable-content::-webkit-scrollbar-track:vertical):
265         (.toolbar-search-item):
266         (#search):
267         (body.attached #search):
268         (#search-results-matches):
269         (#close-button-left, #close-button-right):
270         (.close-left):
271         * inspector/front-end/inspector.html:
272         * inspector/front-end/inspector.js:
273         (WebInspector.set attached):
274         (WebInspector.addPanel):
275         (WebInspector.windowResize):
276
277 2011-02-22  Philippe Normand  <pnormand@igalia.com>
278
279         Reviewed by Xan Lopez.
280
281         [GTK] make distcheck fails
282         https://bugs.webkit.org/show_bug.cgi?id=54943
283
284         Added new headers and removed references to deleted files.
285
286         * GNUmakefile.am:
287
288 2011-02-21  Yury Semikhatsky  <yurys@chromium.org>
289
290         Reviewed by Pavel Feldman.
291
292         Web Inspector: make DOM storage and Database agents have the same lifetime as InspectorAgent
293         https://bugs.webkit.org/show_bug.cgi?id=54891
294
295         * inspector/InspectorAgent.cpp:
296         (WebCore::InspectorAgent::InspectorAgent):
297         (WebCore::InspectorAgent::setFrontend):
298         (WebCore::InspectorAgent::disconnectFrontend):
299         (WebCore::InspectorAgent::createFrontendLifetimeAgents):
300         (WebCore::InspectorAgent::releaseFrontendLifetimeAgents):
301         (WebCore::InspectorAgent::didCommitLoad):
302         * inspector/InspectorAgent.h:
303         (WebCore::InspectorAgent::instrumentingAgents):
304         * inspector/InspectorDOMStorageAgent.cpp:
305         (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
306         (WebCore::InspectorDOMStorageAgent::~InspectorDOMStorageAgent):
307         (WebCore::InspectorDOMStorageAgent::setFrontend):
308         (WebCore::InspectorDOMStorageAgent::clearFrontend):
309         (WebCore::InspectorDOMStorageAgent::selectDOMStorage):
310         (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId):
311         (WebCore::InspectorDOMStorageAgent::didUseDOMStorage):
312         (WebCore::InspectorDOMStorageAgent::clearResources):
313         * inspector/InspectorDOMStorageAgent.h:
314         (WebCore::InspectorDOMStorageAgent::create):
315         * inspector/InspectorDatabaseAgent.cpp:
316         (WebCore::InspectorDatabaseAgent::didOpenDatabase):
317         (WebCore::InspectorDatabaseAgent::clearResources):
318         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
319         (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent):
320         (WebCore::InspectorDatabaseAgent::setFrontend):
321         (WebCore::InspectorDatabaseAgent::clearFrontend):
322         (WebCore::InspectorDatabaseAgent::databaseForId):
323         (WebCore::InspectorDatabaseAgent::selectDatabase):
324         * inspector/InspectorDatabaseAgent.h:
325         (WebCore::InspectorDatabaseAgent::create):
326         * inspector/InspectorInstrumentation.cpp:
327         (WebCore::InspectorInstrumentation::didOpenDatabaseImpl):
328         (WebCore::InspectorInstrumentation::didUseDOMStorageImpl):
329
330 2011-02-21  Pavel Podivilov  <podivilov@chromium.org>
331
332         Reviewed by Pavel Feldman.
333
334         Web Inspector: extract source mapping from SourceFrame to DebuggerPresentationModel.
335         https://bugs.webkit.org/show_bug.cgi?id=54645
336
337         This is needed to map one script to several source files.
338
339         Test: inspector/debugger/source-frame.html
340
341         * WebCore.gypi:
342         * WebCore.vcproj/WebCore.vcproj:
343         * inspector/front-end/DebuggerPresentationModel.js: Added.
344         (WebInspector.DebuggerPresentationModel):
345         (WebInspector.DebuggerPresentationModel.prototype.breakpointsForSourceName):
346         (WebInspector.DebuggerPresentationModel.prototype._breakpointAdded):
347         (WebInspector.DebuggerPresentationModel.prototype._breakpointRemoved):
348         (WebInspector.DebuggerPresentationModel.prototype._breakpointResolved):
349         (WebInspector.DebuggerPresentationModel.prototype._encodeSourceLocation):
350         (WebInspector.DebuggerPresentationModel.prototype._actualLocationToSourceLocation):
351         * inspector/front-end/ScriptsPanel.js:
352         (WebInspector.ScriptsPanel):
353         (WebInspector.ScriptsPanel.prototype._breakpointAdded):
354         (WebInspector.ScriptsPanel.prototype._breakpointRemoved):
355         (WebInspector.ScriptsPanel.prototype._sourceFrameForResource):
356         (WebInspector.ScriptsPanel.prototype._sourceFrameForScript):
357         (WebInspector.ScriptsPanel.prototype._addSourceFrame):
358         (WebInspector.ScriptsPanel.prototype._removeSourceFrame):
359         (WebInspector.ScriptsPanel.prototype._sourceFrameLoaded):
360         (WebInspector.ScriptsPanel.prototype._clearCurrentExecutionLine):
361         (WebInspector.ScriptsPanel.prototype._callFrameSelected):
362         (WebInspector.SourceFrameContentProviderForScript.prototype._buildSource):
363         * inspector/front-end/SourceFrame.js:
364         (WebInspector.SourceFrame.prototype.get loaded):
365         (WebInspector.SourceFrame.prototype._createTextViewer):
366         (WebInspector.SourceFrame.prototype._setTextViewerDecorations):
367         (WebInspector.SourceFrame.prototype.setExecutionLine):
368         (WebInspector.SourceFrame.prototype.clearExecutionLine):
369         (WebInspector.SourceFrame.prototype.addBreakpoint):
370         (WebInspector.SourceFrame.prototype.removeBreakpoint):
371         (WebInspector.SourceFrame.prototype._contextMenu.addConditionalBreakpoint.didEditBreakpointCondition):
372         (WebInspector.SourceFrame.prototype._contextMenu.addConditionalBreakpoint):
373         (WebInspector.SourceFrame.prototype._findBreakpoint.filter):
374         (WebInspector.SourceFrame.prototype._findBreakpoint):
375         * inspector/front-end/WebKit.qrc:
376         * inspector/front-end/inspector.html:
377
378 2011-02-22  Philippe Normand  <pnormand@igalia.com>
379
380         Reviewed by Xan Lopez.
381
382         [GTK] make distcheck fails
383         https://bugs.webkit.org/show_bug.cgi?id=54943
384
385         Added new headers and removed references to deleted files.
386
387         * GNUmakefile.am:
388
389 2011-02-21  Yury Semikhatsky  <yurys@chromium.org>
390
391         Reviewed by Pavel Feldman.
392
393         Web Inspector: make DOM storage and Database agents have the same lifetime as InspectorAgent
394         https://bugs.webkit.org/show_bug.cgi?id=54891
395
396         * inspector/InspectorAgent.cpp:
397         (WebCore::InspectorAgent::InspectorAgent):
398         (WebCore::InspectorAgent::setFrontend):
399         (WebCore::InspectorAgent::disconnectFrontend):
400         (WebCore::InspectorAgent::createFrontendLifetimeAgents):
401         (WebCore::InspectorAgent::releaseFrontendLifetimeAgents):
402         (WebCore::InspectorAgent::didCommitLoad):
403         * inspector/InspectorAgent.h:
404         (WebCore::InspectorAgent::instrumentingAgents):
405         * inspector/InspectorDOMStorageAgent.cpp:
406         (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
407         (WebCore::InspectorDOMStorageAgent::~InspectorDOMStorageAgent):
408         (WebCore::InspectorDOMStorageAgent::setFrontend):
409         (WebCore::InspectorDOMStorageAgent::clearFrontend):
410         (WebCore::InspectorDOMStorageAgent::selectDOMStorage):
411         (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId):
412         (WebCore::InspectorDOMStorageAgent::didUseDOMStorage):
413         (WebCore::InspectorDOMStorageAgent::clearResources):
414         * inspector/InspectorDOMStorageAgent.h:
415         (WebCore::InspectorDOMStorageAgent::create):
416         * inspector/InspectorDatabaseAgent.cpp:
417         (WebCore::InspectorDatabaseAgent::didOpenDatabase):
418         (WebCore::InspectorDatabaseAgent::clearResources):
419         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
420         (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent):
421         (WebCore::InspectorDatabaseAgent::setFrontend):
422         (WebCore::InspectorDatabaseAgent::clearFrontend):
423         (WebCore::InspectorDatabaseAgent::databaseForId):
424         (WebCore::InspectorDatabaseAgent::selectDatabase):
425         * inspector/InspectorDatabaseAgent.h:
426         (WebCore::InspectorDatabaseAgent::create):
427         * inspector/InspectorInstrumentation.cpp:
428         (WebCore::InspectorInstrumentation::didOpenDatabaseImpl):
429         (WebCore::InspectorInstrumentation::didUseDOMStorageImpl):
430
431 2011-02-22  Andrey Kosyakov  <caseq@chromium.org>
432
433         Reviewed by Pavel Feldman.
434
435         Web Inspector: provide a button to expand inspector toolbar when not all panel buttons fit
436         https://bugs.webkit.org/show_bug.cgi?id=54671
437
438         - factored toolbar handling out of inspector.js
439         - added toolbar dropdown
440
441         * WebCore.gypi:
442         * WebCore.vcproj/WebCore.vcproj:
443         * inspector/front-end/ExtensionServer.js:
444         (WebInspector.ExtensionServer.prototype._onCreatePanel):
445         * inspector/front-end/Panel.js:
446         (WebInspector.Panel.prototype.get toolbarItem):
447         * inspector/front-end/Toolbar.js: Added.
448         (WebInspector.Toolbar):
449         (WebInspector.Toolbar.prototype.resize):
450         (WebInspector.Toolbar.prototype.addPanel):
451         (WebInspector.Toolbar.prototype._toolbarDragStart):
452         (WebInspector.Toolbar.prototype._toolbarDragEnd):
453         (WebInspector.Toolbar.prototype._toolbarDrag):
454         (WebInspector.Toolbar.prototype._onClose):
455         (WebInspector.Toolbar.prototype._setDropdownVisible):
456         (WebInspector.Toolbar.prototype._toggleDropdown):
457         (WebInspector.Toolbar.prototype._updateDropdownButtonAndHideDropdown):
458         (WebInspector.Toolbar.createPanelToolbarItem.onToolbarItemClicked):
459         (WebInspector.Toolbar.createPanelToolbarItem):
460         (WebInspector.ToolbarDropdown):
461         (WebInspector.ToolbarDropdown.prototype.show):
462         (WebInspector.ToolbarDropdown.prototype.hide):
463         (WebInspector.ToolbarDropdown.prototype.get visible):
464         (WebInspector.ToolbarDropdown.prototype._populate):
465         (WebInspector.ToolbarDropdown.prototype._onKeyDown):
466         * inspector/front-end/WebKit.qrc:
467         * inspector/front-end/inspector.css:
468         (#toolbar):
469         (.toolbar-item):
470         (.toolbar-item.toggleable):
471         (.toolbar-item.toggleable.toggled-on):
472         (#toolbar-dropdown .toolbar-icon):
473         (#toolbar-dropdown .toolbar-label):
474         (#toolbar-controls):
475         (#toolbar-dropdown-arrow):
476         (body.attached #toolbar-dropdown-arrow):
477         (#toolbar-dropdown-arrow.dropdown-visible):
478         (#toolbar-dropdown-arrow:hover):
479         (#toolbar-dropdown-arrow:active):
480         (#toolbar-dropdown):
481         (body.detached.platform-mac-snowleopard #toolbar-dropdown):
482         (#toolbar-dropdown .scrollable-content):
483         (#toolbar-dropdown .toolbar-item):
484         (#toolbar-dropdown .toolbar-item.toggleable.toggled-on):
485         (#toolbar-dropdown .toolbar-item:hover):
486         (#toolbar-dropdown .toolbar-item.toggleable.toggled-on:hover):
487         (#toolbar-dropdown .toolbar-item:active .toolbar-icon):
488         (.scrollable-content):
489         (.scrollable-content::-webkit-scrollbar):
490         (.scrollable-content::-webkit-resizer):
491         (.scrollable-content::-webkit-scrollbar-thumb:vertical):
492         (.scrollable-content::-webkit-scrollbar-thumb:vertical:active):
493         (.scrollable-content::-webkit-scrollbar-track:vertical):
494         (.toolbar-search-item):
495         (#search):
496         (body.attached #search):
497         (#search-results-matches):
498         (#close-button-left, #close-button-right):
499         (.close-left):
500         * inspector/front-end/inspector.html:
501         * inspector/front-end/inspector.js:
502         (WebInspector.set attached):
503         (WebInspector.addPanel):
504         (WebInspector.windowResize):
505
506 2011-02-22  Philippe Normand  <pnormand@igalia.com>
507
508         Reviewed by Xan Lopez.
509
510         [GTK] make distcheck fails
511         https://bugs.webkit.org/show_bug.cgi?id=54943
512
513         Added new headers and removed references to deleted files.
514
515         * GNUmakefile.am:
516
517 2011-02-21  Yury Semikhatsky  <yurys@chromium.org>
518
519         Reviewed by Pavel Feldman.
520
521         Web Inspector: make DOM storage and Database agents have the same lifetime as InspectorAgent
522         https://bugs.webkit.org/show_bug.cgi?id=54891
523
524         * inspector/InspectorAgent.cpp:
525         (WebCore::InspectorAgent::InspectorAgent):
526         (WebCore::InspectorAgent::setFrontend):
527         (WebCore::InspectorAgent::disconnectFrontend):
528         (WebCore::InspectorAgent::createFrontendLifetimeAgents):
529         (WebCore::InspectorAgent::releaseFrontendLifetimeAgents):
530         (WebCore::InspectorAgent::didCommitLoad):
531         * inspector/InspectorAgent.h:
532         (WebCore::InspectorAgent::instrumentingAgents):
533         * inspector/InspectorDOMStorageAgent.cpp:
534         (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
535         (WebCore::InspectorDOMStorageAgent::~InspectorDOMStorageAgent):
536         (WebCore::InspectorDOMStorageAgent::setFrontend):
537         (WebCore::InspectorDOMStorageAgent::clearFrontend):
538         (WebCore::InspectorDOMStorageAgent::selectDOMStorage):
539         (WebCore::InspectorDOMStorageAgent::getDOMStorageResourceForId):
540         (WebCore::InspectorDOMStorageAgent::didUseDOMStorage):
541         (WebCore::InspectorDOMStorageAgent::clearResources):
542         * inspector/InspectorDOMStorageAgent.h:
543         (WebCore::InspectorDOMStorageAgent::create):
544         * inspector/InspectorDatabaseAgent.cpp:
545         (WebCore::InspectorDatabaseAgent::didOpenDatabase):
546         (WebCore::InspectorDatabaseAgent::clearResources):
547         (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
548         (WebCore::InspectorDatabaseAgent::~InspectorDatabaseAgent):
549         (WebCore::InspectorDatabaseAgent::setFrontend):
550         (WebCore::InspectorDatabaseAgent::clearFrontend):
551         (WebCore::InspectorDatabaseAgent::databaseForId):
552         (WebCore::InspectorDatabaseAgent::selectDatabase):
553         * inspector/InspectorDatabaseAgent.h:
554         (WebCore::InspectorDatabaseAgent::create):
555         * inspector/InspectorInstrumentation.cpp:
556         (WebCore::InspectorInstrumentation::didOpenDatabaseImpl):
557         (WebCore::InspectorInstrumentation::didUseDOMStorageImpl):
558
559 2011-02-22  Steve Lacey  <sjl@chromium.org>
560
561         Reviewed by Darin Fisher.
562
563         Rename new media statistics apis to better names
564
565         https://bugs.webkit.org/show_bug.cgi?id=54784
566
567         * html/HTMLMediaElement.cpp:
568         (WebCore::HTMLMediaElement::webkitAudioDecodedByteCount):
569         (WebCore::HTMLMediaElement::webkitVideoDecodedByteCount):
570         * html/HTMLMediaElement.h:
571         * html/HTMLMediaElement.idl:
572         * html/HTMLVideoElement.cpp:
573         (WebCore::HTMLVideoElement::webkitDecodedFrameCount):
574         (WebCore::HTMLVideoElement::webkitDroppedFrameCount):
575         * html/HTMLVideoElement.h:
576         * html/HTMLVideoElement.idl:
577         * platform/graphics/MediaPlayer.cpp:
578         (WebCore::MediaPlayer::decodedFrameCount):
579         (WebCore::MediaPlayer::droppedFrameCount):
580         (WebCore::MediaPlayer::audioDecodedByteCount):
581         (WebCore::MediaPlayer::videoDecodedByteCount):
582         * platform/graphics/MediaPlayer.h:
583         * platform/graphics/MediaPlayerPrivate.h:
584         (WebCore::MediaPlayerPrivateInterface::decodedFrameCount):
585         (WebCore::MediaPlayerPrivateInterface::droppedFrameCount):
586         (WebCore::MediaPlayerPrivateInterface::audioDecodedByteCount):
587         (WebCore::MediaPlayerPrivateInterface::videoDecodedByteCount):
588
589 2011-02-21  Roland Steiner  <rolandsteiner@chromium.org>
590
591         Reviewed by Kent Tamura.
592
593         Bug 54435 - Simplify CSSStyleSelector::canShareStyleWithElement
594         https://bugs.webkit.org/show_bug.cgi?id=54435
595
596         Changed the function to a series of early-exit 'if's,
597         removed most temporary variables.
598
599         No new tests. (refactoring)
600
601         * css/CSSStyleSelector.cpp:
602         (WebCore::CSSStyleSelector::canShareStyleWithElement):
603
604 2011-02-21  Nico Weber  <thakis@chromium.org>
605
606         Reviewed by James Robinson.
607
608         [chromium] PopupContainer::show() confuses clang's -Woverloaded-virtual
609         https://bugs.webkit.org/show_bug.cgi?id=54923
610
611         Rename PopupContainer::show() to showInRect(), to make it obvious it's
612         not an override of ScrollView::show().
613
614         No intended functionality change.
615
616         * platform/chromium/PopupMenuChromium.cpp:
617         (WebCore::PopupContainer::showInRect):
618         (WebCore::PopupMenuChromium::show):
619         * platform/chromium/PopupMenuChromium.h:
620
621 2011-02-21  Julien Chaffraix  <jchaffraix@codeaurora.org>
622
623         Reviewed by Antti Koivisto.
624
625         Improve the local{SharedStyle,CousinList} algorithm
626         https://bugs.webkit.org/show_bug.cgi?id=45507
627
628         This change improves the algorithm to find shared styles: the old
629         algorithm would stop the search after the first cousin, even if
630         the search threshold is not met. As such, the algorithm would
631         systematically miss sharings across second cousins and beyond.
632         The new algorithm continues the search, as long as threshold is
633         not met. It also separates the threshold for sibling/cousins
634         search, from that on the levels of search, which is easier to
635         optimize.
636         The new algorithm finds up to 30% more sharings on some sites
637         (e.g. amazon.com and rakuten.co.jp) with no noticeable slowdown.
638
639         No new test, refactoring only.
640
641         * css/CSSStyleSelector.cpp:
642         (WebCore::CSSStyleSelector::locateCousinList):
643         (WebCore::CSSStyleSelector::locateSharedStyle):
644         While changing the algorithm, cleaned up the style of those 2 methods
645         (use early return, renamed some variables).
646
647         * css/CSSStyleSelector.h:
648
649 2011-02-21  Nico Weber  <thakis@chromium.org>
650
651         Reviewed by Adam Barth.
652
653         RenderTableCell::baselinePosition() confuses clang's -Woverloaded-virtual
654         https://bugs.webkit.org/show_bug.cgi?id=54922
655
656         RenderTableCell::baselinePosition() has the same name as a virtual
657         method in superclass RenderBlock. Rename the subclass method to make
658         it clear it's not an attempted override.
659
660         No intended functionality change.
661
662         * rendering/RenderTableCell.cpp:
663         (WebCore::RenderTableCell::cellBaselinePosition):
664         * rendering/RenderTableCell.h:
665         * rendering/RenderTableSection.cpp:
666         (WebCore::RenderTableSection::calcRowLogicalHeight):
667         (WebCore::RenderTableSection::layoutRows):
668
669 2011-02-21  Benjamin Kalman  <kalman@chromium.org>
670
671         Reviewed by Ryosuke Niwa.
672
673         Extending selection by a boundary granularity (LineBoundary/ParagraphBoundary/DocumentBoundary) sets incorrect
674         start/end of selection for RTL
675         https://bugs.webkit.org/show_bug.cgi?id=54724
676
677         On mac, the selection should always grow when extending by a boundary granularity (line/paragraph/document).
678         This is achieved by extending from the start for the "left" direction (e.g. pressing left arrow key), or
679         extending from the end when for the "right" direction (e.g. pressing right arrow key).
680
681         However, this has a bug for RTL text, which should actually extend from the *end* when extending left (since
682         direction is obviously reversed) and likewise extend from the start when extending right.
683
684         * editing/SelectionController.cpp:
685         (WebCore::SelectionController::modify):
686
687 2011-02-21  Nico Weber  <thakis@chromium.org>
688
689         Reviewed by Adam Barth.
690
691         ImageDocument::imageChanged() confuses clang's -Woverride-virtual
692         https://bugs.webkit.org/show_bug.cgi?id=54924
693
694         Rename ImageDocument::imageChanged() to imageUpdated() to make clear
695         that it's not an override of CachedResourceClient::imageChanged().
696
697         * html/ImageDocument.cpp:
698         (WebCore::ImageDocumentParser::appendBytes):
699         (WebCore::ImageDocumentParser::finish):
700         (WebCore::ImageDocument::imageUpdated):
701         * html/ImageDocument.h:
702
703 2011-02-21  Roland Steiner  <rolandsteiner@chromium.org>
704
705         Reviewed by Kent Tamura.
706
707         Bug 54934 - Sort the WebCore project file(s)
708         https://bugs.webkit.org/show_bug.cgi?id=54934
709
710         No new tests. (no code affected)
711
712         * GNUmakefile.am:
713         * WebCore.xcodeproj/project.pbxproj:
714
715 2011-02-21  Nico Weber  <thakis@chromium.org>
716
717         Reviewed by Adam Barth.
718
719         canAccommodateEllipsis() confuses clang's -Woverloaded-virtual
720         https://bugs.webkit.org/show_bug.cgi?id=54909
721
722         Rename the overload in RootInlineBox to lineCanAccomodateEllipsis() to
723         unconfuse clang. No intended functionality change.
724
725         * rendering/RenderBlockLineLayout.cpp:
726         (WebCore::RenderBlock::checkLinesForTextOverflow):
727         * rendering/RenderFlexibleBox.cpp:
728         (WebCore::RenderFlexibleBox::applyLineClamp):
729         * rendering/RootInlineBox.cpp:
730         (WebCore::RootInlineBox::lineCanAccommodateEllipsis):
731         * rendering/RootInlineBox.h:
732
733 2011-02-21  Adele Peterson  <adele@apple.com>
734
735         Reviewed by Dan Bernstein.
736
737         Fix for for https://bugs.webkit.org/show_bug.cgi?id=54402
738         REGRESSION (r72052): Placeholder text doesn't have the right padding for search fields on Windows
739
740         Test: updated fast/forms/placeholder-position.html and tested manually
741
742         Consider padding and margin for the results and cancel buttons.  This is important for the Windows 
743         theme which uses padding to correctly position those buttons.  This change fixes the placeholder 
744         position, and also better aligns the results popup list with the actual text you type.
745
746         * rendering/RenderTextControlSingleLine.cpp:
747         (WebCore::RenderTextControlSingleLine::clientPaddingLeft):
748         (WebCore::RenderTextControlSingleLine::clientPaddingRight):
749
750 2011-02-21  Nico Weber  <thakis@chromium.org>
751
752         Reviewed by Kent Tamura.
753
754         GIFImageDecoder::setSize() tries to override the superclass method but fails
755         https://bugs.webkit.org/show_bug.cgi?id=54305
756
757         The superclass uses unsigned instead of int for its parameters, so
758         GIFImageDecoder::setSize() was an overload, not an override.
759
760         * platform/image-decoders/gif/GIFImageDecoder.cpp:
761         (WebCore::GIFImageDecoder::setSize):
762         * platform/image-decoders/gif/GIFImageDecoder.h:
763
764 2011-02-21  Ryosuke Niwa  <rniwa@webkit.org>
765
766         Reviewed by Darin Adler.
767
768         Deploy EditingStyle more in ApplyStyleCommand and do some cleanup
769         https://bugs.webkit.org/show_bug.cgi?id=54528
770
771         * editing/ApplyStyleCommand.cpp:
772         (WebCore::StyleChange::init): Allows style to be a null pointer.
773         (WebCore::ApplyStyleCommand::applyInlineStyle): Overrides the value of text-decoration property by that of
774         -webkit-text-decorations-in-effect and remove the latter property when present. This allows removeImplicitlyStyledElement
775         to ignore -webkit-text-decorations-in-effect. Also uses the return value of EditingStyle::textDirection to determine
776         whether or not we need to apply unicode-bidi / direction instead of directly checking the value of unicode-bidi property.
777         (WebCore::ApplyStyleCommand::fixRangeAndApplyInlineStyle): Takes EditingStyle* instead of CSSMutableStyleDeclaration*.
778         (WebCore::ApplyStyleCommand::applyInlineStyleToNodeRange): Ditto.
779         (WebCore::ApplyStyleCommand::removeStyleFromRunBeforeApplyingStyle): Ditto.
780         (WebCore::ApplyStyleCommand::removeCSSStyle): Ditto.
781         (WebCore::ApplyStyleCommand::highestAncestorWithConflictingInlineStyle): Ditto.
782         (WebCore::ApplyStyleCommand::pushDownInlineStyleAroundNode): Ditto.
783         (WebCore::ApplyStyleCommand::removeInlineStyle): Ditto; no longer collapse text decoration properties because
784         ApplyStyleCommand::applyInlineStyle already does it.
785         * editing/ApplyStyleCommand.h:
786         * editing/EditingStyle.cpp:
787         (WebCore::EditingStyle::textDirection): Exits early when m_mutableStyle is null.
788         (WebCore::EditingStyle::collapseTextDecorationProperties): Extracted from ApplyStyleCommand::removeInlineStyle.
789         * editing/EditingStyle.h:
790
791 2011-02-21  Mark Rowe  <mrowe@apple.com>
792
793         Reviewed by Darin Adler and Alexey Proskuryakov.
794
795         <http://webkit.org/b/54919> / <rdar://problem/7689300> WebCore should retrieve unclamped frame delays from ImageIO
796
797         * platform/graphics/cg/ImageSourceCG.cpp:
798         (WebCore::ImageSource::frameDurationAtIndex): Look for the unclamped frame delay in the
799         frame properties dictionary and use that if it exists. If it does not exist in the
800         dictionary then fall back to using the clamped frame delay.
801
802 2011-02-21  James Kozianski  <koz@chromium.org>
803
804         Reviewed by Kent Tamura.
805
806         Causes elements to be unfocusable after tabindex property is removed.
807         https://bugs.webkit.org/show_bug.cgi?id=54727
808
809         Test: fast/html/tabindex-removal.html
810
811         * dom/Node.cpp:
812         (WebCore::Node::clearTabIndexExplicitly):
813         * dom/Node.h:
814         * dom/NodeRareData.h:
815         (WebCore::NodeRareData::clearTabIndexExplicitly):
816         * html/HTMLElement.cpp:
817         (WebCore::HTMLElement::parseMappedAttribute):
818
819 2011-02-21  Alexey Proskuryakov  <ap@apple.com>
820
821         Reviewed by Mark Rowe.
822
823         <rdar://problem/8995483> Remove stubs of unneeded NSURLAuthenticationChallengeSender methods
824
825         * platform/network/mac/AuthenticationMac.mm: Remove the stubs that are no longer needed.
826
827 2011-02-21  Sam Weinig  <sam@webkit.org>
828
829         Reviewed by Dan Bernstein.
830
831         Overhang areas need to be invalidated on scroll
832         <rdar://problem/9032194>
833         https://bugs.webkit.org/show_bug.cgi?id=54917
834
835         * platform/ScrollView.cpp:
836         (WebCore::ScrollView::scrollContents):
837         We need to explicitly invalidate the overhang areas when we scroll the contents
838         of a ScrollView, since they could contain arbitrary content that cannot be blitted.
839
840 2011-02-21  Lucas Forschler  <lforschler@apple.com>
841
842         Reviewed by Stephanie Lewis.
843
844         Fix the Leopard Debug build by incorporating the RenderSVGAllInOne.cpp
845
846         No new tests required.
847
848         * WebCore.xcodeproj/project.pbxproj:
849
850 2011-02-21  Pratik Solanki  <psolanki@apple.com>
851
852         Reviewed by Darin Adler.
853
854         Remove global initializer in CookieStorageCFNet.cpp
855         https://bugs.webkit.org/show_bug.cgi?id=54905
856
857         * platform/network/cf/CookieStorageCFNet.cpp:
858         (WebCore::currentCookieStorage):
859         (WebCore::setCurrentCookieStorage):
860         (WebCore::setCookieStoragePrivateBrowsingEnabled):
861
862 2011-02-18  Jer Noble  <jer.noble@apple.com>
863
864         Reviewed by Sam Weinig.
865
866         WebKit2: Media document videos play only sound, no video (affects trailers.apple.com)
867         https://bugs.webkit.org/show_bug.cgi?id=54771
868
869         Now that video is accelerated, we no longer need to special case
870         video playing within a media document.
871
872         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
873         (WebCore::MediaPlayerPrivateQTKit::preferredRenderingMode):
874         (WebCore::MediaPlayerPrivateQTKit::supportsAcceleratedRendering):
875
876 2011-02-21  Alexey Proskuryakov  <ap@apple.com>
877
878         Reviewed by Adam Roben.
879
880         REGRESSION (WebKit2): HTTP requests time out after 60 seconds
881         https://bugs.webkit.org/show_bug.cgi?id=54755
882         <rdar://problem/9006592>
883
884         No new tests - it won't be great to have a test that runs for a minute.
885
886         It's now possible to set a default timeout to be used at ResourceRequest creation. If one
887         hasn't been set, ResourceRequest will behave as before (use NSURLRequest default on Mac,
888         or use INT_MAX on other platforms).
889
890         * WebCore.exp.in:
891         * platform/network/ResourceRequestBase.cpp:
892         (WebCore::ResourceRequestBase::defaultTimeoutInterval): Get the ResourceRequest notion of
893         default timeout interval (may be 0 if using NSURLRequest default).
894         (WebCore::ResourceRequestBase::setDefaultTimeoutInterval): Set the static member variable.
895         (WebCore::ResourceRequestBase::updatePlatformRequest): Added an assertion that resource
896         request is updated. Plaform code often calls updateResourceRequest() indirectly from this
897         function, and that must obviously be a no-op.
898         (WebCore::ResourceRequestBase::updateResourceRequest): Added an assertion in the opposite
899         direction.
900         * platform/network/ResourceRequestBase.h: Changed "unspecifiedTimeoutInterval" to
901         "defaultTimeoutInterval". It has been used as default by most platforms anyway.
902         (WebCore::ResourceRequestBase::ResourceRequestBase):
903
904         * platform/network/mac/ResourceRequestMac.mm: (WebCore::ResourceRequest::doUpdatePlatformRequest):
905         Now zero is the magic value, not INT_MAX. We'll use NSURLRequest default if neither
906         setTimeoutInterval() nor setDefaultTimeoutInterval() has been called.
907
908 2011-02-21  Martin Robinson  <mrobinson@igalia.com>
909
910         Reviewed by Xan Lopez.
911
912         [GTK] editing/pasteboard/dataTransfer-setData-getData.html fails
913         https://bugs.webkit.org/show_bug.cgi?id=54895
914
915         Correct the GTK+ clipboard implementation to know that "text" is an alias
916         for "text/html" data. This corrects the failing test.
917
918         * platform/gtk/ClipboardGtk.cpp:
919         (WebCore::dataObjectTypeFromHTMLClipboardType): Accept "text" as well as "Text".
920         (WebCore::ClipboardGtk::types): Advertise "text" as well as "Text".
921
922 2011-02-21  Vsevolod Vlasov  <vsevik@chromium.org>
923
924         Reviewed by Pavel Feldman.
925
926         ProcessingInstruction should provide a way to know if it is of CSS type.
927         https://bugs.webkit.org/show_bug.cgi?id=54868
928
929         * dom/ProcessingInstruction.cpp:
930         (WebCore::ProcessingInstruction::ProcessingInstruction):
931         (WebCore::ProcessingInstruction::checkStyleSheet):
932         (WebCore::ProcessingInstruction::setCSSStyleSheet):
933         * dom/ProcessingInstruction.h:
934         (WebCore::ProcessingInstruction::isCSS):
935
936 2011-02-21  Simon Fraser  <simon.fraser@apple.com>
937
938         Put JSDOMImplementationCustom.cpp where it belongs in the project.
939
940         * WebCore.xcodeproj/project.pbxproj:
941
942 2011-02-21  Gavin Barraclough  <barraclough@apple.com>
943
944         Reviewed by Sam Weinig.
945
946         Bug 54894 - Make inheritance structure described by ClassInfo match C++ class hierarchy.
947
948         The ClassInfo objects describe an inheritance hierarchy, with each ClassInfo instance
949         containing a pointer to its parent class. These links should reflect the inheritance
950         hierarchy of C++ classes below JSObject. For the large part it does, but in some cases
951         entries in the C++ hierarchy are skipped over. This presently likely doesn't matter,
952         since intervening C++ classes may not have ClassInfo - but would be a potential bug
953         were ClassInfo were to be added.
954
955         * bindings/js/JSAudioConstructor.cpp:
956         * bindings/js/JSDOMGlobalObject.cpp:
957         * bindings/js/JSImageConstructor.cpp:
958         * bindings/js/JSOptionConstructor.cpp:
959         * bindings/scripts/CodeGeneratorJS.pm:
960         * bridge/objc/objc_runtime.mm:
961         * bridge/runtime_object.cpp:
962
963 2011-02-21  Pavel Feldman  <pfeldman@chromium.org>
964
965         Reviewed by Yury Semikhatsky.
966
967         Web Inspector: navigation does not work after reopening frontend.
968         https://bugs.webkit.org/show_bug.cgi?id=54879
969
970         Test: http/tests/inspector-enabled/open-close-open.html
971
972         * inspector/InspectorAgent.cpp:
973         (WebCore::InspectorAgent::setFrontend):
974         * inspector/InspectorState.cpp:
975         (WebCore::InspectorState::unmute):
976         * inspector/InspectorState.h:
977
978 2011-02-21  Adam Roben  <aroben@apple.com>
979
980         Protect the PluginView when evaluating javascript: URLs
981
982         Fixes <http://webkit.org/b/54884> <rdar://problem/9030864>
983         plugins/get-url-with-javascript-destroying-plugin.html crashing on Windows since it was
984         added
985
986         Reviewed by Sam Weinig.
987
988         * plugins/PluginView.cpp:
989         (WebCore::PluginView::performRequest): Protect the PluginView, not just its parent frame,
990         when evaluating javascript: URLs.
991
992 2011-02-21  Martin Robinson  <mrobinson@igalia.com>
993
994         Fix GTK+ build after r79223.
995
996         * GNUmakefile.am: Add file missing from the source list.
997
998 2011-02-14  Alexander Pavlov  <apavlov@chromium.org>
999
1000         Reviewed by Yury Semikhatsky.
1001
1002         Web Inspector: audits should not warn about gzip compression for 304s
1003         https://bugs.webkit.org/show_bug.cgi?id=54343
1004
1005         Do not run compression-related audits on 304 resources.
1006         Drive-by: handle multi-encoding resources (Content-Encoding: sdhc,gzip) correctly.
1007
1008         * inspector/front-end/AuditRules.js:
1009         (WebInspector.AuditRules.GzipRule.prototype.doRun):
1010         (WebInspector.AuditRules.GzipRule.prototype._isCompressed):
1011
1012 2011-02-08  Anton Muhin  <antonm@chromium.org>
1013
1014        Reviewed by Adam Barth and Alexey Proskuryakov.
1015
1016        Propagate security origin of parent document into HTML documents created with DOMImplementation
1017        https://bugs.webkit.org/show_bug.cgi?id=53611
1018
1019        This restores invariant that JS wrappers residing in the same JS context should come
1020        from the same security origin.
1021
1022        Absence of regressions is covered by the current tests.  Different security origin of
1023        DOMImplementation is difficult to check with layout tests as DOMImplementation
1024        resides in the same JS context as parent document and therefore there are no security origin checks.
1025        This is observable however in C++.
1026
1027        * Android.jscbindings.mk:
1028        * CMakeLists.txt:
1029        * WebCore.gypi:
1030        * WebCore.pro:
1031        * WebCore.vcproj/WebCore.vcproj:
1032        * WebCore.xcodeproj/project.pbxproj:
1033        * bindings/v8/V8GCController.cpp:
1034        (WebCore::NodeGrouperVisitor::visitDOMWrapper):
1035        * dom/DOMImplementation.cpp:
1036        (WebCore::DOMImplementation::DOMImplementation):
1037        (WebCore::DOMImplementation::createDocument):
1038        * dom/DOMImplementation.h:
1039        (WebCore::DOMImplementation::create):
1040        (WebCore::DOMImplementation::documentDestroyed):
1041        (WebCore::DOMImplementation::parentDocument):
1042        * dom/DOMImplementation.idl:
1043        * dom/Document.cpp:
1044        (WebCore::Document::~Document):
1045        (WebCore::Document::implementation):
1046        * dom/Document.h:
1047
1048 2011-02-21  Andrey Adaikin  <aandrey@google.com>
1049
1050         Reviewed by Pavel Feldman.
1051
1052         Web Inspector: [Text editor] Optimize editing updates in gutter panel
1053         https://bugs.webkit.org/show_bug.cgi?id=54866
1054
1055         * inspector/front-end/TextViewer.js:
1056         (WebInspector.TextViewer.prototype.set startEditingListener):
1057         (WebInspector.TextViewer.prototype.set endEditingListener):
1058         (WebInspector.TextViewer.prototype.endUpdates):
1059         (WebInspector.TextViewer.prototype._enterInternalTextChangeMode):
1060         (WebInspector.TextViewer.prototype._exitInternalTextChangeMode):
1061         (WebInspector.TextEditorChunkedPanel.prototype._chunkNumberForLine):
1062         (WebInspector.TextEditorGutterPanel.prototype._expandChunks):
1063         (WebInspector.TextEditorGutterPanel.prototype.textChanged):
1064         (WebInspector.TextEditorMainPanel.prototype._updateChunksForRanges):
1065
1066 2011-02-21  Alexander Pavlov  <apavlov@chromium.org>
1067
1068         Reviewed by Yury Semikhatsky.
1069
1070         Web Inspector: [Audits] Image dimensions in inline style not checked
1071         https://bugs.webkit.org/show_bug.cgi?id=54738
1072
1073         * inspector/front-end/AuditRules.js:
1074         (WebInspector.AuditRules.ImageDimensionsRule.prototype.doRun):
1075
1076 2011-02-21  Yury Semikhatsky  <yurys@chromium.org>
1077
1078         Reviewed by Pavel Feldman.
1079
1080         Web Inspector: create and destroy DOM agent along with InspectorAgent
1081         https://bugs.webkit.org/show_bug.cgi?id=54875
1082
1083         * GNUmakefile.am:
1084         * WebCore.gypi:
1085         * WebCore.pro:
1086         * WebCore.vcproj/WebCore.vcproj:
1087         * WebCore.xcodeproj/project.pbxproj:
1088         * inspector/InstrumentingAgents.h: Added. Agents that want to instrument WebCore should register themselve
1089         on this object.
1090         (WebCore::InstrumentingAgents::InstrumentingAgents):
1091         (WebCore::InstrumentingAgents::~InstrumentingAgents):
1092         (WebCore::InstrumentingAgents::inspectorBrowserDebuggerAgent):
1093         (WebCore::InstrumentingAgents::setInspectorBrowserDebuggerAgent):
1094         (WebCore::InstrumentingAgents::inspectorConsoleAgent):
1095         (WebCore::InstrumentingAgents::setInspectorConsoleAgent):
1096         (WebCore::InstrumentingAgents::inspectorDOMAgent):
1097         (WebCore::InstrumentingAgents::setInspectorDOMAgent):
1098         (WebCore::InstrumentingAgents::inspectorDOMStorageAgent):
1099         (WebCore::InstrumentingAgents::setInspectorDOMStorageAgent):
1100         (WebCore::InstrumentingAgents::inspectorDatabaseAgent):
1101         (WebCore::InstrumentingAgents::setInspectorDatabaseAgent):
1102         (WebCore::InstrumentingAgents::inspectorDebuggerAgent):
1103         (WebCore::InstrumentingAgents::setInspectorDebuggerAgent):
1104         (WebCore::InstrumentingAgents::inspectorProfilerAgent):
1105         (WebCore::InstrumentingAgents::setInspectorProfilerAgent):
1106         (WebCore::InstrumentingAgents::inspectorResourceAgent):
1107         (WebCore::InstrumentingAgents::setInspectorResourceAgent):
1108         (WebCore::InstrumentingAgents::inspectorRuntimeAgent):
1109         (WebCore::InstrumentingAgents::setInspectorRuntimeAgent):
1110         (WebCore::InstrumentingAgents::inspectorStorageAgent):
1111         (WebCore::InstrumentingAgents::setInspectorStorageAgent):
1112         (WebCore::InstrumentingAgents::inspectorTimelineAgent):
1113         (WebCore::InstrumentingAgents::setInspectorTimelineAgent):
1114         * inspector/InspectorAgent.cpp:
1115         (WebCore::InspectorAgent::InspectorAgent):
1116         (WebCore::InspectorAgent::setFrontend):
1117         (WebCore::InspectorAgent::disconnectFrontend):
1118         (WebCore::InspectorAgent::createFrontendLifetimeAgents):
1119         (WebCore::InspectorAgent::releaseFrontendLifetimeAgents):
1120         (WebCore::InspectorAgent::didCommitLoad):
1121         (WebCore::InspectorAgent::domContentLoadedEventFired):
1122         (WebCore::InspectorAgent::loadEventFired):
1123         * inspector/InspectorAgent.h:
1124         * inspector/InspectorCSSAgent.cpp:
1125         (WebCore::InspectorCSSAgent::InspectorCSSAgent):
1126         (WebCore::InspectorCSSAgent::~InspectorCSSAgent):
1127         * inspector/InspectorCSSAgent.h:
1128         * inspector/InspectorConsoleAgent.cpp:
1129         (WebCore::InspectorConsoleAgent::InspectorConsoleAgent):
1130         (WebCore::InspectorConsoleAgent::~InspectorConsoleAgent):
1131         (WebCore::InspectorConsoleAgent::clearConsoleMessages):
1132         (WebCore::InspectorConsoleAgent::clearFrontend):
1133         (WebCore::InspectorConsoleAgent::resourceRetrievedByXMLHttpRequest):
1134         (WebCore::InspectorConsoleAgent::setMonitoringXHREnabled):
1135         (WebCore::InspectorConsoleAgent::setConsoleMessagesEnabled):
1136         (WebCore::InspectorConsoleAgent::addConsoleMessage):
1137         * inspector/InspectorConsoleAgent.h:
1138         * inspector/InspectorDOMAgent.cpp: DOM agent now lives even when the front-end is not attached.
1139         (WebCore::InspectorDOMAgent::InspectorDOMAgent):
1140         (WebCore::InspectorDOMAgent::setFrontend): Add DOM agent to the set of active agents when the front-end
1141         is attached.
1142         (WebCore::InspectorDOMAgent::clearFrontend):
1143         * inspector/InspectorDOMAgent.h:
1144         (WebCore::InspectorDOMAgent::create):
1145
1146 2011-02-21  Csaba Osztrogonác  <ossy@webkit.org>
1147
1148         Reviewed by Andreas Kling.
1149
1150         [Qt][V8]REGRESSION(r79157): Fix build
1151         https://bugs.webkit.org/show_bug.cgi?id=54871
1152
1153         * bridge/npruntime_internal.h: Add one more undef because of evil X11 macro.
1154
1155 2011-02-16  Vitaly Repeshko  <vitalyr@chromium.org>
1156
1157         Reviewed by Mihai Parparita.
1158
1159         [V8] SerializedScriptValue: fix JS exception handling.
1160         https://bugs.webkit.org/show_bug.cgi?id=54555
1161
1162         Added checks for exceptions and empty handles:
1163         * bindings/v8/SerializedScriptValue.cpp:
1164         (WebCore::Serializer::Serializer):
1165         (WebCore::Serializer::serialize):
1166         (WebCore::Serializer::checkException):
1167         (WebCore::Serializer::reportFailure):
1168         (WebCore::Serializer::ArrayState::advance):
1169         (WebCore::Serializer::AbstractObjectState::AbstractObjectState):
1170         (WebCore::Serializer::AbstractObjectState::advance):
1171         (WebCore::Serializer::push):
1172         (WebCore::Serializer::handleError):
1173         (WebCore::Serializer::newObjectState):
1174         (WebCore::Serializer::doSerialize):
1175         (WebCore::SerializedScriptValue::SerializedScriptValue):
1176
1177 2011-02-21  Ryosuke Niwa  <rniwa@webkit.org>
1178
1179         Reviewed by Kent Tamura.
1180
1181         Add selectionchange event
1182         https://bugs.webkit.org/show_bug.cgi?id=45712
1183
1184         Added the support for asynchronous selectionchange event, which is fired whenever selection is changed.
1185         This event is not cancelable and does not bubble. An event listener can be attached to a document by
1186         body element's onselectionchange attribute or via document's onselectionchange property.
1187
1188         Note that WebKit's implementation fires the event asynchronously whereas Internet Explorer's implementation
1189         fires it synchronously. This implies that a script that modify selection (e.g. via selection's addRange)
1190         will not observe the event before the control returns to JavaScript.
1191
1192         See also: http://msdn.microsoft.com/en-us/library/ms536968(VS.85).aspx
1193
1194         Tests: fast/events/selectionchange-iframe.html
1195                fast/events/selectionchange-user-initiated.html
1196
1197         * dom/Document.cpp:
1198         (WebCore::Document::enqueueDocumentEvent): Added.
1199         * dom/Document.h: Added selectionchange event listener.
1200         * dom/Document.idl: Added onselectionchagne attribute.
1201         * dom/EventNames.h: Added selectionchange
1202         * editing/SelectionController.cpp:
1203         (WebCore::SelectionController::setSelection): Fires selectionchange event.
1204         * html/HTMLAttributeNames.in: Added onselectionchange.
1205         * html/HTMLBodyElement.cpp:
1206         (WebCore::HTMLBodyElement::parseMappedAttribute): Handles onselectionchange attribute.
1207
1208 2011-02-21  Ilya Tikhonovsky  <loislo@chromium.org>
1209
1210         Reviewed by Pavel Feldman.
1211
1212         Web Inspector: protocol error messages are dumping incorrectly in Layout tests.
1213         https://bugs.webkit.org/show_bug.cgi?id=54859
1214
1215         * inspector/CodeGeneratorInspector.pm:
1216
1217 2011-02-21  Pavel Feldman  <pfeldman@chromium.org>
1218
1219         Reviewed by Yury Semikhatsky.
1220
1221         Web Inspector: generate protocol documentation based on IDL.
1222         https://bugs.webkit.org/show_bug.cgi?id=54822
1223
1224         * inspector/CodeGeneratorInspector.pm:
1225
1226 2011-02-21  Andoni Morales Alastruey  <amorales@flumotion.com>
1227
1228         Reviewed by Martin Robinson.
1229
1230         [GStreamer] Add URI queries support in webkitwebsrc
1231         https://bugs.webkit.org/show_bug.cgi?id=54627
1232
1233         This allow replying to URI queries from downstream elements
1234         with the uri currently set in the source element.
1235
1236         No new tests, this feature is dedicated to internal GStreamer use,
1237         such as the upcoming HTTP Live Streaming element.
1238
1239         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
1240         (webKitWebSrcQuery):
1241
1242 2011-02-21  Andoni Morales Alastruey  <amorales@flumotion.com>
1243
1244         Reviewed by Martin Robinson.
1245
1246         [GStreamer] Add 'location' property in webkitwebsrc
1247         https://bugs.webkit.org/show_bug.cgi?id=54628
1248
1249         No new tests, this feature is dedicated to internal GStreamer use,
1250         such as the upcoming HTTP Live Streaming element.
1251
1252         * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
1253         (webkit_web_src_class_init):
1254         (webKitWebSrcSetProperty):
1255         (webKitWebSrcGetProperty):
1256
1257 2011-02-17  Ryosuke Niwa  <rniwa@webkit.org>
1258
1259         Reviewed by Kent Tamura.
1260
1261         Rename Position::node() to Position::deprecatedNode()
1262         https://bugs.webkit.org/show_bug.cgi?id=54622
1263
1264         Done the rename. All calls to node() are replaced by calls to deprecatedNode() except when
1265         calls were of the form node()->document() and node()->inDocument() in which case they were
1266         replaced by anchorNode()->document() and anchorNode()->inDocument() respectively.
1267
1268         * WebCore.exp.in: Added Position::containerNode.
1269
1270         The rest abbreviated for simplicity. Please see svn log.
1271
1272 2011-02-20  Gavin Barraclough  <barraclough@apple.com>
1273
1274         Build fix (remove includes).
1275
1276         * bindings/js/JSDOMBinding.cpp:
1277         * bindings/js/JSDOMWindowCustom.cpp:
1278         * bindings/js/JSHistoryCustom.cpp:
1279         * bindings/js/JSLocationCustom.cpp:
1280
1281 2011-02-20  Gavin Barraclough  <barraclough@apple.com>
1282
1283         Reviewed by Oliver Hunt.
1284
1285         https://bugs.webkit.org/show_bug.cgi?id=54839
1286         Remove PrototypeFunction, NativeFunctionWrapper, and GlobalEvalFunction.
1287
1288         Historically, Native functions used to be represented by PrototypeFunctions, however
1289         since introducing call optimizations to the JIT this has used JSFunctions for host
1290         calls too. At the point this change was made, the interpreter continued to use
1291         PrototypeFunctions, however since fallback from the JIT to interpreter was introduced
1292         the interpreter has had to be able to run using host functions represented using
1293         JSFunctions - leading to an unnecessary and redundant divergence in behaviour between 
1294         interpreter only builds, and situations where the JIT has fallen back to interpreting.
1295
1296         NativeFunctionWrapper only existed to select between PrototypeFunction and JSFunction
1297         for wrappers for host functions, and as such can also be removed.
1298
1299         GlobalEvalFunction is a redundant wrapper that happens to be derived from
1300         PrototypeFunction. It existed to hold a reference to the global object - but since all
1301         functions how derive from JSObjectWithGlobalObject, this no longer requires an
1302         additional class to provide this functionality.
1303
1304         * bindings/js/JSDOMBinding.cpp:
1305         * bindings/js/JSDOMWindowCustom.cpp:
1306         * bindings/js/JSHistoryCustom.cpp:
1307         * bindings/js/JSLocationCustom.cpp:
1308             Removed use of redundant classes.
1309
1310 2011-02-20  Sheriff Bot  <webkit.review.bot@gmail.com>
1311
1312         Unreviewed, rolling out r79169.
1313         http://trac.webkit.org/changeset/79169
1314         https://bugs.webkit.org/show_bug.cgi?id=54846
1315
1316         Made unexpected results for tests without CJK characters
1317         (Requested by tkent on #webkit).
1318
1319         * platform/graphics/chromium/FontCacheChromiumWin.cpp:
1320         (WebCore::FontCache::createFontPlatformData):
1321         * platform/graphics/chromium/FontPlatformDataChromiumWin.cpp:
1322         (WebCore::FontPlatformData::FontPlatformData):
1323         (WebCore::FontPlatformData::operator=):
1324         * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
1325         (WebCore::FontPlatformData::orientation):
1326         * platform/graphics/skia/FontCustomPlatformData.cpp:
1327         (WebCore::FontCustomPlatformData::fontPlatformData):
1328
1329 2011-02-20  Chun-Lung Huang  <alvincl.huang@gmail.com>
1330
1331         Reviewed by Kent Tamura.
1332
1333         On Chromium Windows, glyphs in vertical text tests are rotated 90
1334         degrees clockwise. https://bugs.webkit.org/show_bug.cgi?id=51450
1335
1336         This platform dependent patch makes Chromium Windows show the
1337         vertical writing text correctly. Job was done by adding a prefix '@'
1338         in front of the font family name (Windows Only). No new tests added.
1339
1340         * platform/graphics/chromium/FontCacheChromiumWin.cpp:
1341         (WebCore::FontCache::createFontPlatformData):
1342         * platform/graphics/chromium/FontPlatformDataChromiumWin.cpp:
1343         (WebCore::FontPlatformData::FontPlatformData):
1344         (WebCore::FontPlatformData::operator=):
1345         * platform/graphics/chromium/FontPlatformDataChromiumWin.h:
1346         (WebCore::FontPlatformData::orientation):
1347         * platform/graphics/skia/FontCustomPlatformData.cpp:
1348         (WebCore::FontCustomPlatformData::fontPlatformData):
1349
1350 2011-02-20  Simon Fraser  <simon.fraser@apple.com>
1351
1352         Reviewed by Dirk Schulze.
1353
1354         REGRESSION (r73369-r73405): transform animation interpolates incorrectly
1355         https://bugs.webkit.org/show_bug.cgi?id=54793
1356         
1357         After the refactoring in r73380, the ending state for some types of
1358         accelerated animations was computed incorrectly, because the TransformationMatrix
1359         wasn't reset to identity before the ending value transformations were applied.
1360         
1361         Fix by cleaning up the code to use explicit, separate values for
1362         starting and ending values. Only matrix-type animations had this
1363         issue, but cleaned up other clauses similarly.
1364
1365         Test: animations/3d/matrix-transform-type-animation.html
1366
1367         * platform/graphics/ca/GraphicsLayerCA.cpp:
1368         (WebCore::GraphicsLayerCA::setTransformAnimationEndpoints):
1369
1370 2011-02-20  Dan Bernstein  <mitz@apple.com>
1371
1372         Reviewed by Maciej Stachowiak.
1373
1374         <rdar://problem/9028929> REGRESSION (r75897): Scaling applied twice to an iframe with a transformed ancestor
1375
1376         Test: fast/frames/iframe-scale-applied-twice.html
1377
1378         * page/FrameView.cpp:
1379         (WebCore::FrameView::create): Set the initial bounds of the view to match the
1380         frame size.
1381         * platform/ScrollView.cpp:
1382         (WebCore::ScrollView::visibleContentRect): Based on bounds, not frame size.
1383         (WebCore::ScrollView::updateScrollbars): Ditto.
1384         (WebCore::ScrollView::setFrameRect): Moved code that really handles bounds size
1385         change to setBoundsSize().
1386         (WebCore::ScrollView::setBoundsSize): Added.
1387         (WebCore::ScrollView::setInitialBoundsSize): Added. Sets the bounds size but does
1388         not update anything.
1389         (WebCore::ScrollView::frameRectsChanged): Based on bounds, not frame size.
1390         (WebCore::ScrollView::scrollbarCornerPresent): Ditto.
1391         * platform/ScrollView.h:
1392         (WebCore::ScrollView::boundsSize): Added this getter.
1393         * platform/Widget.h:
1394         (WebCore::Widget::resize): Set the bounds size to the frame size.
1395         * platform/mac/ScrollbarThemeMac.mm:
1396         (WebCore::ScrollbarThemeMac::paint): Fixed an error in the indirect drawing code
1397         path where the buffer rect was resized to capture only the damaged part, but was
1398         still drawn in the original location.
1399
1400 2011-02-20  Alexey Proskuryakov  <ap@apple.com>
1401
1402         Reviewed by Eric Seidel.
1403
1404         Tighten up access permissions by using libxslt API
1405         https://bugs.webkit.org/show_bug.cgi?id=52688
1406         <rdar://problem/8909191> 
1407
1408         * xml/XSLTProcessorLibxslt.cpp: (WebCore::XSLTProcessor::transformToString): We are only
1409         interested in a string result, so let libxslt know about that.
1410
1411 2011-02-20  Sheriff Bot  <webkit.review.bot@gmail.com>
1412
1413         Unreviewed, rolling out r79104.
1414         http://trac.webkit.org/changeset/79104
1415         https://bugs.webkit.org/show_bug.cgi?id=54835
1416
1417         Might have caused flaky canaries (Requested by tonyg-cr on
1418         #webkit).
1419
1420         * html/parser/HTMLDocumentParser.cpp:
1421         (WebCore::HTMLDocumentParser::canTakeNextToken):
1422         (WebCore::HTMLDocumentParser::pumpTokenizer):
1423         * html/parser/HTMLParserScheduler.cpp:
1424         (WebCore::isLayoutTimerActive):
1425         * html/parser/HTMLParserScheduler.h:
1426         (WebCore::HTMLParserScheduler::checkForYieldBeforeToken):
1427         * page/FrameView.h:
1428
1429 2011-02-20  Dirk Schulze  <krit@webkit.org>
1430
1431         Reviewed by Nikolas Zimmermann.
1432
1433         SVG animation - analyze attribute type for animation
1434         https://bugs.webkit.org/show_bug.cgi?id=54542
1435
1436         Analyze animated attribute type to determine the kind of animation. Removed enum PropertyType and replace it
1437         with AnimatedAttributeType instead. More cleanup of the animation code.
1438         Added missing fillAttributeToPropertyTypeMap() for SVGGElement.
1439
1440         Use QualifiedName instead of AtomicStrings for attribute names. This makes it easier to handle animated attributes
1441         from a different namespace like xlink:href. The rest of the SVG code is using QualifiedNames as well.
1442
1443         No change of functionality on the animation code. The changes for the <g>-element affect animateTransform. Sadly
1444         animateTransform is not supported by our SVG animation test script at the moment. Can still be tested manually
1445         with the W3C test suite in trunk.
1446
1447         The change on SVGUseElement gets covered by animate-elem-39-t.svg
1448
1449         Test: svg/animations/animate-dynamic-update-attributeName.html
1450
1451         * svg/SVGAnimateElement.cpp:
1452         (WebCore::SVGAnimateElement::SVGAnimateElement):
1453         (WebCore::SVGAnimateElement::hasValidAttributeType):
1454         (WebCore::SVGAnimateElement::determineAnimatedAttributeType):
1455         (WebCore::SVGAnimateElement::calculateAnimatedValue):
1456         (WebCore::inheritsFromProperty):
1457         (WebCore::SVGAnimateElement::calculateFromAndToValues):
1458         (WebCore::SVGAnimateElement::calculateFromAndByValues):
1459         (WebCore::SVGAnimateElement::resetToBaseValue):
1460         (WebCore::SVGAnimateElement::applyResultsToTarget):
1461         (WebCore::SVGAnimateElement::calculateDistance):
1462         * svg/SVGAnimateElement.h:
1463         * svg/SVGAnimateMotionElement.cpp:
1464         (WebCore::SVGAnimateMotionElement::hasValidAttributeType):
1465         (WebCore::parsePoint):
1466         (WebCore::SVGAnimateMotionElement::resetToBaseValue):
1467         (WebCore::SVGAnimateMotionElement::calculateAnimatedValue):
1468         (WebCore::SVGAnimateMotionElement::calculateDistance):
1469         * svg/SVGAnimateMotionElement.h:
1470         * svg/SVGAnimateTransformElement.cpp:
1471         (WebCore::SVGAnimateTransformElement::hasValidAttributeType):
1472         (WebCore::SVGAnimateTransformElement::determineAnimatedAttributeType):
1473         (WebCore::SVGAnimateTransformElement::resetToBaseValue):
1474         (WebCore::SVGAnimateTransformElement::calculateAnimatedValue):
1475         (WebCore::SVGAnimateTransformElement::calculateFromAndByValues):
1476         (WebCore::SVGAnimateTransformElement::applyResultsToTarget):
1477         (WebCore::SVGAnimateTransformElement::calculateDistance):
1478         * svg/SVGAnimateTransformElement.h:
1479         * svg/SVGAnimationElement.cpp:
1480         (WebCore::parseKeyTimes):
1481         (WebCore::parseKeySplines):
1482         (WebCore::SVGAnimationElement::isTargetAttributeCSSProperty):
1483         (WebCore::SVGAnimationElement::setTargetAttributeAnimatedValue):
1484         (WebCore::SVGAnimationElement::calculateKeyTimesForCalcModePaced):
1485         (WebCore::solveEpsilon):
1486         (WebCore::SVGAnimationElement::calculatePercentFromKeyPoints):
1487         (WebCore::SVGAnimationElement::currentValuesFromKeyPoints):
1488         (WebCore::SVGAnimationElement::currentValuesForValuesAnimation):
1489         (WebCore::SVGAnimationElement::startedActiveInterval):
1490         * svg/SVGAnimationElement.h:
1491         * svg/SVGFilterElement.cpp:
1492         (WebCore::SVGFilterElement::fillAttributeToPropertyTypeMap):
1493         * svg/SVGGElement.cpp:
1494         (WebCore::SVGGElement::attributeToPropertyTypeMap):
1495         (WebCore::SVGGElement::fillAttributeToPropertyTypeMap): Added to fill the animated attribute map for this element.
1496         * svg/SVGGElement.h:
1497         * svg/SVGUseElement.cpp:
1498         (WebCore::SVGUseElement::fillAttributeToPropertyTypeMap): Changed attribute type to AnimatedString for xlink:href.
1499         * svg/animation/SMILTimeContainer.cpp:
1500         (WebCore::SMILTimeContainer::baseValueFor):
1501         (WebCore::SMILTimeContainer::updateAnimations):
1502         * svg/animation/SMILTimeContainer.h:
1503         * svg/animation/SVGSMILElement.cpp:
1504         (WebCore::SVGSMILElement::SVGSMILElement):
1505         (WebCore::constructQualifiedName): Create a QualifiedName from a attribute name.
1506         (WebCore::SVGSMILElement::insertedIntoDocument): Update local varaible of attribute name.
1507         (WebCore::SVGSMILElement::removedFromDocument): Ditto.
1508         (WebCore::SVGSMILElement::attributeChanged): Ditto.
1509         * svg/animation/SVGSMILElement.h:
1510         (WebCore::SVGSMILElement::attributeName):
1511
1512 2011-02-20  David Kilzer  <ddkilzer@apple.com>
1513
1514         BUILD FIX: Add missing UNUSED_PARAM() when !ENABLE(FULLSCREEN_API)
1515
1516         Not reviewed.
1517
1518         * rendering/RenderLayerCompositor.cpp:
1519         (WebCore::RenderLayerCompositor::requiresCompositingForFullScreen):
1520
1521 2011-02-20  Carlos Garcia Campos  <cgarcia@igalia.com>
1522
1523         Reviewed by Martin Robinson.
1524
1525         [GTK] Implement PlatformKeyboardEvent::getCurrentModifierState()
1526         https://bugs.webkit.org/show_bug.cgi?id=52880
1527
1528         * platform/gtk/KeyEventGtk.cpp:
1529         (WebCore::PlatformKeyboardEvent::getCurrentModifierState):
1530
1531 2011-02-19  Andreas Kling  <kling@webkit.org>
1532
1533         Reviewed by Oliver Hunt.
1534
1535         DragController should use Color::serialized() when passing colors to CSSStyleDeclaration
1536         https://bugs.webkit.org/show_bug.cgi?id=54545
1537
1538         * page/DragController.cpp:
1539         (WebCore::DragController::concludeEditDrag):
1540
1541 2011-02-19  Sam Weinig  <sam@webkit.org>
1542
1543         Reviewed by Anders Carlsson.
1544
1545         Add phase in addition to momentumPhase to platform wheel events
1546         Part of <rdar://problem/8945362>
1547
1548         Rename existing phase to momentumPhase.
1549
1550         * platform/PlatformWheelEvent.h:
1551         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1552         (WebCore::PlatformWheelEvent::momentumPhase):
1553         * platform/mac/ScrollAnimatorMac.mm:
1554         (WebCore::ScrollAnimatorMac::handleWheelEvent):
1555         (WebCore::ScrollAnimatorMac::smoothScrollWithEvent):
1556         * platform/mac/WheelEventMac.mm:
1557         (WebCore::momentumPhaseForEvent):
1558         (WebCore::phaseForEvent):
1559         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1560
1561 2011-02-19  Gavin Barraclough  <barraclough@apple.com>
1562
1563         Qt build fix.
1564
1565         * bridge/runtime_method.h:
1566         (JSC::RuntimeMethod::createStructure):
1567
1568 2011-02-19  Gavin Barraclough  <barraclough@apple.com>
1569
1570         Qt build fix.
1571
1572         * bridge/qt/qt_instance.cpp:
1573         * bridge/qt/qt_pixmapruntime.cpp:
1574
1575 2011-02-19  Gavin Barraclough  <barraclough@apple.com>
1576
1577         Qt build fix.
1578
1579         * bridge/qt/qt_instance.cpp:
1580         (JSC::Bindings::QtInstance::getMethod):
1581         * bridge/qt/qt_pixmapruntime.cpp:
1582         (JSC::Bindings::QtPixmapInstance::getMethod):
1583
1584 2011-02-18  Gavin Barraclough  <barraclough@apple.com>
1585
1586         Reviewed by Sam Weinig.
1587
1588         Bug 54786 - Devirtualize JSCell::classInfo()
1589
1590         Instead of making a virtual function call, add a pointer to the ClassInfo
1591         onto Structure.
1592
1593         This removes a virtual function call, and paves the way towards removing all
1594         the createStructure methods, and StructureFlags/AnonymousSlotCount properties
1595         (these should be able to move onto ClassInfo).
1596
1597         Calls to Structure::create must now pass a pointer to the ClassInfo for the
1598         structure. All objects now have a ClassInfo pointer, non-object cell types
1599         still do not.
1600
1601         Changes are most mechanical, involving three steps:
1602             * Remove virtual classInfo() methods.
1603             * Add &s_info parameter to calls to Structure::create.
1604             * Rename ClassInfo static members on classes from 'info' to 's_info',
1605               for consistency.
1606
1607         * WebCore.exp.in:
1608         * bindings/js/JSAudioConstructor.cpp:
1609         * bindings/js/JSAudioConstructor.h:
1610         * bindings/js/JSDOMBinding.cpp:
1611         * bindings/js/JSDOMBinding.h:
1612         * bindings/js/JSDOMGlobalObject.cpp:
1613         * bindings/js/JSDOMGlobalObject.h:
1614         * bindings/js/JSDOMWindowBase.cpp:
1615         * bindings/js/JSDOMWindowBase.h:
1616         * bindings/js/JSDOMWindowShell.cpp:
1617         * bindings/js/JSDOMWindowShell.h:
1618         * bindings/js/JSGeolocationCustom.cpp:
1619         * bindings/js/JSImageConstructor.cpp:
1620         * bindings/js/JSImageConstructor.h:
1621         * bindings/js/JSImageDataCustom.cpp:
1622         * bindings/js/JSOptionConstructor.cpp:
1623         * bindings/js/JSOptionConstructor.h:
1624         * bindings/js/JSWorkerContextBase.cpp:
1625         * bindings/js/JSWorkerContextBase.h:
1626         * bindings/js/SerializedScriptValue.cpp:
1627         * bindings/scripts/CodeGeneratorJS.pm:
1628         * bridge/c/CRuntimeObject.cpp:
1629         * bridge/c/CRuntimeObject.h:
1630         * bridge/c/c_instance.cpp:
1631         * bridge/jni/jsc/JNIUtilityPrivate.cpp:
1632         * bridge/jni/jsc/JavaInstanceJSC.cpp:
1633         * bridge/jni/jsc/JavaRuntimeObject.cpp:
1634         * bridge/jni/jsc/JavaRuntimeObject.h:
1635         * bridge/jsc/BridgeJSC.cpp:
1636         * bridge/objc/ObjCRuntimeObject.h:
1637         * bridge/objc/ObjCRuntimeObject.mm:
1638         * bridge/objc/objc_instance.mm:
1639         * bridge/objc/objc_runtime.h:
1640         * bridge/objc/objc_runtime.mm:
1641         * bridge/runtime_array.cpp:
1642         * bridge/runtime_array.h:
1643         * bridge/runtime_method.cpp:
1644         * bridge/runtime_method.h:
1645         * bridge/runtime_object.cpp:
1646         * bridge/runtime_object.h:
1647
1648 2011-02-19  Zan Dobersek  <zandobersek@gmail.com>
1649
1650         Reviewed by Martin Robinson.
1651
1652         [cairo][canvas] Drawing from/into float rectangles with width or height in range 0 to 1 fails
1653         https://bugs.webkit.org/show_bug.cgi?id=54491
1654
1655         When width or height in float rectangle are in range (0, 0.5) or (-0.5, 0)
1656         and would round to 0, alter the behaviour to ensure that width or height are
1657         at least 1 pixel in size in these cases.
1658
1659         * platform/graphics/cairo/GraphicsContextCairo.cpp:
1660         (WebCore::GraphicsContext::roundToDevicePixels):
1661
1662 2011-02-19  Dan Bernstein  <mitz@apple.com>
1663
1664         LLVM Compiler build fix.
1665
1666         * platform/graphics/ShadowBlur.cpp:
1667         (WebCore::ShadowBlur::blurLayerImage): Eliminated a file static that generated
1668         a global initializer since the compiler does not evaluate sqrtf at compile time.
1669
1670 2011-02-19  Brian Ryner  <bryner@chromium.org>
1671
1672         Reviewed by Adam Barth.
1673
1674         Replace the #include of DocumentLoader.h in Document.h with a
1675         forward declaration, and add a missing #include now that this
1676         transitive include is gone.
1677         https://bugs.webkit.org/show_bug.cgi?id=50489
1678
1679         No new tests required.
1680
1681         * bindings/ScriptControllerBase.cpp:
1682         * dom/Document.h:
1683
1684 2011-02-19 Patrick Gansterer <paroga@webkit.org>
1685
1686         Reviewed by Antonio Gomes.
1687
1688         [EFL] Remove WebCore::currentTime()
1689         https://bugs.webkit.org/show_bug.cgi?id=53886
1690
1691         There is no declaration for it and we use WTF::currentTime() everywhere.
1692
1693         * platform/efl/SystemTimeEfl.cpp:
1694
1695 2011-02-19 Patrick Gansterer <paroga@webkit.org>
1696
1697         Reviewed by Andreas Kling.
1698
1699         Move KeygenWinCE from wince into win directory
1700         https://bugs.webkit.org/show_bug.cgi?id=54804
1701
1702         Move this file into the win directory, since it can be used on all windows platforms.
1703
1704         * CMakeListsWinCE.txt:
1705         * platform/win/SSLKeyGeneratorWin.cpp: Renamed from platform/wince/KeygenWinCE.cpp.
1706
1707 2011-02-19  Patrick Gansterer  <paroga@webkit.org>
1708
1709         Reviewed by Andreas Kling.
1710
1711         Make FileChooserWin.cpp more portable and use it on WinCE
1712         https://bugs.webkit.org/show_bug.cgi?id=54803
1713
1714         * CMakeListsWinCE.txt:
1715         * platform/win/FileChooserWin.cpp:
1716         (WebCore::FileChooser::basenameForWidth):
1717         * platform/wince/FileChooserWinCE.cpp: Removed.
1718
1719 2011-02-19  James Simonsen  <simonjam@chromium.org>
1720
1721         Reviewed by Adam Barth.
1722
1723         Make ScriptElement match the HTML5 spec
1724         https://bugs.webkit.org/show_bug.cgi?id=54676
1725
1726         This implements the "prepare a script" section of the HTML5 spec in ScriptElement::prepareScript().
1727         http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#prepare-a-script
1728
1729         There are a couple of things missing from the spec that would be new functionality. These will be added later.
1730         - Support for async=false
1731         - Empty src attribute should dispatch an error.
1732
1733         There are a couple of slight behavioral changes to match the spec.
1734         - An XHTML script that is loaded then copied will not fire load on the copy.
1735         - If onbeforeload moves the script to a different document, then it will not try to execute again because wasAlreadyStarted is true.
1736
1737         The parsers were updated to use the new API, but not rewritten to look like the spec. That will be done separately.
1738
1739         Test: All existing tests.
1740
1741         * dom/ScriptElement.cpp: Rewritten to match HTML5 spec.
1742         (WebCore::ScriptElement::ScriptElement):
1743         (WebCore::ScriptElement::insertedIntoDocument): Logic moved to prepareScript.
1744         (WebCore::ScriptElement::childrenChanged): Logic moved to prepareScript.
1745         (WebCore::ScriptElement::handleSourceAttribute): Logic moved to prepareScript.
1746         (WebCore::isLegacySupportedJavaScriptLanguage): Added to support old script types in layout tests.
1747         (WebCore::ScriptElement::isScriptTypeSupported): Derived from old shouldExecuteAsJavaScript().
1748         (WebCore::ScriptElement::prepareScript): START HERE. Main change. Should read exactly like HTML5's "prepare a script." Legacy type support needed for layout tests using XML parser.
1749         (WebCore::ScriptElement::requestScript): Most logic moved to prepareScript. Check security settings here.
1750         (WebCore::ScriptElement::executeScript): Combined evaluateScript() and executeScript() from old code. Logic moved to prepareScript.
1751         (WebCore::ScriptElement::stopLoadRequest): Ignore parser executed scripts.
1752         (WebCore::ScriptElement::execute): Renamed executeScript.
1753         (WebCore::ScriptElement::notifyFinished): We should only listen for non-parser executed scripts.
1754         (WebCore::ScriptElement::ignoresLoadRequest): New variable names.
1755         (WebCore::ScriptElement::childrenAreCommentsOrEmptyText): Added for HTML5 compliance.
1756         (WebCore::ScriptElement::scriptCharset): Use HTML5 variables.
1757         * dom/ScriptElement.h:
1758         (WebCore::ScriptElement::willBeParserExecuted): Added.
1759         (WebCore::ScriptElement::readyToBeParserExecuted): Added.
1760         (WebCore::ScriptElement::willExecuteWhenDocumentFinishedParsing): Added.
1761         (WebCore::ScriptElement::cachedScript): prepareScript() is the only place that should load scripts. This accessor lets the parsers listen for when loads finish.
1762         (WebCore::ScriptElement::isParserInserted): Added.
1763         * dom/XMLDocumentParserLibxml2.cpp:
1764         (WebCore::XMLDocumentParser::endElementNs): Should behave the same. Offloads much of its work to prepareScript().
1765         * dom/XMLDocumentParserQt.cpp:
1766         (WebCore::XMLDocumentParser::parseEndElement): Identical to libxml2 changes.
1767         * html/HTMLScriptElement.cpp:
1768         (WebCore::HTMLScriptElement::insertedIntoDocument): No longer needs url.
1769         (WebCore::HTMLScriptElement::hasSourceAttribute): Added.
1770         * html/HTMLScriptElement.h:
1771         * html/parser/HTMLScriptRunner.cpp:
1772         (WebCore::HTMLScriptRunner::requestPendingScript): Requesting scripts offloaded to ScriptElement.
1773         (WebCore::HTMLScriptRunner::runScript): Should behave the same. Offloads much of its work to prepareScript().
1774         * svg/SVGScriptElement.cpp:
1775         (WebCore::SVGScriptElement::svgAttributeChanged): New ScriptElement function names.
1776         (WebCore::SVGScriptElement::insertedIntoDocument): No longer needs url.
1777         (WebCore::SVGScriptElement::finishParsingChildren): ScriptElement::finishParsingChildren is gone.
1778         (WebCore::SVGScriptElement::hasSourceAttribute): Added.
1779         (WebCore::SVGScriptElement::dispatchLoadEvent): New ScriptElement function names.
1780         * svg/SVGScriptElement.h:
1781
1782 2011-02-19  Marc-Antoine Ruel  <maruel@chromium.org>
1783
1784         Reviewed by James Robinson.
1785
1786         Split webcore_rendering off webcore_remaining to reduce its size for WPO builds
1787         https://bugs.webkit.org/show_bug.cgi?id=54789
1788
1789         * WebCore.gyp/WebCore.gyp:
1790
1791 2011-02-19  Bill Budge  <bbudge@chromium.org>
1792
1793         Reviewed by David Levin.
1794
1795         ThreadableLoaderClient needs willSendRequest method
1796         https://bugs.webkit.org/show_bug.cgi?id=54688
1797
1798         No new tests. Exposes no new functionality
1799
1800         * WebCore.gypi:
1801         * loader/DocumentThreadableLoader.cpp:
1802         (WebCore::DocumentThreadableLoader::willSendRequest):
1803         (WebCore::DocumentThreadableLoader::didReceiveData):
1804         (WebCore::DocumentThreadableLoader::didReceiveCachedMetadata):
1805         * loader/DocumentThreadableLoaderClient.h: Added.
1806         (WebCore::DocumentThreadableLoaderClient::isDocumentThreadableLoaderClient):
1807         (WebCore::DocumentThreadableLoaderClient::willSendRequest):
1808         * loader/ThreadableLoaderClient.h:
1809         (WebCore::ThreadableLoaderClient::isDocumentThreadableLoaderClient):
1810
1811 2011-02-19  Charlie Reis  <creis@chromium.org>
1812
1813         Reviewed by Mihai Parparita.
1814
1815         Ensure loading has stopped in HistoryController::goToItem
1816         https://bugs.webkit.org/show_bug.cgi?id=54517
1817
1818         Avoid stopping all loaders in goToItem for same document navigations
1819         or pseudo-back-forward URLs.  Make HistoryController::goToItem private
1820         to force callers to go through Page::goToItem.  Also add a callback to
1821         FrameLoaderClient to let clients decide whether to stop loading first.
1822
1823         Test: http/tests/navigation/forward-to-fragment-fires-onload.html
1824
1825         * loader/EmptyClients.h:
1826         * loader/FrameLoader.h:
1827         * loader/FrameLoaderClient.h:
1828         * loader/HistoryController.cpp:
1829         * loader/HistoryController.h:
1830         * page/Page.cpp:
1831
1832 2011-02-19  Adam Barth  <abarth@webkit.org>
1833
1834         Reviewed by Daniel Bates.
1835
1836         Fix xssAuditor/iframe-injection.html
1837         https://bugs.webkit.org/show_bug.cgi?id=54591
1838
1839         We should block the iframe src attribute.  Although this technically
1840         can't be used to run script, it's a pretty easy vector for stealing
1841         passwords.
1842
1843         * html/parser/XSSFilter.cpp:
1844         (WebCore::XSSFilter::filterTokenInitial):
1845         (WebCore::XSSFilter::filterIframeToken):
1846         * html/parser/XSSFilter.h:
1847
1848 2011-02-18  Tony Gentilcore  <tonyg@chromium.org>
1849
1850         Reviewed by Eric Seidel.
1851
1852         Let the parser yield for layout before running scripts
1853         https://bugs.webkit.org/show_bug.cgi?id=54355
1854
1855         Prior to this patch, the parser would yield to perform a layout/paint before running a
1856         script only if the script or a stylesheet blocking the script is not loaded yet. Since we
1857         don't preload scan into the body while parsing the head, typically we'll block on a script
1858         early in the body that causes us to yield to do the first paint within a reasonable time.
1859
1860         However, I'm planning to change the PreloadScanner to scan into the body from the head.
1861         That significantly improves overall load time, but would hurt first paint time because
1862         fewer scripts would be blocked during parsing and thus wouldn't yield.
1863
1864         This change causes us to yield before running scripts if we haven't painted yet (regardless
1865         of whether or not the script is loaded). In addition to allowing the above mentioned
1866         PreloadScanner change to be implemented without regressing first paint time, this also
1867         improves first paint time by itself.
1868
1869         I tested Alexa's top 45 websites using Web Page Replay to control the content and simulate
1870         bandwidth. This patch improved average first paint time by 1% over an unlimited connection,
1871         6% over a 1Mbps connection and 11% over a 5Mbps connection. There was no statistically
1872         signifcant change in page load time.
1873
1874         Within the pages tested, 33 had no statistically significant change in time to first paint,
1875         12 improved, and none regressed. Of the improved, some of the standouts from the 1Mbps set
1876         are: 20% on youtube, 37% on wiki, 27% on ebay, 13% on cnn, 16% on espn, 74% on sohu.
1877
1878         * html/parser/HTMLDocumentParser.cpp:
1879         (WebCore::HTMLDocumentParser::canTakeNextToken): This is the new yield point.
1880         (WebCore::HTMLDocumentParser::pumpTokenizer): Remove ASSERT that we are not paused. isPaused
1881         means that we are waiting for a script. Bug 54574 changed pumpTokenizer() so that it does
1882         the right thing whether we are just before a token or waiting for a script. Now that we may
1883         yield before a token or before a script, this may be called while paused.
1884         * html/parser/HTMLParserScheduler.cpp:
1885         (WebCore::isLayoutTimerActive): Added a FIXME because r52919 changed minimumLayoutDelay()
1886         to return m_extraLayoutDelay instead of 0 as a minimum. So checking !minimumLayoutDelay()
1887         no longer works. The fix is to change it to check minimumLayoutDelay() ==
1888         m_extraLayoutDelay. But this is all the more reason to move this method onto Document. I'll
1889         do this in a follow up.
1890         (WebCore::HTMLParserScheduler::checkForYieldBeforeScript): Added.
1891         * page/FrameView.h:
1892         (WebCore::FrameView::hasEverPainted): Added.
1893
1894 2011-02-18  Dawit Alemayehu  <adawit@kde.org>
1895
1896         Reviewed by Andreas Kling.
1897
1898         [Qt]  Button Element is rendered w/ text off-center.
1899         https://bugs.webkit.org/show_bug.cgi?id=53373
1900
1901         Test: LayoutTests/fast/forms/button-white-space.html 
1902
1903         * platform/qt/RenderThemeQt.cpp:
1904         (WebCore::RenderThemeQt::adjustButtonStyle):
1905
1906 2011-02-18  Jonathan Backer  <backer@chromium.org>
1907
1908         Reviewed by Eric Seidel.
1909
1910         [chromium] Fix leak of texture IDs in compositor.
1911         https://bugs.webkit.org/show_bug.cgi?id=54750
1912
1913         No new tests. It is extremely unlikely that this leak would have
1914         any user visible impact because only a few bytes of space are wasted
1915         (we're leaking texture IDs, not actual textures) and the space of
1916         texture IDs is large (32 bits).
1917
1918        * platform/graphics/chromium/TextureManager.cpp:
1919         (WebCore::TextureManager::requestTexture):
1920
1921 2011-02-18  Yi Shen  <yi.4.shen@nokia.com>
1922
1923         Reviewed by Tor Arne Vestbø.
1924
1925         Always display the media controls when requiresFullscreenForVideoPlayback() is true
1926         https://bugs.webkit.org/show_bug.cgi?id=54308
1927
1928         For video element, it should have controls when 
1929         Chrome::requiresFullscreenForVideoPlayback() is true.
1930
1931         * html/HTMLMediaElement.cpp:
1932         (WebCore::HTMLMediaElement::controls):
1933
1934 2011-02-18  Adrienne Walker  <enne@google.com>
1935
1936         Reviewed by Kenneth Russell.
1937
1938         [chromium] Use nearest-neighbor filtering for root layer.
1939         https://bugs.webkit.org/show_bug.cgi?id=54409
1940         https://bugs.webkit.org/show_bug.cgi?id=54509
1941
1942         This setting creates more consistent images for LayoutTests and
1943         prevents small floating point errors in texture coordinates from
1944         creating off-by-one pixel color differences.
1945
1946         * platform/graphics/chromium/LayerTilerChromium.cpp:
1947         (WebCore::LayerTilerChromium::update):
1948
1949 2011-02-18  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1950
1951         Reviewed by Kent Tamura.
1952
1953         [EFL] Fix coding style errors in RenderThemeEfl.h
1954         https://bugs.webkit.org/show_bug.cgi?id=54693
1955
1956         Fix style errors in RenderThemeEfl.h
1957
1958         * platform/efl/RenderThemeEfl.h:
1959
1960 2011-02-18  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>
1961
1962         Reviewed by Andreas Kling.
1963
1964         [Qt] The localized vendor name for Qt SIS packages should be "Nokia"
1965         https://bugs.webkit.org/show_bug.cgi?id=54742
1966
1967         This change was applied in the Qt repository (qt/src/3rdparty/webkit),
1968         so we should do the same here in QtWebKit.
1969
1970         Patch by Eckhart Koppen <eckhart.koppen@nokia.com>
1971         a8a84f1667966acfa093c4be0b7d4b0900ddd3d9:
1972
1973         The previously used name "Nokia, Qt" was not usable for Nokia
1974         Content Signing, which only allows "Nokia" as the visible vendor
1975         name. The unique vendor ID remains as "Nokia, Qt"
1976
1977         * WebCore.pro:
1978
1979 2011-02-18  Alexis Menard  <alexis.menard@openbossa.org>
1980
1981         Reviewed by Andreas Kling.
1982
1983         [Qt] REGRESSION(r67516) : on www.gmail.com a strange rendering issue appears on the
1984         menu bar due to flash.
1985         https://bugs.webkit.org/show_bug.cgi?id=54741
1986
1987         Only show plugins with a valid size. We then don't involve X11 if there is
1988         nothing to see anyway.
1989
1990         * plugins/qt/PluginViewQt.cpp:
1991         (WebCore::PluginView::updatePluginWidget):
1992         (WebCore::PluginView::platformStart):
1993
1994 2011-02-18  Ryuan Choi  <ryuan.choi@samsung.com>
1995
1996         Reviewed by Kent Tamura.
1997
1998         [EFL] Remove GDK dependency.
1999         https://bugs.webkit.org/show_bug.cgi?id=53978
2000
2001         Remove GLIB_SUPPORT macro in GDK related code.
2002         Regardless of GLIB_SUPPORT, getDefaultFontOptions() will works same way.
2003
2004         * CMakeListsEfl.txt:
2005         * platform/graphics/freetype/FontPlatformDataFreeType.cpp:
2006         (WebCore::getDefaultFontOptions):
2007
2008 2011-02-18  Noel Gordon  <noel.gordon@gmail.com>
2009
2010         Reviewed by James Robinson.
2011
2012         [Chromium] Add elliptical gradient support to GradientSkia
2013         https://bugs.webkit.org/show_bug.cgi?id=51841
2014
2015         Covered by existing tests, these need new rebaselines once this patch
2016         lands for chrome linux, win32
2017
2018         fast/gradients/css3-color-stop-units.html
2019         fast/gradients/css3-color-stops.html
2020         fast/gradients/css3-linear-angle-gradients.html
2021         fast/gradients/css3-radial-gradients.html
2022         fast/gradients/css3-radial-gradients2.html
2023         fast/gradients/css3-radial-gradients3.html
2024         fast/gradients/css3-repeating-radial-gradients.html
2025
2026         * platform/graphics/skia/GradientSkia.cpp:
2027         (WebCore::Gradient::platformGradient):
2028
2029 2011-02-18  James Robinson  <jamesr@chromium.org>
2030
2031         Fix typo in boundary test in ASSERT() - test is for an inclusive range, not exclusive.
2032
2033         * platform/graphics/chromium/ContentLayerChromium.cpp:
2034         (WebCore::ContentLayerChromium::updateTextureIfNeeded):
2035
2036 2011-02-18  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
2037
2038         Reviewed by Kenneth Rohde Christiansen.
2039
2040         Tiled backing store area is too big.
2041         Error in area calculcation causes size of backing store
2042         up to 6 times bigger than viewport with default multipliers.
2043         https://bugs.webkit.org/show_bug.cgi?id=54587
2044
2045         * platform/graphics/TiledBackingStore.cpp:
2046         (WebCore::TiledBackingStore::createTiles):
2047
2048 2011-02-18  Beth Dakin  <bdakin@apple.com>
2049
2050         Reviewed by Sam Weinig.
2051
2052         Fix for <rdar://problem/9018729> Horizontal scroller doesn't 
2053         appear when loading a page with a Horizontal scrollbar from 
2054         the back/forward cache.
2055
2056         This patch adds a new  bool member variable to FrameView to 
2057         keep track of whether we are loading a page from the back/
2058         forward cache. If we are, don't suppress scrollbars on 
2059         first layout.
2060         * history/CachedFrame.cpp:
2061         (WebCore::CachedFrameBase::restore):
2062         * page/FrameView.cpp:
2063         (WebCore::FrameView::FrameView):
2064         (WebCore::FrameView::reset):
2065         (WebCore::FrameView::layout):
2066         * page/FrameView.h:
2067         (WebCore::FrameView::setIsRestoringFromBackForward):
2068         (WebCore::FrameView::isRestoringFromBackForward):
2069
2070 2011-02-18  Patrick Gansterer  <paroga@webkit.org>
2071
2072         Unreviewed WinCE build fix for r78846.
2073
2074         * platform/graphics/wince/FontWinCE.cpp:
2075         (WebCore::TextRunComponent::TextRunComponent):
2076         * platform/graphics/wince/GraphicsContextWinCE.cpp:
2077         (WebCore::GraphicsContext::drawLineForText):
2078         (WebCore::GraphicsContext::drawLineForTextChecking):
2079         (WebCore::GraphicsContext::drawText):
2080         * platform/wince/FileChooserWinCE.cpp:
2081         (WebCore::FileChooser::basenameForWidth):
2082
2083 2011-02-18  Emil A Eklund  <eae@chromium.org>
2084
2085         Reviewed by Darin Adler.
2086
2087         Crash in EventHandler::sendContextMenuEventForKey
2088         https://bugs.webkit.org/show_bug.cgi?id=54495
2089
2090         Test: fast/events/menu-keydown-on-hidden-element.html
2091
2092         * page/EventHandler.cpp:
2093         (WebCore::EventHandler::sendContextMenuEventForKey): Add null check.
2094
2095 2011-02-15  Adrienne Walker  <enne@google.com>
2096
2097         Reviewed by James Robinson.
2098
2099         [chromium] Clean up shader code from LayerChromium classes
2100         https://bugs.webkit.org/show_bug.cgi?id=54484
2101
2102         This is a refactoring and there should be no change in functionality.
2103         All shader code is pulled out into classes in ShaderChromium.
2104         The SharedValues classes are now turned into ProgramBinding, one per
2105         shader program.  These contain shader classes that know about what
2106         variables they can bind.
2107
2108         * WebCore.gypi:
2109         * platform/graphics/chromium/CanvasLayerChromium.cpp:
2110         (WebCore::CanvasLayerChromium::draw):
2111         * platform/graphics/chromium/CanvasLayerChromium.h:
2112         * platform/graphics/chromium/ContentLayerChromium.cpp:
2113         (WebCore::ContentLayerChromium::draw):
2114         * platform/graphics/chromium/ContentLayerChromium.h:
2115         * platform/graphics/chromium/GeometryBinding.cpp: Added.
2116         (WebCore::GeometryBinding::GeometryBinding):
2117         (WebCore::GeometryBinding::~GeometryBinding):
2118         (WebCore::GeometryBinding::prepareForDraw):
2119         * platform/graphics/chromium/GeometryBinding.h: Copied from Source/WebCore/platform/graphics/chromium/PluginLayerChromium.h.
2120         (WebCore::GeometryBinding::initialized):
2121         (WebCore::GeometryBinding::context):
2122         (WebCore::GeometryBinding::quadVerticesVbo):
2123         (WebCore::GeometryBinding::quadElementsVbo):
2124         (WebCore::GeometryBinding::positionAttribLocation):
2125         (WebCore::GeometryBinding::texCoordAttribLocation):
2126         * platform/graphics/chromium/LayerChromium.cpp:
2127         (WebCore::LayerChromium::drawDebugBorder):
2128         * platform/graphics/chromium/LayerChromium.h:
2129         * platform/graphics/chromium/LayerRendererChromium.cpp:
2130         (WebCore::LayerRendererChromium::drawLayers):
2131         (WebCore::LayerRendererChromium::initializeSharedObjects):
2132         (WebCore::LayerRendererChromium::cleanupSharedObjects):
2133         * platform/graphics/chromium/LayerRendererChromium.h:
2134         (WebCore::LayerRendererChromium::sharedGeometry):
2135         (WebCore::LayerRendererChromium::borderProgram):
2136         (WebCore::LayerRendererChromium::contentLayerProgram):
2137         (WebCore::LayerRendererChromium::canvasLayerProgram):
2138         (WebCore::LayerRendererChromium::videoLayerRGBAProgram):
2139         (WebCore::LayerRendererChromium::videoLayerYUVProgram):
2140         (WebCore::LayerRendererChromium::pluginLayerProgram):
2141         (WebCore::LayerRendererChromium::renderSurfaceProgram):
2142         (WebCore::LayerRendererChromium::renderSurfaceMaskProgram):
2143         (WebCore::LayerRendererChromium::tilerProgram):
2144         * platform/graphics/chromium/LayerTilerChromium.cpp:
2145         (WebCore::LayerTilerChromium::draw):
2146         (WebCore::LayerTilerChromium::drawTexturedQuad):
2147         * platform/graphics/chromium/LayerTilerChromium.h:
2148         * platform/graphics/chromium/PluginLayerChromium.cpp:
2149         (WebCore::PluginLayerChromium::draw):
2150         * platform/graphics/chromium/PluginLayerChromium.h:
2151         * platform/graphics/chromium/ProgramBinding.cpp: Added.
2152         (WebCore::ProgramBindingBase::ProgramBindingBase):
2153         (WebCore::ProgramBindingBase::~ProgramBindingBase):
2154         (WebCore::ProgramBindingBase::init):
2155         (WebCore::ProgramBindingBase::loadShader):
2156         (WebCore::ProgramBindingBase::createShaderProgram):
2157         * platform/graphics/chromium/ProgramBinding.h: Added.
2158         (WebCore::ProgramBindingBase::program):
2159         (WebCore::ProgramBindingBase::initialized):
2160         (WebCore::ProgramBinding::ProgramBinding):
2161         (WebCore::ProgramBinding::vertexShader):
2162         (WebCore::ProgramBinding::fragmentShader):
2163         * platform/graphics/chromium/RenderSurfaceChromium.cpp:
2164         (WebCore::RenderSurfaceChromium::drawSurface):
2165         * platform/graphics/chromium/RenderSurfaceChromium.h:
2166         * platform/graphics/chromium/ShaderChromium.cpp: Added.
2167         (WebCore::VertexShaderPosTex::VertexShaderPosTex):
2168         (WebCore::VertexShaderPosTex::init):
2169         (WebCore::VertexShaderPosTex::getShaderString):
2170         (WebCore::VertexShaderPosTexYUVStretch::VertexShaderPosTexYUVStretch):
2171         (WebCore::VertexShaderPosTexYUVStretch::init):
2172         (WebCore::VertexShaderPosTexYUVStretch::getShaderString):
2173         (WebCore::VertexShaderPos::VertexShaderPos):
2174         (WebCore::VertexShaderPos::init):
2175         (WebCore::VertexShaderPos::getShaderString):
2176         (WebCore::VertexShaderPosTexTransform::VertexShaderPosTexTransform):
2177         (WebCore::VertexShaderPosTexTransform::init):
2178         (WebCore::VertexShaderPosTexTransform::getShaderString):
2179         (WebCore::FragmentTexAlphaBinding::FragmentTexAlphaBinding):
2180         (WebCore::FragmentTexAlphaBinding::init):
2181         (WebCore::FragmentShaderRGBATexFlipAlpha::getShaderString):
2182         (WebCore::FragmentShaderRGBATexAlpha::getShaderString):
2183         (WebCore::FragmentShaderBGRATexAlpha::getShaderString):
2184         (WebCore::FragmentShaderRGBATexAlphaMask::FragmentShaderRGBATexAlphaMask):
2185         (WebCore::FragmentShaderRGBATexAlphaMask::init):
2186         (WebCore::FragmentShaderRGBATexAlphaMask::getShaderString):
2187         (WebCore::FragmentShaderYUVVideo::FragmentShaderYUVVideo):
2188         (WebCore::FragmentShaderYUVVideo::init):
2189         (WebCore::FragmentShaderYUVVideo::getShaderString):
2190         (WebCore::FragmentShaderColor::FragmentShaderColor):
2191         (WebCore::FragmentShaderColor::init):
2192         (WebCore::FragmentShaderColor::getShaderString):
2193         * platform/graphics/chromium/ShaderChromium.h: Added.
2194         (WebCore::VertexShaderPosTex::matrixLocation):
2195         (WebCore::VertexShaderPosTexYUVStretch::matrixLocation):
2196         (WebCore::VertexShaderPosTexYUVStretch::yWidthScaleFactorLocation):
2197         (WebCore::VertexShaderPosTexYUVStretch::uvWidthScaleFactorLocation):
2198         (WebCore::VertexShaderPos::matrixLocation):
2199         (WebCore::VertexShaderPosTexTransform::matrixLocation):
2200         (WebCore::VertexShaderPosTexTransform::texTransformLocation):
2201         (WebCore::FragmentTexAlphaBinding::alphaLocation):
2202         (WebCore::FragmentTexAlphaBinding::samplerLocation):
2203         (WebCore::FragmentShaderRGBATexAlphaMask::alphaLocation):
2204         (WebCore::FragmentShaderRGBATexAlphaMask::samplerLocation):
2205         (WebCore::FragmentShaderRGBATexAlphaMask::maskSamplerLocation):
2206         (WebCore::FragmentShaderYUVVideo::yTextureLocation):
2207         (WebCore::FragmentShaderYUVVideo::uTextureLocation):
2208         (WebCore::FragmentShaderYUVVideo::vTextureLocation):
2209         (WebCore::FragmentShaderYUVVideo::alphaLocation):
2210         (WebCore::FragmentShaderYUVVideo::ccMatrixLocation):
2211         (WebCore::FragmentShaderYUVVideo::signAdjLocation):
2212         (WebCore::FragmentShaderColor::colorLocation):
2213         * platform/graphics/chromium/VideoLayerChromium.cpp:
2214         (WebCore::VideoLayerChromium::draw):
2215         (WebCore::VideoLayerChromium::drawYUV):
2216         (WebCore::VideoLayerChromium::drawRGBA):
2217         * platform/graphics/chromium/VideoLayerChromium.h:
2218
2219 2011-02-18  James Robinson  <jamesr@chromium.org>
2220
2221         Reviewed by Kenneth Russell.
2222
2223         [chromium] Update texture for ContentLayerChromiums in draw() call instead of updateContents..() call
2224         https://bugs.webkit.org/show_bug.cgi?id=54315
2225
2226         This defers all operations on the compositor's GL context until the
2227         draw() call which is a prerequisite for moving the draw() off-thread.
2228         Also cleans up the update cycle a bit - there were some unused local
2229         variables and whatnot.
2230
2231         One consequence of this change is that the upload buffer is retained
2232         across updates now instead of allocated by each paint.  This is
2233         necessary so that the full layer contents can be uploaded if the
2234         texture manager evicts the layer's backing texture.  This costs more
2235         persistent memory but avoids lots of allocator churn on updates.
2236         Another nonobvious detail is that I have to update the texture for
2237         ContentLayerChromiums in bindContentsTexture() because mask layers
2238         never draw(), they are instead bound to the secondary texture unit.
2239
2240         * platform/graphics/chromium/ContentLayerChromium.cpp:
2241         (WebCore::ContentLayerChromium::requiresClippedUpdateRect):
2242         (WebCore::ContentLayerChromium::updateContentsIfDirty):
2243         (WebCore::ContentLayerChromium::resizeUploadBufferForImage):
2244         (WebCore::ContentLayerChromium::resizeUploadBuffer):
2245         (WebCore::SkBitmapConditionalAutoLockerPixels::SkBitmapConditionalAutoLockerPixels):
2246         (WebCore::SkBitmapConditionalAutoLockerPixels::~SkBitmapConditionalAutoLockerPixels):
2247         (WebCore::SkBitmapConditionalAutoLockerPixels::lockPixels):
2248         (WebCore::ContentLayerChromium::updateTextureIfNeeded):
2249         (WebCore::ContentLayerChromium::draw):
2250         (WebCore::ContentLayerChromium::unreserveContentsTexture):
2251         (WebCore::ContentLayerChromium::bindContentsTexture):
2252         * platform/graphics/chromium/ContentLayerChromium.h:
2253         * platform/graphics/chromium/ImageLayerChromium.cpp:
2254         (WebCore::ImageLayerChromium::updateContentsIfDirty):
2255         * platform/graphics/chromium/LayerChromium.cpp:
2256         (WebCore::LayerChromium::setBounds):
2257         * platform/graphics/chromium/LayerChromium.h:
2258
2259 2011-02-18  Kenneth Russell  <kbr@google.com>
2260
2261         Unreviewed, Chromium build fix on certain Linux platforms.
2262
2263         * platform/graphics/gpu/LoopBlinnSolidFillShader.cpp:
2264
2265 2011-02-18  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
2266
2267         Reviewed by Kenneth Rohde Christiansen.
2268
2269         [Qt] Implement client based geolocation for qtport
2270         https://bugs.webkit.org/show_bug.cgi?id=42629
2271
2272         Implements client based geolocation for qtwebkit. Removed old code related to non-client based geolocation
2273
2274         No tests as yet. This will be raised as different bug as new mock client implementation need to be done.
2275
2276         * WebCore.pro:
2277         * features.pri:
2278         * platform/qt/GeolocationServiceQt.cpp: Removed.
2279         * platform/qt/GeolocationServiceQt.h: Removed.
2280
2281 2011-02-18  Yael Aharon  <yael.aharon@nokia.com>
2282
2283         Reviewed by Dave Hyatt.
2284
2285         Add support for dir=auto
2286         https://bugs.webkit.org/show_bug.cgi?id=50916
2287
2288         When an element has dir attribute with value "auto", call defaultWritingMode
2289         to find its directionality.
2290         Added a flag SelfOrAncestorHasDirAutoFlag, and added hooks in the DOM to set
2291         and check this flag. This flag is set on every node between an element with
2292         dir=auto attribute and its first text node. Changes in the DOM between those
2293         elements will trigger re-evaluating the directionality, but changes not
2294         between those element do not need to be concerned.
2295         The DOM hooks were added to childrenChanged, and to parseMappedAttribute.
2296         The directionality is evaluated when children are added, and cleared when they are
2297         removed. Directionality flag is also cleared on a child that is no longer determining
2298         the directionality due to a sibling being added before that child.
2299
2300         Added 2 static CSSMutableStyleDeclarations to be used for elements with dir=auto.
2301         We cannot used the mapped declaration, because it can take only one value.
2302
2303         Tests: fast/dom/HTMLElement/attr-dir-auto-change-before-text-node.html
2304                fast/dom/HTMLElement/attr-dir-auto-change-child-node.html
2305                fast/dom/HTMLElement/attr-dir-auto-change-text.html
2306                fast/dom/HTMLElement/attr-dir-auto-children.html
2307                fast/dom/HTMLElement/attr-dir-auto-remove-add-children.html
2308                fast/dom/HTMLElement/attr-dir-auto.html
2309                fast/dom/HTMLElement/attr-dir-value-change.html
2310
2311         * css/CSSStyleSelector.cpp:
2312         (WebCore::leftToRightDeclaration):
2313         (WebCore::rightToLeftDeclaration):
2314         (WebCore::CSSStyleSelector::canShareStyleWithElement):
2315         (WebCore::CSSStyleSelector::styleForElement):
2316         * dom/Node.h:
2317         (WebCore::Node::selfOrAncestorHasDirAutoAttribute):
2318         (WebCore::Node::setSelfOrAncestorHasDirAutoAttribute):
2319         * html/HTMLElement.cpp:
2320         (WebCore::HTMLElement::mapToEntry):
2321         (WebCore::HTMLElement::parseMappedAttribute):
2322         (WebCore::setHasDirAutoFlagRecursively):
2323         (WebCore::HTMLElement::childrenChanged):
2324         (WebCore::HTMLElement::directionalityIfhasDirAutoAttribute):
2325         (WebCore::HTMLElement::directionality):
2326         (WebCore::HTMLElement::dirAttributeChanged):
2327         (WebCore::HTMLElement::adjustDirectionalityIfNeededAfterChildAttributeChanged):
2328         (WebCore::HTMLElement::calculateAndAdjustDirectionality):
2329         (WebCore::HTMLElement::adjustDirectionalityIfNeededAfterChildrenChanged):
2330         * html/HTMLElement.h:
2331
2332 2011-02-18  Yael Aharon  <yael.aharon@nokia.com>
2333
2334         Reviewed by Antonio Gomes.
2335
2336         Navigating downwards / upwards does not focus on the links spread across more than one line.
2337         https://bugs.webkit.org/show_bug.cgi?id=54639
2338
2339         When 2 anchor elements span more than one line each, and one ends on the same line that the
2340         second starts on, the rects reported by their renderers are overlapping. When handling
2341         2 overlapping nodes, check for this case, and don't assume that one of the nodes is on a higher layer.   
2342
2343         Test: fast/spatial-navigation/snav-two-elements-one-line.html
2344
2345         * page/FocusController.cpp:
2346         (WebCore::updateFocusCandidateIfNeeded):
2347         (WebCore::FocusController::findFocusCandidateInContainer):
2348         * page/SpatialNavigation.cpp:
2349         (WebCore::areElementsOnSameLine):
2350         (WebCore::distanceDataForNode):
2351         * page/SpatialNavigation.h:
2352
2353 2011-02-18  Ben Vanik  <benvanik@google.com>
2354
2355         Reviewed by Kenneth Russell.
2356
2357         Bug 53940: Implement the OES_vertex_array_object WebGL extension
2358         https://bugs.webkit.org/show_bug.cgi?id=53940
2359
2360         Initial implementation of the OES_vertex_array_object extension adding the OESVertexArrayObject
2361         extension container and WebGLVertexArrayObjectOES VAO object. The extension is plumbed through
2362         the Extensions3D interface and implemented in the Extensions3DOpenGL (WebKit/OSX) version when
2363         it is available.
2364         Two big changes touching code outside of the extension files:
2365         * Moved the typedefs at the top of GraphicsContext3D.h to GraphicsTypes3D.h (modeled after
2366           GraphicsTypes.h). They are not namespaced as they weren't before.
2367         * To make the code cleaner/clearer all vertex attribute state has been moved to the
2368           WebGLVertexArrayObjectOES type (struct VertexAttribState) except for values which are still
2369           on the WebGLRenderingContext. A default VAO is now used to store the existing attribute
2370           states for when no other VAO is used. Code in WebGLRenderingContext dealing with buffers and
2371           vertex attributes now defers to or stores values in the bound array object.
2372
2373         Tested against the WebGL conformance suite and the new
2374         oes-vertex-array-object test:
2375         https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/oes-vertex-array-object.html
2376
2377         * CMakeLists.txt:
2378         * CodeGenerators.pri:
2379         * DerivedSources.make:
2380         * GNUmakefile.am:
2381         * WebCore.gyp: Modified property svn:ignore.
2382         * WebCore.gypi:
2383         * WebCore.pro:
2384         * WebCore.xcodeproj/project.pbxproj:
2385         * bindings/js/JSWebGLRenderingContextCustom.cpp:
2386         (WebCore::toJS):
2387         * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
2388         (WebCore::toV8Object):
2389         * html/canvas/OESVertexArrayObject.cpp: Added.
2390         (WebCore::OESVertexArrayObject::OESVertexArrayObject):
2391         (WebCore::OESVertexArrayObject::~OESVertexArrayObject):
2392         (WebCore::OESVertexArrayObject::getName):
2393         (WebCore::OESVertexArrayObject::create):
2394         (WebCore::OESVertexArrayObject::createVertexArrayOES):
2395         (WebCore::OESVertexArrayObject::deleteVertexArrayOES):
2396         (WebCore::OESVertexArrayObject::isVertexArrayOES):
2397         (WebCore::OESVertexArrayObject::bindVertexArrayOES):
2398         * html/canvas/OESVertexArrayObject.h: Added.
2399         * html/canvas/OESVertexArrayObject.idl: Added.
2400         * html/canvas/WebGLExtension.h:
2401         * html/canvas/WebGLGetInfo.cpp:
2402         (WebCore::WebGLGetInfo::WebGLGetInfo):
2403         (WebCore::WebGLGetInfo::getWebGLVertexArrayObjectOES):
2404         * html/canvas/WebGLGetInfo.h:
2405         * html/canvas/WebGLRenderingContext.cpp:
2406         (WebCore::WebGLRenderingContext::initializeNewContext):
2407         (WebCore::WebGLRenderingContext::bindBuffer):
2408         (WebCore::WebGLRenderingContext::deleteBuffer):
2409         (WebCore::WebGLRenderingContext::disableVertexAttribArray):
2410         (WebCore::WebGLRenderingContext::validateElementArraySize):
2411         (WebCore::WebGLRenderingContext::validateIndexArrayConservative):
2412         (WebCore::WebGLRenderingContext::validateIndexArrayPrecise):
2413         (WebCore::WebGLRenderingContext::validateRenderingState):
2414         (WebCore::WebGLRenderingContext::drawElements):
2415         (WebCore::WebGLRenderingContext::enableVertexAttribArray):
2416         (WebCore::WebGLRenderingContext::getExtension):
2417         (WebCore::WebGLRenderingContext::getParameter):
2418         (WebCore::WebGLRenderingContext::getSupportedExtensions):
2419         (WebCore::WebGLRenderingContext::getVertexAttrib):
2420         (WebCore::WebGLRenderingContext::vertexAttribPointer):
2421         (WebCore::WebGLRenderingContext::validateBufferDataParameters):
2422         (WebCore::WebGLRenderingContext::vertexAttribfImpl):
2423         (WebCore::WebGLRenderingContext::vertexAttribfvImpl):
2424         (WebCore::WebGLRenderingContext::initVertexAttrib0):
2425         (WebCore::WebGLRenderingContext::simulateVertexAttrib0):
2426         (WebCore::WebGLRenderingContext::restoreStatesAfterVertexAttrib0Simulation):
2427         (WebCore::WebGLRenderingContext::getNumberOfExtensions):
2428         (WebCore::WebGLRenderingContext::getExtensionNumber):
2429         * html/canvas/WebGLRenderingContext.h:
2430         (WebCore::WebGLRenderingContext::getMaxVertexAttribs):
2431         (WebCore::WebGLRenderingContext::setBoundVertexArrayObject):
2432         (WebCore::WebGLRenderingContext::VertexAttribValue::VertexAttribValue):
2433         * html/canvas/WebGLVertexArrayObjectOES.cpp: Added.
2434         (WebCore::WebGLVertexArrayObjectOES::create):
2435         (WebCore::WebGLVertexArrayObjectOES::WebGLVertexArrayObjectOES):
2436         (WebCore::WebGLVertexArrayObjectOES::deleteObjectImpl):
2437         * html/canvas/WebGLVertexArrayObjectOES.h: Added.
2438         (WebCore::WebGLVertexArrayObjectOES::~WebGLVertexArrayObjectOES):
2439         (WebCore::WebGLVertexArrayObjectOES::VertexAttribState::VertexAttribState):
2440         (WebCore::WebGLVertexArrayObjectOES::isDefaultObject):
2441         (WebCore::WebGLVertexArrayObjectOES::hasEverBeenBound):
2442         (WebCore::WebGLVertexArrayObjectOES::setHasEverBeenBound):
2443         (WebCore::WebGLVertexArrayObjectOES::getElementArrayBuffer):
2444         (WebCore::WebGLVertexArrayObjectOES::setElementArrayBuffer):
2445         (WebCore::WebGLVertexArrayObjectOES::getVertexAttribState):
2446         (WebCore::WebGLVertexArrayObjectOES::isVertexArray):
2447         * html/canvas/WebGLVertexArrayObjectOES.idl: Added.
2448         * platform/graphics/Extensions3D.h:
2449         * platform/graphics/GraphicsContext3D.h:
2450         * platform/graphics/GraphicsTypes3D.h: Added.
2451         * platform/graphics/chromium/Extensions3DChromium.h:
2452         * platform/graphics/opengl/Extensions3DOpenGL.cpp:
2453         (WebCore::Extensions3DOpenGL::supports):
2454         (WebCore::Extensions3DOpenGL::createVertexArrayOES):
2455         (WebCore::Extensions3DOpenGL::deleteVertexArrayOES):
2456         (WebCore::Extensions3DOpenGL::isVertexArrayOES):
2457         (WebCore::Extensions3DOpenGL::bindVertexArrayOES):
2458         * platform/graphics/opengl/Extensions3DOpenGL.h:
2459         * platform/graphics/qt/Extensions3DQt.cpp:
2460         (WebCore::Extensions3DQt::createVertexArrayOES):
2461         (WebCore::Extensions3DQt::deleteVertexArrayOES):
2462         (WebCore::Extensions3DQt::isVertexArrayOES):
2463         (WebCore::Extensions3DQt::bindVertexArrayOES):
2464         * platform/graphics/qt/Extensions3DQt.h:
2465
2466 2011-02-17  Alexander Pavlov  <apavlov@chromium.org>
2467
2468         Reviewed by Pavel Feldman.
2469
2470         Web Inspector: reflect changes to styles when they happen outside inspector.
2471         https://bugs.webkit.org/show_bug.cgi?id=44620
2472
2473         Notify InspectorInstrumentation of inline style changes from CSSMutableStyleDeclaration
2474         whenever the style change does not come from a direct "style" attribute modification.
2475         The performance regression occurs only with the Web Inspector opened, when inline styles
2476         are modified through setting style.cssText or style.<styleAttribute>: according to the Web Inspector protocol,
2477         an attribute change requires that all attributes for the node in question be pushed into the frontend.
2478
2479         Test: inspector/styles/styles-update-from-js.html
2480
2481         * css/CSSMutableStyleDeclaration.cpp:
2482         (WebCore::CSSMutableStyleDeclaration::setNeedsStyleRecalc):
2483         * inspector/InspectorDOMAgent.cpp:
2484         (WebCore::RevalidateStyleAttributeTask::reset):
2485         (WebCore::RevalidateStyleAttributeTask::RevalidateStyleAttributeTask):
2486         (WebCore::RevalidateStyleAttributeTask::scheduleFor):
2487         (WebCore::RevalidateStyleAttributeTask::onTimer):
2488         (WebCore::InspectorDOMAgent::reset):
2489         (WebCore::InspectorDOMAgent::didInvalidateStyleAttr):
2490         * inspector/InspectorDOMAgent.h:
2491         * inspector/InspectorInstrumentation.cpp:
2492         (WebCore::InspectorInstrumentation::didInvalidateStyleAttrImpl):
2493         * inspector/InspectorInstrumentation.h:
2494         (WebCore::InspectorInstrumentation::didInvalidateStyleAttr):
2495         * inspector/InspectorStyleSheet.cpp:
2496         (WebCore::InspectorStyleSheetForInlineStyle::didModifyElementAttribute):
2497         (WebCore::InspectorStyleSheetForInlineStyle::ensureParsedDataReady):
2498         (WebCore::InspectorStyleSheetForInlineStyle::elementStyleText):
2499         * inspector/InspectorStyleSheet.h:
2500         * inspector/front-end/ElementsPanel.js:
2501         (WebInspector.ElementsPanel.prototype._attributesUpdated):
2502         * inspector/front-end/StylesSidebarPane.js:
2503         (WebInspector.StylesSidebarPane.prototype._rebuildSectionsForStyleRules):
2504         (WebInspector.StylesSidebarPane.prototype.addBlankSection):
2505         (WebInspector.StylePropertiesSection.prototype.onpopulate):
2506         (WebInspector.StylePropertiesSection.prototype.addNewBlankProperty):
2507         (WebInspector.ComputedStylePropertiesSection.prototype.onpopulate):
2508         (WebInspector.BlankStylePropertiesSection):
2509         (WebInspector.StylePropertyTreeElement):
2510         (WebInspector.StylePropertyTreeElement.prototype):
2511         (WebInspector.StylePropertyTreeElement.prototype.element.userInput.previousContent.context.moveDirection):
2512
2513 2011-02-16  Tony Gentilcore  <tonyg@chromium.org>
2514
2515         Reviewed by Eric Seidel.
2516
2517         Refactor pumpTokenizer loop
2518         https://bugs.webkit.org/show_bug.cgi?id=54574
2519
2520         1. This makes pumpTokenizer() safe to call when waiting for a script or when about to get
2521            the next token, although ASSERTs still enforce that we aren't waiting for a script. This
2522            enables resumeParsingAfterYield() to call pumpTokenizer with no modifications even if we
2523            yield before running a script rather than before taking a token (see bug 54355).
2524         2. This also picks up the refCount >= 1 assert when stopped.
2525
2526         Tested PerformanceTests/Parser to verify no regression. If anything it got faster.
2527         Before:
2528           avg 985.05
2529           median 985.5
2530           stdev 3.007906248539007
2531           min 980
2532           max 990
2533         After:
2534           avg 980.05
2535           median 981
2536           stdev 3.122098653149833
2537           min 974
2538           max 985
2539
2540         No new tests because no new functionality.
2541
2542         * html/parser/HTMLDocumentParser.cpp:
2543         (WebCore::HTMLDocumentParser::canTakeNextToken): Added.
2544         (WebCore::HTMLDocumentParser::pumpTokenizer):
2545         * html/parser/HTMLDocumentParser.h:
2546
2547 2011-02-18  Sheriff Bot  <webkit.review.bot@gmail.com>
2548
2549         Unreviewed, rolling out r79003.
2550         http://trac.webkit.org/changeset/79003
2551         https://bugs.webkit.org/show_bug.cgi?id=54753
2552
2553         It broke tests on GTK bots (Requested by Ossy on #webkit).
2554
2555         * accessibility/AccessibilityRenderObject.cpp:
2556         (WebCore::lastChildConsideringContinuation):
2557         * dom/Node.cpp:
2558         (WebCore::Node::removeEventListener):
2559         * html/DateComponents.cpp:
2560         (WebCore::DateComponents::parseTime):
2561
2562 2011-02-18  Csaba Osztrogonác  <ossy@webkit.org>
2563
2564         Rubber-stamped by Andreas Kling.
2565
2566         Warning fix. Use ASSERT_UNUSED() instead of ASSERT().
2567
2568         * accessibility/AccessibilityRenderObject.cpp:
2569         (WebCore::lastChildConsideringContinuation):
2570         * dom/Node.cpp:
2571         (WebCore::Node::removeEventListener):
2572         * html/DateComponents.cpp:
2573         (WebCore::DateComponents::parseTime):
2574
2575 2011-02-18  Andrey Adaikin  <aandrey@google.com>
2576
2577         Reviewed by Pavel Feldman.
2578
2579         Web Inspector: [Text editor] Optimize editing updates in main panel
2580         https://bugs.webkit.org/show_bug.cgi?id=54661
2581
2582         * inspector/front-end/TextViewer.js:
2583         (WebInspector.TextViewer):
2584         (WebInspector.TextViewer.prototype._textChanged):
2585         (WebInspector.TextViewer.prototype._enterInternalTextChangeMode):
2586         (WebInspector.TextViewer.prototype._exitInternalTextChangeMode):
2587         (WebInspector.TextViewer.prototype._syncDecorationsForLine):
2588         (WebInspector.TextEditorChunkedPanel.prototype.textChanged):
2589         (WebInspector.TextEditorChunkedPanel.prototype._scroll):
2590         (WebInspector.TextEditorChunkedPanel.prototype.chunkForLine):
2591         (WebInspector.TextEditorChunkedPanel.prototype._totalHeight):
2592         (WebInspector.TextEditorGutterPanel.prototype._expandChunks):
2593         (WebInspector.TextEditorGutterChunk):
2594         (WebInspector.TextEditorGutterChunk.prototype.addDecoration):
2595         (WebInspector.TextEditorGutterChunk.prototype.removeDecoration):
2596         (WebInspector.TextEditorMainPanel):
2597         (WebInspector.TextEditorMainPanel.prototype._expandChunks):
2598         (WebInspector.TextEditorMainPanel.prototype._highlightDataReady):
2599         (WebInspector.TextEditorMainPanel.prototype._markSkippedPaintLines):
2600         (WebInspector.TextEditorMainPanel.prototype._paintSkippedLines):
2601         (WebInspector.TextEditorMainPanel.prototype._paintLines):
2602         (WebInspector.TextEditorMainPanel.prototype._paintLine):
2603         (WebInspector.TextEditorMainPanel.prototype._positionToSelection):
2604         (WebInspector.TextEditorMainPanel.prototype._applyDomUpdates):
2605         (WebInspector.TextEditorMainPanel.prototype._updateChunksForRanges):
2606         (WebInspector.TextEditorMainPanel.prototype._updateHighlightsForRange):
2607         (WebInspector.TextEditorMainPanel.prototype._collectLinesFromDiv):
2608         (WebInspector.TextEditorMainChunk):
2609         (WebInspector.TextEditorMainChunk.prototype.get startLine):
2610         (WebInspector.TextEditorMainChunk.prototype.set startLine):
2611         (WebInspector.TextEditorMainChunk.prototype.getExpandedLineRow):
2612         (WebInspector.TextEditorMainChunk.prototype.updateCollapsedLineRow):
2613
2614 2011-02-18  Steve Block  <steveblock@google.com>
2615
2616         Reviewed by Andreas Kling
2617
2618         Memory allocation error in convertV8ObjectToNPVariant() for strings
2619         https://bugs.webkit.org/show_bug.cgi?id=54737
2620
2621         Include the termination character in the length when allocating memory
2622         and copying the string. This fixes a crashing bug on Android.
2623
2624         This should be tested by the java/ tests on Chromium, but these
2625         tests are currently skipped.
2626
2627         * bindings/v8/V8NPUtils.cpp:
2628         (WebCore::convertV8ObjectToNPVariant):
2629
2630 2011-02-18  Philippe Normand  <pnormand@igalia.com>
2631
2632         Unreviewed, rolling out r78979.
2633         http://trac.webkit.org/changeset/78979
2634         https://bugs.webkit.org/show_bug.cgi?id=53146
2635
2636         causes multiple crashes on GTK
2637
2638         * accessibility/gtk/AXObjectCacheAtk.cpp:
2639         (WebCore::notifyChildrenSelectionChange):
2640         (WebCore::AXObjectCache::postPlatformNotification):
2641
2642 2011-02-18  Philippe Normand  <pnormand@igalia.com>
2643
2644         Reviewed by Martin Robinson.
2645
2646         [GTK] minimal build unrecognized options
2647         https://bugs.webkit.org/show_bug.cgi?id=50890
2648
2649         * GNUmakefile.am: new feature defines for optional features build.
2650
2651 2011-02-17  Hans Wennborg  <hans@chromium.org>
2652
2653         Reviewed by Jeremy Orlow.
2654
2655         IndexedDB: Populate indexes created for object stores with data
2656         https://bugs.webkit.org/show_bug.cgi?id=54669
2657
2658         Make sure that indices for object stores that already hold data get
2659         populated.
2660
2661         * storage/IDBIndexBackendImpl.h:
2662         (WebCore::IDBIndexBackendImpl::hasValidId):
2663         * storage/IDBObjectStoreBackendImpl.cpp:
2664         (WebCore::IDBObjectStoreBackendImpl::putInternal):
2665         (WebCore::populateIndex):
2666         (WebCore::IDBObjectStoreBackendImpl::createIndexInternal):
2667
2668 2011-02-18  Mario Sanchez Prada  <msanchez@igalia.com>
2669
2670         Reviewed by Martin Robinson.
2671
2672         [GTK] Combo boxes should emit object:selection-changed even when collapsed
2673         https://bugs.webkit.org/show_bug.cgi?id=53146
2674
2675         Emit the selection-changed signals when the menu list value has changed
2676
2677         Test: platform/gtk/accessibility/combo-box-collapsed-selection-changed.html
2678
2679         * accessibility/gtk/AXObjectCacheAtk.cpp:
2680         (WebCore::getListObject): New, return the right list object for
2681         menu lists and list boxes.
2682         (WebCore::notifyChildrenSelectionChange): Support menu lists.
2683         (WebCore::AXObjectCache::postPlatformNotification): Call function
2684         notifyChildrenSelectionChange for AXMenuListValueChanged.
2685
2686 2011-02-18  Mario Sanchez Prada  <msanchez@igalia.com>
2687
2688         Reviewed by Martin Robinson.
2689
2690         [Gtk] atk_text_get_selection/atk_text_set_selection fails for list items
2691         https://bugs.webkit.org/show_bug.cgi?id=53453
2692
2693         Ensure that atk_text_{get|set}_selection() work with list items.
2694
2695         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2696         (webkit_accessible_text_get_text): Properly handle list item
2697         markers when returning the text for an object for a given interval
2698         specified through the startOffset and endOffset parameters.
2699         (getSelectionOffsetsForObject): Bear in mind list item markers
2700         when returning the offsets for a selection over a list item.
2701         (webkit_accessible_text_set_selection): Adjust offsets if needed
2702         for list items with item markers. Ensure that it returns TRUE only
2703         when everything went fine setting the text selection.
2704
2705 2011-02-18  Antti Koivisto  <antti@apple.com>
2706
2707         Reviewed by Maciej Stachowiak.
2708
2709         https://bugs.webkit.org/show_bug.cgi?id=54728
2710         checkSelector*Value functions used in fastCheckSelector fail to inline
2711         
2712         Wrap the functions used as template arguments to classes.
2713
2714         * css/CSSStyleSelector.cpp:
2715         (WebCore::fastCheckSingleSelector):
2716         (WebCore::ClassCheck::checkValue):
2717         (WebCore::IdCheck::checkValue):
2718         (WebCore::TagCheck::checkValue):
2719         (WebCore::CSSStyleSelector::SelectorChecker::fastCheckSelector):
2720
2721 2011-02-17  Simon Fraser  <simon.fraser@apple.com>
2722
2723         Reviewed by Sam Weinig.
2724
2725         Composited iframe content is missing from snapshots in WebKit2
2726         https://bugs.webkit.org/show_bug.cgi?id=54696
2727
2728         We need to propagate the 'flattening' paint behavior flag
2729         down to subviews while painting. WebKit1 does this via
2730         code in WebFrameView, but this is a more general fix
2731         that works in WebKit2 as well.
2732         
2733         Made a utility method, parentFrameView(), which I changed
2734         some other methods to use as well.
2735         
2736         * page/FrameView.cpp:
2737         (WebCore::FrameView::isEnclosedInCompositingLayer):
2738         (WebCore::FrameView::useSlowRepaints):
2739         (WebCore::FrameView::useSlowRepaintsIfNotOverlapped):
2740         (WebCore::FrameView::isOverlappedIncludingAncestors):
2741         (WebCore::FrameView::parentFrameView):
2742         (WebCore::FrameView::paintContents):
2743         * page/FrameView.h:
2744
2745 2011-02-17  Dan Bernstein  <mitz@apple.com>
2746
2747         Reviewed by Simon Fraser.
2748
2749         <rdar://problem/8898595> Pages that use fixed positioning display poorly when scaled
2750
2751         * html/HTMLBodyElement.cpp:
2752         (WebCore::adjustForZoom): Account for page scale.
2753         (WebCore::HTMLBodyElement::setScrollLeft): Ditto.
2754         (WebCore::HTMLBodyElement::setScrollTop): Ditto.
2755         * page/FrameView.cpp:
2756         (WebCore::FrameView::scrollXForFixedPosition): Moved from ScrollView here and changed to
2757         account for page scale: when the page is scaled, the “viewport” with respect to which fixed
2758         objects are positioned is scaled as well. Since it’s now bigger than the real viewport (that is,
2759         the frame view), we move it around in proportion to the document scroll, so that when the document
2760         is fully scrolled to the bottom-right, the bottom right of the scaled viewport is visible.
2761         (WebCore::FrameView::scrollYForFixedPosition): Ditto.
2762         (WebCore::FrameView::scrollOffsetForFixedPosition): Moved from ScrollView here.
2763         * page/FrameView.h:
2764         * platform/ScrollView.cpp: Moved functions to FrameView.
2765         * platform/ScrollView.h:
2766         * rendering/RenderLayer.cpp:
2767         (WebCore::RenderLayer::updateRepaintRectsAfterScroll): Account for the RenderView being transformed.
2768         (WebCore::RenderLayer::calculateClipRects): Used scrollOffsetForFixedPosition().
2769         (WebCore::RenderLayer::backgroundClipRect): Ditto.
2770
2771 2011-02-17  Kenneth Russell  <kbr@google.com>
2772
2773         Reviewed by James Robinson.
2774
2775         Add support for GPU accelerated path rendering
2776         https://bugs.webkit.org/show_bug.cgi?id=44729
2777
2778         Incorporates the Loop and Blinn path rendering algorithm as an
2779         option to the GPU-accelerated canvas code, currently only compiled
2780         in to the Chromium port. Currently it's toggled by changing a
2781         hardcoded constant in
2782         SharedGraphicsContext3D::useLoopBlinnForPathRendering() and is
2783         disabled by default. This mechanism can be improved once we've
2784         gained more confidence in the implementation. There are some known
2785         bugs that need to be fixed first.
2786
2787         No new tests; ran some 2D Canvas tests manually with the new flag
2788         both enabled and disabled.
2789
2790         * WebCore.gypi:
2791         * platform/graphics/chromium/GLES2Canvas.cpp:
2792         (WebCore::GLES2Canvas::GLES2Canvas):
2793         (WebCore::GLES2Canvas::fillPath):
2794         * platform/graphics/chromium/GLES2Canvas.h:
2795         * platform/graphics/gpu/LoopBlinnClassifier.h:
2796         * platform/graphics/gpu/LoopBlinnLocalTriangulator.h:
2797         * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
2798         (WebCore::SharedGraphicsContext3D::create):
2799         (WebCore::SharedGraphicsContext3D::SharedGraphicsContext3D):
2800         (WebCore::SharedGraphicsContext3D::createBuffer):
2801         (WebCore::SharedGraphicsContext3D::bindBuffer):
2802         (WebCore::SharedGraphicsContext3D::bufferData):
2803         (WebCore::SharedGraphicsContext3D::bufferSubData):
2804         (WebCore::SharedGraphicsContext3D::useLoopBlinnForPathRendering):
2805         (WebCore::SharedGraphicsContext3D::useLoopBlinnInteriorProgram):
2806         (WebCore::SharedGraphicsContext3D::useLoopBlinnExteriorProgram):
2807         * platform/graphics/gpu/SharedGraphicsContext3D.h:
2808         * platform/graphics/skia/GraphicsContextSkia.cpp:
2809         (WebCore::GraphicsContext::fillPath):
2810
2811 2011-02-16  Stephen White  <senorblanco@chromium.org>
2812
2813         Reviewed by James Robinson.
2814
2815         Layout Test fast/canvas/setWidthResetAfterForcedRender.html fails on
2816         accelerated 2D canvas w/compositor enabled.
2817         https://bugs.webkit.org/show_bug.cgi?id=54561
2818
2819         When resetting the CanvasRenderingContext2D, we also need to send a
2820         contentChanged() to the relevant RenderLayer.  This is similar to what
2821         is done in didDraw().
2822
2823         Covered by fast/canvas/setWidthResetAfterForcedRender.html, but note 
2824         that this test will still fail pixel tests because the compositor
2825         is not compatible with repaint tests (the green square is now white,
2826         but the half-transparent grey repaint rect does not appear).
2827
2828         * html/canvas/CanvasRenderingContext2D.cpp:
2829         (WebCore::CanvasRenderingContext2D::reset):
2830
2831 2011-02-17  Sergey Glazunov  <serg.glazunov@gmail.com>
2832
2833         Reviewed by Kenneth Russell.
2834
2835         Null out the WEBKIT_lose_context WebGL extension's context pointer when
2836         the WebGL rendering context is removed.
2837         https://bugs.webkit.org/show_bug.cgi?id=54679
2838
2839         Test: fast/canvas/webgl/context-destroyed-crash.html
2840
2841         * html/canvas/WebGLRenderingContext.cpp:
2842         (WebCore::WebGLRenderingContext::~WebGLRenderingContext):
2843         * html/canvas/WebKitLoseContext.cpp:
2844         (WebCore::WebKitLoseContext::loseContext): Add null-check for m_context.
2845         * html/canvas/WebKitLoseContext.h:
2846         (WebCore::WebKitLoseContext::contextDestroyed):
2847
2848 2011-02-17  Kenneth Russell  <kbr@google.com>
2849
2850         Reviewed by Chris Marrin.
2851
2852         Construction of Uint8Array from JS Array (and possibly others) incorrectly clamps values
2853         https://bugs.webkit.org/show_bug.cgi?id=52768
2854
2855         Removed incorrect clamping code from IntegralTypedArrayBase. Fixed
2856         code which casts from incoming double to the destination type.
2857         Changed the JSC bindings to use this code, rather than a copy of
2858         the casting code and a different constructor, in order to reuse
2859         the fix.
2860
2861         * bindings/js/JSArrayBufferViewHelper.h:
2862         (WebCore::constructArrayBufferView):
2863         * html/canvas/Int32Array.h:
2864         (WebCore::Int32Array::set):
2865         * html/canvas/Int8Array.h:
2866         (WebCore::Int8Array::set):
2867         * html/canvas/IntegralTypedArrayBase.h:
2868         (WebCore::IntegralTypedArrayBase::set):
2869         * html/canvas/Uint16Array.h:
2870         (WebCore::Uint16Array::set):
2871         * html/canvas/Uint32Array.h:
2872         (WebCore::Uint32Array::set):
2873         * html/canvas/Uint8Array.h:
2874         (WebCore::Uint8Array::set):
2875
2876 2011-02-17  Sam Weinig  <sam@webkit.org>
2877
2878         Reviewed by Dan Bernstein.
2879
2880         Knob proportion not quite right during rubber-band.
2881         <rdar://problem/9015201>
2882
2883         Change knob proportion algorithm to treat overhang as making the view smaller,
2884         rather than document bigger.
2885
2886         * platform/mac/ScrollbarThemeMac.mm:
2887         (WebCore::ScrollbarThemeMac::paint):
2888
2889 2011-02-16  Luiz Agostini  <luiz.agostini@openbossa.org>
2890
2891         Reviewed by Andreas Kling.
2892
2893         Summary: HTML5 <details> and <summary>: HTMLSummaryElement
2894         https://bugs.webkit.org/show_bug.cgi?id=54584
2895
2896         Adding class HTMLSummaryElement to build systems. This class will be used in
2897         the implementation of new HTML5 tag <summary>.
2898
2899         * CMakeLists.txt:
2900         * GNUmakefile.am:
2901         * WebCore.gypi:
2902         * WebCore.pro:
2903         * WebCore.vcproj/WebCore.vcproj:
2904         * WebCore.xcodeproj/project.pbxproj:
2905         * html/HTMLElementsAllInOne.cpp:
2906         * html/HTMLSummaryElement.cpp: Added.
2907         (WebCore::HTMLSummaryElement::create):
2908         (WebCore::HTMLSummaryElement::HTMLSummaryElement):
2909         * html/HTMLSummaryElement.h: Added.
2910         * html/HTMLTagNames.in:
2911
2912 2011-02-17  Jeremy Orlow  <jorlow@chromium.org>
2913
2914         Reviewed by Nate Chapin.
2915
2916         Throwing in an IndexedDB error or success event should lead to the transaction aborting
2917         https://bugs.webkit.org/show_bug.cgi?id=54249
2918
2919         When an exception is thrown but not handled  within an IDBRequests success/error event,
2920         we should abort the transaction.
2921
2922         Test: storage/indexeddb/exception-in-event-aborts.html
2923
2924         * bindings/js/JSEventListener.cpp:
2925         (WebCore::JSEventListener::handleEvent):
2926         * bindings/js/JSEventTarget.cpp:
2927         (WebCore::toJS):
2928         * bindings/v8/V8AbstractEventListener.cpp:
2929         (WebCore::V8AbstractEventListener::invokeEventHandler):
2930         * dom/EventTarget.cpp:
2931         (WebCore::EventTarget::uncaughtExceptionInEventHandler):
2932         * dom/EventTarget.h:
2933         * storage/IDBRequest.cpp:
2934         (WebCore::IDBRequest::uncaughtExceptionInEventHandler):
2935         * storage/IDBRequest.h:
2936
2937 2011-02-17  Sam Weinig  <sam@webkit.org>
2938
2939         Reviewed by Maciej Stachowiak.
2940
2941         WebKit2: Support Dictionary popup
2942         <rdar://problem/7660670>
2943
2944         Add some necessary exports.
2945
2946         * WebCore.exp.in:
2947
2948 2011-02-17  W. James MacLean  <wjmaclean@chromium.org>
2949
2950         Reviewed by James Robinson.
2951
2952         [chromium] Add command-line flag to enable composite to offscreen texture.
2953         https://bugs.webkit.org/show_bug.cgi?id=52311
2954
2955         Add plumbing to allow command-line switch to enable offscreen compositing. Function
2956         LayerRendererChromium::copyOffscreenTextureToDisplay used for now to mimic
2957         normal renderer operation.
2958
2959         Existing functionality not changed; offscreen compositing will be tested via GPU test framework.
2960
2961         * platform/graphics/chromium/LayerRendererChromium.cpp:
2962         (WebCore::LayerRendererChromium::setRootLayer):
2963         (WebCore::LayerRendererChromium::setCompositeOffscreen):
2964         (WebCore::LayerRendererChromium::copyOffscreenTextureToDisplay):
2965         (WebCore::LayerRendererChromium::useRenderSurface):
2966         (WebCore::LayerRendererChromium::setScissorToRect):
2967         * platform/graphics/chromium/LayerRendererChromium.h:
2968         (WebCore::LayerRendererChromium::isCompositingOffscreen):
2969
2970 2011-02-17  Kevin Ollivier  <kevino@theolliviers.com>
2971
2972         [wx] Build fixes after recent changes.
2973
2974         * dom/ScriptedAnimationController.h:
2975         * platform/graphics/wx/FontWx.cpp:
2976         (WebCore::Font::drawComplexText):
2977         * platform/graphics/wx/GraphicsContextWx.cpp:
2978         (WebCore::GraphicsContext::drawLineForText):
2979         (WebCore::GraphicsContext::drawLineForTextChecking):
2980         * platform/wx/WidgetWx.cpp:
2981         (WebCore::Widget::setFrameRect):
2982
2983 2011-02-16  Brian Weinstein  <bweinstein@apple.com>
2984
2985         Reviewed by Brady Eidson.
2986
2987         WebKit2: Need a way to manage the WebCore Cache
2988         https://bugs.webkit.org/show_bug.cgi?id=54501
2989         
2990         Add a way to get a set of all of the origins that have entries in the
2991         WebCore memory cache, and a method to remove all resources from the memory
2992         cache from a given security origin.
2993
2994         No change in behavior.
2995
2996         * WebCore.exp.in: Add functions that need to be exported.
2997         * loader/cache/MemoryCache.cpp:
2998         (WebCore::MemoryCache::removeResourcesWithOrigin):
2999         (WebCore::MemoryCache::getOriginsWithCache):
3000         * loader/cache/MemoryCache.h:
3001
3002 2011-02-16  David Hyatt  <hyatt@apple.com>
3003
3004         Reviewed by Dan Bernstein.
3005
3006         https://bugs.webkit.org/show_bug.cgi?id=54244
3007         
3008         Convert the line box tree to floating point and eliminate font rounding hacks.  This patch removes all of the rounding
3009         hacks from the Font code and makes sure all Font APIs involving width measurement and width offsets use floats.
3010         
3011         The line box tree's x, y and logicalWidth members have all been converted to floats and all of the line box APIs have
3012         been changed as well.
3013         
3014         In terms of pixel adjustments, overflow is using an enclosing model (so it will be enclosingIntRect of a line box's x/y/width/height).
3015         
3016         Background and border painting is using a rounding model, so borders and backgrounds will round to the nearest pixel when painting.
3017         
3018         Replaced elements still snap to integer positions on lines, and they use a rounding model as well, although their underlying line boxes
3019         still have a precise floating point position.
3020
3021         Justification will now allow subpixel positioning to occur as well.  Platforms that don't support subpixel positioning should already
3022         be rounding justification spacing in their font code.
3023
3024         Many layout test results change on Mac, since rounding hacks were used there and are now gone.
3025
3026         * WebCore.exp.in:
3027         * html/canvas/CanvasRenderingContext2D.cpp:
3028         (WebCore::CanvasRenderingContext2D::drawTextInternal):
3029         * platform/chromium/FileChooserChromium.cpp:
3030         (WebCore::FileChooser::basenameForWidth):
3031         * platform/graphics/Font.cpp:
3032         (WebCore::Font::width):
3033         * platform/graphics/Font.h:
3034         (WebCore::Font::spaceWidth):
3035         (WebCore::Font::tabWidth):
3036         * platform/graphics/FontFastPath.cpp:
3037         (WebCore::Font::getGlyphsAndAdvancesForSimpleText):
3038         * platform/graphics/GraphicsContext.cpp:
3039         (WebCore::GraphicsContext::drawText):
3040         (WebCore::GraphicsContext::drawEmphasisMarks):
3041         (WebCore::GraphicsContext::drawBidiText):
3042         (WebCore::GraphicsContext::drawHighlightForText):
3043         * platform/graphics/GraphicsContext.h:
3044         * platform/graphics/SimpleFontData.cpp:
3045         (WebCore::SimpleFontData::SimpleFontData):
3046         (WebCore::SimpleFontData::platformGlyphInit):
3047         * platform/graphics/SimpleFontData.h:
3048         (WebCore::SimpleFontData::spaceWidth):
3049         * platform/graphics/StringTruncator.cpp:
3050         (WebCore::stringWidth):
3051         (WebCore::truncateString):
3052         (WebCore::StringTruncator::centerTruncate):
3053         (WebCore::StringTruncator::rightTruncate):
3054         (WebCore::StringTruncator::width):
3055         * platform/graphics/StringTruncator.h:
3056         * platform/graphics/TextRun.h:
3057         (WebCore::TextRun::TextRun):
3058         (WebCore::TextRun::xPos):
3059         (WebCore::TextRun::expansion):
3060         (WebCore::TextRun::directionalOverride):
3061         (WebCore::TextRun::disableSpacing):
3062         * platform/graphics/WidthIterator.cpp:
3063         (WebCore::WidthIterator::WidthIterator):
3064         (WebCore::WidthIterator::advance):
3065         * platform/graphics/WidthIterator.h:
3066         * platform/graphics/cairo/GraphicsContextCairo.cpp:
3067         (WebCore::GraphicsContext::drawLineForText):
3068         (WebCore::GraphicsContext::drawLineForTextChecking):
3069         * platform/graphics/cg/GraphicsContextCG.cpp:
3070         (WebCore::GraphicsContext::drawLineForText):
3071         * platform/graphics/mac/ComplexTextController.cpp:
3072         (WebCore::ComplexTextController::ComplexTextController):
3073         (WebCore::ComplexTextController::advance):
3074         (WebCore::ComplexTextController::adjustGlyphsAndAdvances):
3075         * platform/graphics/mac/ComplexTextController.h:
3076         * platform/graphics/mac/FontComplexTextMac.cpp:
3077         (WebCore::Font::getGlyphsAndAdvancesForComplexText):
3078         * platform/graphics/mac/GraphicsContextMac.mm:
3079         (WebCore::GraphicsContext::drawLineForTextChecking):
3080         * platform/graphics/qt/GraphicsContextQt.cpp:
3081         (WebCore::GraphicsContext::drawLineForText):
3082         (WebCore::GraphicsContext::drawLineForTextChecking):
3083         * platform/graphics/qt/SimpleFontDataQt.cpp:
3084         (WebCore::SimpleFontData::platformGlyphInit):
3085         * platform/graphics/skia/GraphicsContextSkia.cpp:
3086         (WebCore::GraphicsContext::drawLineForTextChecking):
3087         (WebCore::GraphicsContext::drawLineForText):
3088         * platform/graphics/win/GraphicsContextCGWin.cpp:
3089         (WebCore::GraphicsContext::drawLineForTextChecking):
3090         * platform/graphics/win/UniscribeController.cpp:
3091         (WebCore::UniscribeController::shapeAndPlaceItem):
3092         * platform/gtk/FileChooserGtk.cpp:
3093         (WebCore::FileChooser::basenameForWidth):
3094         * platform/mac/DragImageMac.mm:
3095         (WebCore::widthWithFont):
3096         (WebCore::drawAtPoint):
3097         * platform/mac/FileChooserMac.mm:
3098         (WebCore::FileChooser::basenameForWidth):
3099         * platform/win/DragImageWin.cpp:
3100         (WebCore::createDragImageForLink):
3101         * platform/win/FileChooserWin.cpp:
3102         (WebCore::FileChooser::basenameForWidth):
3103         * platform/win/PopupMenuWin.cpp:
3104         (WebCore::PopupMenuWin::calculatePositionAndSize):
3105         * platform/win/WebCoreTextRenderer.cpp:
3106         (WebCore::WebCoreTextFloatWidth):
3107         * rendering/HitTestResult.cpp:
3108         (WebCore::HitTestResult::addNodeToRectBasedTestResult):
3109         * rendering/HitTestResult.h:
3110         * rendering/InlineBox.cpp:
3111         (WebCore::InlineBox::adjustPosition):
3112         (WebCore::InlineBox::placeEllipsisBox):
3113         (WebCore::InlineBox::locationIncludingFlipping):
3114         (WebCore::InlineBox::flipForWritingMode):
3115         * rendering/InlineBox.h:
3116         (WebCore::InlineBox::InlineBox):
3117         (WebCore::InlineBox::adjustLineDirectionPosition):
3118         (WebCore::InlineBox::adjustBlockDirectionPosition):
3119         (WebCore::InlineBox::setX):
3120         (WebCore::InlineBox::x):
3121         (WebCore::InlineBox::setY):
3122         (WebCore::InlineBox::y):
3123         (WebCore::InlineBox::width):
3124         (WebCore::InlineBox::height):
3125         (WebCore::InlineBox::logicalLeft):
3126         (WebCore::InlineBox::logicalRight):
3127         (WebCore::InlineBox::setLogicalLeft):
3128         (WebCore::InlineBox::pixelSnappedLogicalLeft):
3129         (WebCore::InlineBox::pixelSnappedLogicalRight):
3130         (WebCore::InlineBox::setLogicalWidth):
3131         (WebCore::InlineBox::logicalWidth):
3132         (WebCore::InlineBox::verticalAlign):
3133         * rendering/InlineFlowBox.cpp:
3134         (WebCore::InlineFlowBox::roundedFrameRect):
3135         (WebCore::InlineFlowBox::adjustPosition):
3136         (WebCore::InlineFlowBox::placeBoxesInInlineDirection):
3137         (WebCore::InlineFlowBox::adjustMaxAscentAndDescent):
3138         (WebCore::verticalPositionForBox):
3139         (WebCore::InlineFlowBox::computeLogicalBoxHeights):
3140         (WebCore::InlineFlowBox::placeBoxesInBlockDirection):
3141         (WebCore::InlineFlowBox::addBoxShadowVisualOverflow):
3142         (WebCore::InlineFlowBox::addTextBoxVisualOverflow):
3143         (WebCore::InlineFlowBox::computeOverflow):
3144         (WebCore::InlineFlowBox::setLayoutOverflow):
3145         (WebCore::InlineFlowBox::setVisualOverflow):
3146         (WebCore::InlineFlowBox::nodeAtPoint):
3147         (WebCore::InlineFlowBox::paintBoxDecorations):
3148         (WebCore::InlineFlowBox::paintMask):
3149         (WebCore::InlineFlowBox::placeEllipsisBox):
3150         * rendering/InlineFlowBox.h:
3151         (WebCore::InlineFlowBox::maxYLayoutOverflow):
3152         (WebCore::InlineFlowBox::maxXLayoutOverflow):
3153         (WebCore::InlineFlowBox::layoutOverflowRect):
3154         (WebCore::InlineFlowBox::maxYVisualOverflow):
3155         (WebCore::InlineFlowBox::maxXVisualOverflow):
3156         (WebCore::InlineFlowBox::visualOverflowRect):
3157         * rendering/InlineTextBox.cpp:
3158         (WebCore::InlineTextBox::placeEllipsisBox):
3159         (WebCore::InlineTextBox::nodeAtPoint):
3160         (WebCore::paintTextWithShadows):
3161         (WebCore::InlineTextBox::paint):
3162         (WebCore::InlineTextBox::paintSelection):
3163         (WebCore::InlineTextBox::paintCompositionBackground):
3164         (WebCore::InlineTextBox::paintDecoration):
3165         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
3166         (WebCore::InlineTextBox::paintTextMatchMarker):
3167         (WebCore::InlineTextBox::paintDocumentMarkers):
3168         (WebCore::InlineTextBox::paintCompositionUnderline):
3169         (WebCore::InlineTextBox::textPos):
3170         (WebCore::InlineTextBox::offsetForPosition):
3171         (WebCore::InlineTextBox::positionForOffset):
3172         * rendering/InlineTextBox.h:
3173         (WebCore::InlineTextBox::setExpansion):
3174         * rendering/RenderBR.h:
3175         (WebCore::RenderBR::width):
3176         * rendering/RenderBlock.cpp:
3177         (WebCore::stripTrailingSpace):
3178         (WebCore::updatePreferredWidth):
3179         (WebCore::RenderBlock::computeInlinePreferredLogicalWidths):
3180         (WebCore::RenderBlock::adjustForBorderFit):
3181         (WebCore::RenderBlock::addFocusRingRects):
3182         * rendering/RenderBlock.h:
3183         * rendering/RenderBlockLineLayout.cpp:
3184         (WebCore::RenderBlock::computeInlineDirectionPositionsForLine):
3185         (WebCore::RenderBlock::fitBelowFloats):
3186         (WebCore::textWidth):
3187         (WebCore::tryHyphenating):
3188         (WebCore::RenderBlock::findNextLineBreak):
3189         * rendering/RenderBox.cpp:
3190         (WebCore::RenderBox::positionLineBox):
3191         (WebCore::RenderBox::flipForWritingMode):
3192         * rendering/RenderBox.h:
3193         * rendering/RenderCombineText.cpp:
3194         (WebCore::RenderCombineText::width):
3195         (WebCore::RenderCombineText::adjustTextOrigin):
3196         (WebCore::RenderCombineText::combineText):
3197         * rendering/RenderCombineText.h:
3198         (WebCore::RenderCombineText::combinedTextWidth):
3199         * rendering/RenderCounter.cpp:
3200         (WebCore::RenderCounter::computePreferredLogicalWidths):
3201         * rendering/RenderCounter.h:
3202         * rendering/RenderEmbeddedObject.cpp:
3203         (WebCore::RenderEmbeddedObject::getReplacementTextGeometry):
3204         * rendering/RenderFileUploadControl.cpp:
3205         (WebCore::RenderFileUploadControl::computePreferredLogicalWidths):
3206         * rendering/RenderImage.cpp:
3207         * rendering/RenderInline.cpp:
3208         (WebCore::RenderInline::linesBoundingBox):
3209         (WebCore::RenderInline::linesVisualOverflowBoundingBox):
3210         (WebCore::RenderInline::addFocusRingRects):
3211         (WebCore::RenderInline::paintOutline):
3212         * rendering/RenderListBox.cpp:
3213         (WebCore::RenderListBox::updateFromElement):
3214         (WebCore::RenderListBox::paintItemForeground):
3215         * rendering/RenderMenuList.cpp:
3216         (WebCore::RenderMenuList::updateOptionsWidth):
3217         * rendering/RenderText.cpp:
3218         (WebCore::RenderText::localCaretRect):
3219         (WebCore::RenderText::widthFromCache):
3220         (WebCore::RenderText::trimmedPrefWidths):
3221         (WebCore::RenderText::minLogicalWidth):
3222         (WebCore::RenderText::maxLogicalWidth):
3223         (WebCore::RenderText::computePreferredLogicalWidths):
3224         (WebCore::RenderText::firstRunOrigin):
3225         (WebCore::RenderText::firstRunX):
3226         (WebCore::RenderText::firstRunY):
3227         (WebCore::RenderText::width):
3228         (WebCore::RenderText::linesBoundingBox):
3229         * rendering/RenderText.h:
3230         * rendering/RenderTextControl.cpp:
3231         (WebCore::RenderTextControl::getAvgCharWidth):
3232         (WebCore::RenderTextControl::paintPlaceholder):
3233         * rendering/RenderTreeAsText.cpp:
3234         (WebCore::writeTextRun):
3235         * rendering/RootInlineBox.cpp:
3236         (WebCore::RootInlineBox::placeEllipsis):
3237         (WebCore::RootInlineBox::placeEllipsisBox):
3238         (WebCore::RootInlineBox::adjustPosition):
3239         (WebCore::RootInlineBox::beforeAnnotationsAdjustment):
3240         (WebCore::RootInlineBox::paddedLayoutOverflowRect):
3241         * rendering/RootInlineBox.h:
3242         * rendering/VerticalPositionCache.h:
3243         * rendering/svg/SVGInlineTextBox.cpp:
3244         (WebCore::SVGInlineTextBox::offsetForPosition):
3245         (WebCore::SVGInlineTextBox::positionForOffset):
3246         (WebCore::SVGInlineTextBox::constructTextRun):
3247         * rendering/svg/SVGInlineTextBox.h:
3248         * rendering/svg/SVGRenderTreeAsText.cpp:
3249         (WebCore::writeRenderSVGTextBox):
3250         * rendering/svg/SVGTextMetrics.cpp:
3251         (WebCore::SVGTextMetrics::SVGTextMetrics):
3252         (WebCore::constructTextRun):
3253         * svg/SVGFont.cpp:
3254         (WebCore::floatWidthMissingGlyphCallback):
3255         (WebCore::Font::drawTextUsingSVGFont):
3256
3257 2011-02-17  Nikolas Zimmermann  <nzimmermann@rim.com>
3258
3259         Reviewed by Dirk Schulze.
3260
3261         'ex' coordinates fail, when SVGFont doesn't provide an explicit xHeight attribute
3262         https://bugs.webkit.org/show_bug.cgi?id=54672
3263
3264         Measure the xHeight from the 'x' glyph of a SVGFont, if the font itself doesn't explicitely specify an x-height attribute.
3265         Fixes the modern version of SVG 1.1 2nd Edition coords-units-03-b.svg.
3266
3267         Test: svg/W3C-SVG-1.1-SE/coords-units-03-b.svg
3268
3269         * platform/graphics/SimpleFontData.cpp:
3270         (WebCore::SimpleFontData::SimpleFontData):
3271
3272 2011-02-10  Luiz Agostini  <luiz.agostini@openbossa.org>
3273
3274         Reviewed by Adam Roben.
3275
3276         HTML5 <details> and <summary>: localized text
3277         https://bugs.webkit.org/show_bug.cgi?id=54260
3278
3279         The method defaultDetailsSummaryText was added to LocalizationStrategy class and to
3280         platform/LocalizedStrings. It is used to provide the default label to be used by a
3281         <details> tag that has no <summary> child.
3282
3283         * platform/LocalizationStrategy.h:
3284         * platform/LocalizedStrings.cpp:
3285         (WebCore::fileButtonNoFileSelectedLabel):
3286         (WebCore::defaultDetailsSummaryText):
3287         * platform/LocalizedStrings.h:
3288         * platform/android/LocalizedStringsAndroid.cpp:
3289         (WebCore::defaultDetailsSummaryText):
3290         * platform/brew/LocalizedStringsBrew.cpp:
3291         (WebCore::defaultDetailsSummaryText):
3292         * platform/efl/LocalizedStringsEfl.cpp:
3293         (WebCore::defaultDetailsSummaryText):
3294         * platform/gtk/LocalizedStringsGtk.cpp:
3295         (WebCore::defaultDetailsSummaryText):
3296         * platform/haiku/LocalizedStringsHaiku.cpp:
3297         (WebCore::defaultDetailsSummaryText):
3298         * platform/wx/LocalizedStringsWx.cpp:
3299         (WebCore::defaultDetailsSummaryText):
3300
3301 2011-02-17  Kristian Amlie  <kristian.amlie@nokia.com>
3302
3303         Reviewed by Laszlo Gombos.
3304
3305         Updated include paths for phonon.
3306
3307         [Qt] WebKit patches required to work with a modularized version of Qt
3308         https://bugs.webkit.org/show_bug.cgi?id=53916
3309
3310         Build fix. No tests.
3311
3312         * WebCore.pro:
3313
3314 2011-02-17  Hui Huang  <hui.2.huang@nokia.com>
3315
3316         Reviewed by Laszlo Gombos.
3317
3318         The URL of HTML5 Video Element is percent encoded at websites such as youtube.
3319         It is percent encoded again by QUrl constructor QUrl::QUrl(QString). This causes
3320         the HTTP GET request for the video to be rejected by the service provider. 
3321         https://bugs.webkit.org/show_bug.cgi?id=53973.
3322
3323         The bug is fixed by constructing QUrl from the encoded URL.
3324
3325         New test function tst_QWebPage::loadHtml5Video() is added in 
3326         Source/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp
3327
3328         * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
3329         (WebCore::MediaPlayerPrivateQt::commitLoad):
3330
3331 2011-02-17  Andreas Kling  <kling@webkit.org>
3332
3333         Reviewed by Antti Koivisto.
3334
3335         [Qt] Crash when calling QWebFrame::setUrl() while a previous load has pending requests
3336         https://bugs.webkit.org/show_bug.cgi?id=49216
3337
3338         CachedResourceRequest::didFail() will protect the CachedResourceLoader's
3339         document() while it runs, but if we're being called from the Document destructor,
3340         the protecting RefPtr<Document> will cause a double-delete instead.
3341
3342         * loader/cache/CachedResourceLoader.cpp:
3343         (WebCore::CachedResourceLoader::~CachedResourceLoader): Clear the m_document
3344         pointer so CachedResourceRequest::didFail() won't try to protect it.
3345         (WebCore::CachedResourceLoader::frame): Add null-check for m_document.
3346
3347 2011-02-17  Andrey Adaikin  <aandrey@google.com>
3348
3349         Reviewed by Pavel Feldman.
3350
3351         Web Inspector: [Text editor] Add updateHighlight method to the highlighter
3352         https://bugs.webkit.org/show_bug.cgi?id=54448
3353
3354         * inspector/front-end/SourceTokenizer.js:
3355         * inspector/front-end/TextEditorHighlighter.js:
3356         (WebInspector.TextEditorHighlighter.prototype.set mimeType):
3357         (WebInspector.TextEditorHighlighter.prototype.reset):
3358         (WebInspector.TextEditorHighlighter.prototype.updateHighlight):
3359         (WebInspector.TextEditorHighlighter.prototype._highlightInChunks):
3360         (WebInspector.TextEditorHighlighter.prototype._highlightLines):
3361
3362 2011-02-16  Pavel Podivilov  <podivilov@chromium.org>
3363
3364         Reviewed by Yury Semikhatsky.
3365
3366         Web Inspector: show all inlined scripts from single document in the same source frame.
3367         https://bugs.webkit.org/show_bug.cgi?id=54544
3368
3369         Currently when debugging synchronously executed inlined scripts each script is shown in it's own source frame ("example.html:24").
3370         We should show such scripts in the same source frame "example.html" with <script></script> framing.
3371
3372         Test: inspector/debugger/debug-inlined-scripts.html
3373
3374         * inspector/front-end/ScriptsPanel.js:
3375         (WebInspector.ScriptsPanel.prototype._scriptSourceChanged):
3376         (WebInspector.ScriptsPanel.prototype._addScript):
3377         (WebInspector.ScriptsPanel.prototype._resourceForURL):
3378         (WebInspector.ScriptsPanel.prototype._resourceLoadingFinished):
3379         (WebInspector.ScriptsPanel.prototype.addConsoleMessage):
3380         (WebInspector.ScriptsPanel.prototype.clearConsoleMessages):
3381         (WebInspector.ScriptsPanel.prototype.reset):
3382         (WebInspector.ScriptsPanel.prototype._sourceFrameForResource):
3383         (WebInspector.ScriptsPanel.prototype._sourceFrameForScript):
3384         (WebInspector.ScriptsPanel.prototype._recreateSourceFrame):
3385         (WebInspector.ScriptsPanel.prototype._showScriptOrResource):
3386         (WebInspector.ScriptsPanel.prototype._addScriptToFilesMenu.optionCompare):
3387         (WebInspector.ScriptsPanel.prototype._addScriptToFilesMenu):
3388         (WebInspector.SourceFrameContentProviderForScript.prototype.requestContent):
3389         (WebInspector.SourceFrameContentProviderForScript.prototype._buildSource):
3390
3391 2011-02-17  Nikolas Zimmermann  <nzimmermann@rim.com>
3392
3393         Reviewed by Dirk Schulze.
3394
3395         svg/batik/paints/patternRegions-positioned-objects.svg fails on Windows
3396         https://bugs.webkit.org/show_bug.cgi?id=44484
3397
3398         Pattern of pattern defined with objectBoundingBox does not render correctly
3399         https://bugs.webkit.org/show_bug.cgi?id=53463
3400
3401         Fix <pattern> + patternContentUnits="objectBoundingBox" support.
3402         We were incorrrectly translating the tile image transform, by the target objects bbox.x()/y().
3403         RenderSVGResourceMask/Clipper don't have this error.
3404         
3405         Fix nesting <patterns> in objectBoundingBox mode, propagate the tileImageTransform as new user-space
3406         when drawing the pattern children. <mask> + <clipPath> don't have the problem.
3407
3408         Test: svg/custom/nested-pattern-boundingBoxModeContent.svg
3409
3410         * rendering/svg/RenderSVGResourcePattern.cpp:
3411         (WebCore::RenderSVGResourcePattern::buildTileImageTransform):
3412         (WebCore::RenderSVGResourcePattern::createTileImage):
3413
3414 2011-02-17  Csaba Osztrogonác  <ossy@webkit.org>
3415
3416         Unreviewed.
3417
3418         [Qt][V8] Buildfix after r78752.
3419
3420         * CodeGenerators.pri: Add missing IDL files.
3421
3422 2011-02-17  Benjamin Kalman  <kalman@chromium.org>
3423
3424         Reviewed by Ryosuke Niwa.
3425
3426         RTL lineboundary left/right is reversed when cursor is at start of RTL container
3427         https://bugs.webkit.org/show_bug.cgi?id=54534
3428
3429         Test: editing/selection/extend-left-right-by-lineboundary.html
3430
3431         Add missing cases for extending left/right by lineboundary.
3432
3433         * editing/SelectionController.cpp:
3434         (WebCore::SelectionController::modifyExtendingRight):
3435         (WebCore::SelectionController::modifyExtendingLeft):
3436
3437 2011-02-16  Philippe Normand  <pnormand@igalia.com>
3438
3439         Reviewed by Martin Robinson.
3440
3441         [GTK] libsoup critical warnings
3442         https://bugs.webkit.org/show_bug.cgi?id=54557
3443
3444         Avoid pausing a soup message for already downloaded resources.
3445
3446         * platform/network/soup/ResourceHandleSoup.cpp:
3447         (WebCore::ResourceHandle::platformSetDefersLoading):
3448
3449 2011-02-16  Brian Ryner  <bryner@chromium.org>
3450
3451         Reviewed by Darin Fisher.
3452
3453         Split the socket address field into separate IP address and port fields.
3454         This will make the field less error-prone to parse, for example when
3455         dealing with IPv6 literals.
3456         https://bugs.webkit.org/show_bug.cgi?id=54607
3457
3458         No new tests required.
3459
3460         * platform/network/chromium/ResourceResponse.cpp:
3461         (WebCore::ResourceResponse::doPlatformCopyData):
3462         (WebCore::ResourceResponse::doPlatformAdopt):
3463         * platform/network/chromium/ResourceResponse.h: