Adding Chromium's DatabaseTracker and SQLTransactionClient
[WebKit-https.git] / WebCore / ChangeLog
1 2009-11-02  Dumitru Daniliuc  <dumi@chromium.org>
2
3         Reviewed by Dimitri Glazkov.
4
5         Adding Chromium's DatabaseTracker and SQLTransactionClient
6         implementations.
7
8         https://bugs.webkit.org/show_bug.cgi?id=30701
9
10         * storage/chromium: Added.
11         * storage/chromium/DatabaseObserver.h: Added.
12         * storage/chromium/DatabaseTrackerChromium.cpp: Added.
13         * storage/chromium/QuotaTracker.cpp: Added.
14         * storage/chromium/QuotaTracker.h: Added.
15         * storage/chromium/SQLTransactionClientChromium.cpp: Added.
16
17 2009-11-02  Enrica Casucci  <enrica@apple.com>
18
19         Reviewed by Adele Peterson and Dan Bernstein.
20
21         Safari crashes when calling execCommand on formatted html in special case
22         <rdar://problem/7318656>
23         https://bugs.webkit.org/show_bug.cgi?id=31023
24
25         Test: editing/execCommand/align-in-span.html
26
27         * rendering/RenderObject.cpp:
28         (WebCore::RenderObject::containingBlock): Modified comment on containingBlock returning NULL.
29         * rendering/RenderText.cpp:
30         (WebCore::RenderText::setSelectionState): Added check for NULL return from containingBlock,
31         since it is possible when dealing with orphaned trees.
32
33 2009-11-02  Chris Marrin  <cmarrin@apple.com>
34
35         Reviewed by Oliver Hunt.
36
37         Exception checks were being too aggressive
38         https://bugs.webkit.org/show_bug.cgi?id=31005
39
40         Several calls in CanvasRenderingContext3D are allowed to
41         have a null value passed, which indicated that the 
42         object is being unbound. Handle this case and the corresponding
43         null handling in GraphicsContext3DMac.
44
45         * html/canvas/CanvasRenderingContext3D.cpp:
46         (WebCore::CanvasRenderingContext3D::bindBuffer):
47         (WebCore::CanvasRenderingContext3D::bindFramebuffer):
48         (WebCore::CanvasRenderingContext3D::bindRenderbuffer):
49         (WebCore::CanvasRenderingContext3D::bindTexture):
50         (WebCore::CanvasRenderingContext3D::framebufferRenderbuffer):
51         (WebCore::CanvasRenderingContext3D::framebufferTexture2D):
52         * platform/graphics/mac/GraphicsContext3DMac.cpp:
53         (WebCore::GraphicsContext3D::framebufferRenderbuffer):
54         (WebCore::GraphicsContext3D::framebufferTexture2D):
55
56 2009-11-02  Patrick Mueller  <Patrick_Mueller@us.ibm.com>
57
58         Reviewed by Timothy Hatcher.
59
60         Each JS execution in console adds extra item into "scripts" combo
61         https://bugs.webkit.org/show_bug.cgi?id=30212
62
63         Added manual test
64
65         * inspector/front-end/ScriptsPanel.js:
66         (WebInspector.ScriptsPanel.prototype._showScriptOrResource):
67         * manual-tests/inspector/hidden-evals.html: Added.
68
69 2009-11-02  Kelly Norton  <knorton@google.com>
70
71         Reviewed by Timothy Hatcher.
72
73         Adds a missed case for InspectorTimeline, DOMWindow dispatch of DOM events.
74         https://bugs.webkit.org/show_bug.cgi?id=31030
75
76         * dom/Node.cpp:
77         (WebCore::eventHasListeners): Checks DOMWindow for listeners.
78         (WebCore::Node::dispatchGenericEvent):
79
80 2009-11-02  Dmitry Titov  <dimich@chromium.org>
81
82         Reviewed by David Levin.
83
84         Remove threadsafe refcounting from tasks used with WTF::MessageQueue.
85         https://bugs.webkit.org/show_bug.cgi?id=30612
86
87         No new tests since no new functionality. Storage, MessagePorts and Workers tests cover this.
88
89         There are a lot of files but most changes are simply replace RefPtr and PassRefPtr with
90         OwnPtr and PassOwnPtr when dealing with Tasks.
91
92         ScriptExecutionContext::Task, DatabaseTask and WorkerRunLoop::Task are no longer
93         threadsafe refcounted, but simply Noncopyable.
94
95         * dom/Document.cpp:
96         (WebCore::ScriptExecutionContextTaskTimer::ScriptExecutionContextTaskTimer):
97         (WebCore::PerformTaskContext::PerformTaskContext):
98         (WebCore::Document::postTask):
99         * dom/Document.h:
100         * dom/ScriptExecutionContext.cpp:
101         (WebCore::ProcessMessagesSoonTask::create):
102         * dom/ScriptExecutionContext.h:
103         * dom/default/PlatformMessagePortChannel.cpp:
104         (WebCore::PlatformMessagePortChannel::tryGetMessageFromRemote):
105         * dom/default/PlatformMessagePortChannel.h:
106         (WebCore::PlatformMessagePortChannel::MessagePortQueue::tryGetMessage):
107         (WebCore::PlatformMessagePortChannel::MessagePortQueue::appendAndCheckEmpty):
108         * loader/FrameLoader.cpp:
109         (WebCore::HashChangeEventTask::create):
110         * loader/appcache/ApplicationCacheGroup.cpp:
111         (WebCore::CallCacheListenerTask::create):
112         * storage/Database.cpp:
113         (WebCore::Database::openAndVerifyVersion):
114         (WebCore::Database::markAsDeletedAndClose):
115         (WebCore::Database::scheduleTransaction):
116         (WebCore::Database::scheduleTransactionStep):
117         (WebCore::Database::tableNames):
118         * storage/DatabaseTask.h:
119         (WebCore::DatabaseOpenTask::create):
120         (WebCore::DatabaseCloseTask::create):
121         (WebCore::DatabaseTransactionTask::create):
122         (WebCore::DatabaseTableNamesTask::create):
123         * storage/DatabaseThread.cpp:
124         (WebCore::DatabaseThread::databaseThread):
125         (WebCore::DatabaseThread::scheduleTask):
126         (WebCore::DatabaseThread::scheduleImmediateTask):
127         (WebCore::SameDatabasePredicate::operator()):
128         * storage/DatabaseThread.h:
129         * storage/LocalStorageTask.h:
130         (WebCore::LocalStorageTask::createImport):
131         (WebCore::LocalStorageTask::createSync):
132         (WebCore::LocalStorageTask::createTerminate):
133         * storage/LocalStorageThread.cpp:
134         (WebCore::LocalStorageThread::localStorageThread):
135         * storage/LocalStorageThread.h:
136         * websockets/WebSocket.cpp:
137         (WebCore::ProcessWebSocketEventTask::create):
138         * workers/DefaultSharedWorkerRepository.cpp:
139         (WebCore::SharedWorkerProxy::postTaskToLoader):
140         (WebCore::SharedWorkerProxy::postTaskForModeToWorkerContext):
141         (WebCore::SharedWorkerConnectTask::create):
142         * workers/GenericWorkerTask.h:
143         (WebCore::GenericWorkerTask1::create):
144         (WebCore::GenericWorkerTask2::create):
145         (WebCore::GenericWorkerTask3::create):
146         (WebCore::GenericWorkerTask4::create):
147         (WebCore::GenericWorkerTask5::create):
148         (WebCore::GenericWorkerTask6::create):
149         (WebCore::GenericWorkerTask7::create):
150         (WebCore::GenericWorkerTask8::create):
151         (WebCore::createCallbackTask):
152         * workers/WorkerContext.cpp:
153         (WebCore::WorkerContext::postTask):
154         * workers/WorkerContext.h:
155         * workers/WorkerLoaderProxy.h:
156         * workers/WorkerMessagingProxy.cpp:
157         (WebCore::MessageWorkerContextTask::create):
158         (WebCore::MessageWorkerTask::create):
159         (WebCore::WorkerExceptionTask::create):
160         (WebCore::WorkerContextDestroyedTask::create):
161         (WebCore::WorkerTerminateTask::create):
162         (WebCore::WorkerThreadActivityReportTask::create):
163         (WebCore::WorkerMessagingProxy::postTaskForModeToWorkerContext):
164         (WebCore::WorkerMessagingProxy::postTaskToLoader):
165         (WebCore::WorkerMessagingProxy::workerThreadCreated):
166         * workers/WorkerMessagingProxy.h:
167         * workers/WorkerRunLoop.cpp:
168         (WebCore::ModePredicate::operator()):
169         (WebCore::WorkerRunLoop::runInMode):
170         (WebCore::WorkerRunLoop::postTask):
171         (WebCore::WorkerRunLoop::postTaskForMode):
172         (WebCore::WorkerRunLoop::Task::create):
173         (WebCore::WorkerRunLoop::Task::performTask):
174         (WebCore::WorkerRunLoop::Task::Task):
175         * workers/WorkerRunLoop.h:
176         (WebCore::WorkerRunLoop::Task::~Task):
177         (WebCore::WorkerRunLoop::Task::mode):
178
179 2009-11-02  Philippe Normand  <pnormand@igalia.com>
180
181         Reviewed by Jan Alonzo.
182
183         [GTK] Failing media/video-played-reset.html
184         https://bugs.webkit.org/show_bug.cgi?id=30589
185
186         new m_seekTime attribute to keep track of the seek position
187
188         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
189         (WebCore::MediaPlayerPrivate::currentTime):
190         (WebCore::MediaPlayerPrivate::seek):
191         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h:
192
193 2009-11-02  Xan Lopez  <xlopez@igalia.com>
194
195         Reviewed by Jan Alonzo.
196
197         [GTK] Remove Referer when redirecting to non-secure site
198         https://bugs.webkit.org/show_bug.cgi?id=31021
199
200         Remove referer from HTTP headers when redirecting to a non-secure
201         site.
202
203         * platform/network/soup/ResourceHandleSoup.cpp:
204         (WebCore::restartedCallback):
205
206 2009-11-02  Alexey Proskuryakov  <ap@apple.com>
207
208         Reviewed by Dan Bernstein.
209
210         https://bugs.webkit.org/show_bug.cgi?id=18539
211         multipart/form-data not being parsed correctly on server due to '+' in boundary string
212
213         No test - the characters that the boundary is made of are not deterministic.
214
215         * platform/network/FormDataBuilder.cpp: (WebCore::FormDataBuilder::generateUniqueBoundaryString):
216         Don't ever put a '+' in boundary string, either. Removed a FIXME to bring '/' back once
217         GMail is fixed - I don't think we'll ever want to allow non-alphanumeric characters, as
218         they cause problems on many web sites.
219
220 2009-10-30  Alexey Proskuryakov  <ap@apple.com>
221
222         Reviewed by Darin Adler.
223
224         https://bugs.webkit.org/show_bug.cgi?id=30969
225         A no-prefix XPath node test should not match no-namespace elements in HTML document
226
227         Test: fast/xpath/null-namespace-in-html.html
228
229         * xml/XPathStep.cpp: (WebCore::XPath::nodeMatchesBasicTest): Special case non-HTML elements
230         in HTML documents (as these are the ones that can have null namespace).
231
232 2009-11-02  Pavel Feldman  <pfeldman@chromium.org>
233
234         Reviewed by Timothy Hatcher.
235
236         Web Inspector: [REGRESSION] No timeline marks on resources panel.
237
238         https://bugs.webkit.org/show_bug.cgi?id=31013
239
240         * inspector/front-end/AbstractTimelinePanel.js:
241         (WebInspector.AbstractTimelinePanel.prototype.updateGraphDividersIfNeeded):
242
243 2009-11-02  David Levin  <levin@chromium.org>
244
245         Reviewed by Dan Bernstein.
246
247         Possible crash in RenderSlider::layout.
248         https://bugs.webkit.org/show_bug.cgi?id=31016
249
250         Fix out of place line of code.
251
252         Test: scrollbars/overflow-scrollbar-combinations.html
253         This crash only seems to repro when WebKit draws the play controls,
254         so the crash repros in chromium running this test but not WebKit
255         nightlies which use QuickTime to draw the controls.
256
257         * rendering/RenderSlider.cpp:
258         (WebCore::RenderSlider::layout):
259
260 2009-11-02  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
261
262         Reviewed by Tor Arne Vestbø.
263
264         [Qt] Fix Qt build on Windows.
265         https://bugs.webkit.org/show_bug.cgi?id=30905
266
267         * WebCore.pro:
268         * platform/graphics/BitmapImage.h:
269         * platform/graphics/qt/ImageQt.cpp:
270         (WebCore::BitmapImage::BitmapImage):
271         (WebCore::BitmapImage::create):
272
273 2009-11-02  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
274
275         Reviewed by Adam Barth.
276
277         QWebView crash fix.
278
279         The QWebView should not crash if the stop() method is called from
280         a function triggered by the loadProgress signal.
281
282         A null pointer protection was added in the ProgressTracker::incrementProgress.
283
284         New autotest was created.
285
286         https://bugs.webkit.org/show_bug.cgi?id=29425
287
288         * loader/ProgressTracker.cpp:
289         (WebCore::ProgressTracker::incrementProgress):
290
291 2009-11-02  Mikhail Naganov  <mnaganov@chromium.org>
292
293         Reviewed by Pavel Feldman.
294
295         Fix a leftover from profiles panel generalization.
296
297         https://bugs.webkit.org/show_bug.cgi?id=31010
298
299         * inspector/front-end/ProfilesPanel.js:
300         (WebInspector.ProfilesPanel.prototype.get searchableViews):
301
302 2009-11-02  Kai Koehne  <kai.koehne@nokia.com>
303
304         Reviewed by Holger Freyther.
305
306         Remove implementation of ImageDecocerQt::clearFrameBufferCache.
307         The implementation was buggy, and will visually break repeating
308         animations anyway.
309
310         https://bugs.webkit.org/show_bug.cgi?id=31009
311
312         * platform/graphics/qt/ImageDecoderQt.cpp:
313         (WebCore::ImageDecoderQt::clearFrameBufferCache):
314
315 2009-11-02  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
316
317         Reviewed by Jan Alonzo.
318
319         https://bugs.webkit.org/show_bug.cgi?id=30964
320         [Gtk] Implemment AtkDocument
321
322         Provides access to the reported content language.
323
324         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
325         (webkit_accessible_document_get_locale):
326
327 2009-11-02  Keishi Hattori  <casey.hattori@gmail.com>
328
329         Reviewed by Timothy Hatcher.
330
331         Web Inspector: Rewrite CSSSourceSyntaxHighlighter so it shares more code
332         https://bugs.webkit.org/show_bug.cgi?id=30907
333
334         Test: inspector/css-syntax-highlight.html
335
336         * inspector/front-end/ElementsTreeOutline.js:
337         * inspector/front-end/SourceFrame.js:
338         (WebInspector.SourceFrame.prototype.syntaxHighlightCSS):
339         (WebInspector.SourceSyntaxHighlighter):
340         (WebInspector.SourceSyntaxHighlighter.prototype.process.processChunk):
341         (WebInspector.SourceSyntaxHighlighter.prototype.process.moveToNextLine):
342         (WebInspector.SourceSyntaxHighlighter.prototype.process):
343         (WebInspector.SourceSyntaxHighlighter.prototype.lex):
344         (WebInspector.SourceSyntaxHighlighter.prototype.appendNonToken):
345         (WebInspector.SourceSyntaxHighlighter.prototype.syntaxHighlightNode):
346         (WebInspector.CSSSourceSyntaxHighlighter):
347         * inspector/front-end/inspectorSyntaxHighlight.css:
348
349 2009-11-02  Chris Fleizach  <cfleizach@apple.com>
350
351         Reviewed by Beth Dakin.
352
353         Support ARIA "tab" roles
354         https://bugs.webkit.org/show_bug.cgi?id=30842
355
356         Implement support for ARIA "tab", "tabpanel" and "tablist".
357         As a consequence, we also needed to implement aria-selected
358         and aria-controls.
359
360         Tests: accessibility/aria-controls-with-tabs.html
361                accessibility/aria-tab-roles.html
362
363         * accessibility/AXObjectCache.cpp:
364         * accessibility/AccessibilityObject.h:
365         * accessibility/AccessibilityRenderObject.cpp:
366         * accessibility/AccessibilityRenderObject.h:
367         * accessibility/mac/AccessibilityObjectWrapper.mm:
368         * html/HTMLAttributeNames.in:
369
370 2009-10-27  Stephen White  <senorblanco@chromium.org>
371
372         Reviewed by Dmitry Titov.
373
374         This is the WebKit-side change needed to fix canvas.getImageData() for
375         Chromium.  The unpremultiply code in Skia assumes that unpremultiplied
376         values should be rounded, while CG does not.  In addition, the fixed
377         point inversion used by Skia introduces slight inaccuracies that make
378         us fail this test.  This change brings Chromium in line with
379         the CG path.
380         https://bugs.webkit.org/show_bug.cgi?id=30825
381
382         Covered by LayoutTests/fast/canvas/canvas-getImageData.html
383
384         * platform/graphics/skia/ImageBufferSkia.cpp:
385         (WebCore::getImageData):
386
387 2009-11-01  Kelly Norton  <knorton@google.com>
388
389         Reviewed by Timothy Hatcher.
390
391         Adds window event dispatches to InspectorTimelineAgent.
392         https://bugs.webkit.org/show_bug.cgi?id=31002
393
394         * English.lproj/localizedStrings.js:
395         * dom/Node.cpp: Updated call site to willDispatchEvent and didDispatchEvent.
396         (WebCore::Node::dispatchGenericEvent):
397         * inspector/InspectorTimelineAgent.cpp:
398         (WebCore::InspectorTimelineAgent::willDispatchEvent): Renamed.
399         (WebCore::InspectorTimelineAgent::didDispatchEvent): Renamed.
400         * inspector/InspectorTimelineAgent.h:
401         (WebCore::):
402         * inspector/TimelineRecordFactory.cpp:
403         (WebCore::TimelineRecordFactory::createEventDispatchRecord): Renamed.
404         * inspector/TimelineRecordFactory.h:
405         * inspector/front-end/TimelineAgent.js:
406         * inspector/front-end/TimelinePanel.js:
407         (WebInspector.TimelinePanel.prototype._formatRecord):
408         (WebInspector.TimelinePanel.prototype._getRecordDetails):
409         * page/DOMWindow.cpp:
410         (WebCore::DOMWindow::dispatchEvent):
411
412 2009-11-01  Pavel Feldman  <pfeldman@chromium.org>
413
414         Reviewed by Timothy Hatcher.
415
416         Web Inspector: Convert script tag event into a more generic
417         script eval event in timeline.
418
419         https://bugs.webkit.org/show_bug.cgi?id=30999
420
421         * bindings/js/ScriptController.cpp:
422         (WebCore::ScriptController::evaluateInWorld):
423         * bindings/v8/V8Proxy.cpp:
424         (WebCore::V8Proxy::evaluate):
425         * html/HTMLTokenizer.cpp:
426         (WebCore::HTMLTokenizer::scriptExecution):
427         * inspector/InspectorTimelineAgent.cpp:
428         (WebCore::InspectorTimelineAgent::willEvaluateScript):
429         (WebCore::InspectorTimelineAgent::didEvaluateScript):
430         * inspector/InspectorTimelineAgent.h:
431         (WebCore::):
432         * inspector/TimelineRecordFactory.cpp:
433         (WebCore::TimelineRecordFactory::createEvaluateScriptTimelineRecord):
434         * inspector/TimelineRecordFactory.h:
435         * inspector/front-end/TimelineAgent.js:
436         * inspector/front-end/TimelinePanel.js:
437         (WebInspector.TimelinePanel.prototype._formatRecord):
438         (WebInspector.TimelinePanel.prototype._getRecordDetails):
439
440 2009-11-01  Brian Weinstein  <bweinstein@apple.com>
441
442         Rubber-stamped by Mark Rowe.
443
444         Fix for loop to use an size_t instead of unsigned and some spacing
445         style fixes.
446
447         * dom/Node.cpp:
448         (WebCore::eventHasListeners):
449
450 2009-11-01  Kelly Norton  <knorton@google.com>
451
452         Reviewed by Timothy Hatcher.
453
454         Does not send DOM dispatches to the InspectorTimelineAgent if there
455         are no event listeners.
456         https://bugs.webkit.org/show_bug.cgi?id=30995
457
458         * dom/Node.cpp:
459         (WebCore::eventHasListeners):
460         (WebCore::Node::dispatchGenericEvent):
461         * xml/XMLHttpRequest.cpp:
462         (WebCore::XMLHttpRequest::callReadyStateChangeListener):
463
464 2009-11-01  Roland Steiner  <rolandsteiner@chromium.org>
465
466         No review (build fix).
467
468         Add missing files for Ruby implementation to WebCore.vcproj
469         (Fix build break after 50397)
470         https://bugs.webkit.org/show_bug.cgi?id=31001
471
472         No new tests. (No functional change)
473
474         * WebCore.vcproj/WebCore.vcproj:
475
476 2009-11-02  Roland Steiner  <rolandsteiner@chromium.org>
477
478         Reviewed by Dave Hyatt.
479
480         Bug 28420 -  Implement HTML5 <ruby> rendering
481         (https://bugs.webkit.org/show_bug.cgi?id=28420)
482
483         First rudimentary implementation of HTML5 ruby rendering support.
484
485         Following the HTML 5 spec, the box object model for a <ruby> element allows several runs of ruby
486         bases with their respective ruby texts looks as follows:
487
488         1 RenderRuby object, corresponding to the whole <ruby> HTML element
489              1+ RenderRubyRun (anonymous)
490                  0 or 1 RenderRubyText - shuffled to the front in order to re-use existing block layouting
491                      0-n inline object(s)
492                  0 or 1 RenderRubyBase - contains the inline objects that make up the ruby base
493                      1-n inline object(s)
494
495         Note: <rp> elements are defined as having 'display:none' and thus normally are not assigned a renderer.
496         
497         New layout tests will be committed in a follow-up patch under fast/ruby.
498
499         Makefiles, etc.
500         * GNUmakefile.am:
501         * WebCore.gypi:
502         * WebCore.pro:
503         * WebCore.xcodeproj/project.pbxproj:
504
505         CSS
506         * css/html.css: Added <ruby> and <rt>
507
508         Existing render files:
509         * rendering/RenderBlock.cpp: make moveChild a member function moveChildTo
510         (WebCore::RenderBlock::moveChildTo):
511         (WebCore::RenderBlock::makeChildrenNonInline):
512         (WebCore::RenderBlock::removeChild):
513         * rendering/RenderBlock.h:
514         * rendering/RenderObject.cpp:
515         (WebCore::RenderObject::createObject): instantiate ruby renderers based on element name
516         * rendering/RenderObject.h: add query methods for ruby renderers
517         (WebCore::RenderObject::isRuby):
518         (WebCore::RenderObject::isRubyBase):
519         (WebCore::RenderObject::isRubyRun):
520         (WebCore::RenderObject::isRubyText):
521
522         New ruby renderers:
523         * rendering/RenderRuby.cpp: Added.
524         (WebCore::lastRubyRun):
525         (WebCore::findRubyRunParent):
526         (WebCore::RenderRubyAsInline::RenderRubyAsInline):
527         (WebCore::RenderRubyAsInline::~RenderRubyAsInline):
528         (WebCore::RenderRubyAsInline::isChildAllowed):
529         (WebCore::RenderRubyAsInline::addChild):
530         (WebCore::RenderRubyAsInline::removeChild):
531         (WebCore::RenderRubyAsBlock::RenderRubyAsBlock):
532         (WebCore::RenderRubyAsBlock::~RenderRubyAsBlock):
533         (WebCore::RenderRubyAsBlock::isChildAllowed):
534         (WebCore::RenderRubyAsBlock::addChild):
535         (WebCore::RenderRubyAsBlock::removeChild):
536         * rendering/RenderRuby.h: Added.
537         (WebCore::RenderRubyAsInline::renderName):
538         (WebCore::RenderRubyAsInline::isRuby):
539         (WebCore::RenderRubyAsBlock::renderName):
540         (WebCore::RenderRubyAsBlock::isRuby):
541         * rendering/RenderRubyBase.cpp: Added.
542         (WebCore::RenderRubyBase::RenderRubyBase):
543         (WebCore::RenderRubyBase::~RenderRubyBase):
544         (WebCore::RenderRubyBase::isChildAllowed):
545         (WebCore::RenderRubyBase::splitToLeft):
546         (WebCore::RenderRubyBase::mergeWithRight):
547         * rendering/RenderRubyBase.h: Added.
548         (WebCore::RenderRubyBase::renderName):
549         (WebCore::RenderRubyBase::isRubyBase):
550         * rendering/RenderRubyRun.cpp: Added.
551         (WebCore::RenderRubyRun::RenderRubyRun):
552         (WebCore::RenderRubyRun::~RenderRubyRun):
553         (WebCore::RenderRubyRun::hasRubyText):
554         (WebCore::RenderRubyRun::hasRubyBase):
555         (WebCore::RenderRubyRun::isEmpty):
556         (WebCore::RenderRubyRun::rubyText):
557         (WebCore::RenderRubyRun::rubyBase):
558         (WebCore::RenderRubyRun::rubyBaseSafe):
559         (WebCore::RenderRubyRun::firstLineBlock):
560         (WebCore::RenderRubyRun::updateFirstLetter):
561         (WebCore::RenderRubyRun::isChildAllowed):
562         (WebCore::RenderRubyRun::addChild):
563         (WebCore::RenderRubyRun::removeChild):
564         (WebCore::RenderRubyRun::createRubyBase):
565         (WebCore::RenderRubyRun::staticCreateRubyRun):
566         * rendering/RenderRubyRun.h: Added.
567         (WebCore::RenderRubyRun::renderName):
568         (WebCore::RenderRubyRun::isRubyRun):
569         * rendering/RenderRubyText.cpp: Added.
570         (WebCore::RenderRubyText::RenderRubyText):
571         (WebCore::RenderRubyText::~RenderRubyText):
572         (WebCore::RenderRubyText::isChildAllowed):
573         * rendering/RenderRubyText.h: Added.
574         (WebCore::RenderRubyText::renderName):
575         (WebCore::RenderRubyText::isRubyText):
576
577 2009-11-01  Alexey Proskuryakov  <ap@apple.com>
578
579         Reviewed by Dan Bernstein.
580
581         https://bugs.webkit.org/show_bug.cgi?id=30992
582         Node.isDefaultNamespace doesn't convert empty strings to null
583
584         Test: fast/dom/Node/default-namespace-empty-argument.html
585
586         * dom/Node.cpp: (WebCore::Node::isDefaultNamespace): Per DOM 3 Core, treat empty input
587         as null.
588
589 2009-11-01  Yael Aharon  <yael.aharon@nokia.com>
590
591         Reviewed by Darin Adler.
592
593         Don't add '/' to the URL path if the it does not include '/' after the protocol component
594         https://bugs.webkit.org/show_bug.cgi?id=30971
595
596         Match IE8 behaviour, that does not add '/' if there is none after the protocol component.
597
598         * platform/KURL.cpp:
599         (WebCore::KURL::parse):
600
601 2009-10-31  Oliver Hunt  <oliver@apple.com>
602
603         Reviewed by Darin Adler.
604
605         Fix layering violations in GraphicsContext3D
606         https://bugs.webkit.org/show_bug.cgi?id=30986
607
608         Remove uses of HTMLImageElement and HTMLCanvasElement
609
610         * html/canvas/CanvasRenderingContext3D.cpp:
611         (WebCore::CanvasRenderingContext3D::texImage2D):
612         (WebCore::CanvasRenderingContext3D::texSubImage2D):
613         * platform/graphics/GraphicsContext3D.h:
614         * platform/graphics/mac/GraphicsContext3DMac.cpp:
615         (WebCore::GraphicsContext3D::texImage2D):
616         (WebCore::GraphicsContext3D::texSubImage2D):
617
618 2009-11-01  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
619
620         Reviewed by Jan Alonzo.
621
622         https://bugs.webkit.org/show_bug.cgi?id=30964
623         [Gtk] Implemment AtkDocument
624
625         Implements what has been implemented in AT-SPI.
626
627         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
628         (GetAtkInterfaceTypeFromWAIType):
629         (getInterfaceMaskFromObject):
630         (atk_document_interface_init):
631         (webkit_accessible_document_get_document_attribute_value):
632         (webkit_accessible_document_get_document_attributes):
633         (webkit_accessible_document_get_locale):
634
635 2009-11-01  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
636
637         Reviewed by Eric Seidel.
638
639         Turn on warnings for QtWebKit for gcc
640         https://bugs.webkit.org/show_bug.cgi?id=30958
641
642         No new tests as there is no functional change.
643
644         * platform/image-decoders/qt/RGBA32BufferQt.cpp:
645         (WebCore::RGBA32Buffer::RGBA32Buffer): Reorder 
646         initialization list to fix compiler warnings.
647
648
649 2009-11-01  Keishi Hattori  <casey.hattori@gmail.com>
650
651         Reviewed by Pavel Feldman.
652
653         [Regression] monitorEvent doesn't work
654
655         * inspector/front-end/InjectedScript.js:
656         (InjectedScript._ensureCommandLineAPIInstalled):
657
658 2009-11-01  Keishi Hattori  <casey.hattori@gmail.com>
659
660         Reviewed by Pavel Feldman.
661
662         Fix Web Inspector: Bug with Message Bubble in Syntax Highlighter
663         https://bugs.webkit.org/show_bug.cgi?id=30990
664
665         * inspector/front-end/SourceFrame.js:
666
667 2009-10-31  Alexey Proskuryakov  <ap@apple.com>
668
669         Reviewed by John Sullivan.
670
671         https://bugs.webkit.org/show_bug.cgi?id=30982
672         createHTMLDocument doesn't escape ampersand and less-than in title
673
674         Test: fast/dom/DOMImplementation/createHTMLDocument-title.html
675
676         * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::createHTMLDocument):
677         Set document title after creating the document, avoiding parser intricacies.
678
679 2009-11-01  Keishi Hattori  <casey.hattori@gmail.com>
680
681         Reviewed by Timothy Hatcher.
682
683         Web Inspector: Double clicking on a breakpoints should not select text
684         https://bugs.webkit.org/show_bug.cgi?id=30950
685
686         * inspector/front-end/SourceFrame.js:
687         (WebInspector.SourceFrame.prototype._documentMouseDown):
688
689 2009-11-01  Yuta Kitamura  <yutak@chromium.org>
690
691         Reviewed by Darin Adler.
692
693         Fix assertion falure in RenderObjectChildList::updateBeforeAfterContent().
694
695         [Crash (debug)] Combination of list-item and :after causes assertion failure
696         https://bugs.webkit.org/show_bug.cgi?id=30944
697
698         Test: fast/css/list-item-pseudo-nocrash.html
699
700         * rendering/RenderObjectChildList.cpp:
701         (WebCore::RenderObjectChildList::updateBeforeAfterContent):
702
703 2009-11-01  Philippe Normand  <pnormand@igalia.com>
704
705         Reviewed by Eric Seidel.
706
707         https://bugs.webkit.org/show_bug.cgi?id=30586
708         [GTK] Failing test media/video-src-empty.html
709
710         Correctly set network/ready state depending on GStreamer errors
711         received on the bus.
712
713         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
714         (WebCore::mediaPlayerPrivateMessageCallback):
715
716 2009-10-31  Oliver Hunt  <oliver@apple.com>
717
718         Build fix
719
720         * platform/graphics/mac/GraphicsContext3DMac.cpp:
721         (WebCore::GraphicsContext3D::attachShader):
722
723 2009-10-31  Oliver Hunt  <oliver@apple.com>
724
725         Reviewed by Darin Adler.
726
727         Remove obsolete null checks from CanvasRenderingContext3DMac
728         https://bugs.webkit.org/show_bug.cgi?id=30983
729
730         * platform/graphics/mac/GraphicsContext3DMac.cpp:
731         (WebCore::GraphicsContext3D::attachShader):
732         (WebCore::GraphicsContext3D::bindAttribLocation):
733         (WebCore::GraphicsContext3D::compileShader):
734         (WebCore::GraphicsContext3D::detachShader):
735         (WebCore::GraphicsContext3D::framebufferRenderbuffer):
736         (WebCore::GraphicsContext3D::framebufferTexture2D):
737         (WebCore::GraphicsContext3D::linkProgram):
738         (WebCore::GraphicsContext3D::shaderSource):
739         (WebCore::GraphicsContext3D::useProgram):
740         (WebCore::GraphicsContext3D::validateProgram):
741         (WebCore::GraphicsContext3D::getProgramInfoLog):
742         (WebCore::GraphicsContext3D::getShaderi):
743         (WebCore::GraphicsContext3D::getShaderiv):
744         (WebCore::GraphicsContext3D::getShaderInfoLog):
745         (WebCore::GraphicsContext3D::getShaderSource):
746         (WebCore::GraphicsContext3D::getUniformLocation):
747
748 2009-10-31  Oliver Hunt  <oliver@apple.com>
749
750         Reviewed by Jon Honeycutt.
751
752         WebGL allows objects to be used with the wrong context
753         https://bugs.webkit.org/show_bug.cgi?id=30981
754
755         Simply add null checks and a few context guards to ensure we don't
756         deref null or attempt to use an object from a different context.
757
758         Tests: fast/canvas/webgl/incorrect-context-object-behaviour.html
759                fast/canvas/webgl/null-object-behaviour.html
760
761         * html/canvas/CanvasRenderingContext3D.cpp:
762         (WebCore::CanvasRenderingContext3D::attachShader):
763         (WebCore::CanvasRenderingContext3D::bindAttribLocation):
764         (WebCore::CanvasRenderingContext3D::bindBuffer):
765         (WebCore::CanvasRenderingContext3D::bindFramebuffer):
766         (WebCore::CanvasRenderingContext3D::bindRenderbuffer):
767         (WebCore::CanvasRenderingContext3D::bindTexture):
768         (WebCore::CanvasRenderingContext3D::compileShader):
769         (WebCore::CanvasRenderingContext3D::detachShader):
770         (WebCore::CanvasRenderingContext3D::framebufferRenderbuffer):
771         (WebCore::CanvasRenderingContext3D::framebufferTexture2D):
772         (WebCore::CanvasRenderingContext3D::getProgrami):
773         (WebCore::CanvasRenderingContext3D::getProgramiv):
774         (WebCore::CanvasRenderingContext3D::getProgramInfoLog):
775         (WebCore::CanvasRenderingContext3D::getShaderi):
776         (WebCore::CanvasRenderingContext3D::getShaderiv):
777         (WebCore::CanvasRenderingContext3D::getShaderInfoLog):
778         (WebCore::CanvasRenderingContext3D::getShaderSource):
779         (WebCore::CanvasRenderingContext3D::getUniformf):
780         (WebCore::CanvasRenderingContext3D::getUniformfv):
781         (WebCore::CanvasRenderingContext3D::getUniformi):
782         (WebCore::CanvasRenderingContext3D::getUniformiv):
783         (WebCore::CanvasRenderingContext3D::getUniformLocation):
784         (WebCore::CanvasRenderingContext3D::isBuffer):
785         (WebCore::CanvasRenderingContext3D::linkProgram):
786         (WebCore::CanvasRenderingContext3D::shaderSource):
787         * html/canvas/CanvasRenderingContext3D.h:
788         * html/canvas/CanvasRenderingContext3D.idl:
789
790 2009-10-30  Zoltan Horvath  <zoltan@webkit.org>
791
792         Reviewed by Darin Adler.
793
794         Allow custom memory allocation control for WebCore's MediaQueryResult
795         https://bugs.webkit.org/show_bug.cgi?id=30857
796
797         Inherits MediaQueryResult class from Noncopyable because it is
798         instantiated by 'new' in WebCore/css/CSSStyleSelector.cpp:5984 and
799         it is no need to be copyable.
800
801         * css/CSSStyleSelector.h:
802
803 2009-10-30  Zoltan Horvath  <zoltan@webkit.org>
804
805         Reviewed by Darin Adler.
806
807         Allow custom memory allocation control for WebCore's MediaQueryEvaluator
808         https://bugs.webkit.org/show_bug.cgi?id=30854
809
810         Inherits MediaQueryEvaluator class from Noncopyable because it is
811         instantiated by 'new' in WebCore/css/CSSStyleSelector.cpp:401 and   
812         it is no need to be copyable.
813
814         * css/MediaQueryEvaluator.h:
815
816 2009-10-30  Zoltan Horvath  <zoltan@webkit.org>
817
818         Reviewed by Darin Adler.
819
820         Allow custom memory allocation control for WebCore's CSSRuleSet
821         https://bugs.webkit.org/show_bug.cgi?id=30852
822
823         Inherits CSSRuleSet class from Noncopyable because it is
824         instantiated by 'new' in WebCore/css/CSSStyleSelector.cpp:455 and
825         it is no need to be copyable.
826
827         * css/CSSStyleSelector.cpp:
828
829 2009-10-30  Zoltan Horvath  <zoltan@webkit.org>
830
831         Reviewed by Darin Adler.
832
833         Allow custom memory allocation control for WebCore's CSSRuleData
834         https://bugs.webkit.org/show_bug.cgi?id=30851
835
836         Inherits CSSRuleData class from Noncopyable because it is
837         instantiated by 'new' in WebCore/css/CSSStyleSelector.h:320 and
838         it is no need to be copyable.
839
840         * css/CSSStyleSelector.h:
841
842 2009-10-30  Zoltan Horvath  <zoltan@webkit.org>
843
844         Reviewed by Darin Adler.
845
846         Allow custom memory allocation control for WebCore's CSSRuleDataList
847         https://bugs.webkit.org/show_bug.cgi?id=30850
848
849         Inherits CSSRuleDataList class from Noncopyable because it has been
850         instantiated by 'new' in WebCore/css/CSSStyleSelector.cpp:2715 and
851         it is no need to be copyable.
852
853         * css/CSSStyleSelector.h:
854
855 2009-10-30  Zoltan Horvath  <zoltan@webkit.org>
856
857         Reviewed by Darin Adler.
858
859         Allow custom memory allocation control for WebCore's CSSNamespace
860         https://bugs.webkit.org/show_bug.cgi?id=30849
861
862         Inherits CSSNamespace struct from Noncopyable because it is
863         instantiated by 'new' in WebCore/css/CSSStyleSheet.cpp:141 and
864         it is no need to be copyable.
865
866         * css/CSSNamespace.h:
867
868 2009-10-30  Dmitry Titov  <dimich@chromium.org>
869
870         Reviewed by David Levin.
871
872         Refactor DatabaseTask in preparation for removing threadsafe refcounting from it.
873         Move the synchronizer object out of the DatabaseTask so there is no need to keep
874         the pointer to Databasetask around after passing it to MessageQueue.
875         Also pass the references to return parameters to the task so it can update them.
876         https://bugs.webkit.org/show_bug.cgi?id=30941
877
878         No new tests, since this is just moving the code around, no change in functionality.
879
880         * storage/Database.cpp:
881         (WebCore::Database::Database):
882         (WebCore::Database::openAndVerifyVersion): Use new DatabaseTaskSynchronizer to wait for task completion.
883         (WebCore::Database::markAsDeletedAndClose): Ditto.
884         (WebCore::Database::tableNames): Ditto.
885         (WebCore::Database::stop): Use the boolean flag rather then 'killed' flag built into MessageQueue.
886         (WebCore::Database::scheduleTransaction): Transaction queue is a Deque now, change the way to fetch the transaction.
887         * storage/Database.h: Change the SQLTransaction queue to be a Deque rather then a MessageQueue.
888         * storage/DatabaseTask.cpp:
889         (WebCore::DatabaseTaskSynchronizer::DatabaseTaskSynchronizer):
890         (WebCore::DatabaseTaskSynchronizer::waitForTaskCompletion):
891         (WebCore::DatabaseTaskSynchronizer::taskCompleted):
892         (WebCore::DatabaseTask::DatabaseTask): Ctor takes DatabaseTaskSynchronizer which can be 0.
893         (WebCore::DatabaseTask::performTask): Signal completion. m_synchronizer should still be around since main thread is waiting on it.
894         (WebCore::DatabaseOpenTask::DatabaseOpenTask): Pass synchronizer and return parameters via constructor.
895         (WebCore::DatabaseCloseTask::DatabaseCloseTask): Ditto.
896         (WebCore::DatabaseTransactionTask::DatabaseTransactionTask): Ditto.
897         (WebCore::DatabaseTableNamesTask::DatabaseTableNamesTask): Ditto.
898         * storage/DatabaseTask.h:
899         (WebCore::DatabaseOpenTask::create):
900         (WebCore::DatabaseCloseTask::create):
901         (WebCore::DatabaseTransactionTask::create):
902         (WebCore::DatabaseTableNamesTask::create):
903
904 2009-10-30  Enrica Casucci  <enrica@apple.com>
905
906         Reviewed by Darin Adler.
907
908         REGRESSION: In Mail, Undo does not restore some characters I have deleted at the end of a line
909         https://bugs.webkit.org/show_bug.cgi?id=30955
910         <rdar://problem/7067033>
911         
912         When the command is deleteWordBackward or deleteWordForward
913         we should not add to the open typing command, but
914         create a new one.
915         
916         Test: editing/undo/undo-deleteWord.html
917
918         * editing/TypingCommand.cpp:
919         (WebCore::TypingCommand::deleteKeyPressed): Always start a new command if the granularity is
920         not CharacterGranularity. 
921         (WebCore::TypingCommand::forwardDeleteKeyPressed): Always start a new command if the granularity is
922         not CharacterGranularity. 
923
924 2009-10-30  Eric Carlson  <eric.carlson@apple.com>
925
926         Reviewed by Darin Adler.
927
928         Make MediaPlayer constructor private
929         https://bugs.webkit.org/show_bug.cgi?id=30965
930
931         * html/HTMLMediaElement.cpp:
932         (WebCore::HTMLMediaElement::loadResource): 
933         (WebCore::HTMLMediaElement::finishParsingChildren): Use MediaPlayer::create.
934
935         * platform/graphics/MediaPlayer.h:
936         (WebCore::MediaPlayer::create): New.
937
938 2009-10-29  Jon Honeycutt  <jhoneycutt@apple.com>
939
940         MSAA: Accessibility of headings is not correct
941
942         https://bugs.webkit.org/show_bug.cgi?id=30937
943
944         Reviewed by Alice Liu.
945
946         * accessibility/AccessibilityObject.h:
947         (WebCore::AccessibilityObject::stringRoleForMSAA):
948         (WebCore::AccessibilityObject::descriptionForMSAA):
949
950         * accessibility/AccessibilityRenderObject.cpp:
951         (WebCore::shouldReturnTagNameAsRoleForMSAA):
952         If the element's tag name is one of h1, h2, h3, h4, h5, h6, return
953         true.
954         (WebCore::AccessibilityRenderObject::stringRoleForMSAA):
955         If the element should return its tag name as the role, return the tag
956         name.
957         (WebCore::AccessibilityRenderObject::positionalDescriptionForMSAA):
958         If the object is a heading, return the string "L" followed by the
959         heading level.
960         (WebCore::AccessibilityRenderObject::descriptionForMSAA):
961         If the object has a positional description, return it. Otherwise, get
962         the accessibility description, and prefix it with "Description" so that
963         MSAA clients know that it's not a positional description.
964
965         * accessibility/AccessibilityRenderObject.h:
966
967 2009-10-29  Jon Honeycutt  <jhoneycutt@apple.com>
968
969         MSAA: Accessibility of links is wrong
970
971         https://bugs.webkit.org/show_bug.cgi?id=30928
972
973         Reviewed by Darin Adler.
974
975         * accessibility/AccessibilityImageMapLink.cpp:
976         (WebCore::AccessibilityImageMapLink::stringValueForMSAA):
977         Return the URL.
978         (WebCore::AccessibilityImageMapLink::nameForMSAA):
979         Return the alt text.
980
981         * accessibility/AccessibilityImageMapLink.h:
982         (WebCore::AccessibilityImageMapLink::isLinked):
983         Return true.
984
985         * accessibility/AccessibilityObject.h:
986         (WebCore::AccessibilityObject::isLinked):
987         (WebCore::AccessibilityObject::stringValueForMSAA):
988         (WebCore::AccessibilityObject::nameForMSAA):
989
990         * accessibility/AccessibilityRenderObject.cpp:
991         (WebCore::isLinkable):
992         Return true if the element is considered "linkable" with respect to
993         accessibility.
994         (WebCore::AccessibilityRenderObject::stringValueForMSAA):
995         If the element is linkable, check whether it has a parent anchor
996         element. If so, return the anchor element's href.
997         (WebCore::AccessibilityRenderObject::isLinked):
998         Return true if the element is linkable and if it's parent anchor tag's
999         href is non-empty.
1000         (WebCore::AccessibilityRenderObject::nameForMSAA):
1001         For text nodes, return the text.
1002
1003         * accessibility/AccessibilityRenderObject.h:
1004
1005 2009-10-30  Evan Stade  <estade@chromium.org>
1006
1007         Reviewed by David Levin.
1008
1009         Notify the chrome when the focused node has changed.
1010         https://bugs.webkit.org/show_bug.cgi?id=30832
1011
1012         This is similar to AX code that is already in place, except that this also informs the
1013         chrome when there stops being a focused node. This is needed for a browser to show the
1014         anchor for links that have keyboard focus.
1015
1016         * dom/Document.cpp:
1017         (WebCore::Document::setFocusedNode):
1018         * loader/EmptyClients.h:
1019         (WebCore::EmptyChromeClient::focusedNodeChanged):
1020         * page/Chrome.cpp:
1021         (WebCore::Chrome::focusedNodeChanged):
1022         * page/Chrome.h:
1023         * page/ChromeClient.h:
1024
1025 2009-10-30  Ben Murdoch  <benm@google.com>
1026
1027         Reviewed by David Kilzer.
1028
1029         openDatabase() with empty version sets db version up incorrectly
1030         https://bugs.webkit.org/show_bug.cgi?id=28417
1031
1032         Test: storage/open-database-set-empty-version.html
1033
1034         * storage/Database.cpp:
1035         (WebCore::Database::performOpenAndVerify): Raise an exception if the current database version does not match the expected version when the current version is the empty string.
1036
1037 2009-10-30  John Gregg  <johnnyg@google.com>
1038
1039         Reviewed by David Levin.
1040
1041         Need to turn off notifications properly at runtime
1042         https://bugs.webkit.org/show_bug.cgi?id=30409
1043
1044         Moving the notificationsEnabled bit from NotificationCenter
1045         to the new V8 RuntimeEnabledFeatures object.
1046
1047         Just moving a bit around, so no new tests.
1048
1049         * bindings/v8/RuntimeEnabledFeatures.cpp:
1050         * bindings/v8/RuntimeEnabledFeatures.h:
1051         (WebCore::RuntimeEnabledFeatures::setNotificationsEnabled):
1052         (WebCore::RuntimeEnabledFeatures::notificationsEnabled):
1053         * bindings/v8/custom/V8DOMWindowCustom.cpp:
1054         (WebCore::ACCESSOR_RUNTIME_ENABLER):
1055         * bindings/v8/custom/V8WorkerContextCustom.cpp:
1056         (WebCore::ACCESSOR_RUNTIME_ENABLER):
1057         * notifications/NotificationCenter.cpp:
1058         * notifications/NotificationCenter.h:
1059
1060 2009-10-30  Dmitry Titov  <dimich@chromium.org>
1061
1062         Reviewed by Dimitri Glazkov.
1063
1064         [V8] More cleanup after r49949: remove ListenerGuard.
1065         ListenerGuard is no longer needed since EventListeners do not depend on frame or v8 context.
1066         https://bugs.webkit.org/show_bug.cgi?id=30943
1067
1068         Covered by fast/events/add-event-without-document.html which will now pass in Chromium.
1069
1070         * bindings/v8/V8AbstractEventListener.cpp:
1071         (WebCore::V8AbstractEventListener::V8AbstractEventListener):
1072         (WebCore::V8AbstractEventListener::handleEvent):
1073         * bindings/v8/V8AbstractEventListener.h:
1074         * bindings/v8/V8DOMWrapper.cpp:
1075         (WebCore::V8DOMWrapper::getEventListener):
1076         * bindings/v8/V8EventListenerList.h:
1077         (WebCore::V8EventListenerList::findOrCreateWrapper):
1078         * bindings/v8/V8LazyEventListener.cpp:
1079         (WebCore::V8LazyEventListener::V8LazyEventListener):
1080         * bindings/v8/V8Proxy.cpp:
1081         (WebCore::V8Proxy::V8Proxy):
1082         (WebCore::V8Proxy::disconnectFrame):
1083         (WebCore::V8Proxy::clearForNavigation):
1084         * bindings/v8/V8Proxy.h:
1085         * bindings/v8/V8WorkerContextEventListener.cpp:
1086         (WebCore::V8WorkerContextEventListener::V8WorkerContextEventListener):
1087         (WebCore::V8WorkerContextEventListener::handleEvent):
1088         (WebCore::V8WorkerContextEventListener::reportError):
1089         * bindings/v8/V8WorkerContextEventListener.h:
1090         (WebCore::V8WorkerContextEventListener::create):
1091         * bindings/v8/WorkerContextExecutionProxy.cpp:
1092         (WebCore::WorkerContextExecutionProxy::WorkerContextExecutionProxy):
1093         (WebCore::WorkerContextExecutionProxy::dispose):
1094         (WebCore::WorkerContextExecutionProxy::findOrCreateEventListener):
1095         * bindings/v8/WorkerContextExecutionProxy.h:
1096         * bindings/v8/custom/V8CustomEventListener.cpp:
1097         (WebCore::V8EventListener::V8EventListener):
1098         * bindings/v8/custom/V8CustomEventListener.h:
1099         (WebCore::V8EventListener::create):
1100
1101 2009-10-30  Shinichiro Hamaji  <hamaji@chromium.org>
1102
1103         Reviewed by Darin Adler.
1104
1105         counterValueForElementById should return space-separated string for multiple counters
1106         https://bugs.webkit.org/show_bug.cgi?id=30939
1107
1108         Test: fast/css/counters/counterValueForElementById.html
1109
1110         * rendering/RenderTreeAsText.cpp:
1111         (WebCore::writeCounterValuesFromChildren):
1112         (WebCore::counterValueForElement):
1113
1114 2009-10-30  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
1115
1116         Reviewed by Gustavo Noronha.
1117
1118         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
1119         (WebCore::MediaPlayerPrivate::paint):
1120         Add some comments to explain what is happening here.
1121
1122 2009-10-30  Alexander Pavlov  <apavlov@chromium.org>
1123
1124         Reviewed by Timothy Hatcher.
1125
1126         Fix Web Inspector crash on the errors/warnings counter click
1127
1128         RenderObject::createVisiblePosition(const Position& position)
1129         understands "null Positions", so we can construct such a Position manually.
1130
1131         https://bugs.webkit.org/show_bug.cgi?id=30499
1132
1133         * rendering/RenderBox.cpp:
1134         (WebCore::RenderBox::positionForPoint):
1135
1136 2009-10-30  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
1137
1138         Reviewed by Xan Lopez.
1139
1140         https://bugs.webkit.org/show_bug.cgi?id=25534
1141         [GTK] Objects of ROLE_TABLE should implement the accessible table interface
1142
1143         Third part of the implementation of AtkTable.
1144
1145         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1146         (nameFromChildren):
1147         (webkit_accessible_get_name):
1148         New convenience function to construct an object's name using the name(s) of
1149         any children it has.
1150
1151         (atk_table_interface_init):
1152         (webkit_accessible_table_get_column_description):
1153         (webkit_accessible_table_get_row_description):
1154         Implemented.
1155
1156         (webkit_accessible_table_get_column_header):
1157         Stub function added so that webkit_accessible_table_get_column_description
1158         could be implemented in the meantime.
1159
1160 2009-10-30  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
1161
1162         Reviewed by Xan Lopez.
1163
1164         https://bugs.webkit.org/show_bug.cgi?id=25534
1165         [GTK] Objects of ROLE_TABLE should implement the accessible table interface
1166
1167         Second part of the implementation of AtkTable.
1168
1169         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1170         (cellAtIndex):
1171         (webkit_accessible_table_get_column_at_index):
1172         (webkit_accessible_table_get_row_at_index):
1173         (webkit_accessible_table_get_caption):
1174         (atk_table_interface_init):
1175
1176 2009-10-30  Pavel Feldman  <pfeldman@chromium.org>
1177
1178         Reviewed by Timothy Hatcher.
1179
1180         Web Inspector: Add TimelinePanel into the panels enum.
1181
1182         https://bugs.webkit.org/show_bug.cgi?id=30915
1183
1184         * inspector/InspectorFrontend.cpp:
1185         (WebCore::InspectorFrontend::showPanel):
1186         * inspector/front-end/inspector.js:
1187         (WebInspector.showTimelinePanel):
1188
1189 2009-10-30  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1190
1191         Reviewed by Holger Hans Peter Freyther.
1192
1193         If the owner widget of the page has a palette set, we
1194         should use that one. This was only working when the
1195         owner was a QWebView. This patch fixes that.
1196
1197         * platform/qt/RenderThemeQt.cpp:
1198         (WebCore::RenderThemeQt::applyTheme):
1199
1200 2009-10-30  Pavel Feldman  <pfeldman@chromium.org>
1201
1202         Not reviewed: Wire CookieJarChromium to the cookies
1203         backend. This is a final step of a 3-steps raw cookies
1204         access implementation in Chromium.
1205
1206         * platform/network/chromium/CookieJarChromium.cpp:
1207         (WebCore::getRawCookies):
1208         (WebCore::deleteCookie):
1209
1210 2009-10-30  Yury Semikhatsky  <yurys@chromium.org>
1211
1212         Reviewed by Pavel Feldman.
1213
1214         Fix Chromium crash in console.log in "deeply recursive" function 
1215
1216         Check that result of 'frameSourceName' is not null handle
1217         before casting it to String. 
1218       
1219         Allow V8Proxy::sourceName/sourceLineNumber() to report
1220         that they have failed due to JavaScript stack overflow.
1221
1222         https://bugs.webkit.org/show_bug.cgi?id=30904
1223
1224         * bindings/scripts/CodeGeneratorV8.pm:
1225         * bindings/v8/ScriptCallStack.cpp:
1226         (WebCore::ScriptCallStack::create):
1227         (WebCore::ScriptCallStack::ScriptCallStack):
1228         * bindings/v8/ScriptCallStack.h:
1229         * bindings/v8/V8Proxy.cpp:
1230         (WebCore::V8Proxy::sourceLineNumber):
1231         (WebCore::V8Proxy::sourceName):
1232         * bindings/v8/V8Proxy.h:
1233         * bindings/v8/custom/V8WorkerContextCustom.cpp:
1234         (WebCore::CALLBACK_FUNC_DECL):
1235
1236 2009-10-30  Zoltan Horvath  <zoltan@webkit.org>
1237
1238         Reviewed by Darin Adler.
1239
1240         Allow custom memory allocation control for WebCore's MediaQuery
1241         https://bugs.webkit.org/show_bug.cgi?id=30856
1242
1243         Inherits MediaQuery class from Noncopyable because it is
1244         instantiated by 'new' in WebCore/css/CSSParser.cpp:4905 and
1245         it is no need to be copyable.
1246
1247         * css/CSSStyleSelector.h:
1248
1249 2009-10-30  Zoltan Horvath  <zoltan@webkit.org>
1250
1251         Reviewed by Darin Adler.
1252
1253         Allow custom memory allocation control for WebCore's MediaQueryExp
1254         https://bugs.webkit.org/show_bug.cgi?id=30855
1255
1256         Inherits MediaQueryExp class from FastAllocBase because it is
1257         instantiated by 'new' in WebCore/css/CSSParser.cpp:4874.
1258
1259         * css/MediaQueryExp.h:
1260
1261 2009-10-30  Roland Steiner  <rolandsteiner@chromium.org>
1262
1263         Reviewed by Eric Seidel.
1264
1265         Remove ENABLE_RUBY guards as discussed with Dave Hyatt and Maciej Stachowiak.
1266
1267         Bug 28420 -  Implement HTML5 <ruby> rendering
1268         (https://bugs.webkit.org/show_bug.cgi?id=28420)
1269
1270         No new tests (no functional change).
1271
1272         * Configurations/FeatureDefines.xcconfig:
1273         * DerivedSources.make:
1274         * GNUmakefile.am:
1275         * WebCore.pro:
1276         * WebCore.vcproj/WebCoreCommon.vsprops:
1277         * WebCore.vcproj/build-generated-files.sh:
1278
1279 2009-10-30  Dan Bernstein  <mitz@apple.com>
1280
1281         Reviewed by Adele Peterson.
1282
1283         Removed test for an impossible condition (a glyph in a right-to-left run not having
1284         the RTL flag 0x800)
1285
1286         * platform/graphics/mac/ComplexTextControllerATSUI.cpp:
1287         (WebCore::ComplexTextController::ComplexTextRun::overrideLayoutOperation):
1288
1289 2009-10-29  Adam Barth  <abarth@webkit.org>
1290
1291         Reviewed by Dimitri Glazkov.
1292
1293         [V8] Out-of-memory crash in isolated worlds
1294         https://bugs.webkit.org/show_bug.cgi?id=30906
1295
1296         We need to handle the fact that creating a V8:Context might fail.  I
1297         don't know how to test this change because creating a context usually
1298         only fails when V8 decides it's using too much memory.
1299
1300         * bindings/v8/V8IsolatedWorld.cpp:
1301         (WebCore::V8IsolatedWorld::V8IsolatedWorld):
1302         * bindings/v8/V8Proxy.cpp:
1303         (WebCore::V8Proxy::evaluateInIsolatedWorld):
1304         (WebCore::V8Proxy::evaluateInNewContext):
1305
1306 2009-10-29  Erik Arvidsson  <arv@chromium.org>
1307
1308         Reviewed by Eric Seidel.
1309
1310         Make links mouse focusable only on GTK and QT.
1311
1312         Links are now always mouse focusable on GTK and QT. On other platforms
1313         the link needs a tabIndex or it needs to be contentEditable.
1314
1315         https://bugs.webkit.org/show_bug.cgi?id=26856
1316
1317         * html/HTMLAnchorElement.cpp:
1318         (WebCore::HTMLAnchorElement::isMouseFocusable):
1319
1320 2009-10-29  Dan Bernstein  <mitz@apple.com>
1321
1322         Reviewed by Sam Weinig.
1323
1324         Complete the fix for hit-testing and selection highlighting in ligatures for the ATSUI
1325         code path.
1326
1327         * platform/graphics/mac/ComplexTextController.h: Added m_ltr member to ComplexTextRun.
1328         * platform/graphics/mac/ComplexTextControllerATSUI.cpp:
1329         (WebCore::ComplexTextController::ComplexTextRun::overrideLayoutOperation): Skip over deleted
1330         glyphs, but update indexes and advances correctly.
1331         (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun): Initialize m_ltr.
1332
1333 2009-10-29  Enrica Casucci  <enrica@apple.com>
1334
1335         Reviewed by Darin Adler.
1336
1337         REGRESSION(3.2.3 - 4.0.2): Message composing: when I undo a color change to text in Mail, undo/redo behaves strangely
1338         <rdar://problem/7115041>
1339         https://bugs.webkit.org/show_bug.cgi?id=30892
1340
1341         This problem shows in any scenario where it is necessary to split a text
1342         node to apply a style. SplitElementCommand and WrapContentsInDummySpanCommand both
1343         have member variables initialized in the constructor to keep reference to elements
1344         they need to operate upon. These reference are not updated when reapplying the command.
1345         For this reason it is necessary to guarantee that unapply doesn not delete the references
1346         and that these commands implement doReapply to correctly reuse the existing
1347         elements.
1348
1349         Test: editing/undo/redo-style.html
1350
1351         * editing/SplitElementCommand.cpp:
1352         (WebCore::SplitElementCommand::executeApply): Added.
1353         (WebCore::SplitElementCommand::doApply): Modified to call executeApply. 
1354         (WebCore::SplitElementCommand::doUnapply): Doesn't release m_element1.
1355         (WebCore::SplitElementCommand::doReapply): Added.
1356         * editing/SplitElementCommand.h: Added doReapply and executeApply.
1357         * editing/WrapContentsInDummySpanCommand.cpp:
1358         (WebCore::WrapContentsInDummySpanCommand::executeApply): Added.
1359         (WebCore::WrapContentsInDummySpanCommand::doApply): Modified to call executeApply.
1360         (WebCore::WrapContentsInDummySpanCommand::doUnapply): Doesn't release m_dummySpan.
1361         (WebCore::WrapContentsInDummySpanCommand::doReapply): Added.
1362         * editing/WrapContentsInDummySpanCommand.h: Added doReapply and executeApply.
1363
1364 2009-10-29  Jeremy Orlow  <jorlow@chromium.org>
1365
1366         Reviewed by Darin Fisher.
1367
1368         DOM Storage's condition variable needs to handle spurious wakeups
1369         https://bugs.webkit.org/show_bug.cgi?id=30920
1370
1371         Add a boolean to keep track of whether it's been terminated.  Clean
1372         up the locking code a tiny bit to make it easier to read.  There's
1373         no way to reproduce this reliably in a LayoutTest.
1374
1375         * storage/LocalStorageThread.cpp:
1376         (WebCore::LocalStorageThread::LocalStorageThread):
1377         (WebCore::LocalStorageThread::terminate):
1378         (WebCore::LocalStorageThread::performTerminate):
1379         * storage/LocalStorageThread.h:
1380
1381 2009-10-29  Dimitri Glazkov  <dglazkov@chromium.org>
1382
1383         Unreviewed, build fix.
1384
1385         [Chromium] Include ComplextTextController into Chromium Mac project.
1386
1387         * WebCore.gyp/WebCore.gyp: Added include rule for ComplextText* files.
1388
1389 2009-10-29  Timothy Hatcher  <timothy@apple.com>
1390
1391         Fix tabbing through element attributes in the Web Insector.
1392
1393         https://bugs.webkit.org/show_bug.cgi?id=30429
1394
1395         Reviewed by Pavel Feldman.
1396
1397         * inspector/front-end/ElementsTreeOutline.js:
1398         (WebInspector.ElementsTreeElement.prototype._attributeEditingCommitted): Don't call _updateTitle,
1399         it is called for us when removeAttribute succeeds in the back-end.
1400         (WebInspector.ElementsTreeElement.prototype._textNodeEditingCommitted): Ditto except for nodeValue.
1401         (WebInspector.ElementsTreeElement.prototype._editingCancelled): Don't call _updateTitle, editing code reverts.
1402         (WebInspector.ElementsTreeElement.prototype._updateTitle): Return early if we are editing.
1403
1404 2009-10-29  Dan Bernstein  <mitz@apple.com>
1405
1406         Reviewed by Sam Weinig.
1407
1408         Problem editing or selecting text containing ligatures
1409         https://bugs.webkit.org/show_bug.cgi?id=30025
1410
1411         Test: platform/mac/fast/text/ligature-subdivision.html
1412
1413         * platform/graphics/mac/ComplexTextController.cpp:
1414         (WebCore::ComplexTextController::ComplexTextController): Initialize
1415         m_characterInCurrentGlyph.
1416         (WebCore::ComplexTextController::offsetForPosition): If the hit glyph spans multiple
1417         characters, compute the hit character based on dividing the glyph’s total advance into
1418         a number of equal intervals equal to the number of characters and assigning the hit to the
1419         character corresponding to the hit interval.
1420         (WebCore::ComplexTextController::advance): If the final offset occurs mid-glyph, advance
1421         by a fraction of the glyph’s total advance.
1422         * platform/graphics/mac/ComplexTextController.h: Added m_characterInCurrentGlyph.
1423
1424 2009-10-29  Brian Weinstein  <bweinstein@apple.com>
1425
1426         Reviewed by Timothy Hatcher.
1427
1428         Fixes <http://webkit.org/b/30918>.
1429         Web Inspector: Datagrid Rows on Windows not properly aligned.
1430         
1431         Use line-height for the table rows to make sure the height
1432         of our text and the height of the table rows are consistent.
1433
1434         * inspector/front-end/inspector.css:
1435
1436 2009-10-29  Adam Barth  <abarth@webkit.org>
1437
1438         No review, rolling out r50296.
1439         http://trac.webkit.org/changeset/50296
1440
1441         * bindings/v8/V8IsolatedWorld.cpp:
1442         (WebCore::V8IsolatedWorld::V8IsolatedWorld):
1443         * bindings/v8/V8Proxy.cpp:
1444         (WebCore::V8Proxy::evaluateInIsolatedWorld):
1445         (WebCore::V8Proxy::evaluateInNewContext):
1446
1447 2009-10-29  Adam Barth  <abarth@webkit.org>
1448
1449         Reviewed by Dimitri Glazkov.
1450
1451         [V8] Out-of-memory crash in isolated worlds
1452         https://bugs.webkit.org/show_bug.cgi?id=30906
1453
1454         We need to handle the fact that creating a V8:Context might fail.  I
1455         don't know how to test this change because creating a context usually
1456         only fails when V8 decides it's using too much memory.
1457
1458         * bindings/v8/V8IsolatedWorld.cpp:
1459         (WebCore::V8IsolatedWorld::V8IsolatedWorld):
1460         * bindings/v8/V8Proxy.cpp:
1461         (WebCore::V8Proxy::evaluateInIsolatedWorld):
1462         (WebCore::V8Proxy::evaluateInNewContext):
1463
1464 2009-10-29  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
1465
1466         Reviewed by Xan Lopez.
1467
1468         Remove build warning introduced by r50284.
1469
1470         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
1471         (WebCore::MediaPlayerPrivate::duration):
1472
1473 2009-10-29  Dimitri Glazkov  <dglazkov@chromium.org>
1474
1475         Reviewed by Adam Barth.
1476
1477         [V8] Remove random crashes by removing retrieval of V8 context during garbage collection.
1478
1479         https://bugs.webkit.org/show_bug.cgi?id=30919
1480
1481         Unfortunately, I haven't been able to trigger this crash explicitly, so no test :(.
1482
1483         * bindings/v8/V8DOMWrapper.cpp:
1484         (WebCore::V8DOMWrapper::jsWrapperForDOMObject): Added new "assume-it's-there" getter.
1485         * bindings/v8/V8DOMWrapper.h: Added getter decl.
1486         * bindings/v8/V8GCController.cpp:
1487         (WebCore::GCPrologueVisitor::visitDOMWrapper): Changed to use explicit getter.
1488
1489 2009-10-29  Dimitri Glazkov  <dglazkov@chromium.org>
1490
1491         Unreviewed, build fix.
1492
1493         [Chromium] Adjust the project files to sync up with
1494         http://trac.webkit.org/changeset/50259
1495
1496         * WebCore.gypi: Renamed and added files.
1497
1498 2009-10-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1499
1500         Reviewed by Tor Arne Vestbø.
1501
1502         [Qt] Implement DELETE HTTP method for XmlHttpRequest
1503         https://bugs.webkit.org/show_bug.cgi?id=30894
1504
1505         No new tests as this functionality is already tested by the 
1506         xmlhttprequest LayoutTests. As this patch depends on an unreleased
1507         version of the dependent QtNetwork library and the tests will be
1508         enabled later once the dependent library is released (and the
1509         buildbot is updated).
1510
1511         * platform/network/qt/QNetworkReplyHandler.cpp:
1512         (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
1513         (WebCore::QNetworkReplyHandler::start):
1514
1515 2009-10-29  Brian Weinstein  <bweinstein@apple.com>
1516
1517         Reviewed by Timothy Hatcher.
1518
1519         Part of <http://webkit.org/b/30483>.
1520         Web Inspector: Always show the Local and Session Storage Views.
1521         
1522         Even if the length of the DOM Storage entry array is 0, still
1523         generate the Datagrid because users can add things storage items
1524         through the UI, so we should allow them to even if there isn't
1525         anything there currently.
1526
1527         * English.lproj/localizedStrings.js: Removed "This Storage is Empty".
1528         * inspector/front-end/DOMStorageItemsView.js:
1529         (WebInspector.DOMStorageItemsView.prototype._showDOMStorageEntries):
1530
1531 2009-10-29  Pavel Feldman  <pfeldman@chromium.org>
1532
1533         Reviewed by Timothy Hatcher.
1534
1535         Web Inspector: Add TimelinePanel into the panels enum.
1536
1537         https://bugs.webkit.org/show_bug.cgi?id=30915
1538
1539         * inspector/InspectorController.cpp:
1540         (WebCore::InspectorController::specialPanelForJSName):
1541         * inspector/InspectorController.h:
1542         (WebCore::InspectorController::):
1543
1544 2009-10-29  Xan Lopez  <xlopez@igalia.com>
1545
1546         Reviewed by Oliver Hunt.
1547
1548         [GTK] Threading problems with some of the tests
1549         https://bugs.webkit.org/show_bug.cgi?id=30814
1550
1551         Create strings shared among threads with crossThreadString
1552         constructor method.
1553
1554         * storage/Database.cpp:
1555         (WebCore::Database::Database):
1556
1557 2009-10-29  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
1558
1559         Reviewed by Gustavo Noronha.
1560
1561         https://bugs.webkit.org/show_bug.cgi?id=30308
1562         
1563         Add support for ARGB videos.
1564
1565         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
1566         (WebCore::MediaPlayerPrivate::paint):
1567         Create the Cairo image surface for ARGB32 or RGB24
1568         depending on the buffer's caps.
1569         
1570         * platform/graphics/gtk/VideoSinkGStreamer.cpp:
1571         (webkit_video_sink_timeout_func):
1572         (webkit_video_sink_render):
1573         Handle ARGB video and convert GStreamer's ARGB to
1574         Cairo's for displaying.
1575
1576 2009-10-29  Anton Muhin  <antonm@chromium.org>
1577
1578         Reviewed by David Levin.
1579
1580         [chromium] expose a method to access memory usage information in ChromiumBridge
1581         Declare a static method to be implemented by http://codereview.chromium.org/332010/
1582         https://bugs.webkit.org/show_bug.cgi?id=30829
1583
1584         * platform/chromium/ChromiumBridge.h:
1585
1586 2009-10-29  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
1587
1588         Reviewed by Xan Lopez.
1589
1590         https://bugs.webkit.org/show_bug.cgi?id=25679
1591         [Gtk] Improve accessibility of focusable lists
1592
1593         Implements the AtkSelection interface and enables the corresponding
1594         (and expected) object:selection-changed event.
1595
1596         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1597         (optionFromList):
1598         (optionFromSelection):
1599         (atk_selection_interface_init):
1600         (webkit_accessible_selection_add_selection):
1601         (webkit_accessible_selection_clear_selection):
1602         (webkit_accessible_selection_ref_selection):
1603         (webkit_accessible_selection_get_selection_count):
1604         (webkit_accessible_selection_is_child_selected):
1605         (webkit_accessible_selection_remove_selection):
1606         (webkit_accessible_selection_select_all_selection):
1607         (GetAtkInterfaceTypeFromWAIType):
1608         * accessibility/gtk/AXObjectCacheAtk.cpp:
1609         (AXObjectCache::postPlatformNotification):
1610
1611 2009-10-29  Jian Li  <jianli@chromium.org>
1612
1613         Reviewed by Darin Adler.
1614
1615         Bug 30655 - Only plain text should be copied to clipboard for TextArea.
1616         https://bugs.webkit.org/show_bug.cgi?id=30655
1617
1618         * editing/Editor.cpp:
1619         (WebCore::nodeIsInTextFormControl):
1620         (WebCore::Editor::cut):
1621         (WebCore::Editor::copy):
1622
1623 2009-10-29  Pavel Feldman  <pfeldman@chromium.org>
1624
1625         Reviewed by Timothy Hatcher.
1626
1627         Web Inspector: hide timeline for now - not yet ready.
1628
1629         https://bugs.webkit.org/show_bug.cgi?id=30912
1630
1631         * inspector/front-end/inspector.js:
1632         (WebInspector._createPanels):
1633
1634 2009-10-29  Pavel Feldman  <pfeldman@chromium.org>
1635
1636         Not reviewed: deploy Web Inspector's images in WebCore.gypi.
1637
1638         * WebCore.gypi:
1639
1640 2009-10-29  Pavel Feldman  <pfeldman@chromium.org>
1641
1642         Reviewed by Timothy Hatcher.
1643
1644         Web Inspector: get rid of timelineProfilerEnabled method.
1645
1646         https://bugs.webkit.org/show_bug.cgi?id=30911
1647
1648         * inspector/InspectorBackend.cpp:
1649         * inspector/InspectorBackend.h:
1650         * inspector/InspectorBackend.idl:
1651         * inspector/InspectorController.cpp:
1652         (WebCore::InspectorController::setWindowVisible):
1653         * inspector/InspectorController.h:
1654         * inspector/front-end/TimelinePanel.js:
1655         (WebInspector.TimelinePanel.prototype._toggleTimelineButtonClicked):
1656
1657 2009-10-29  Pavel Feldman  <pfeldman@chromium.org>
1658
1659         Reviewed by Darin Fisher.
1660
1661         Create stub methods for raw cookies access in ChromiumBridge.h
1662
1663         https://bugs.webkit.org/show_bug.cgi?id=30910
1664
1665         * platform/chromium/ChromiumBridge.h:
1666
1667 2009-10-29  Zoltan Horvath  <zoltan@webkit.org>
1668
1669         Reviewed by Darin Adler.
1670
1671         Allow custom memory allocation control for WebCore's RareData
1672         https://bugs.webkit.org/show_bug.cgi?id=30858
1673
1674         Inherits RareData struct from Noncopyable because it is
1675         instantiated by 'new' in WebCore/css/CSSSelector.h:259 and 
1676         it is no need to be copyable.
1677
1678         * css/CSSSelector.h:
1679
1680 2009-10-29  Zoltan Horvath  <zoltan@webkit.org>
1681
1682         Reviewed by Darin Adler.
1683
1684         Allow custom memory allocation control for WebCore's ShorthandScope
1685         https://bugs.webkit.org/show_bug.cgi?id=30859
1686
1687         Inherits ShorthandScope class from FastAllocBase because it is 
1688         instantiated by 'new' in WebCore/css/CSSParser.cpp:902 and 
1689         it is no need to be copyable.        
1690
1691         * css/CSSParser.h:
1692
1693 2009-10-29  Zoltan Horvath  <zoltan@webkit.org>
1694
1695         Reviewed by Darin Adler.
1696
1697         Allow custom memory allocation control for WebCore's AXObjectCache
1698         https://bugs.webkit.org/show_bug.cgi?id=30848
1699
1700         Inherits AXObjectCache class from FastAllocBase because it is
1701         instantiated by 'new' in WebCore/dom/Document.cpp:1537 and                                
1702         it is no need to be copyable.
1703
1704         * accessibility/AXObjectCache.h:
1705
1706 2009-10-28  Adam Barth  <abarth@webkit.org>
1707
1708         Reviewed by Eric Seidel.
1709
1710         Don't run JavaScript URLs in view source mode
1711         https://bugs.webkit.org/show_bug.cgi?id=30881
1712
1713         Just say no.
1714
1715         Test: http/tests/security/view-source-no-javascript-url.html
1716
1717         * bindings/ScriptControllerBase.cpp:
1718         (WebCore::ScriptController::executeIfJavaScriptURL):
1719
1720 2009-10-29  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
1721
1722         Unreviewed. Fixes style problems pointed out by Evan Martin.
1723
1724         * platform/gtk/Language.cpp:
1725         (WebCore::defaultLanguage):
1726
1727 2009-10-29  Dan Bernstein  <mitz@apple.com>
1728
1729         Rubber-stamped by Mark Rowe.
1730
1731         64-bit Leopard build fix after r50259
1732         
1733         * platform/graphics/mac/ComplexTextControllerATSUI.cpp:
1734         Declared ATSUTextInserted in 64-bit.
1735         (WebCore::fontHasMirroringInfo): Use %d format and cast to int.
1736         (WebCore::disableLigatures): Ditto.
1737         (WebCore::initializeATSUStyle): Ditto.
1738         (WebCore::ComplexTextController::collectComplexTextRunsForCharacters): Ditto.
1739
1740 2009-10-29  Dan Bernstein  <mitz@apple.com>
1741
1742         Tiger build fix after r50259
1743
1744         * platform/graphics/mac/ComplexTextController.h:
1745         * platform/graphics/mac/ComplexTextControllerATSUI.cpp:
1746
1747 2009-10-29  Dan Bernstein  <mitz@apple.com>
1748
1749         Attempted Tiger build fix after r50259
1750
1751         * platform/graphics/mac/ComplexTextControllerATSUI.cpp:
1752
1753 2009-10-28  Steve Falkenburg  <sfalken@apple.com>
1754
1755         Rubber stamped by Mark Rowe.
1756
1757         https://bugs.webkit.org/show_bug.cgi?id=30899
1758         WebKit fails to build release on 32-bit Windows systems
1759
1760         * WebCore.vcproj/WebCore.vcproj: Excluded files from project.
1761         * bindings/js/JSBindingsAllInOne.cpp: Added.
1762
1763 2009-10-28  Dan Bernstein  <mitz@apple.com>
1764
1765         Reviewed by Jon Honeycutt.
1766
1767         Fixed typos in color names.
1768
1769         * inspector/front-end/Color.js:
1770
1771 2009-10-28  Dan Bernstein  <mitz@apple.com>
1772
1773         Reviewed by Sam Weinig.
1774
1775         Share code between the ATSUI- and Core Text-based Font implementations by doing the
1776         following:
1777         - Generalize CoreTextController as ComplexTextController, keeping the Core Text-specific
1778           parts in ComplexTextControllerCoreText.cpp.
1779         - Generalize FontMacCoreText as FontComplexTextMac using ComplexTextController
1780         - Implement ATSUI-specific parts of ComplexTextController in ComplexTextControllerATSUI.
1781         - Remove FontMacATSUI.
1782
1783         * WebCore.xcodeproj/project.pbxproj: Removed CoreTextController.{cpp,h}, FontMacATSUI.mm,
1784         and FontMacCoreText.cpp, and added ComplexTextController.{cpp,h},
1785         ComplexTextControllerATSUI.cpp, ComplexTextControllerCoreText.cpp, and
1786         FontComplexTextMac.cpp.
1787
1788         * platform/graphics/mac/ComplexTextController.cpp: Copied from CoreTextController.cpp and
1789         kept the non-Core Text-specific bits.
1790         (WebCore::ComplexTextController::ComplexTextController): Updated for renames, including
1791         its own.
1792         (WebCore::ComplexTextController::offsetForPosition): Updated for renames and for
1793         m_complexTextRuns holding references instead of objects.
1794         (WebCore::ComplexTextController::collectComplexTextRuns): Updated for renames, including
1795         its own.
1796         (WebCore::ComplexTextController::advance): Updated for renames.
1797         (WebCore::ComplexTextController::adjustGlyphsAndAdvances): Updated for renames and for
1798         m_complexTextRuns holding references instead of objects, and changed to use the glyphs()
1799         and advances() accessors.
1800
1801         * platform/graphics/mac/ComplexTextController.h: Copied from CoreTextController.h and
1802         renamed CoreTextController to ComplexTextController and CoreTextRun to ComplexTextRun. Made
1803         the latter RefCounted, added ATSUI-specific members to it, and made some other members
1804         Core Text-specific. Renamed m_coreTextRuns to m_complexTextRuns and made it hold references
1805         rather than objects.
1806         (WebCore::ComplexTextController::ComplexTextRun::create):
1807         (WebCore::ComplexTextController::ComplexTextRun::glyphs):
1808         (WebCore::ComplexTextController::ComplexTextRun::advances):
1809
1810         * platform/graphics/mac/ComplexTextControllerATSUI.cpp: Added. Includes ATSUI-specific
1811         parts of the ComplexTextController implementation. 
1812         (WebCore::ComplexTextController::ComplexTextRun::overrideLayoutOperation): This ATSUI
1813         callback populates the ComplexTextRun’s glyphs, advances and indices vectors. It is invoked
1814         when the ComplexTextRun constructor calls ATSUGetGlyphBounds().
1815         (WebCore::isArabicLamWithAlefLigature): Helper function, copied from FontMacATSUI.mm.
1816         (WebCore::shapeArabic): Helper function, adapted from FontMacATSUI.mm.
1817         (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun): Sets up the
1818         ATSUTextLayout, substituting the text buffer if necessary for things like shaping Arabic,
1819         mirroring glyphs or directionality overrides, then calls ATSUGetGlyphBounds() in order to
1820         get the glyphs, advances and indices vectors populated.
1821         (WebCore::fontHasMirroringInfo): Helper function, copied from FontMacATSUI.mm.
1822         (WebCore::disableLigatures): Ditto.
1823         (WebCore::initializeATSUStyle): Ditto, somewhat cleaned up and simplified.
1824         (WebCore::ComplexTextController::collectComplexTextRunsForCharacters): Constructs
1825         ComplexTextRuns, either missing-glyphs ones or ATSUTextLayout-based ones.
1826
1827         * platform/graphics/mac/ComplexTextControllerCoreText.cpp: Copied from
1828         CoreTextController.cpp and kept the Core Text-specific bits.
1829         (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun): Updated for renames,
1830         including its own, and moved the code to initialize m_glyphs and m_advances here. Previously
1831         this was done in adjustGlyphsAndAdvances().
1832         (WebCore::ComplexTextController::collectComplexTextRunsForCharacters): Updated for renames,
1833         including its own.
1834         * platform/graphics/mac/CoreTextController.cpp: Removed.
1835         * platform/graphics/mac/CoreTextController.h: Removed.
1836         * platform/graphics/mac/FontComplexTextMac.cpp: Renamed FontMacCoreText.cpp to this.
1837         (WebCore::Font::selectionRectForComplexText): Changed to use ComplexTextController instead
1838         of CoreTextController.
1839         (WebCore::Font::drawComplexText): Ditto.
1840         (WebCore::Font::floatWidthForComplexText): Ditto.
1841         (WebCore::Font::offsetForPositionForComplexText): Ditto.
1842         * platform/graphics/mac/FontMacATSUI.mm: Removed.
1843         * platform/graphics/mac/FontMacCoreText.cpp: Removed.
1844
1845 2009-10-27  Chris Fleizach  <cfleizach@apple.com>
1846
1847         Reviewed by Darin Adler.
1848
1849         WAI-ARIA: add support for 'option' role
1850         https://bugs.webkit.org/show_bug.cgi?id=30843
1851
1852         Test: accessibility/aria-option-role.html
1853
1854         * accessibility/AccessibilityListBoxOption.h:
1855         (WebCore::AccessibilityListBoxOption::canHaveChildren):
1856         * accessibility/AccessibilityRenderObject.cpp:
1857         (WebCore::RoleEntry::):
1858         (WebCore::AccessibilityRenderObject::canHaveChildren):
1859
1860 2009-10-28  Jens Alfke  <snej@chromium.org>
1861
1862         Reviewed by Eric Seidel.
1863
1864         Fix GCC compiler warnings in WebCore, and enable -Wall and -Werror for Chromium build.
1865         https://bugs.webkit.org/show_bug.cgi?id=30716
1866
1867         * WebCore.gyp/WebCore.gyp:  Enable "chromium_code" flag, just on Mac build for now.
1868         * accessibility/AccessibilityRenderObject.cpp:
1869         (WebCore::createARIARoleMap):  Fix struct visibiity warning.
1870         * bindings/v8/ScriptCallStack.h:  Fix out-of-order member initialization warning.
1871         * bindings/v8/V8Collection.h:
1872         (WebCore::getV8Object):  Function in header should not be 'static' (fixes unused-static warning.)
1873         * bindings/v8/V8DOMWrapper.cpp:
1874         (WebCore::V8DOMWrapper::convertNewNodeToV8Object):  Fix signed/unsigned comparison warning.
1875         * bindings/v8/V8GCController.cpp:
1876         (WebCore::ObjectGrouperVisitor::applyGrouping):  Fix unused-variable warning.
1877         * css/CSSPrimitiveValueMappings.h:
1878         (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):  Enable ListButtonPart case to avoid
1879             warning about missing cases in 'switch' statement.
1880         * editing/EditorCommand.cpp:
1881         (WebCore::createCommandMap):  Fix struct visibiity warning.
1882         * platform/graphics/skia/PlatformContextSkia.cpp:
1883         (PlatformContextSkia::State::State):  Fix out-of-order member initialization warning.
1884         * rendering/RenderMediaControlsChromium.cpp:
1885         (WebCore::RenderMediaControlsChromium::shouldRenderMediaControlPart):  Add empty 'default' case in
1886             'switch' statement to avoid missing-case warning.
1887         (WebCore::RenderMediaControlsChromium::paintMediaControlsPart):  Ditto.
1888         * xml/XPathFunctions.cpp:
1889         (WebCore::XPath::createFunctionMap):  Fix struct visibiity warning.
1890
1891 2009-10-29  Adam Barth  <abarth@webkit.org>
1892
1893         Reviewed by Darin Adler.
1894
1895         REGRESSION: crashes in WebCore::RedirectScheduler::timerFired(WebCore::Timer<WebCore::RedirectScheduler>*)
1896         https://bugs.webkit.org/show_bug.cgi?id=30839
1897
1898         Added null check for the case when the frame is detached from the page.
1899
1900         * loader/RedirectScheduler.cpp:
1901         (WebCore::RedirectScheduler::timerFired):
1902
1903 2009-10-28  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
1904
1905         Reviewed by Xan Lopez.
1906
1907         https://bugs.webkit.org/show_bug.cgi?id=30817
1908         Use parentObjectUnignored instead of parentObject in webkit_accessible_get_parent
1909
1910         Also removes the hack I had originally added to solve bug 25411, because
1911         the fix here is what I should have done in the first place.
1912
1913         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
1914         (webkit_accessible_get_parent):
1915
1916 2009-10-28  Dmitry Titov  <dimich@chromium.org>
1917
1918         Reviewed by David Levin.
1919
1920         https://bugs.webkit.org/show_bug.cgi?id=30805
1921         Add MessageQueue::removeIf(Predicate&) to remove certain tasks without pulling them from the queue.
1922         Existing Database tests cover this, no change in functionality.
1923
1924         * storage/DatabaseThread.cpp:
1925         (WebCore::SameDatabasePredicate::SameDatabasePredicate): Added predicate that flags the tasks belonging to a specified database.
1926         (WebCore::SameDatabasePredicate::operator()):
1927         (WebCore::DatabaseThread::unscheduleDatabaseTasks): changed to use the new removeIf method.
1928
1929 2009-10-28  Pavel Feldman  <pfeldman@chromium.org>
1930
1931         Reviewed by Timothy Hatcher.
1932
1933         Web Inspector: Glue subsequent timeline records with same category
1934         and title together.
1935
1936         https://bugs.webkit.org/show_bug.cgi?id=30885
1937
1938         * English.lproj/localizedStrings.js:
1939         * inspector/front-end/TimelinePanel.js:
1940         (WebInspector.TimelinePanel.prototype.addRecordToTimeline):
1941         (WebInspector.TimelinePanel.prototype._formatRecord):
1942         (WebInspector.TimelineRecordTreeElement.prototype.onattach):
1943         (WebInspector.TimelineRecordTreeElement.prototype.refresh):
1944
1945 2009-10-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
1946
1947         Reviewed by Xan Lopez.
1948
1949         [GTK] Fails new test fast/js/navigator-language.html
1950         https://bugs.webkit.org/show_bug.cgi?id=30440
1951
1952         Reimplement WebCore::defaultLanguage to account for changes in
1953         locale done by setLocale.
1954
1955         Already existing test: fast/js/navigator-language.html
1956
1957         * platform/gtk/Language.cpp:
1958         (WebCore::defaultLanguage):
1959
1960 2009-10-28  Eric Carlson  <eric.carlson@apple.com>
1961
1962         Reviewed by Simon Fraser.
1963
1964         <rdar://problem/7303145> 
1965         Can't exit full screen mode or restart movie after pressing command -R.
1966
1967         * html/HTMLMediaElement.cpp:
1968         (WebCore::HTMLMediaElement::removedFromDocument):
1969         (WebCore::HTMLMediaElement::documentWillBecomeInactive):
1970             Exit from fullscreen if necessary.
1971         * html/HTMLMediaElement.h:
1972
1973 2009-10-28  Alexey Proskuryakov  <ap@apple.com>
1974
1975         Unreviewed - a trivial fix to get Windows bots running.
1976
1977         https://bugs.webkit.org/show_bug.cgi?id=30841
1978         <rdar://problem/7342730> WebKit should not pass Referer header through a redirect to a non-secure site
1979
1980         * platform/network/cf/ResourceRequestCFNet.cpp: (WebCore::setHeaderFields): Don't try to
1981         access empty vector's data.
1982
1983 2009-10-28  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
1984
1985         Reviewed by Xan Lopez.
1986
1987         https://bugs.webkit.org/show_bug.cgi?id=25897
1988         [Gtk] Extraneous object of ROLE_PANEL in hierarchy for entries
1989
1990         Remove the extraneous object of ROLE_PANEL.
1991
1992         * accessibility/gtk/AccessibilityObjectAtk.cpp:
1993         (AccessibilityObject::accessibilityPlatformIncludesObject):
1994
1995 2009-10-28  Jonathan Dixon  <joth@chromium.org>
1996
1997         Reviewed by Eric Seidel.
1998
1999         Bug 30547: (Chromium) searchbox not rendered properly due to the css property -webkit-border-radius
2000         https://bugs.webkit.org/show_bug.cgi?id=30547
2001
2002         Test: fast/css/text-input-with-webkit-border-radius.html
2003
2004         * rendering/RenderThemeChromiumWin.cpp:
2005         (WebCore::RenderThemeChromiumWin::paintTextFieldInternal):
2006           Implemented rounded border rendering in Chromium Windows theme renderer.
2007
2008 2009-10-28  Pavel Feldman  <pfeldman@chromium.org>
2009
2010         Reviewed by Timothy Hatcher.
2011
2012         Web Inspector: Pull items collections from resources panel and
2013         timeline panel into AbstractTimelinePanel.
2014
2015         https://bugs.webkit.org/show_bug.cgi?id=30875
2016
2017         * inspector/front-end/AbstractTimelinePanel.js:
2018         (WebInspector.AbstractTimelinePanel):
2019         (WebInspector.AbstractTimelinePanel.prototype.populateSidebar):
2020         (WebInspector.AbstractTimelinePanel.prototype.createItemTreeElement):
2021         (WebInspector.AbstractTimelinePanel.prototype.createItemGraph):
2022         (WebInspector.AbstractTimelinePanel.prototype._showCategory):
2023         (WebInspector.AbstractTimelinePanel.prototype._hideCategory):
2024         (WebInspector.AbstractTimelinePanel.prototype.filter):
2025         (WebInspector.AbstractTimelinePanel.prototype._createGraph):
2026         (WebInspector.AbstractTimelinePanel.prototype.updateMainViewWidth):
2027         (WebInspector.AbstractTimelinePanel.prototype.refresh):
2028         (WebInspector.AbstractTimelinePanel.prototype.reset):
2029         (WebInspector.AbstractTimelinePanel.prototype.get calculator):
2030         (WebInspector.AbstractTimelinePanel.prototype.set calculator):
2031         (WebInspector.AbstractTimelinePanel.prototype.addItem):
2032         (WebInspector.AbstractTimelinePanel.prototype.removeItem):
2033         (WebInspector.AbstractTimelinePanel.prototype.refreshItem):
2034         (WebInspector.AbstractTimelinePanel.prototype.revealAndSelectItem):
2035         (WebInspector.AbstractTimelinePanel.prototype.sortItems):
2036         (WebInspector.AbstractTimelinePanel.prototype.adjustScrollPosition):
2037         (WebInspector.AbstractTimelineCategory):
2038         (WebInspector.AbstractTimelineCategory.prototype.toString):
2039         * inspector/front-end/ResourceCategory.js:
2040         (WebInspector.ResourceCategory):
2041         * inspector/front-end/ResourcesPanel.js:
2042         (WebInspector.ResourcesPanel):
2043         (WebInspector.ResourcesPanel.prototype.createItemTreeElement):
2044         (WebInspector.ResourcesPanel.prototype.createItemGraph):
2045         (WebInspector.ResourcesPanel.prototype.isCategoryVisible):
2046         (WebInspector.ResourcesPanel.prototype.populateSidebar):
2047         (WebInspector.ResourcesPanel.prototype.get searchableViews):
2048         (WebInspector.ResourcesPanel.prototype.get searchResultsSortFunction.sortFuction):
2049         (WebInspector.ResourcesPanel.prototype.get searchResultsSortFunction):
2050         (WebInspector.ResourcesPanel.prototype.searchMatchFound):
2051         (WebInspector.ResourcesPanel.prototype.searchCanceled):
2052         (WebInspector.ResourcesPanel.prototype.performSearch):
2053         (WebInspector.ResourcesPanel.prototype.refresh):
2054         (WebInspector.ResourcesPanel.prototype.reset):
2055         (WebInspector.ResourcesPanel.prototype.removeResource):
2056         (WebInspector.ResourcesPanel.prototype.addMessageToResource):
2057         (WebInspector.ResourcesPanel.prototype.clearMessages):
2058         (WebInspector.ResourcesPanel.prototype.refreshResource):
2059         (WebInspector.ResourcesPanel.prototype.recreateViewForResourceIfNeeded):
2060         (WebInspector.ResourcesPanel.prototype.showResource):
2061         (WebInspector.ResourcesPanel.prototype._sortResourcesIfNeeded):
2062         (WebInspector.ResourcesPanel.prototype._toggleLargerResources):
2063         (WebInspector.ResourcesPanel.prototype._toggleResourceTracking):
2064         (WebInspector.ResourcesPanel.prototype.get _resources):
2065         (WebInspector.ResourceTimeCalculator.prototype._upperBound):
2066         * inspector/front-end/TimelinePanel.js:
2067         (WebInspector.TimelinePanel):
2068         (WebInspector.TimelinePanel.prototype.get categories):
2069         (WebInspector.TimelinePanel.prototype.populateSidebar):
2070         (WebInspector.TimelinePanel.prototype.addRecordToTimeline):
2071         (WebInspector.TimelinePanel.prototype.createItemTreeElement):
2072         (WebInspector.TimelinePanel.prototype.createItemGraph):
2073         (WebInspector.TimelinePanel.prototype._formatRecord):
2074         (WebInspector.TimelineCategory):
2075         * inspector/front-end/inspector.css:
2076         * inspector/front-end/inspector.html:
2077
2078 2009-10-28  Kelly Norton  <knorton@google.com>
2079
2080         Reviewed by Pavel Feldman.
2081
2082         Resets InspectorFrontend in InspectorTimelineAgent instead of removing it so
2083         that it remains active on refreshs and page transitions.
2084         https://bugs.webkit.org/show_bug.cgi?id=30874
2085
2086         * inspector/InspectorController.cpp:
2087         (WebCore::InspectorController::setFrontendProxyObject):
2088         * inspector/InspectorTimelineAgent.cpp:
2089         (WebCore::InspectorTimelineAgent::resetFrontendProxyObject):
2090         * inspector/InspectorTimelineAgent.h:
2091
2092 2009-10-27  Shinichiro Hamaji  <hamaji@chromium.org>
2093
2094         Reviewed by Darin Adler.
2095
2096         Provide a way to get counter values with layoutTestContoller
2097         https://bugs.webkit.org/show_bug.cgi?id=30555
2098
2099         Expose WebCore::counterValueForElement as a WebCore API.
2100
2101         * WebCore.base.exp:
2102         * rendering/RenderTreeAsText.cpp:
2103         (WebCore::writeCounterValuesFromChildren):
2104         (WebCore::counterValueForElement):
2105         * rendering/RenderTreeAsText.h:
2106
2107 2009-10-28  Nate Chapin  <japhet@chromium.org>
2108
2109         Unreviewed, Chromium build fix for r50225.
2110
2111         * loader/FrameLoader.cpp:
2112         (WebCore::FrameLoader::defaultObjectContentType):
2113
2114 2009-10-28  Eric Z. Ayers  <zundel@google.com>
2115
2116         Reviewed by Pavel Feldman.
2117
2118         Adds InspectorTimelineAgent  instrumentation for encountering a
2119         <SCRIPT> tag when parsing an HTML document. 
2120
2121         https://bugs.webkit.org/show_bug.cgi?id=30861
2122
2123         * bindings/js/ScriptSourceCode.h:
2124         (WebCore::ScriptSourceCode::ScriptSourceCode):
2125         (WebCore::ScriptSourceCode::startLine):
2126         (WebCore::ScriptSourceCode::url):
2127         * html/HTMLTokenizer.cpp:
2128         (WebCore::HTMLTokenizer::scriptHandler):
2129         (WebCore::HTMLTokenizer::scriptExecution):
2130         * inspector/InspectorTimelineAgent.cpp:
2131         (WebCore::InspectorTimelineAgent::willLoadXHR):
2132         (WebCore::InspectorTimelineAgent::willScriptTag):
2133         (WebCore::InspectorTimelineAgent::didScriptTag):
2134         * inspector/InspectorTimelineAgent.h:
2135         (WebCore::):
2136         * inspector/TimelineRecordFactory.cpp:
2137         (WebCore::TimelineRecordFactory::createScriptTagTimelineRecord):
2138         * inspector/TimelineRecordFactory.h:
2139         * inspector/front-end/TimelineAgent.js:
2140
2141 2009-10-28  Steve Block  <steveblock@google.com>
2142
2143         Reviewed by Darin Adler.
2144
2145         Makes sure that Geolocation watch IDs remain positive on overflow.
2146         https://bugs.webkit.org/show_bug.cgi?id=30122
2147
2148         No new tests possible.
2149
2150         * page/Geolocation.cpp: Modified.
2151         (WebCore::Geolocation::watchPosition): Modified. Reset the watch ID to 1 on overflow.
2152
2153 2009-10-28  George Staikos  <george.staikos@torchmobile.com>
2154
2155         Attempt to fix the Mac debug build after 50225.
2156
2157         * loader/FrameLoader.cpp:
2158         (WebCore::FrameLoader::defaultObjectContentType):
2159
2160 2009-10-28  Alexey Proskuryakov  <ap@apple.com>
2161
2162         Reviewed by Darin Adler.
2163
2164         https://bugs.webkit.org/show_bug.cgi?id=30841
2165         <rdar://problem/7342730> WebKit should not pass Referer header through a redirect to a non-secure site
2166
2167         Tests: http/tests/ssl/referer-301.html
2168                http/tests/ssl/referer-303.html
2169
2170         * platform/network/mac/ResourceHandleMac.mm:
2171         (-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]):
2172         Remove Referer header if redirecting from https to another protocol.
2173
2174         * platform/network/ResourceRequestBase.cpp:
2175         (WebCore::ResourceRequestBase::clearHTTPReferrer): Update request counterparts, as it is
2176         always done when changing or adding header fields.
2177         (WebCore::ResourceRequestBase::clearHTTPOrigin): Ditto.
2178
2179         * platform/network/ResourceRequestBase.h: clearHTTPReferrer() and clearHTTPOrigin() are
2180         no longer inline, since they have non-trivial implementations.
2181
2182         * platform/network/mac/ResourceRequestMac.mm:
2183         (WebCore::ResourceRequest::doUpdatePlatformRequest): Fixed to synchronize header field removals.
2184         (WebCore::ResourceRequest::doUpdateResourceRequest): Ditto.
2185
2186         * platform/network/cf/ResourceHandleCFNet.cpp:
2187         (WebCore::willSendRequest):
2188         * platform/network/cf/ResourceRequestCFNet.cpp:
2189         (WebCore::setHeaderFields):
2190         (WebCore::ResourceRequest::doUpdatePlatformRequest):
2191         (WebCore::ResourceRequest::doUpdateResourceRequest):
2192         Match Mac changes.
2193         
2194 2009-10-28  Joe Mason  <jmason@rim.com>
2195
2196         Reviewed by Adam Treat.
2197
2198         Add FrameLoader::defaultObjectContentType, containing common code for
2199         implementing FrameLoaderClient::objectContentType.  (Currently the gtk
2200         and win ports have copied this code, and the qt port uses similar code
2201         with a few extra clauses.  Moving this to a utility function cuts down
2202         on copied code.)   This causes no behavioural change.
2203
2204         https://bugs.webkit.org/show_bug.cgi?id=30868
2205
2206         * loader/FrameLoader.cpp:
2207         (WebCore::FrameLoader::defaultObjectContentType):
2208         * loader/FrameLoader.h:
2209
2210 2009-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2211
2212         Reviewed by Tor Arne Vestbø.
2213
2214         [Qt] QWebHistory::saveState() is inconsistent with the Qt API
2215         https://bugs.webkit.org/show_bug.cgi?id=30710
2216
2217         Enforce the versioning, by ignoring any version different
2218         from 1.
2219
2220         * history/qt/HistoryItemQt.cpp:
2221         (WebCore::HistoryItem::restoreState):
2222         (WebCore::HistoryItem::saveState):
2223
2224 2009-10-28  Pavel Feldman  <pfeldman@chromium.org>
2225
2226         Not reviewed: follow up fix to InspectorControllerStub.
2227         Define it after inspector.js due to namespace
2228
2229         https://bugs.webkit.org/show_bug.cgi?id=30866
2230
2231         * inspector/front-end/inspector.html:
2232
2233 2009-10-28  Pavel Feldman  <pfeldman@chromium.org>
2234
2235         Reviewed by Timothy Hatcher.
2236
2237         Web Inspector: Add InspectorController stub in order to
2238         support opening in standalone mode.
2239
2240         https://bugs.webkit.org/show_bug.cgi?id=30866
2241
2242         * WebCore.gypi:
2243         * WebCore.vcproj/WebCore.vcproj:
2244         * inspector/front-end/InspectorControllerStub.js: Added.
2245         (.WebInspector.InspectorControllerStub):
2246         (.WebInspector.InspectorControllerStub.prototype.wrapCallback):
2247         (.WebInspector.InspectorControllerStub.prototype.isWindowVisible):
2248         (.WebInspector.InspectorControllerStub.prototype.platform):
2249         (.WebInspector.InspectorControllerStub.prototype.closeWindow):
2250         (.WebInspector.InspectorControllerStub.prototype.attach):
2251         (.WebInspector.InspectorControllerStub.prototype.detach):
2252         (.WebInspector.InspectorControllerStub.prototype.storeLastActivePanel):
2253         (.WebInspector.InspectorControllerStub.prototype.clearMessages):
2254         (.WebInspector.InspectorControllerStub.prototype.searchingForNode):
2255         (.WebInspector.InspectorControllerStub.prototype.search):
2256         (.WebInspector.InspectorControllerStub.prototype.toggleNodeSearch):
2257         (.WebInspector.InspectorControllerStub.prototype.setAttachedWindowHeight):
2258         (.WebInspector.InspectorControllerStub.prototype.moveByUnrestricted):
2259         (.WebInspector.InspectorControllerStub.prototype.addResourceSourceToFrame):
2260         (.WebInspector.InspectorControllerStub.prototype.addSourceToFrame):
2261         (.WebInspector.InspectorControllerStub.prototype.getResourceDocumentNode):
2262         (.WebInspector.InspectorControllerStub.prototype.highlightDOMNode):
2263         (.WebInspector.InspectorControllerStub.prototype.hideDOMNodeHighlight):
2264         (.WebInspector.InspectorControllerStub.prototype.inspectedWindow):
2265         (.WebInspector.InspectorControllerStub.prototype.loaded):
2266         (.WebInspector.InspectorControllerStub.prototype.localizedStringsURL):
2267         (.WebInspector.InspectorControllerStub.prototype.windowUnloading):
2268         (.WebInspector.InspectorControllerStub.prototype.hiddenPanels):
2269         (.WebInspector.InspectorControllerStub.prototype.debuggerEnabled):
2270         (.WebInspector.InspectorControllerStub.prototype.enableResourceTracking):
2271         (.WebInspector.InspectorControllerStub.prototype.disableResourceTracking):
2272         (.WebInspector.InspectorControllerStub.prototype.resourceTrackingEnabled):
2273         (.WebInspector.InspectorControllerStub.prototype.enableDebugger):
2274         (.WebInspector.InspectorControllerStub.prototype.disableDebugger):
2275         (.WebInspector.InspectorControllerStub.prototype.addBreakpoint):
2276         (.WebInspector.InspectorControllerStub.prototype.removeBreakpoint):
2277         (.WebInspector.InspectorControllerStub.prototype.updateBreakpoint):
2278         (.WebInspector.InspectorControllerStub.prototype.pauseInDebugger):
2279         (.WebInspector.InspectorControllerStub.prototype.pauseOnExceptions):
2280         (.WebInspector.InspectorControllerStub.prototype.setPauseOnExceptions):
2281         (.WebInspector.InspectorControllerStub.prototype.resumeDebugger):
2282         (.WebInspector.InspectorControllerStub.prototype.profilerEnabled):
2283         (.WebInspector.InspectorControllerStub.prototype.enableProfiler):
2284         (.WebInspector.InspectorControllerStub.prototype.disableProfiler):
2285         (.WebInspector.InspectorControllerStub.prototype.startProfiling):
2286         (.WebInspector.InspectorControllerStub.prototype.stopProfiling):
2287         (.WebInspector.InspectorControllerStub.prototype.getProfileHeaders):
2288         (.WebInspector.InspectorControllerStub.prototype.getProfile):
2289         (.WebInspector.InspectorControllerStub.prototype.takeHeapSnapshot):
2290         (.WebInspector.InspectorControllerStub.prototype.databaseTableNames):
2291         (.WebInspector.InspectorControllerStub.prototype.stepIntoStatementInDebugger):
2292         (.WebInspector.InspectorControllerStub.prototype.stepOutOfFunctionInDebugger):
2293         (.WebInspector.InspectorControllerStub.prototype.stepOverStatementInDebugger):
2294         (.WebInspector.InspectorControllerStub.prototype.setSetting):
2295         (.WebInspector.InspectorControllerStub.prototype.dispatchOnInjectedScript):
2296         (.WebInspector.InspectorControllerStub.prototype.releaseWrapperObjectGroup):
2297         (.WebInspector.InspectorControllerStub.prototype.setting):
2298         * inspector/front-end/inspector.html:
2299         * inspector/front-end/inspector.js:
2300         (WebInspector.UIString):
2301
2302 2009-10-28  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
2303
2304         Reviewed by Jan Alonzo.
2305
2306         https://bugs.webkit.org/show_bug.cgi?id=25897
2307         [Gtk] Extraneous object of ROLE_PANEL in hierarchy for entries
2308
2309         Expands upon the new funtionality which allows platforms to indicate
2310         that a particular object should not be ignored, so that they can
2311         specify that an object should be ignored or that it should be left up
2312         to the default handling to decide.
2313
2314         * accessibility/AccessibilityObject.h:
2315         * accessibility/chromium/AccessibilityObjectChromium.cpp:
2316         * accessibility/gtk/AccessibilityObjectAtk.cpp:
2317         * accessibility/mac/AccessibilityObjectMac.mm:
2318         * accessibility/qt/AccessibilityObjectQt.cpp:
2319         * accessibility/win/AccessibilityObjectWin.cpp:
2320         * accessibility/wx/AccessibilityObjectWx.cpp:
2321         (AccessibilityObject::accessibilityPlatformIncludesObject):
2322         * accessibility/AccessibilityRenderObject.cpp:
2323         (AccessibilityRenderObject::accessibilityIsIgnored):
2324
2325
2326 2009-10-28  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
2327
2328         Reviewed by Jan Alonzo.
2329
2330         https://bugs.webkit.org/show_bug.cgi?id=25534
2331         [GTK] Objects of ROLE_TABLE should implement the accessible table interface
2332
2333         Expose the table summary as the accessible description because there is no summary object.
2334
2335         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2336         (webkit_accessible_get_description):
2337
2338 2009-10-28  Steve Block  <steveblock@google.com>
2339
2340         Reviewed by Eric Seidel.
2341
2342         Adds ScriptController::intializeThreading(), with both JSC and V8 implementations.
2343         https://bugs.webkit.org/show_bug.cgi?id=30678
2344
2345         This new method is used from common code, rather than calling JSC::initializeThreading() (or the V8 equivalent) directly.
2346
2347         Build fix, no new tests required.
2348
2349         * bindings/js/ScriptController.cpp: Modified.
2350         (WebCore::ScriptController::initializeThreading): Added.
2351         * bindings/js/ScriptController.h: Modified. Adds ScriptController::initializeThreading().
2352         * bindings/v8/ScriptController.cpp: Modified.
2353         (WebCore::ScriptController::initializeThreading): Added.
2354         * bindings/v8/ScriptController.h: Modified. Adds ScriptController::initializeThreading().
2355         * loader/icon/IconDatabase.cpp: Modified.
2356         (WebCore::iconDatabase): Call ScriptController::initializeThreading(), rather than JSC::initializeThreading().
2357         * storage/Database.cpp: Modified.
2358         (WebCore::Database::Database): Call ScriptController::initializeThreading(), rather than JSC::initializeThreading().
2359
2360 2009-10-26  Holger Hans Peter Freyther  <zecke@selfish.org>
2361
2362         Reviewed by Darin Adler.
2363
2364         Document a feature of the m_liveDecodedResources list.
2365         https://bugs.webkit.org/show_bug.cgi?id=30209
2366
2367         The code made the assumption that the list is sorted by
2368         the m_lastDecodedAccessTime property of the CachedResource.
2369         The above is not true when CachedResource::setDecodedSize
2370         is called and the item is inserted the first time. In this
2371         case the m_lastDecodedAccessTime is still zero and the
2372         m_liveDecodedResources list becomes unsorted.
2373
2374         It is impossible that Cache::pruneLiveResources will
2375         stop to process the list too early due this feature and
2376         the alternatives of updating m_lastDecodedAccessTime in
2377         CachedResource::setDecodedSize or changing the insert
2378         to search the right position have a negative impact on
2379         performance. The best solution for now is to document
2380         this feature.
2381
2382         * loader/Cache.cpp:
2383         (WebCore::Cache::pruneLiveResources):
2384         * loader/CachedResource.cpp:
2385         (WebCore::CachedResource::setDecodedSize):
2386
2387 2009-10-28  Xan Lopez  <xlopez@igalia.com>
2388
2389         Reviewed by Jan Alonzo.
2390
2391         [Gtk] Extraneous object of ROLE_PANEL in hierarchy for entries
2392         https://bugs.webkit.org/show_bug.cgi?id=25897
2393
2394         Make text controls always implement the text interface, and the
2395         editable text interface when they are not read only. This is what
2396         ATK-users expect.
2397
2398         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
2399         (getInterfaceMaskFromObject):
2400
2401 2009-10-27  Holger Hans Peter Freyther  <zecke@selfish.org>
2402
2403         Reviewed by Simon Fraser.
2404
2405         Change HitTestResult methods to use (3d) transformation aware methods
2406         https://bugs.webkit.org/show_bug.cgi?id=27347
2407
2408         The current HitTestResult methods are not using the (3d)
2409         transformation aware routines. This can lead to an assertion
2410         SVGRenderBase::mapLocalToContainer method.
2411
2412         Change HitTestResult::imageRect to use the (3d) transformation
2413         aware RenderBox::absoluteContentQuad to avoid running into
2414         an assertion with SVG content.
2415
2416         Remove HitTestResult::boundingBox() as it is only used in
2417         two places and conceptually doesn't belong into a HitTest
2418         which is operating on points.
2419
2420         A classic test case is not possible as the methods are not excercised
2421         from within HTML/SVG but from the WebKit API Layer. A unittest
2422         for Qt/Gtk+/Mac would need to be written but Qt/Gtk+ currently
2423         do not support 3d transformations making it impossible to write
2424         a reliable test case and the Mac port is currently not doing
2425         unit testing.
2426
2427
2428         * rendering/HitTestResult.cpp: Remove boundingBox() method
2429         (WebCore::HitTestResult::imageRect): Use transformation aware method
2430         * rendering/HitTestResult.h: Remove boundingBox()
2431
2432 2009-10-26  Holger Hans Peter Freyther  <zecke@selfish.org>
2433
2434         Reviewed by Eric Seidel.
2435
2436         [Qt] Custom Cursor doesn't use hotspot.
2437         https://bugs.webkit.org/show_bug.cgi?id=30820
2438
2439         Cursors loaded from a QPixmap didn't specifiy the
2440         hotspot. Take the hotspot values from the mac
2441         implementation.
2442
2443         * platform/qt/CursorQt.cpp:
2444
2445 2009-10-27  Pavel Feldman  <pfeldman@chromium.org>
2446
2447         Reviewed by Timothy Hatcher.
2448
2449         Web Inspector: Initial revision of the Timeline grid.
2450
2451         https://bugs.webkit.org/show_bug.cgi?id=30834
2452
2453         * English.lproj/localizedStrings.js:
2454         * WebCore.gypi:
2455         * inspector/front-end/AbstractTimelinePanel.js:
2456         (WebInspector.AbstractTimelinePanel.prototype.populateSidebar):
2457         (WebInspector.AbstractTimelinePanel.prototype.refresh):
2458         (WebInspector.AbstractTimelineCalculator):
2459         * inspector/front-end/Images/timelineBarBlue.png: Added.
2460         * inspector/front-end/Images/timelineBarGray.png: Added.
2461         * inspector/front-end/Images/timelineBarGreen.png: Added.
2462         * inspector/front-end/Images/timelineBarOrange.png: Added.
2463         * inspector/front-end/Images/timelineBarPurple.png: Added.
2464         * inspector/front-end/Images/timelineBarRed.png: Added.
2465         * inspector/front-end/Images/timelineBarYellow.png: Added.
2466         * inspector/front-end/Images/timelineCheckmarks.png: Added.
2467         * inspector/front-end/Images/timelineDots.png: Added.
2468         * inspector/front-end/ResourcesPanel.js:
2469         (WebInspector.ResourceTimeCalculator):
2470         (WebInspector.ResourceTransferSizeCalculator):
2471         * inspector/front-end/TimelineAgent.js:
2472         * inspector/front-end/TimelinePanel.js:
2473         (WebInspector.TimelinePanel):
2474         (WebInspector.TimelinePanel.prototype.get statusBarItems):
2475         (WebInspector.TimelinePanel.prototype.get categories):
2476         (WebInspector.TimelinePanel.prototype.populateSidebar):
2477         (WebInspector.TimelinePanel.prototype._createStatusbarButtons):
2478         (WebInspector.TimelinePanel.prototype.addItemToTimeline):
2479         (WebInspector.TimelinePanel.prototype.refresh):
2480         (WebInspector.TimelinePanel.prototype._toggleTimelineButtonClick):
2481         (WebInspector.TimelinePanel.prototype.reset):
2482         (WebInspector.TimelinePanel.prototype._formatRecord):
2483         (WebInspector.TimelinePanel.prototype.showCategory):
2484         (WebInspector.TimelinePanel.prototype.hideCategory):
2485         (WebInspector.TimelineRecordTreeElement):
2486         (WebInspector.TimelineRecordTreeElement.prototype.onattach):
2487         (WebInspector.TimelineCalculator):
2488         (WebInspector.TimelineCalculator.prototype.computeBarGraphPercentages):
2489         (WebInspector.TimelineCalculator.prototype.computePercentageFromEventTime):
2490         (WebInspector.TimelineCalculator.prototype.computeBarGraphLabels):
2491         (WebInspector.TimelineCalculator.prototype.updateBoundaries):
2492         (WebInspector.TimelineCalculator.prototype.formatValue):
2493         (WebInspector.TimelineGraph):
2494         (WebInspector.TimelineGraph.prototype.get graphElement):
2495         (WebInspector.TimelineGraph.prototype.refreshLabelPositions):
2496         (WebInspector.TimelineGraph.prototype.refresh):
2497         * inspector/front-end/inspector.css:
2498         * inspector/front-end/inspector.js:
2499         (WebInspector._createPanels):
2500
2501 2009-10-27  Joseph Pecoraro  <joepeck@webkit.org>
2502
2503         Reviewed by Pavel Feldman.
2504
2505         Web Inspector: Move runAfterPendingDispatches to TestController for Clarity
2506         https://bugs.webkit.org/show_bug.cgi?id=30844
2507
2508         * inspector/front-end/TestController.js:
2509         (WebInspector.TestController.prototype.runAfterPendingDispatches):
2510         * inspector/front-end/inspector.js: moved runAfterPendingDispatches
2511
2512 2009-10-27  Darin Fisher  <darin@chromium.org>
2513
2514         Reviewed by Dimitri Glazkov.
2515
2516         Add missing forward declaration of FramelessScrollView.
2517         https://bugs.webkit.org/show_bug.cgi?id=30824
2518
2519         * platform/chromium/FramelessScrollViewClient.h:
2520
2521 2009-10-27  Chris Fleizach  <cfleizach@apple.com>
2522
2523         Reviewed by Adele Peterson.
2524
2525         WAI-ARIA: add support for 'presentation' role
2526         https://bugs.webkit.org/show_bug.cgi?id=30806
2527
2528         Test: accessibility/aria-presentational-role.html
2529
2530         * accessibility/AccessibilityObject.h:
2531         (WebCore::):
2532         * accessibility/AccessibilityRenderObject.cpp:
2533         (WebCore::AccessibilityRenderObject::accessibilityIsIgnored):
2534         (WebCore::RoleEntry::):
2535
2536 2009-10-27  Chris Fleizach  <cfleizach@apple.com>
2537
2538         Reviewed by Darin Adler.
2539
2540         ARIA menu/menu item need AXRoleDescription
2541         https://bugs.webkit.org/show_bug.cgi?id=30804
2542
2543         Make sure that role descriptions will default to the system's first, before
2544         returning an unknown role.
2545
2546         Test: platform/mac/accessibility/aria-menu-role-descriptions.html
2547
2548         * accessibility/mac/AccessibilityObjectWrapper.mm:
2549         (-[AccessibilityObjectWrapper roleDescription]):
2550
2551 2009-10-27  Geoffrey Garen  <ggaren@apple.com>
2552
2553         Qt build fix: migrated away from API that no longer exists.
2554
2555         * bridge/qt/qt_runtime.cpp:
2556         (JSC::Bindings::convertQVariantToValue):
2557
2558 2009-10-27  Geoffrey Garen  <ggaren@apple.com>
2559
2560         Qt build fix: migrated away from API that no longer exists.
2561
2562         * bridge/qt/qt_runtime.cpp:
2563         (JSC::Bindings::convertValueToQVariant):
2564
2565 2009-10-27  Oliver Hunt  <oliver@apple.com>
2566
2567         Fix wording in comment.
2568
2569         * bridge/objc/objc_instance.mm:
2570         (allocateAutoReleasePool):
2571
2572 2009-10-27  Oliver Hunt  <oliver@apple.com>
2573
2574         Reviewed by Darin Adler.
2575
2576         Crash occurs after launching Newsfire 1.6 for the first time
2577         https://bugs.webkit.org/show_bug.cgi?id=30807
2578
2579         We allocate an autorelease pool but then store it off the stack. In a
2580         GC environment this led to it being collected, and thus caused badness
2581         to ensue.  To work around this we simply avoid using a pool at all in
2582         a GC environment as it would be a no-op anyway.
2583
2584         * bridge/objc/objc_instance.mm:
2585         (allocateAutoReleasePool):
2586         (ObjcInstance::virtualBegin):
2587
2588 2009-10-27  Steve Block  <steveblock@google.com>
2589
2590         Reviewed by Darin Adler.
2591
2592         When a Geolocation method is called, immediately calls the error calback asynchronously if permissions
2593         have already been denied.
2594         https://bugs.webkit.org/show_bug.cgi?id=27944.
2595
2596         Tests: fast/dom/Geolocation/permission-denied-already-error.html
2597                fast/dom/Geolocation/permission-denied-already-success.html
2598
2599         * page/Geolocation.cpp: Modified.
2600         (WebCore::Geolocation::GeoNotifier::GeoNotifier): Modified. GeoNotifier takes Geolocation object as constructor argument.
2601         (WebCore::Geolocation::GeoNotifier::setFatalError): Added. Sets a fatal error for this notifier, causing it to terminate immediately and call the error callback asynchronously.
2602         (WebCore::Geolocation::GeoNotifier::timerFired): Added. Used to call the error callback asynchronously on fatal error.
2603         (WebCore::Geolocation::getCurrentPosition): Modified. Calls startRequest.
2604         (WebCore::Geolocation::watchPosition): Modified. Calls startRequest.
2605         (WebCore::Geolocation::startRequest): Added. Common functionality for starting a one-shot or watch request. Sets a fatal error on the notifier if permissions have already been denied.
2606         (WebCore::Geolocation::fatalErrorOccurred): Added. Registers that a notifier has encountered a fatal error and should be destroyed.
2607         (WebCore::Geolocation::setIsAllowed): Modified. Uses a standard error message for the error callback when permissions are denied.
2608         * page/Geolocation.h: Modified.
2609         (WebCore::Geolocation::isDenied): Added. Determines whether permissions have been denied.
2610
2611 2009-10-27  Chris Marrin  <cmarrin@apple.com>
2612
2613         Reviewed by Oliver Hunt.
2614
2615         Fixed a bug where I was using the wrong Canvas pointer to do a cross-domain check
2616         https://bugs.webkit.org/show_bug.cgi?id=30840
2617
2618         * html/canvas/CanvasRenderingContext2D.cpp:
2619         (WebCore::CanvasRenderingContext2D::drawImage):
2620
2621 2009-10-27  Eric Seidel  <eric@webkit.org>
2622
2623         Reviewed by Nikolas Zimmermann.
2624
2625         SVGStyledElement::getPresentationAttribute() can return a shared CSSValue (some SVG tests randomly fail on the bot, and in release builds)
2626         https://bugs.webkit.org/show_bug.cgi?id=29620
2627
2628         SVG was modifying CSSValues cached of off CSSMappedAttributeDeclarations.
2629         This patch fixes the check to make sure that a new CSSMappedAttributeDeclaration is
2630         created before returning a CSSValue that JavaScript can modify.
2631
2632         Test: svg/dom/getPresentationAttribute-cache-corruption.svg
2633
2634         * svg/SVGStyledElement.cpp:
2635         (WebCore::SVGStyledElement::getPresentationAttribute):
2636
2637 2009-10-27  Dan Bernstein  <mitz@apple.com>
2638
2639         Reviewed by Simon Fraser.
2640
2641         Incomplete repaint of text field in relative positioned inline at imdb.com
2642         https://bugs.webkit.org/show_bug.cgi?id=30047
2643
2644         Test: fast/repaint/inline-relative-positioned.html
2645
2646         Implemented offsetFromContainer(), mapLocalToContainer() and
2647         mapAbsoluteToLocalPoint() in RenderInline.
2648
2649         * rendering/RenderBox.h: Fixed argument names in the declaration of
2650         mapLocalToContainer().
2651         * rendering/RenderInline.cpp:
2652         (WebCore::RenderInline::offsetFromContainer):
2653         (WebCore::RenderInline::mapLocalToContainer):
2654         (WebCore::RenderInline::mapAbsoluteToLocalPoint):
2655         * rendering/RenderInline.h:
2656
2657 2009-10-27  Jeremy Orlow  <jorlow@chromium.org>
2658
2659         Speculative build fix for Chromium.
2660
2661         * platform/graphics/GraphicsContext3D.h:
2662
2663 2009-10-27  Chris Marrin  <cmarrin@apple.com>
2664
2665         Reviewed by Simon Fraser.
2666         
2667         Make WebGL context failure more robust and make it succeed in more cases
2668         https://bugs.webkit.org/show_bug.cgi?id=30349
2669
2670         Bubble a failure to get a CGLContext up to HTMLContextElement so it can
2671         return null from getContext. Also added a more robust pixel format choosing 
2672         mechanism and can render correctly when a SW renderer is chosen.
2673
2674         * html/HTMLCanvasElement.cpp:
2675         (WebCore::HTMLCanvasElement::getContext):
2676         * html/canvas/CanvasRenderingContext.h:
2677         * html/canvas/CanvasRenderingContext2D.cpp:
2678         * html/canvas/CanvasRenderingContext3D.cpp:
2679         * html/canvas/CanvasRenderingContext3D.h:
2680         (WebCore::CanvasRenderingContext3D::graphicsContext3D):
2681         (WebCore::CanvasRenderingContext3D::cleanupAfterGraphicsCall):
2682         * platform/graphics/GraphicsContext3D.h:
2683         * platform/graphics/mac/Canvas3DLayer.mm:
2684         (-[Canvas3DLayer copyCGLPixelFormatForDisplayMask:]):
2685         * platform/graphics/mac/GraphicsContext3DMac.cpp:
2686         (WebCore::setPixelFormat):
2687         (WebCore::GraphicsContext3D::create):
2688         (WebCore::GraphicsContext3D::GraphicsContext3D):
2689         (WebCore::GraphicsContext3D::~GraphicsContext3D):
2690         (WebCore::GraphicsContext3D::reshape):
2691         (WebCore::ensureContext):
2692
2693 2009-10-27  Geoffrey Garen  <ggaren@apple.com>
2694
2695         Mac build fix: a forwarding header.
2696
2697         * ForwardingHeaders/wtf/DateInstanceCache.h: Added.
2698
2699 2009-10-27  Ryosuke Niwa  <rniwa@webkit.org>
2700
2701         No Review.
2702
2703         Making fontWeightIsBold static to fix Snow Leopard build.
2704
2705         * editing/ApplyStyleCommand.cpp:
2706         (WebCore::fontWeightIsBold):
2707
2708 2009-10-27  Ryosuke Niwa  <rniwa@webkit.org>
2709
2710         Reviewed by Eric Seidel.
2711
2712         WebKit cannot remove nested bold tags
2713         https://bugs.webkit.org/show_bug.cgi?id=30784
2714
2715         This patch modifies getPropertiesNotInComputedStyle so that it compares font-weight
2716         more flexibly. Instead of comparing cssText, it uses fontWeightIsBold which converts
2717         all font weights to either bold or unbold state.
2718
2719         * editing/ApplyStyleCommand.cpp:
2720         (WebCore::fontWeightIsBold):
2721         (WebCore::getPropertiesNotInComputedStyle): Removes font-weight property
2722         if two style have the same value under getFontWeightValue
2723
2724 2009-10-27  Carol Szabo  <carol.szabo@nokia.com>
2725
2726         Reviewed by Darin Adler.
2727
2728         Give an ability to WebKit to free statically allocated pointers
2729         before quit.
2730         https://bugs.webkit.org/show_bug.cgi?id=27980
2731
2732         No new tests for this as the change does not affect WebKit
2733         functionality, but only memory usage.
2734
2735         * JavaScriptCore/wtf/StdLibExtras.h:
2736         Allowed for the override of DEFINE_STATIC_LOCAL via compiler 
2737         commandline options or elsewhere in the code. Useful for 
2738         implementing custom builds that free resources allocated via
2739         DEFINE_STATIC_LOCAL.
2740
2741 2009-10-27  Dumitru Daniliuc  <dumi@chromium.org>
2742
2743         Build fix, no review needed.
2744
2745         Fixing the BUILD. m_estimatedSize in Database.h should be of type
2746         'unsigned long' instead of 'unsigned long long'.
2747
2748         No tests required.
2749
2750         * storage/Database.h:
2751
2752 2009-10-27  Dumitru Daniliuc  <dumi@chromium.org>
2753
2754         Reviewed by Adam Barth.
2755
2756         Refactoring the Database class to not depend on
2757         OriginQuotaManager. Also, adding a SecurityOrigin copy to each
2758         Database instance, that is safe to use on the file
2759         thread. Finally, adding new simple fields and getters to the
2760         Database object for storing/getting the display name and estimated
2761         size specified by the user in the openDatabase() call.
2762
2763         https://bugs.webkit.org/show_bug.cgi?id=30548
2764
2765         * page/SecurityOrigin.h:
2766         * storage/Database.cpp:
2767         (WebCore::Database::openDatabase): Storing the display name and
2768         the estimated size in the Database object.
2769         (WebCore::Database::Database): Storing the display name and the
2770         estimated size in the Database object, as well as a SecurityOrigin
2771         instance that is safe to use on the DB thread.
2772         (WebCore::Database::maximumSize): Delegate the call to
2773         DatabaseTracker::getMaxSizeForDatabase().
2774         (WebCore::Database::databaseThreadSecurityOrigin): Return the
2775         SecurityOrigin instance that's safe to use on the DB thread.
2776         (WebCore::Database::threadSafeSecurityOrigin): Return the
2777         SecurityOrigin instance that's safe to use on the current thread.
2778         (WebCore::Database::displayName): Return the display name
2779         specified by the user in the openDatabase() call.
2780         (WebCore::Database::estimatedSize): Return the estimated size
2781         specified by the user in the openDatabase() call.
2782         (WebCore::Database::fileName): Return the name of the file where
2783         the current Database is tored.
2784         * storage/Database.h:
2785         * storage/DatabaseTracker.cpp:
2786         (WebCore::DatabaseTracker::getMaxSizeForDatabase): Returns the
2787         maximum size for a DB file based on the current size of that file
2788         and the space available for that origin.
2789         * storage/DatabaseTracker.h:
2790         * storage/SQLTransaction.cpp:
2791         * storage/SQLTransactionClient.cpp:
2792         (WebCore::SQLTransactionClient::didCommitTransaction): Use the
2793         correct SecurityOrigin instance.
2794
2795 2009-10-27  Joseph Pecoraro  <joepeck@webkit.org>
2796
2797         Reviewed by Timothy Hatcher.
2798
2799         Web Inspector: Pretty Print all HTML Collection Types like we do for NodeList
2800         https://bugs.webkit.org/show_bug.cgi?id=30709
2801
2802         Test: inspector/console-format-collections.html
2803
2804         * inspector/front-end/InjectedScript.js:
2805         (Object.type): check for instances of HTMLCollection like we do for NodeList
2806         * inspector/front-end/inspector.js: added WebInspector.pendingDispatches counter
2807         (WebInspector.dispatch): increment and decrement dispatch counter
2808         (WebInspector.runAfterPendingDispatches): run when there are no more dispatches
2809
2810 2009-10-27  Kelly Norton  <knorton@google.com>
2811
2812         Reviewed by Timothy Hatcher.
2813
2814         Adds XMLHttpRequest support to InspectorTimelineAgent.
2815         https://bugs.webkit.org/show_bug.cgi?id=30578
2816
2817         * inspector/InspectorTimelineAgent.cpp:
2818         (WebCore::InspectorTimelineAgent::willChangeXHRReadyState):
2819         (WebCore::InspectorTimelineAgent::didChangeXHRReadyState):
2820         (WebCore::InspectorTimelineAgent::willLoadXHR):
2821         (WebCore::InspectorTimelineAgent::didLoadXHR):
2822         * inspector/InspectorTimelineAgent.h:
2823         (WebCore::):
2824         * inspector/TimelineRecordFactory.cpp:
2825         (WebCore::TimelineRecordFactory::createXHRReadyStateChangeTimelineRecord):
2826         (WebCore::TimelineRecordFactory::createXHRLoadTimelineRecord):
2827         * inspector/TimelineRecordFactory.h:
2828         * inspector/front-end/TimelineAgent.js:
2829         * xml/XMLHttpRequest.cpp:
2830         (WebCore::XMLHttpRequest::callReadyStateChangeListener):
2831
2832 2009-10-27  Enrica Casucci  <enrica@apple.com>
2833
2834         Reviewed by Adele Peterson.
2835
2836         REGRESSION (Safari 4.0.3-ToT): After pressing Shift-PageDown, pressing Shift-Up 
2837         extends the top of the selection upwards (but should shrink the selection instead)
2838         <rdar://problem/7269075>
2839         https://bugs.webkit.org/show_bug.cgi?id=29981
2840
2841         * editing/SelectionController.cpp:
2842         (WebCore::SelectionController::modify): Added setting m_lastChangeWasHorizontalExtension.
2843
2844 2009-10-27  Brian Weinstein  <bweinstein@apple.com>
2845
2846         Rubber-stamped by Tim Hatcher.
2847         
2848         Removed an extra console.log from ElementsTreeOutline.
2849
2850         * inspector/front-end/ElementsTreeOutline.js:
2851
2852 2009-10-27  Keishi Hattori  <casey.hattori@gmail.com>
2853
2854         Reviewed by Timothy Hatcher.
2855
2856         Rewrote JavaScriptSourceSyntaxHighlighter to be more accurate
2857         https://bugs.webkit.org/show_bug.cgi?id=27147
2858
2859         Tests: LayoutTests/inspector/javascript-syntax-highlight.html
2860
2861         * inspector/front-end/ElementsTreeOutline.js:
2862         * inspector/front-end/SourceFrame.js:
2863         (WebInspector.JavaScriptSourceSyntaxHighlighter.process): Added. Processes 100 tokens at a time.
2864         (WebInspector.JavaScriptSourceSyntaxHighlighter.lex): Added. Scans for a token.
2865         (WebInspector.JavaScriptSourceSyntaxHighlighter.appendNonToken): Added. Appends the non-token characters that lex ignored.
2866         (WebInspector.JavaScriptSourceSyntaxHighlighter.syntaxHighlightNode): Added. To syntax highlight node in ElementsTreeOutline.
2867
2868 2009-10-27  Mads Ager  <ager@chromium.org>
2869
2870         Reviewed by Adam Barth.
2871
2872         [V8] Missing null check after string conversion in error reporting
2873         https://bugs.webkit.org/show_bug.cgi?id=30774
2874
2875         Add null check after string conversion in error reporting code.
2876         ToString conversion can fail for instance when an exception is
2877         thrown during conversion.
2878
2879         Test: fast/dom/error-to-string-stack-overflow.html
2880
2881         * bindings/v8/V8Utilities.cpp:
2882         (WebCore::reportException):
2883
2884 2009-10-27  Steve Block  <steveblock@google.com>
2885
2886         Reviewed by Darin Adler.
2887
2888         Use a pair of maps to store Geolocation watchers.
2889         https://bugs.webkit.org/show_bug.cgi?id=29178
2890
2891         The pair of maps allows us to look up a watcher either by its ID or by its GeoNotifier object.
2892         The ability to look up by a watcher by its GeoNotifier object will be required when implementing
2893         Geolocation::fatalErrorOccurred. See https://bugs.webkit.org/show_bug.cgi?id=27944
2894
2895         * page/Geolocation.cpp: Modified.
2896         (WebCore::Geolocation::Watchers::set): Added. Adds a watcher with the given ID.
2897         (WebCore::Geolocation::Watchers::remove): Added. Removes a watcher by ID.
2898         (WebCore::Geolocation::Watchers::remove): Added. Removes a watcher by GeoNotifier object.
2899         (WebCore::Geolocation::Watchers::clear): Added. Removes all watchers.
2900         (WebCore::Geolocation::Watchers::isEmpty): Added. Determines if there are no watchers.
2901         (WebCore::Geolocation::Watchers::getNotifiersVector): Added. Gets a vector of the GeoNotifier objects.
2902         (WebCore::Geolocation::watchPosition): Modified. Rename watcher identifier static variable.
2903         (WebCore::Geolocation::stopTimersForWatchers): Modified. Use Watchers::getNotifiersVector.
2904         (WebCore::Geolocation::handleError): Modified. Use Watchers::getNotifiersVector.
2905         (WebCore::Geolocation::makeSuccessCallbacks): Modified. Use Watchers::getNotifiersVector.
2906         * page/Geolocation.h: Modified. Adds Geolocation::Watchers class.
2907
2908 2009-10-27  Jeremy Orlow  <jorlow@chromium.org>
2909
2910         Reviewed by Dimitri Glazkov.
2911
2912         [V8] DOM Storage runtime flag should default to on
2913         https://bugs.webkit.org/show_bug.cgi?id=30828
2914
2915         The DOM Storage runtime flag was supposed to default to on.  I accidentally
2916         changed the logic to default to false when I moved the flag.
2917
2918         * bindings/v8/RuntimeEnabledFeatures.cpp:
2919
2920 2009-10-27  Fumitoshi Ukai  <ukai@chromium.org>
2921
2922         Reviewed by Dimitri Glazkov.
2923
2924         Fix crash found in chromium test_shell.
2925         https://bugs.webkit.org/show_bug.cgi?id=30808
2926
2927         When WebSocket is deleted without close, webkit would crash
2928         when it handles didClose.
2929
2930         Check scriptExecutionContext before post task for event.
2931         Use WebSocketChannel::disconnect() instead of close() in WebSocket
2932         destructor, so that WebSocketChannel should not call deleted WebSocket
2933         back in didClose().
2934         To make sure WebSocketChannel alive while it is processing WebSocket
2935         protocol over SocketStreamHandle, ref() in connect() and deref() in
2936         didClose().
2937
2938         * websockets/WebSocket.cpp:
2939         (WebCore::WebSocket::~WebSocket):
2940         (WebCore::WebSocket::didConnect):
2941         (WebCore::WebSocket::didReceiveMessage):
2942         (WebCore::WebSocket::didClose):
2943         * websockets/WebSocketChannel.cpp:
2944         (WebCore::WebSocketChannel::connect):
2945         (WebCore::WebSocketChannel::disconnect):
2946         (WebCore::WebSocketChannel::didClose):
2947         (WebCore::WebSocketChannel::didReceiveData):
2948         * websockets/WebSocketChannel.h:
2949
2950 2009-10-27  Dan Bernstein  <mitz@apple.com>
2951
2952         Reviewed by Darin Adler.
2953
2954         Updated Apple license
2955
2956         * LICENSE-APPLE:
2957
2958 2009-10-27  Brady Eidson  <beidson@apple.com>
2959
2960         Rubberstamped by Sam Weinig.
2961
2962         Re-enable the check that disallows pages with unload handlers in the page cache.
2963
2964         <rdar://problem/7196485> and http://webkit.org/b/29021 
2965
2966         * loader/FrameLoader.cpp:
2967         (WebCore::FrameLoader::canCachePageContainingThisFrame):
2968         (WebCore::FrameLoader::logCanCacheFrameDecision):
2969
2970 2009-10-27  Timothy Hatcher  <timothy@apple.com>
2971
2972         Remove more empty files that didn't get removed earlier.
2973
2974         * inspector/DOMDispatchTimelineItem.cpp: Removed.
2975         * inspector/DOMDispatchTimelineItem.h: Removed.
2976
2977 2009-10-27  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
2978
2979         Reviewed by Tor Arne Vestbø.
2980
2981         [Qt] Fix assertion crashes introduced by changes made in r50110.
2982
2983         * dom/XMLTokenizerQt.cpp:
2984         (WebCore::XMLTokenizer::parseEndElement): only call popCurrentNode() if there are nodes left in the stack.
2985
2986 2009-10-27  Timothy Hatcher  <timothy@apple.com>
2987
2988         Remove empty files that didn't get removed earlier.
2989
2990         * inspector/TimelineItem.cpp: Removed.
2991         * inspector/TimelineItem.h: Removed.
2992
2993 2009-10-27  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
2994
2995         Reviewed by Xan Lopez.
2996
2997         https://bugs.webkit.org/show_bug.cgi?id=25534
2998         [GTK] Objects of ROLE_TABLE should implement the accessible table interface
2999
3000         First part of the implementation of AtkTable.
3001
3002         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3003         (getCell):
3004         (getCellIndex):
3005         (webkit_accessible_table_ref_at):
3006         (webkit_accessible_table_get_index_at):
3007         (webkit_accessible_table_get_n_columns):
3008         (webkit_accessible_table_get_n_rows):
3009         (webkit_accessible_table_get_column_extent_at):
3010         (webkit_accessible_table_get_row_extent_at):
3011         (webkit_accessible_table_get_row_header):
3012         (atk_table_interface_init):
3013         (AtkInterfacesInitFunctions):
3014         (GetAtkInterfaceTypeFromWAIType):
3015
3016 2009-10-27  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3017
3018         Reviewed by Lars Knoll.
3019
3020         [Qt] Don't lose remainder when computing wheel event deltas
3021
3022         * platform/qt/WheelEventQt.cpp:
3023
3024 2009-10-27  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3025
3026         Reviewed by Antti Koivisto.
3027
3028         Fix QtWebKit build for WIN_OS if Netscape plug-in support
3029         is turned off and refactor some related code
3030         https://bugs.webkit.org/show_bug.cgi?id=30786
3031
3032         No new tests as there is no new functionality introduced.
3033
3034         * platform/FileSystem.h: Refactor to make sure that each different
3035         type definition is only repeated once.
3036
3037         * plugins/PluginPackage.cpp:
3038         (WebCore::PluginPackage::compareFileVersion): Move it out from the
3039         ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH guard and combine it with the
3040         function body from PluginPackageWin.
3041
3042         * plugins/win/PluginPackageWin.cpp: Remove compareFileVersion as
3043         it is now in PluginPackage.cpp.
3044
3045 2009-10-26  Xan Lopez  <xlopez@igalia.com>
3046
3047         Reviewed by Gustavo Noronha.
3048
3049         https://bugs.webkit.org/show_bug.cgi?id=27011
3050         [Gtk] Implement support for get_index_in_parent
3051
3052         Implement atk_object_get_index_in_parent.
3053
3054         * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
3055         (webkit_accessible_get_index_in_parent):
3056
3057 2009-10-27  Eric Seidel  <eric@webkit.org>
3058
3059         No review, rolling out r50131.
3060         http://trac.webkit.org/changeset/50131
3061
3062         * bridge/objc/objc_instance.h:
3063         * bridge/objc/objc_instance.mm:
3064         (ObjcInstance::ObjcInstance):
3065         (ObjcInstance::virtualEnd):
3066
3067 2009-10-26  Daniel Bates  <dbates@webkit.org>
3068
3069         Reviewed by Darin Adler.
3070
3071         https://bugs.webkit.org/show_bug.cgi?id=30491
3072
3073         Fixes an issue where pressing return/enter on the keyboard 
3074         in <isindex> does not submit it if is not within a <form>.
3075
3076         According to the HTML 2.0 thru HTML 4.01 spec 
3077         (http://www.w3.org/MarkUp/html-spec/html-spec_7.html#SEC7.5), the 
3078         <isindex> element does not need to be within a <form> element in 
3079         order to submit it. It can submitted on its own. Also, if present,
3080         the href property of the <base> element will dictate where to submit
3081         the value of the <isindex> element (this is analogous to the action 
3082         property of the <form> element).
3083
3084         Tests: http/tests/misc/isindex-with-no-form-base-href.html
3085                http/tests/misc/isindex-with-no-form.html
3086
3087         * html/HTMLInputElement.cpp:
3088         (WebCore::HTMLInputElement::defaultEventHandler): Calls createTemporaryFormForIsIndex()
3089         to create a <form> if none is present and we are an <isindex> element.
3090         (WebCore::HTMLInputElement::createTemporaryFormForIsIndex): Added.
3091         * html/HTMLInputElement.h:
3092
3093 2009-10-26  Oliver Hunt  <oliver@apple.com>
3094
3095         Reviewed by Maciej Stachowiak.
3096
3097         Crash occurs after launching Newsfire 1.6 for the first time
3098         https://bugs.webkit.org/show_bug.cgi?id=30807
3099
3100         Use a RetainPtr in ObjcBinding to ensure that we adequately
3101         protect the autorelease pool from GC in GC'd applications.
3102
3103         * bridge/objc/objc_instance.h:
3104         * bridge/objc/objc_instance.mm:
3105         (ObjcInstance::ObjcInstance):
3106         (ObjcInstance::virtualEnd):
3107
3108 2009-10-26  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3109
3110         Unreviewed.
3111
3112         [Qt] Build fix for QtWebKit after r50125.
3113
3114         * WebCore.pro: Rename TimelineItem to TimelineRecord.
3115
3116 2009-10-26  Matt Mueller  <mattm@chromium.org>
3117
3118         Reviewed by Darin Adler.
3119
3120         Refactor synchronizable property handling to store one shouldSynchronize flag per set of properties rather than one per property.
3121
3122         Fixes reading uninitialized memory in SynchronizableProperty hash function as well as simplifying the code.
3123
3124         https://bugs.webkit.org/show_bug.cgi?id=30658
3125
3126         Covered by running various svg tests under valgrind, ex:
3127         LayoutTests/svg/custom/js-late-mask-and-object-creation.svg
3128
3129         * svg/SynchronizablePropertyController.cpp:
3130         (WebCore::SynchronizableProperties::addProperty):
3131         (WebCore::SynchronizableProperties::synchronize):
3132         (WebCore::SynchronizableProperties::startAnimation):
3133         (WebCore::SynchronizableProperties::stopAnimation):
3134         (WebCore::SynchronizablePropertyController::registerProperty):
3135         (WebCore::SynchronizablePropertyController::setPropertyNeedsSynchronization):
3136         (WebCore::SynchronizablePropertyController::synchronizeProperty):
3137         (WebCore::SynchronizablePropertyController::synchronizeAllProperties):
3138         (WebCore::SynchronizablePropertyController::startAnimation):
3139         (WebCore::SynchronizablePropertyController::stopAnimation):
3140         * svg/SynchronizablePropertyController.h:
3141         (WebCore::SynchronizableProperties::SynchronizableProperties):
3142         (WebCore::SynchronizableProperties::setNeedsSynchronization):
3143
3144 2009-10-26  Kelly Norton  <knorton@google.com>
3145
3146         Reviewed by Timothy Hatcher.
3147
3148         Renames TimelineItem to TimelineRecord and updates all call sites.
3149         https://bugs.webkit.org/show_bug.cgi?id=30785
3150
3151         * GNUmakefile.am: 
3152         * WebCore.gypi:
3153         * WebCore.vcproj/WebCore.vcproj:
3154         * WebCore.xcodeproj/project.pbxproj:
3155         * inspector/InspectorFrontend.cpp:
3156         (WebCore::InspectorFrontend::addRecordToTimeline):
3157         * inspector/InspectorFrontend.h:
3158         * inspector/InspectorTimelineAgent.cpp:
3159         (WebCore::InspectorTimelineAgent::willDispatchDOMEvent):
3160         (WebCore::InspectorTimelineAgent::didDispatchDOMEvent):
3161         (WebCore::InspectorTimelineAgent::willLayout):
3162         (WebCore::InspectorTimelineAgent::didLayout):
3163         (WebCore::InspectorTimelineAgent::willRecalculateStyle):
3164         (WebCore::InspectorTimelineAgent::didRecalculateStyle):
3165         (WebCore::InspectorTimelineAgent::willPaint):
3166         (WebCore::InspectorTimelineAgent::didPaint):
3167         (WebCore::InspectorTimelineAgent::willWriteHTML):
3168         (WebCore::InspectorTimelineAgent::didWriteHTML):
3169         (WebCore::InspectorTimelineAgent::didInstallTimer):
3170         (WebCore::InspectorTimelineAgent::didRemoveTimer):
3171         (WebCore::InspectorTimelineAgent::willFireTimer):
3172         (WebCore::InspectorTimelineAgent::didFireTimer):
3173         (WebCore::InspectorTimelineAgent::reset):
3174         (WebCore::InspectorTimelineAgent::addRecordToTimeline):
3175         (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
3176         (WebCore::InspectorTimelineAgent::pushCurrentRecord):
3177         * inspector/InspectorTimelineAgent.h:
3178         (WebCore::):
3179         (WebCore::InspectorTimelineAgent::RecordEntry::RecordEntry):
3180         * inspector/TimelineItemFactory.cpp: Removed.
3181         * inspector/TimelineItemFactory.h: Removed.
3182         * inspector/TimelineRecordFactory.cpp: Added.
3183         (WebCore::TimelineRecordFactory::createGenericRecord):
3184         (WebCore::TimelineRecordFactory::createDOMDispatchRecord):
3185         (WebCore::TimelineRecordFactory::createGenericTimerRecord):
3186         (WebCore::TimelineRecordFactory::createTimerInstallRecord):
3187         * inspector/TimelineRecordFactory.h: Added.
3188         (WebCore::TimelineRecordFactory::TimelineRecordFactory):
3189         * inspector/front-end/TimelineAgent.js:
3190         (WebInspector.addRecordToTimeline):
3191         * inspector/front-end/TimelinePanel.js:
3192         (WebInspector.TimelinePanel.prototype.addRecordToTimeline):
3193         (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
3194         (WebInspector.TimelinePanel.prototype.getRecordTypeName):
3195         (WebInspector.TimelineRecordTreeElement.prototype.onattach):
3196
3197 2009-10-26  Girish Ramakrishnan  <girish@forwardbias.in>
3198
3199         Reviewed by Antti Koivisto.
3200
3201         [Qt] Windowless Plugins : Print preview shows only part of flash when view is scrolled
3202         
3203         When printing, QPrinter's preview mode uses a QPicture to capture the output. The
3204         QPicture holds a reference to the X Pixmap. As a result, the print preview would
3205         update itself when the X Pixmap changes. To prevent the print preview from updating
3206         whenever m_drawable is updated (i.e when the view updates), we create a copy.
3207         
3208         We require that a QPixmap::copy() result in a QPixmap backed by a XPixmap
3209         regardless of the graphicssystem. This is taken care of by
3210         commit d310f7c710ecb331a9689861f0551eabd38e946e in Qt (4.6)
3211         
3212         The beauty of this patch is that the newly created X Pixmap is managed by Qt and
3213         it will free the Pixmap whenever the user closes the print preview dialog and
3214         handles the case of displaying multiple preview dialogs nicely.
3215         
3216         All credit to Samuel Rødal for suggesting usage of QPixmap::copy().
3217         
3218         https://bugs.webkit.org/show_bug.cgi?id=30714
3219
3220         * plugins/qt/PluginViewQt.cpp:
3221         (WebCore::PluginView::paint):
3222
3223 2009-10-26  Benjamin Otte  <otte@gnome.org>
3224
3225         Reviewed by Gustavo Noronha.
3226
3227         Don't store properties in the MediaPlayerPrivate class
3228
3229         Access them via the MediaPlayer class instead.
3230         https://bugs.webkit.org/show_bug.cgi?id=30462
3231
3232         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
3233         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
3234         (WebCore::MediaPlayerPrivate::seek):
3235         (WebCore::MediaPlayerPrivate::setVolume):
3236         (WebCore::MediaPlayerPrivate::setRate):
3237         (WebCore::MediaPlayerPrivate::setVisible):
3238         (WebCore::MediaPlayerPrivate::paint):
3239         (WebCore::MediaPlayerPrivate::createGSTPlayBin):
3240         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h:
3241
3242 2009-10-26  Brian Weinstein  <bweinstein@apple.com>
3243
3244         Reviewed by Timothy Hatcher.
3245
3246         Fixes <http://webkit.org/b/30801>.
3247         Web Inspector: Control + ]/[ on Windows doesn't change Panels.
3248         
3249         In my testing, Windows uses "U+00DB" and "U+00DD" to represent
3250         [ and ], so we should honor those as well.
3251
3252         * inspector/front-end/inspector.js:
3253         (WebInspector.documentKeyDown):
3254
3255 2009-10-26  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3256
3257         Reviewed by Darin Adler.
3258
3259         Make .rc files compile on Windows without depending on MFC headers
3260         https://bugs.webkit.org/show_bug.cgi?id=30750
3261
3262         * WebCore.vcproj/QTMovieWin.rc: Use winresrc.h because it exists 
3263         even when MFC is not installed, and is all that's needed here.
3264
3265 2009-10-26  Brent Fulgham  <bfulgham@webkit.org>
3266
3267         Reviewed by Darin Adler.
3268
3269         Build corrections for ENABLE_FILTERS in Windows.
3270         https://bugs.webkit.org/show_bug.cgi?id=30797
3271
3272         Build correction for ENABLE_FILTERS feature.  No new tests needed.
3273
3274         * platform/graphics/filters/FEColorMatrix.cpp: Use MathExtras.h and
3275           its piDouble constant.
3276         * platform/graphics/filters/FEGaussianBlur.cpp: Use MathExtras.h and
3277           its piDouble constant.  Remove unnecessary call to floor used in
3278           the division of an unsigned, converting to int.
3279         * platform/graphics/win/SimpleFontDataCairoWin.cpp: Correct include
3280           style for MathExtras.h.
3281
3282 2009-10-26  Brady Eidson  <beidson@apple.com>
3283
3284         Reviewed by Darin Adler.
3285
3286         <rdar://problem/7289467> and http://webkit.org/b/30798 - REGRESSION (r48687): www.myuhc.com doesn't load.
3287
3288         Test: fast/loader/grandparent-completion-starts-redirect.html
3289
3290         * loader/FrameLoader.cpp:
3291         (WebCore::FrameLoader::completed): Notify all descendants that the load completed, not just direct children.
3292
3293 2009-10-26  Dan Bernstein  <mitz@apple.com>
3294
3295         Reviewed by Beth Dakin.
3296
3297         Re-add CSSPropertyWebkitBackgroundSize in one more place
3298
3299         Fixes transitions/multiple-background-size-transitions.html, transitions/background-transitions.html
3300
3301         * page/animation/AnimationBase.cpp:
3302         (WebCore::FillLayersPropertyWrapper::FillLayersPropertyWrapper):
3303
3304 2009-10-26  Jeremy Orlow  <jorlow@chromium.org>
3305
3306         Reviewed by Dimitri Glazkov.
3307
3308         [V8] Tidy up the DOM Storage runtime flag stuff
3309         https://bugs.webkit.org/show_bug.cgi?id=30794
3310
3311         Clean up the DOM Storage runtime flag stuff to match the new way of doing
3312         things.  No behavioral changes.
3313
3314         * bindings/v8/RuntimeEnabledFeatures.cpp:
3315         * bindings/v8/RuntimeEnabledFeatures.h:
3316         (WebCore::RuntimeEnabledFeatures::setDatabaseEnabled):
3317         (WebCore::RuntimeEnabledFeatures::databaseEnabled):
3318         (WebCore::RuntimeEnabledFeatures::setLocalStorageEnabled):
3319         (WebCore::RuntimeEnabledFeatures::localStorageEnabled):
3320         (WebCore::RuntimeEnabledFeatures::setSessionStorageEnabled):
3321         (WebCore::RuntimeEnabledFeatures::sessionStorageEnabled):
3322         * bindings/v8/custom/V8DOMWindowCustom.cpp:
3323         (WebCore::ACCESSOR_RUNTIME_ENABLER):
3324         * storage/Storage.cpp:
3325         * storage/Storage.h:
3326
3327 2009-10-26  Brady Eidson  <beidson@apple.com>
3328
3329         Reviewed by Darin Adler.
3330
3331         <rdar://problem/7308952> and http://webkit.org/b/30424 - REGRESSION (r48687): Pages on ucas.com appear blank.
3332
3333         Test: fast/loader/history-forward-in-head.html
3334
3335         * loader/RedirectScheduler.cpp:
3336         (WebCore::RedirectScheduler::scheduleHistoryNavigation): Restore the moved canGoBackOrForward() check.
3337           This restores the side effect of an invalid history navigation canceling previous scheduled redirects
3338           and also fixes the bug of scheduling an invalid history navigation canceling parsing of the current document.
3339         (WebCore::RedirectScheduler::timerFired): Removed the canGoBackOrForward() check as it is now made before
3340           the redirect is scheduled.
3341
3342 2009-10-26  Alexey Proskuryakov  <ap@apple.com>
3343
3344         Reviewed by Darin Adler.
3345
3346         https://bugs.webkit.org/show_bug.cgi?id=30049
3347         <rdar://problem/7286002> Manipulating DOM from a script while parsing XHTML can cause a crash
3348
3349         Tests: fast/parser/remove-current-node-parent-x-2.xhtml
3350                fast/parser/remove-current-node-parent-x.xhtml
3351
3352         * dom/XMLTokenizer.h: Store the whole stack of parent nodes - element.parentNode() is
3353         unreliable after DOM manipulation.
3354
3355         * dom/XMLTokenizer.cpp:
3356         (WebCore::XMLTokenizer::pushCurrentNode): Push the new node onto stack.
3357         (WebCore::XMLTokenizer::popCurrentNode): This is now called instead of setCurrentNode when
3358         exiting a node.
3359         (WebCore::XMLTokenizer::clearCurrentNodeStack): We're aborting; or just done parsing. This
3360         replaces setCurrentNode(0).
3361         (WebCore::XMLTokenizer::enterText): Call pushCurrentNode().
3362         (WebCore::XMLTokenizer::exitText): Call popCurrentNode(), removing a long-standing FIXME
3363         (not sure if it was ever practical though - how can a parent become null while adding text?)
3364
3365         * dom/XMLTokenizerLibxml2.cpp:
3366         (WebCore::XMLTokenizer::~XMLTokenizer): Call clearCurrentNodeStack().
3367         (WebCore::XMLTokenizer::startElementNs): Call pushCurrentNode().
3368         (WebCore::XMLTokenizer::endElementNs): Call popCurrentNode() to safely get to a parent. Also
3369         added a check fo script element still being in document - Firefox parses those that aren't,
3370         but doesn't execute them.
3371
3372         * dom/XMLTokenizerQt.cpp:
3373         (WebCore::XMLTokenizer::~XMLTokenizer):
3374         (WebCore::XMLTokenizer::parseStartElement):
3375         (WebCore::XMLTokenizer::parseEndElement):
3376         Match libxml2 version changes.
3377
3378 2009-10-26  Dan Bernstein  <mitz@apple.com>
3379
3380         Reviewed by Beth Dakin.
3381
3382         background-size: X treated as background-size: X X, not background-size: X auto
3383         https://bugs.webkit.org/show_bug.cgi?id=28440
3384
3385         Updated fast/backgrounds/size/resources/parsing-background-size-values.js
3386         and fast/backgrounds/size/resources/parsing-inherit.js
3387
3388         Reinstated -webkit-background-size and kept its behavior of filling in
3389         the second value with the first one; and changed background-size to have
3390         the behavior of filling in the second value with 'auto'.
3391
3392         * css/CSSComputedStyleDeclaration.cpp:
3393         (computedProperties): Re-added CSSPropertyWebkitBackgroundSize.
3394         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Ditto.
3395         * css/CSSParser.cpp:
3396         (WebCore::CSSParser::parseValue): Ditto.
3397         (WebCore::CSSParser::parseFillSize): Adapted for the new parsing rule.
3398         (WebCore::CSSParser::parseFillProperty): Re-added
3399         CSSPropertyWebkitBackgroundSize.
3400         (WebCore::cssPropertyID): Removed mapping of -webkit-background-size to
3401         background-size.
3402         * css/CSSParser.h:
3403         * css/CSSPropertyNames.in: Re-added -webkit-background-size.
3404         * css/CSSStyleSelector.cpp:
3405         (WebCore::CSSStyleSelector::applyProperty): Re-added
3406         CSSPropertyWebkitBackgroundSize.
3407
3408 2009-10-26  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3409
3410         Reviewed by Eric Seidel.
3411
3412         [Qt] Use "%lli" to format "long long" on WIN_OS to fix HTML5 WebDB crash
3413         https://bugs.webkit.org/show_bug.cgi?id=30777
3414
3415         No new tests as the crash can be reproduced by existing storage
3416         LayoutTests (by hitting an assert in debug mode Webkit on WIN_OS).
3417
3418         * platform/text/String.cpp:
3419         (WebCore::String::number): Qt's QString::vsprintf does not
3420         understand the "%I64u" format string. Always use the "%lli"
3421         format string for Qt port.
3422
3423 2009-10-26  Tony Chang  <tony@chromium.org>
3424
3425         Reviewed by Eric Seidel.
3426
3427         Roll back r50073 because r50041-50043 were reverted.  r50073 was
3428         a chromium side fix for r50041.
3429         https://bugs.webkit.org/show_bug.cgi?id=30789
3430
3431         * bindings/v8/V8Collection.h:
3432         * bindings/v8/custom/V8CustomBinding.h:
3433         * bindings/v8/custom/V8HTMLAllCollectionCustom.cpp:
3434         (WebCore::getNamedItems):
3435         (WebCore::getItem):
3436         (WebCore::NAMED_PROPERTY_GETTER):
3437         (WebCore::CALLBACK_FUNC_DECL):
3438         * bindings/v8/custom/V8HTMLCollectionCustom.cpp:
3439         (WebCore::getNamedItems):
3440         (WebCore::getItem):
3441         (WebCore::NAMED_PROPERTY_GETTER):
3442         (WebCore::CALLBACK_FUNC_DECL):
3443         * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
3444
3445 2009-10-26  Geoffrey Garen  <ggaren@apple.com>
3446
3447         Reviewed by Dimitri Glazkov.
3448
3449         Fixed https://bugs.webkit.org/show_bug.cgi?id=30765
3450         REGRESSION (r48701): Removing an event listener causes the one added just after it not to fire
3451         
3452         and related bugs.
3453
3454         If the event listener being removed is prior to the current firing event
3455         iterator, we need to decrement the current firing event iterator in
3456         addition to the endpoint. (Otherwise, shrinking the event listener vector
3457         by one implicity moves the current firing event iterator forward by one.
3458         It's like relativity, only without the planets.)
3459         
3460         Also took the opportunity to change some pointers to references, since
3461         they can't be null.
3462
3463         * dom/EventTarget.cpp:
3464         (WebCore::EventTarget::removeEventListener):
3465         (WebCore::EventTarget::removeAllEventListeners): Update iterator in addition
3466         to end, if need be.
3467         (WebCore::EventTarget::fireEventListeners): Updated for interface changes.
3468         Added a comment to explain a behavior that was implicit enough to be
3469         confusing.
3470
3471         * dom/EventTarget.h:
3472         (WebCore::FiringEventIterator::FiringEventIterator):
3473         (WebCore::EventTarget::isFiringEventListeners): Updated for interface changes.
3474
3475 2009-10-26  Brian Weinstein  <bweinstein@apple.com>
3476
3477         Reviewed by Timothy Hatcher.
3478
3479         Fixes <http://webkit.org/b/30792>.
3480         Web Inspector: When changing resource scope, resource graph can get in weird state.
3481         
3482         If the user was scrolled down while looking at All resources, and then just
3483         selects Fonts, or something that doesn't have many resources, then the graph
3484         will stay scrolled down, even when there is no content there.
3485         
3486         When the filter is updated, scroll to the top of the graph view, so this won't
3487         happen.
3488
3489         * inspector/front-end/AbstractTimelinePanel.js:
3490         (WebInspector.AbstractTimelinePanel.prototype._updateFilter):
3491
3492 2009-10-26  Sam Weinig  <sam@webkit.org>
3493
3494         Fix mac clean build.
3495
3496         * html/HTMLOptionsCollection.idl:
3497
3498 2009-10-26  Pavel Feldman  <pfeldman@chromium.org>
3499
3500         Reviewed by Timothy Hatcher.
3501
3502         Web Inspector: Extract AbstractTimelinePanel that will be a base
3503         class for ResourcesPanel and TimelinePanel.
3504
3505         https://bugs.webkit.org/show_bug.cgi?id=30776
3506
3507         * WebCore.gypi:
3508         * WebCore.vcproj/WebCore.vcproj:
3509         * inspector/front-end/AbstractTimelinePanel.js: Added.
3510         (WebInspector.AbstractTimelinePanel):
3511         (WebInspector.AbstractTimelinePanel.prototype.get categories):
3512         (WebInspector.AbstractTimelinePanel.prototype.showCategory):
3513         (WebInspector.AbstractTimelinePanel.prototype.hideCategory):
3514         (WebInspector.AbstractTimelinePanel.prototype.createTimelinePanels):
3515         (WebInspector.AbstractTimelinePanel.prototype._createFilterPanel.createFilterElement):
3516         (WebInspector.AbstractTimelinePanel.prototype._createFilterPanel):
3517         (WebInspector.AbstractTimelinePanel.prototype.filter):
3518         (WebInspector.AbstractTimelinePanel.prototype._updateFilter):
3519         (WebInspector.AbstractTimelinePanel.prototype._createGraph):
3520         (WebInspector.AbstractTimelinePanel.prototype.updateGraphDividersIfNeeded):
3521         (WebInspector.AbstractTimelinePanel.prototype._updateSummaryGraph):
3522         (WebInspector.AbstractTimelinePanel.prototype._updateDividersLabelBarPosition):
3523         (WebInspector.AbstractTimelinePanel.prototype.get needsRefresh):
3524         (WebInspector.AbstractTimelinePanel.prototype.set needsRefresh):
3525         (WebInspector.AbstractTimelinePanel.prototype.refreshIfNeeded):
3526         (WebInspector.AbstractTimelinePanel.prototype.show):
3527         (WebInspector.AbstractTimelinePanel.prototype.resize):
3528         (WebInspector.AbstractTimelinePanel.prototype.updateMainViewWidth):
3529         (WebInspector.TimelineCalculator):
3530         (WebInspector.TimelineCalculator.prototype.computeSummaryValues):
3531         (WebInspector.TimelineCalculator.prototype.computeBarGraphPercentages):
3532         (WebInspector.TimelineCalculator.prototype.computeBarGraphLabels):
3533         (WebInspector.TimelineCalculator.prototype.get boundarySpan):
3534         (WebInspector.TimelineCalculator.prototype.updateBoundaries):
3535         (WebInspector.TimelineCalculator.prototype.reset):
3536         (WebInspector.TimelineCalculator.prototype._value):
3537         (WebInspector.TimelineCalculator.prototype.formatValue):
3538         * inspector/front-end/ResourceCategory.js:
3539         (WebInspector.ResourceCategory):
3540         * inspector/front-end/ResourcesPanel.js:
3541         (WebInspector.ResourcesPanel):
3542         (WebInspector.ResourcesPanel.prototype.toolbarItemClass.get toolbarItemLabel):
3543         (WebInspector.ResourcesPanel.prototype.get statusBarItems):
3544         (WebInspector.ResourcesPanel.prototype.get categories):
3545         (WebInspector.ResourcesPanel.prototype.showCategory):
3546         (WebInspector.ResourcesPanel.prototype.hideCategory):
3547         (WebInspector.ResourcesPanel.prototype.isCategoryVisible):
3548         (WebInspector.ResourcesPanel.prototype.populateSidebar):
3549         (WebInspector.ResourcesPanel.prototype.createPanelEnabler):
3550         (WebInspector.ResourcesPanel.prototype.createStatusbarButtons):
3551         (WebInspector.ResourcesPanel.prototype.set mainResourceLoadTime):
3552         (WebInspector.ResourcesPanel.prototype.set mainResourceDOMContentTime):
3553         (WebInspector.ResourcesPanel.prototype.show):
3554         (WebInspector.ResourcesPanel.prototype.resize):
3555         (WebInspector.ResourcesPanel.prototype.reset):
3556         (WebInspector.ResourcesPanel.prototype.updateGraphDividersIfNeeded):
3557         (WebInspector.ResourcesPanel.prototype.updateMainViewWidth):
3558         (WebInspector.ResourceTimeCalculator):
3559         (WebInspector.ResourceTransferSizeCalculator):
3560         (WebInspector.ResourceTransferSizeCalculator.prototype.computeBarGraphLabels):
3561         * inspector/front-end/SummaryBar.js:
3562         (WebInspector.SummaryBar.prototype.update):
3563         * inspector/front-end/WebKit.qrc:
3564         * inspector/front-end/inspector.html:
3565         * inspector/front-end/inspector.js:
3566         (WebInspector.loaded):
3567
3568 2009-10-26  Avi Drissman  <avi@google.com>
3569
3570         Reviewed by Darin Adler.
3571
3572         Use Helvetica in the Inspector as intended.
3573         https://bugs.webkit.org/show_bug.cgi?id=30787
3574
3575         * inspector/front-end/inspector.css:
3576
3577 2009-10-26  Nate Chapin  <japhet@chromium.org>
3578
3579         Reviewed by Alexey Proskuryakov.
3580
3581         Don't set window.opener to 0 for the current FrameLoader if a noreferrer link was clicked, only suppress opener in a new frame.
3582         https://bugs.webkit.org/show_bug.cgi?id=30781
3583
3584         * loader/FrameLoader.cpp:
3585         (WebCore::FrameLoader::urlSelected): Don't suppress opener in the current frame for noreferrer navigations.
3586
3587 2009-10-26  Ryosuke Niwa  <rniwa@webkit.org>
3588
3589         Reviewed by Eric Seidel.
3590
3591         Data loss occurs when unbolding nested bold tags.
3592         https://bugs.webkit.org/show_bug.cgi?id=30083
3593
3594         Fixes the loop in swapInNodePreservingAttributesAndChildren by saving nextSibling() of child
3595         to a temporary valuable.  It was originally calling nextSibling() after appending the child
3596         to new parent, in which case, nextSibling is always 0.
3597
3598         Test: editing/style/unbolding-nested-b.html
3599
3600         * editing/ReplaceNodeWithSpanCommand.cpp:
3601         (WebCore::swapInNodePreservingAttributesAndChildren):
3602
3603 2009-10-21  Jeremy Orlow  <jorlow@chromium.org>
3604
3605         Reviewed by Darin Adler.
3606
3607         Storage events should use Document::url() rather than documentURI()
3608         https://bugs.webkit.org/show_bug.cgi?id=30535
3609
3610         Storage events should use Document::url() rather than Document::documentURI()
3611         per http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-October/023703.html
3612
3613         Test: storage/domstorage/documentURI.html
3614
3615         * storage/StorageEventDispatcher.cpp:
3616         (WebCore::StorageEventDispatcher::dispatch):
3617