WebCore:
[WebKit-https.git] / WebCore / ChangeLog
1 2007-12-06  Adele Peterson  <adele@apple.com>
2
3         Reviewed by Oliver.
4
5         Fix for <rdar://problem/5631356> Toggling display property on video causes controls to get lost
6
7         * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::attach): Call updateFromElement.
8         * html/HTMLMediaElement.h:
9
10 2007-12-05  Antti Koivisto  <antti@apple.com>
11
12         Reviewed by Oliver.
13
14         Rename
15
16         Movie -> MediaPlayer
17         MoviePrivate -> MediaPlayerPrivate
18         
19         Movie is QuickTime terminology and clashes with its C API.
20
21         * WebCore.xcodeproj/project.pbxproj:
22         * html/HTMLMediaElement.cpp:
23         (WebCore::HTMLMediaElement::HTMLMediaElement):
24         (WebCore::HTMLMediaElement::~HTMLMediaElement):
25         (WebCore::HTMLMediaElement::initAndDispatchProgressEvent):
26         (WebCore::HTMLMediaElement::bufferingRate):
27         (WebCore::HTMLMediaElement::load):
28         (WebCore::HTMLMediaElement::mediaPlayerNetworkStateChanged):
29         (WebCore::HTMLMediaElement::mediaPlayerReadyStateChanged):
30         (WebCore::HTMLMediaElement::setReadyState):
31         (WebCore::HTMLMediaElement::progressEventTimerFired):
32         (WebCore::HTMLMediaElement::seek):
33         (WebCore::HTMLMediaElement::currentTime):
34         (WebCore::HTMLMediaElement::duration):
35         (WebCore::HTMLMediaElement::playbackRate):
36         (WebCore::HTMLMediaElement::setPlaybackRate):
37         (WebCore::HTMLMediaElement::play):
38         (WebCore::HTMLMediaElement::pause):
39         (WebCore::HTMLMediaElement::setVolume):
40         (WebCore::HTMLMediaElement::setMuted):
41         (WebCore::HTMLMediaElement::pickMedia):
42         (WebCore::HTMLMediaElement::checkIfSeekNeeded):
43         (WebCore::HTMLMediaElement::mediaPlayerVolumeChanged):
44         (WebCore::HTMLMediaElement::mediaPlayerTimeChanged):
45         (WebCore::HTMLMediaElement::mediaPlayerCuePointReached):
46         (WebCore::HTMLMediaElement::addCuePoint):
47         (WebCore::HTMLMediaElement::buffered):
48         (WebCore::HTMLMediaElement::seekable):
49         (WebCore::HTMLMediaElement::effectiveStart):
50         (WebCore::HTMLMediaElement::effectiveEnd):
51         (WebCore::HTMLMediaElement::effectiveLoopStart):
52         (WebCore::HTMLMediaElement::effectiveLoopEnd):
53         (WebCore::HTMLMediaElement::updateMediaPlayer):
54         (WebCore::HTMLMediaElement::willSaveToCache):
55         * html/HTMLMediaElement.h:
56         (WebCore::HTMLMediaElement::player):
57         * html/HTMLVideoElement.cpp:
58         (WebCore::HTMLVideoElement::videoWidth):
59         (WebCore::HTMLVideoElement::videoHeight):
60         * platform/MIMETypeRegistry.cpp:
61         (WebCore::initialiseSupportedMediaMIMETypes):
62         (WebCore::MIMETypeRegistry::isSupportedMediaMIMEType):
63         (WebCore::MIMETypeRegistry::getSupportedMediaMIMETypes):
64         * platform/MIMETypeRegistry.h:
65         * platform/graphics/MediaPlayer.cpp: Copied from WebCore/platform/graphics/Movie.cpp.
66         (WebCore::MediaPlayer::MediaPlayer):
67         (WebCore::MediaPlayer::~MediaPlayer):
68         (WebCore::MediaPlayer::load):
69         (WebCore::MediaPlayer::cancelLoad):
70         (WebCore::MediaPlayer::play):
71         (WebCore::MediaPlayer::pause):
72         (WebCore::MediaPlayer::duration):
73         (WebCore::MediaPlayer::currentTime):
74         (WebCore::MediaPlayer::seek):
75         (WebCore::MediaPlayer::paused):
76         (WebCore::MediaPlayer::seeking):
77         (WebCore::MediaPlayer::naturalSize):
78         (WebCore::MediaPlayer::hasVideo):
79         (WebCore::MediaPlayer::networkState):
80         (WebCore::MediaPlayer::readyState):
81         (WebCore::MediaPlayer::volume):
82         (WebCore::MediaPlayer::setVolume):
83         (WebCore::MediaPlayer::rate):
84         (WebCore::MediaPlayer::setRate):
85         (WebCore::MediaPlayer::muted):
86         (WebCore::MediaPlayer::setMuted):
87         (WebCore::MediaPlayer::dataRate):
88         (WebCore::MediaPlayer::setEndTime):
89         (WebCore::MediaPlayer::addCuePoint):
90         (WebCore::MediaPlayer::removeCuePoint):
91         (WebCore::MediaPlayer::clearCuePoints):
92         (WebCore::MediaPlayer::maxTimeBuffered):
93         (WebCore::MediaPlayer::maxTimeSeekable):
94         (WebCore::MediaPlayer::bytesLoaded):
95         (WebCore::MediaPlayer::totalBytesKnown):
96         (WebCore::MediaPlayer::totalBytes):
97         (WebCore::MediaPlayer::setRect):
98         (WebCore::MediaPlayer::visible):
99         (WebCore::MediaPlayer::setVisible):
100         (WebCore::MediaPlayer::paint):
101         (WebCore::MediaPlayer::getSupportedTypes):
102         (WebCore::MediaPlayer::networkStateChanged):
103         (WebCore::MediaPlayer::readyStateChanged):
104         (WebCore::MediaPlayer::volumeChanged):
105         (WebCore::MediaPlayer::timeChanged):
106         (WebCore::MediaPlayer::cuePointReached):
107         * platform/graphics/MediaPlayer.h: Copied from WebCore/platform/graphics/Movie.h.
108         (WebCore::MediaPlayerClient::~MediaPlayerClient):
109         (WebCore::MediaPlayerClient::mediaPlayerNetworkStateChanged):
110         (WebCore::MediaPlayerClient::mediaPlayerReadyStateChanged):
111         (WebCore::MediaPlayerClient::mediaPlayerVolumeChanged):
112         (WebCore::MediaPlayerClient::mediaPlayerTimeChanged):
113         (WebCore::MediaPlayerClient::mediaPlayerCuePointReached):
114         * platform/graphics/Movie.cpp: Removed.
115         * platform/graphics/Movie.h: Removed.
116         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp: Copied from WebCore/platform/graphics/gtk/MoviePrivateGStreamer.cpp.
117         (WebCore::mediaPlayerPrivateErrorCallback):
118         (WebCore::mediaPlayerPrivateEOSCallback):
119         (WebCore::mediaPlayerPrivateStateCallback):
120         (WebCore::mediaPlayerPrivateBufferingCallback):
121         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
122         (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
123         (WebCore::MediaPlayerPrivate::load):
124         (WebCore::MediaPlayerPrivate::play):
125         (WebCore::MediaPlayerPrivate::pause):
126         (WebCore::MediaPlayerPrivate::duration):
127         (WebCore::MediaPlayerPrivate::currentTime):
128         (WebCore::MediaPlayerPrivate::seek):
129         (WebCore::MediaPlayerPrivate::setEndTime):
130         (WebCore::MediaPlayerPrivate::addCuePoint):
131         (WebCore::MediaPlayerPrivate::removeCuePoint):
132         (WebCore::MediaPlayerPrivate::clearCuePoints):
133         (WebCore::MediaPlayerPrivate::startCuePointTimerIfNeeded):
134         (WebCore::MediaPlayerPrivate::cancelSeek):
135         (WebCore::MediaPlayerPrivate::cuePointTimerFired):
136         (WebCore::MediaPlayerPrivate::paused):
137         (WebCore::MediaPlayerPrivate::seeking):
138         (WebCore::MediaPlayerPrivate::naturalSize):
139         (WebCore::MediaPlayerPrivate::hasVideo):
140         (WebCore::MediaPlayerPrivate::setVolume):
141         (WebCore::MediaPlayerPrivate::setMuted):
142         (WebCore::MediaPlayerPrivate::setRate):
143         (WebCore::MediaPlayerPrivate::dataRate):
144         (WebCore::MediaPlayerPrivate::networkState):
145         (WebCore::MediaPlayerPrivate::readyState):
146         (WebCore::MediaPlayerPrivate::maxTimeBuffered):
147         (WebCore::MediaPlayerPrivate::maxTimeSeekable):
148         (WebCore::MediaPlayerPrivate::maxTimeLoaded):
149         (WebCore::MediaPlayerPrivate::bytesLoaded):
150         (WebCore::MediaPlayerPrivate::totalBytesKnown):
151         (WebCore::MediaPlayerPrivate::totalBytes):
152         (WebCore::MediaPlayerPrivate::cancelLoad):
153         (WebCore::MediaPlayerPrivate::updateStates):
154         (WebCore::MediaPlayerPrivate::loadStateChanged):
155         (WebCore::MediaPlayerPrivate::rateChanged):
156         (WebCore::MediaPlayerPrivate::sizeChanged):
157         (WebCore::MediaPlayerPrivate::timeChanged):
158         (WebCore::MediaPlayerPrivate::volumeChanged):
159         (WebCore::MediaPlayerPrivate::didEnd):
160         (WebCore::MediaPlayerPrivate::loadingFailed):
161         (WebCore::MediaPlayerPrivate::setRect):
162         (WebCore::MediaPlayerPrivate::setVisible):
163         (WebCore::MediaPlayerPrivate::paint):
164         (WebCore::MediaPlayerPrivate::getSupportedTypes):
165         (WebCore::MediaPlayerPrivate::createGSTPlayBin):
166         * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h: Copied from WebCore/platform/graphics/gtk/MoviePrivateGStreamer.h.
167         * platform/graphics/gtk/MoviePrivateGStreamer.cpp: Removed.
168         * platform/graphics/gtk/MoviePrivateGStreamer.h: Removed.
169         * platform/graphics/mac/MediaPlayerPrivateQTKit.h: Copied from WebCore/platform/graphics/mac/MoviePrivateQTKit.h.
170         * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: Copied from WebCore/platform/graphics/mac/MoviePrivateQTKit.mm.
171         (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
172         (WebCore::MediaPlayerPrivate::~MediaPlayerPrivate):
173         (WebCore::MediaPlayerPrivate::createQTMovie):
174         (WebCore::MediaPlayerPrivate::createQTMovieView):
175         (WebCore::MediaPlayerPrivate::createQTTime):
176         (WebCore::MediaPlayerPrivate::load):
177         (WebCore::MediaPlayerPrivate::play):
178         (WebCore::MediaPlayerPrivate::pause):
179         (WebCore::MediaPlayerPrivate::duration):
180         (WebCore::MediaPlayerPrivate::currentTime):
181         (WebCore::MediaPlayerPrivate::seek):
182         (WebCore::MediaPlayerPrivate::doSeek):
183         (WebCore::MediaPlayerPrivate::cancelSeek):
184         (WebCore::MediaPlayerPrivate::seekTimerFired):
185         (WebCore::MediaPlayerPrivate::setEndTime):
186         (WebCore::MediaPlayerPrivate::addCuePoint):
187         (WebCore::MediaPlayerPrivate::removeCuePoint):
188         (WebCore::MediaPlayerPrivate::clearCuePoints):
189         (WebCore::MediaPlayerPrivate::startCuePointTimerIfNeeded):
190         (WebCore::MediaPlayerPrivate::cuePointTimerFired):
191         (WebCore::MediaPlayerPrivate::paused):
192         (WebCore::MediaPlayerPrivate::seeking):
193         (WebCore::MediaPlayerPrivate::naturalSize):
194         (WebCore::MediaPlayerPrivate::hasVideo):
195         (WebCore::MediaPlayerPrivate::setVolume):
196         (WebCore::MediaPlayerPrivate::setMuted):
197         (WebCore::MediaPlayerPrivate::setRate):
198         (WebCore::MediaPlayerPrivate::dataRate):
199         (WebCore::MediaPlayerPrivate::networkState):
200         (WebCore::MediaPlayerPrivate::readyState):
201         (WebCore::MediaPlayerPrivate::maxTimeBuffered):
202         (WebCore::MediaPlayerPrivate::maxTimeSeekable):
203         (WebCore::MediaPlayerPrivate::maxTimeLoaded):
204         (WebCore::MediaPlayerPrivate::bytesLoaded):
205         (WebCore::MediaPlayerPrivate::totalBytesKnown):
206         (WebCore::MediaPlayerPrivate::totalBytes):
207         (WebCore::MediaPlayerPrivate::cancelLoad):
208         (WebCore::MediaPlayerPrivate::updateStates):
209         (WebCore::MediaPlayerPrivate::loadStateChanged):
210         (WebCore::MediaPlayerPrivate::rateChanged):
211         (WebCore::MediaPlayerPrivate::sizeChanged):
212         (WebCore::MediaPlayerPrivate::timeChanged):
213         (WebCore::MediaPlayerPrivate::volumeChanged):
214         (WebCore::MediaPlayerPrivate::didEnd):
215         (WebCore::MediaPlayerPrivate::setRect):
216         (WebCore::MediaPlayerPrivate::setVisible):
217         (WebCore::MediaPlayerPrivate::paint):
218         (WebCore::MediaPlayerPrivate::getSupportedTypes):
219         (-[WebCoreMovieObserver initWithCallback:WebCore::]):
220         * platform/graphics/mac/MoviePrivateQTKit.h: Removed.
221         * platform/graphics/mac/MoviePrivateQTKit.mm: Removed.
222         * rendering/RenderMedia.cpp:
223         (WebCore::RenderMedia::player):
224         * rendering/RenderMedia.h:
225         * rendering/RenderVideo.cpp:
226         (WebCore::RenderVideo::RenderVideo):
227         (WebCore::RenderVideo::~RenderVideo):
228         (WebCore::RenderVideo::videoSizeChanged):
229         (WebCore::RenderVideo::paintReplaced):
230         (WebCore::RenderVideo::layout):
231         (WebCore::RenderVideo::updateFromElement):
232         (WebCore::RenderVideo::updatePlayer):
233         * rendering/RenderVideo.h:
234
235 2007-12-06  Geoffrey Garen  <ggaren@apple.com>
236
237         Build fix: access global object directly.
238
239         * plugins/win/PluginViewWin.cpp:
240         (WebCore::PluginViewWin::bindingInstance):
241
242 2007-12-06  Mark Rowe  <mrowe@apple.com>
243
244         Reviewed by Eric.
245
246         Fix bug spotted by GCC 4.2.
247
248         * bindings/js/kjs_window.cpp:
249         (KJS::allowPopUp): Remove extraneous semicolon that completely changed the meaning of allowPopUp.
250
251 2007-12-06  Holger Hans Peter Freyther <holger.freyther@trolltech.com>
252
253         Reviewed by Alp Toker.
254
255         http://bugs.webkit.org/show_bug.cgi?id=16173
256         Licensing change
257
258         Change license from BSD to LGPL.
259
260         * platform/gtk/FileSystemGtk.cpp:
261
262 2007-12-05  Rob Buis  <buis@kde.org>
263
264         Reviewed by Mitz.
265
266         http://bugs.webkit.org/show_bug.cgi?id=15289
267         WebKit does not respect clip paths of a 0x0 rect
268
269         Make empty clip paths clip the whole referencing graphic.
270
271         * svg/SVGClipPathElement.cpp:
272         (WebCore::SVGClipPathElement::canvasResource):
273         * svg/graphics/SVGResourceClipper.h:
274         (WebCore::ClipDataList::isEmpty):
275
276 2007-12-05  Darin Adler  <darin@apple.com>
277
278         Reviewed by Maciej.
279
280         - fix http://bugs.webkit.org/show_bug.cgi?id=16266
281           <rdar://problem/5625279> REGRESSION: crash loading CNN.com at
282           Interpreter::createObjectsForGlobalObjectProperties()
283
284         I don't know how to reproduce this in a test.
285
286         * bindings/js/JSDocumentCustom.cpp: (WebCore::JSDocument::mark):
287         Call JSEventTargetNode::mark instead of DOMObject::mark. There's no difference
288         right now, but it's best to call your base class, not your base's base.
289
290         * bindings/js/kjs_events.h: Removed unneeded virtual from the
291         JSUnprotectedEventListener::mark() function; it neither derives from or is
292         derived from anyone else with a mark() function so there's no need for virtual.
293
294         * bindings/js/kjs_window.cpp: (KJS::Window::mark): Call JSGlobalObject::mark,
295         not JSObject::mark. This is the actual bug fix.
296
297 2007-12-05  Pierre-Luc Beaudoin  <pierre-luc.beaudoin@collabora.co.uk>
298
299         http://bugs.webkit.org/show_bug.cgi?id=16145
300         [gtk] Implement media support in GTK backend
301
302         Reviewed by Alp Toker.
303
304         Remove old comments, fix variable names, match WebKit coding style.
305
306         * platform/graphics/gtk/MoviePrivateGStreamer.cpp:
307         (WebCore::moviePrivateEOSCallback):
308         (WebCore::MoviePrivate::MoviePrivate):
309         (WebCore::MoviePrivate::load):
310         (WebCore::MoviePrivate::play):
311         (WebCore::MoviePrivate::pause):
312         (WebCore::MoviePrivate::currentTime):
313         (WebCore::MoviePrivate::seek):
314         (WebCore::MoviePrivate::cancelSeek):
315         (WebCore::MoviePrivate::seeking):
316         (WebCore::MoviePrivate::naturalSize):
317         (WebCore::MoviePrivate::setVolume):
318         (WebCore::MoviePrivate::setMuted):
319         (WebCore::MoviePrivate::maxTimeBuffered):
320         (WebCore::MoviePrivate::bytesLoaded):
321         (WebCore::MoviePrivate::totalBytesKnown):
322         (WebCore::MoviePrivate::totalBytes):
323         (WebCore::MoviePrivate::updateStates):
324         (WebCore::MoviePrivate::didEnd):
325         (WebCore::MoviePrivate::paint):
326         (WebCore::MoviePrivate::createGSTPlayBin):
327         * platform/graphics/gtk/MoviePrivateGStreamer.h:
328
329 2007-12-05  Mark Rowe  <mrowe@apple.com>
330
331         Speculative wx build fix.  Add PlugInInfoStore::pluginNameForMIMEType to the temporary link stubs.
332
333         * platform/wx/TemporaryLinkStubs.cpp:
334
335 2007-12-05  Alp Toker  <alp@atoker.com>
336
337         Rubber stamped by Mark Rowe.
338
339         Remove DEPENDPATH on the generated sources directory. This causes
340         trouble and is no longer necessary following the glib-genmarshal
341         generator split.
342
343         * WebCore.pro:
344
345 2007-12-04  Geoffrey Garen  <ggaren@apple.com>
346
347         Reviewed by Darin Adler.
348
349         Third step in refactoring JSGlobalObject: Moved data members and data
350         member access from Interpreter to JSGlobalObject. Changed Interpreter
351         member functions to static functions. Same for the subclass, 
352         ScriptInterpreter.
353         
354         This is a big change, but it's mostly code motion and renaming.
355         
356 2007-12-05  Darin Adler  <darin@apple.com>
357
358         "Reviewed" by Geoff.
359
360         * loader/FrameLoader.cpp:
361         (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Removed assertion.
362         (WebCore::FrameLoader::dispatchDidCommitLoad): This one too.
363         The assertions are firing like crazy. Not sure why yet.
364
365 2007-12-05  Darin Adler  <darin@apple.com>
366
367         Reviewed by Adam Roben.
368
369         - fix http://bugs.webkit.org/show_bug.cgi?id=16306
370           Assertion failed in WebCore/loader/FrameLoader.cpp:4642
371
372         * loader/FrameLoader.cpp:
373         (WebCore::FrameLoader::dispatchDidCommitLoad): Check m_creatingInitialEmptyDocument
374         and don't deliver the client call in that case.
375
376 2007-12-05  Mark Rowe  <mrowe@apple.com>
377
378         Reviewed by Kevin Decker.
379
380         Fix 64-bit debug build.
381
382         * platform/text/mac/TextCodecMac.cpp:
383         (WebCore::TextCodecMac::decode): OSStatus is a long for 32-bit but int on 64-bit,
384         so we need to cast it to be able to use a single format specifier on both.
385
386 2007-12-05  Kevin Decker  <kdecker@apple.com>
387
388         Reviewed by Hyatt.
389
390         <rdar://problem/5613106> Acordex: REGRESSION (Tiger-Leopard): plug-ins can no longer take over TIFF images (affects uspto.gov)
391        
392         * loader/FrameLoader.cpp:
393         (WebCore::FrameLoader::shouldUsePlugin): Allow plug-ins (with the exception of QuickTime) to
394         takeover TIFF once again.
395         
396 2007-12-05  Luca Bruno  <lethalman88@gmail.com>
397
398         Reviewed by Alp Toker.
399
400         http://bugs.webkit.org/show_bug.cgi?id=16290
401         [GTK] Pasting clipboard in rich text.
402
403         * platform/gtk/PasteboardGtk.cpp:
404         (Pasteboard::documentFragment): Implement rich text paste support.
405
406 2007-12-05  Adele Peterson  <adele@apple.com>
407
408         Reviewed by Hyatt.
409
410         Reverting fix for <rdar://problem/5499918> REGRESSION: insertion point in input field with custom border cuts holes in focus ring interior edges
411
412         We need to just fix the underlying focus ring repaint problem.
413
414         * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::setStyle):
415
416 2007-12-04  Kevin McCullough  <kmccullough@apple.com>
417
418         Reviewed by Darin.
419
420         - <rdar://5621435>
421         - Security Fix. Instead of having it off by default, WebKit now must
422         explicitly turn off local-resource restriction when needed for backwards
423         compatibility reasons.
424
425         * loader/FrameLoader.cpp:
426
427 2007-12-05  Adam Roben  <aroben@apple.com>
428
429         Set the menu item identifier for all menu items
430
431         This allows WebKit clients to distinguish between submenus in the
432         context menu.
433
434         Reviewed by Darin.
435
436         No test possible.
437
438         * platform/win/ContextMenuItemWin.cpp:
439         (WebCore::ContextMenuItem::ContextMenuItem):
440
441 2007-12-05  Dan Bernstein  <mitz@apple.com>
442
443         Reviewed by Darin Adler.
444
445         - WebCore part of fixing <rdar://problem/5111082> Flash popup video ad doesn't close when clicked at http://www.firestonecompleteautocare.com/
446
447         * manual-tests/nested-plug-ins.html: Added.
448         * manual-tests/resources/nested-plug-ins-inner-frame.html: Added.
449         * manual-tests/resources/nested-plug-ins-outer-frame.html: Added.
450         * platform/ScrollView.h:
451         * platform/Widget.h:
452         (WebCore::Widget::attachToWindow): Added. Tells the widget that it is connected
453         via visible ScrollViews to the root ScrollView of the WebView.
454         (WebCore::Widget::detachFromWindow): Added. Tells the widget that it is no longer
455         connected via visible ScrollViews to the root ScrollView of the WebView.
456         * platform/win/ScrollViewWin.cpp:
457         (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate): Added
458         m_visible and m_attachedToWindow members.
459         (WebCore::ScrollView::attachToWindow): Added. Attaches all children if this
460         view is visible.
461         (WebCore::ScrollView::detachFromWindow): Added. Detaches all children if this
462         view is visible (otherwise they would be detached already).
463         (WebCore::ScrollView::show): Added. Attaches all children if this view
464         is attached.
465         (WebCore::ScrollView::hide): Added. Detaches all children if this view
466         is attached (otherwise they would be detached already).
467         (WebCore::ScrollView::isAttachedToWindow): Added.
468         * platform/win/WidgetWin.cpp:
469         (WebCore::Widget::setParent): Added calls to attachToWindow() and detachFromWindow()
470         depending on whether the parent is set and attached or not.
471         * plugins/win/PluginViewWin.cpp:
472         (WebCore::PluginViewWin::setFocus):
473         (WebCore::PluginViewWin::show): Changed to show the plug-in only if
474         this view is attached.
475         (WebCore::PluginViewWin::hide): Changed to hide the plug-in only if this
476         view is attached (otherwise it would be hidden already).
477         (WebCore::PluginViewWin::attachToWindow): Added. Shows the plug-in if this view
478         is visible.
479         (WebCore::PluginViewWin::detachFromWindow): Added. Hides the plug-in if this view
480         is visible (otherwise it would be hidden already).
481         (WebCore::PluginViewWin::PluginViewWin):
482         * plugins/win/PluginViewWin.h: Added m_attachedToWindow member.
483
484 2007-12-04  Alp Toker  <alp@atoker.com>
485
486         Potential GTK+ build fix for the glib-genmarshal issue.
487
488         Split the glib-genmarshal qmake generator in two; one for the source
489         file, another for the header.
490
491         * WebCore.pro:
492
493 2007-12-04  Alp Toker  <alp@atoker.com>
494
495         GTK+ build fix.
496
497         * platform/PlugInInfoStore.h:
498
499 2007-12-04  Kevin Decker  <kdecker@apple.com>
500
501         Reviewed by Anders.
502
503         <rdar://problem/5629125> PluginInfoStore needs the ability to return the name of a plug-in for a given MIME type
504
505         * page/mac/WebCoreViewFactory.h: Added pluginNameForMIMEType: method.
506         * platform/PlugInInfoStore.h:
507         * platform/gtk/TemporaryLinkStubs.cpp: Added stub version of pluginNameForMIMEType.
508         (PlugInInfoStore::pluginNameForMIMEType):
509         * platform/mac/PlugInInfoStoreMac.mm:
510         (WebCore::PlugInInfoStore::pluginNameForMIMEType): Added.
511         * platform/qt/PlugInInfoStoreQt.cpp: 
512         (WebCore::PlugInInfoStore::pluginNameForMIMEType): Added stub version of pluginNameForMIMEType.
513         * plugins/win/PlugInInfoStoreWin.cpp: 
514         (WebCore::PlugInInfoStore::pluginNameForMIMEType): Added stub version of pluginNameForMIMEType.
515
516 2007-12-04  Adele Peterson  <adele@apple.com>
517
518         Reviewed by Darin.
519
520         Fix for <rdar://problem/5499918> REGRESSION: insertion point in input field with custom border cuts holes in focus ring interior edges
521
522         * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::setStyle):
523         Adjust outline-offset so it doesn't extend beyond the border to interfere with typing
524
525 2007-12-04  Anders Carlsson  <andersca@apple.com>
526
527         Reviewed by Jon.
528
529         Always call NPP_NewStream, NPP_DestroyStream and NPP_URLNotify for JavaScript
530         result streams, even if the JavaScript expression threw an exception or returned undefined.
531         This matches what Firefox does.
532         
533         * plugins/win/PluginStreamWin.cpp:
534         (WebCore::PluginStreamWin::sendJavaScriptStream):
535         Handle the result string being null, and set the correct NPReason if it is.
536         
537         * plugins/win/PluginViewWin.cpp:
538         (WebCore::PluginViewWin::performRequest):
539         Always send the JavaScript stream, regardless of the result could be converted to a string or not.
540
541 2007-12-04  Adele Peterson  <adele@apple.com>
542
543         Reviewed by Hyatt.
544
545         Fix for <rdar://problem/5622464> controls should show up for audio element
546
547         * css/html4.css: Added styles for audio controls.  This will need to be refined, since we may want a different look for audio controls.
548         * html/HTMLMediaElement.cpp:
549         (WebCore::HTMLMediaElement::attributeChanged): When the controls attribute changes detach and reattach if necessary. 
550         (WebCore::HTMLMediaElement::rendererIsNeeded): Added.
551         (WebCore::HTMLMediaElement::createRenderer): Added.  Uses RenderMedia.
552         * html/HTMLMediaElement.h:
553         * rendering/RenderMedia.cpp: (WebCore::RenderMedia::RenderMedia): Added constructor that doesn't take intrinsic size.
554         * rendering/RenderMedia.h:
555
556 2007-12-04  Anders Carlsson  <andersca@apple.com>
557
558         Reviewed by Sam.
559
560         Add isSafeScript(const JSGlobalObject*) so we won't get the JSGlobalObject
561         implementation, which always returns true(!).
562         
563         * bindings/js/kjs_window.cpp:
564         (KJS::Window::isSafeScript):
565         Make the static isSafeScript method take two JSGlobalObjects.
566         
567         * bindings/js/kjs_window.h:
568         (KJS::Window::isSafeScript):
569         Implement isSafeScript and have it call the static method.
570
571 2007-11-27  Adam Roben  <aroben@apple.com>
572
573         Make the implementation of Frame::setNeedsReapplyStyles cross-platform
574
575         Reviewed by Hyatt.
576
577         No change in functionality.
578
579         * page/Frame.cpp:
580         (WebCore::Frame::setNeedsReapplyStyles): Added. Invalidates the
581         FrameView so that FrameView::layout will be called, which ends up
582         calling reapplyStyles.
583         (WebCore::Frame::needsReapplyStyles): Added.
584         (WebCore::Frame::reapplyStyles): Renamed from reparseConfiguration.
585         (WebCore::FramePrivate::FramePrivate):
586         * page/Frame.h:
587         * page/FramePrivate.h: Added new boolean member.
588         * page/FrameView.cpp:
589         (WebCore::FrameView::layout): Call Frame::reapplyStyles if needed.
590         (WebCore::FrameView::needsLayout): Say that we need layout if the
591         Frame needs styles reapplied.
592         * page/mac/WebCoreFrameBridge.h: Removed setNeedsReapplyStyles.
593         * page/mac/WebCoreFrameBridge.mm:
594         (-[WebCoreFrameBridge reapplyStylesForDeviceType:]): Updated for
595         rename.
596
597         * bridge/win/FrameWin.cpp: Removed Frame::setNeedsReapplyStyles.
598         * page/gtk/FrameGtk.cpp: Ditto.
599         * page/mac/FrameMac.mm: Ditto.
600         * page/qt/FrameQt.cpp: Ditto.
601         * platform/wx/TemporaryLinkStubs.cpp: Ditto.
602
603 2007-12-04  Antti Koivisto  <antti@apple.com>
604
605         Reviewed by Adele.
606
607         Pass intrinsic size to the base class.
608
609         * rendering/RenderMedia.cpp:
610         (WebCore::RenderMedia::RenderMedia):
611
612 2007-12-04  Adele Peterson  <adele@apple.com>
613
614         Reviewed by Darin.
615
616         Fix for <rdar://problem/5578209> REGRESSION: Crash in WebCore::DeprecatedValueListImpl::Private::copyList when going back on zoomerang.com/survey
617
618         * loader/FrameLoader.cpp: (WebCore::FrameLoader::scheduleHistoryNavigation):
619           When the new url is exactly the same as the old url, don't treat it like a fragment navigation, since its going to cause a reload.
620
621 2007-12-04  Darin Adler  <darin@apple.com>
622
623         Reviewed by Kevin Decker.
624
625         - added an assertion for a situation that leads to a Safari assertion:
626           a commit that is not followed by a load completion
627
628         - removed some unneeded FrameLoader stuff -- maybe some day we'll get this
629           class cut down to size
630
631         * loader/FrameLoader.cpp:
632         (WebCore::FrameLoader::FrameLoader): Added boolean for assertion.
633         (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Added code to assert
634         that we already sent a commit before sending a complete.
635         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy): Call
636         client directly instead of indirecting through a function.
637         (WebCore::FrameLoader::loadItem): Ditto.
638         (WebCore::FrameLoader::goToItem): Ditto.
639         (WebCore::FrameLoader::addHistoryForCurrentLocation): Get the private browsing
640         state from Settings instead of FrameLoaderClient. Also call client directly
641         instead of indirecting through a function.
642         (WebCore::FrameLoader::updateHistoryForReload): Call client directly instead
643         of indirecting through a function.
644         (WebCore::FrameLoader::dispatchDidCommitLoad): Added code to assert
645         that we did not yet send a commit and set the flag that will be used to check
646         that we don't do this twice in a row without an intervening completion call.
647
648         * loader/FrameLoader.h: Added a boolean for the assertion. Removed six
649         now-unneeded functions.
650
651         * loader/FrameLoaderClient.h: Removed now-unneeded privateBrowsingEnabled function.
652
653         * loader/ResourceLoader.cpp: (WebCore::ResourceLoader::willCacheResponse): Get
654         the private browsing state from Settings instead of FrameLoaderClient.
655
656         * svg/graphics/SVGImageEmptyClients.h: Removed obsolete privateBrowsingEnabled.
657
658 2007-12-03  Antti Koivisto  <antti@apple.com>
659
660         Reviewed by Adele.
661         
662         Fix <rdar://problem/5624802> 
663         Controller displays outside of <video> element when width and height aren't specified 
664
665         - Explicitly adjust size of the controls tree root.
666         - Switch RenderMedia base class back to RenderReplaced. It is easier to manage the shadow tree
667           by hand. This also allows better code sharing with other replaced element classes.
668         - Move duplicated layout and painting code from subclasses up to RenderReplaced.
669
670         Test: media/video-controls-rendering.html
671
672         * rendering/RenderHTMLCanvas.cpp:
673         (WebCore::RenderHTMLCanvas::paintReplaced):
674         * rendering/RenderHTMLCanvas.h:
675             Share code.
676         * rendering/RenderImage.cpp:
677         (WebCore::RenderImage::paintReplaced):
678         (WebCore::RenderImage::minimumReplacedHeight):
679         * rendering/RenderImage.h:
680             Share code.
681         * rendering/RenderMedia.cpp:
682         (WebCore::RenderMediaControlShadowRoot::RenderMediaControlShadowRoot):
683         (WebCore::RenderMediaControlShadowRoot::setParent):
684             Add a subclass just to get through encapsulation to use setParent().
685         (WebCore::MediaControlShadowRootElement::MediaControlShadowRootElement):
686             Move initialization to the constructor.
687         (WebCore::RenderMedia::RenderMedia):
688         (WebCore::RenderMedia::~RenderMedia):
689         (WebCore::RenderMedia::layout):
690             Resize and layout the controller root by hand.
691         (WebCore::RenderMedia::firstChild):
692         (WebCore::RenderMedia::lastChild):
693         (WebCore::RenderMedia::removeChild):
694             Support one child renderer for controls.
695         (WebCore::RenderMedia::createControlsShadowRoot):
696         * rendering/RenderMedia.h:
697         (WebCore::RenderMedia::isMedia):
698             Switch base class to RenderReplaced, delete the now unnecessary stuff.
699         * rendering/RenderReplaced.cpp:
700         (WebCore::RenderReplaced::layout):
701         (WebCore::RenderReplaced::paint):
702         * rendering/RenderReplaced.h:
703         (WebCore::RenderReplaced::minimumReplacedHeight):
704         (WebCore::RenderReplaced::paintReplaced):
705             Share code.
706         * rendering/RenderVideo.cpp:
707         (WebCore::RenderVideo::videoSizeChanged):
708             Simplify, just request relayout.
709         (WebCore::RenderVideo::paintReplaced):
710         (WebCore::RenderVideo::layout):
711         * rendering/RenderVideo.h:
712             Share code.
713
714 2007-12-04  Michael Natterer  <mitch@imendio.com>
715
716         Reviewed by Alp Toker.
717
718         * WebCore.pro: fix build of webkit-marshal by building the
719         functions into a separate .cpp file instead of including them in
720         the header. This way we can use the marshallers from more than one
721         file without using bad hacks.
722
723         Add the generated sources directory to DEPENDPATH.
724
725 2007-12-04  Pierre-Luc Beaudoin  <pierre-luc.beaudoin@collabora.co.uk>
726
727         Reviewed by Alp Toker.
728
729         http://bugs.webkit.org/show_bug.cgi?id=16145
730         [gtk] Implement media support in GTK backend
731
732         This implements the media tags of HTML5 on the GTK+ port based on the 
733         Mac port. Media tests pass although some tests required a small modifications: 
734         As per the HTML5 spec, the loading of the clip should start only after 
735         all script are done.  But in the case of the tests, the loading starts 
736         before some callbacks get registered.  This has been discussed with 
737         Antti Koivisto, and the tests should be updated.
738
739         There is only one known issue: one time in 10 tries, loading a buffered 
740         clip will never end buffering.  The buffering will stall at 97% for no 
741         apparent reasons.  Reloading the page usually works around the problem.
742         On the GStreamer side, some codecs don't return correct values, therefore
743         they make the tests fail.  For instance H.264 will make the video-end 
744         test fail.  This should be fixed in GStreamer 0.10.15.
745
746         This version displays video in a pop up window.  A place holder is drawn
747         on the page where the video should appear.
748
749         By default, it is turned off in WebCore.pro until GStreamer/X
750         detection issues are sorted out.
751
752         * WebCore.pro:
753         Disable video for now
754         * platform/Logging.cpp:
755         (WebCore::):
756         * platform/Logging.h:
757         Added a logging level for Media stuff
758         * platform/graphics/Movie.cpp:
759         * platform/graphics/gtk/MoviePrivateGStreamer.cpp: Added.
760         (WebCore::moviePrivateErrorCallback):
761         (WebCore::moviePrivateEOSCallback):
762         (WebCore::moviePrivateStateCallback):
763         (WebCore::moviePrivateBufferingCallback):
764         (WebCore::moviePrivateWindowIDCallback):
765         (WebCore::MoviePrivate::MoviePrivate):
766         (WebCore::MoviePrivate::~MoviePrivate):
767         (WebCore::MoviePrivate::load):
768         (WebCore::MoviePrivate::play):
769         (WebCore::MoviePrivate::pause):
770         (WebCore::MoviePrivate::duration):
771         (WebCore::MoviePrivate::currentTime):
772         (WebCore::MoviePrivate::seek):
773         (WebCore::MoviePrivate::setEndTime):
774         (WebCore::MoviePrivate::addCuePoint):
775         (WebCore::MoviePrivate::removeCuePoint):
776         (WebCore::MoviePrivate::clearCuePoints):
777         (WebCore::MoviePrivate::startCuePointTimerIfNeeded):
778         (WebCore::MoviePrivate::cancelSeek):
779         (WebCore::MoviePrivate::cuePointTimerFired):
780         (WebCore::MoviePrivate::paused):
781         (WebCore::MoviePrivate::seeking):
782         (WebCore::MoviePrivate::naturalSize):
783         (WebCore::MoviePrivate::hasVideo):
784         (WebCore::MoviePrivate::setVolume):
785         (WebCore::MoviePrivate::setMuted):
786         (WebCore::MoviePrivate::setRate):
787         (WebCore::MoviePrivate::dataRate):
788         (WebCore::MoviePrivate::networkState):
789         (WebCore::MoviePrivate::readyState):
790         (WebCore::MoviePrivate::maxTimeBuffered):
791         (WebCore::MoviePrivate::maxTimeSeekable):
792         (WebCore::MoviePrivate::maxTimeLoaded):
793         (WebCore::MoviePrivate::bytesLoaded):
794         (WebCore::MoviePrivate::totalBytesKnown):
795         (WebCore::MoviePrivate::totalBytes):
796         (WebCore::MoviePrivate::cancelLoad):
797         (WebCore::MoviePrivate::updateStates):
798         (WebCore::MoviePrivate::loadStateChanged):
799         (WebCore::MoviePrivate::rateChanged):
800         (WebCore::MoviePrivate::sizeChanged):
801         (WebCore::MoviePrivate::timeChanged):
802         (WebCore::MoviePrivate::volumeChanged):
803         (WebCore::MoviePrivate::didEnd):
804         (WebCore::MoviePrivate::loadingFailed):
805         (WebCore::MoviePrivate::setRect):
806         (WebCore::MoviePrivate::setVisible):
807         (WebCore::MoviePrivate::paint):
808         (WebCore::MoviePrivate::getSupportedTypes):
809         (WebCore::MoviePrivate::createGSTPlayBin):
810         * platform/graphics/gtk/MoviePrivateGStreamer.h: Added.
811
812 2007-12-04  Holger Hans Peter Freyther <holger.freyther@trolltech.com>
813
814         Reviewed by Simon.
815
816         * Implement the InspectorClient for the Qt port
817         * It does not support highlighting of nodes yet
818         * Use QRC to open the internal page. The important thing is the
819         '/' in the URL to make WebCore::Document::completeURL behave the
820         way we want.
821         * To make the InspectorClient work we will have to mark qrc as secure.
822
823         * WebCore.pro:
824         * loader/FrameLoader.cpp:
825         (WebCore::localSchemes):
826         * page/inspector/WebKit.qrc: Added.
827
828 2007-12-04  Alp Toker  <alp@atoker.com>
829
830         Rubber stamped by Mark Rowe.
831
832         Remove two unused variables to silence warnings.
833
834         * html/CanvasRenderingContext2D.cpp:
835         (WebCore::CanvasRenderingContext2D::fill):
836         (WebCore::CanvasRenderingContext2D::stroke):
837
838 2007-12-03  Dan Bernstein  <mitz@apple.com>
839
840         Reviewed by Darin Adler.
841
842         - fix <rdar://problem/5134044> fast/frames/frame-src-attribute.html fails on Windows
843
844         * platform/win/ScrollViewWin.cpp:
845         (WebCore::ScrollView::visibleWidth): Do not return negative values.
846         (WebCore::ScrollView::visibleHeight): Ditto.
847
848 2007-12-03  Dan Bernstein  <mitz@apple.com>
849
850         Reviewed by Dave Hyatt.
851
852         - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame
853
854         Test: fast/events/resize-subframe.html
855
856         * page/FrameView.cpp:
857         (WebCore::FrameViewPrivate::FrameViewPrivate): Added a timer used when
858         deferring tasks that need to be done after layout.
859         (WebCore::FrameViewPrivate::reset):
860         (WebCore::FrameView::~FrameView):
861         (WebCore::FrameView::layout): Moved the updating of widget positions,
862         loading plug-ins and sending events queued up during layout into
863         performPostLayoutTasks(). performPostLayoutTasks() is called after
864         layout unless the layout was triggered by a previous layout's post-
865         layout tasks. In the latter case, performPostLayoutTasks() is scheduled
866         to run later.
867         (WebCore::FrameView::performPostLayoutTasks): Performs work that needs
868         to be done after layout but which can result in arbitrary code
869         execution and therefore may re-invalidate the layout. This includes
870         updating widget positions, loading plug-ins, and dispatching layout-
871         related DOM events (scroll, overflow and resize).
872         (WebCore::FrameView::postLayoutTimerFired):
873         (WebCore::FrameView::dispatchScheduledEvents):
874         * page/FrameView.h:
875         * page/mac/WebCoreFrameBridge.h:
876         * page/mac/WebCoreFrameBridge.mm: Removed -sendResizeEvent since this
877         is handled by FrameView now.
878
879 2007-12-03  Rob Buis  <buis@kde.org>
880
881         Reviewed by Darin.
882
883         http://bugs.webkit.org/show_bug.cgi?id=15767
884         Text decorations do not respect "visibility" property
885
886         Only paint decorations if visibility is "visible".
887
888         * rendering/SVGInlineTextBox.cpp:
889         (WebCore::SVGInlineTextBox::paintDecoration):
890
891 2007-12-03  Steve Falkenburg  <sfalken@apple.com>
892
893         Fix build.
894
895         * WebCore.vcproj/WebCore.vcproj:
896
897 2007-12-03  Nikolas Zimmermann  <zimmermann@kde.org>
898
899         Reviewed by David.
900
901         Fixes: http://bugs.webkit.org/show_bug.cgi?id=15645
902         Don't allow selectors to interfere with the SVG shadow tree (<use> internal non-exposed tree).
903
904         * css/CSSStyleSelector.cpp:
905         (WebCore::CSSStyleSelector::checkSelector):
906
907 2007-12-03  Dan Bernstein  <mitz@apple.com>
908
909         Reviewed by Adam Roben.
910
911         - fix <rdar://problem/5538651> REGRESSSION: domfuzz: null deref in WebCore::Document::canReplaceChild
912
913         Test: fast/dom/Document/replaceChild-null-oldChild.html
914
915         * dom/Document.cpp:
916         (WebCore::Document::canReplaceChild):
917
918 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
919
920         Reviewed by Simon.
921
922         * Avoid crashes by making sure everything is layouted before
923         we start painting. This avoids a crash in Widget::invalidateRect
924         because QPainter::begin would fail
925         * The QWebFrame::layout() methods and calls are left untouched because
926         this would be an API decision.
927         
928
929         WARNING: NO TEST CASES ADDED OR CHANGED
930
931         * page/FrameView.cpp:
932         (WebCore::FrameView::updateControlTints):
933         * page/FrameView.h:
934         * platform/ScrollView.h:
935         * platform/qt/ScrollViewQt.cpp:
936         (WebCore::ScrollView::children):
937
938 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
939
940         Reviewed by Simon.
941
942         * Implement GraphicsContext::fillRoundedRect similiar to the
943         CoreGraphics implementation only addPath is not called this
944         seems to be only needed for CoreGraphics.
945         
946
947         WARNING: NO TEST CASES ADDED OR CHANGED
948
949         * platform/graphics/qt/GraphicsContextQt.cpp:
950         (WebCore::GraphicsContext::fillRoundedRect):
951
952 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
953
954         Reviewed by Simon.
955
956         * Coding Style fixes
957         
958
959         WARNING: NO TEST CASES ADDED OR CHANGED
960
961         * platform/qt/ScrollViewQt.cpp:
962         (WebCore::ScrollView::addChild):
963         (WebCore::ScrollView::removeChild):
964
965 2007-12-03  Alp Toker  <alp@atoker.com>
966
967         Reviewed by Mark Rowe.
968
969         Don't delete the decoder if it's already been created. The one we have
970         is fine.
971
972         Cairo image cleanups. Nothing substantial.
973
974         Notify ImageObservers where appropriate.
975
976         * platform/graphics/cairo/ImageCairo.cpp:
977         (WebCore::BitmapImage::draw):
978         (WebCore::Image::drawPattern):
979         * platform/graphics/cairo/ImageSourceCairo.cpp:
980         (WebCore::ImageSource::setData):
981         * platform/graphics/gtk/ImageGtk.cpp:
982
983 2007-12-03  Simon Hausmann  <hausmann@webkit.org>
984
985         Reviewed by Lars.
986
987         Fixed crash when rendering form elements with Qt 4.4
988
989         QPainter::device() is not guaranteed to return a QWidget, so do the safe "cast" with the
990         help of QPaintDevice::devType().
991         Also fall back to the QApplication::style() if we don't have a widget.
992
993         * platform/qt/RenderThemeQt.cpp:
994         (WebCore::RenderThemeQt::paintButton):
995         (WebCore::RenderThemeQt::paintTextField):
996         (WebCore::RenderThemeQt::paintMenuList):
997         (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
998
999 2007-12-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1000
1001         Reviewed by Sam Weinig.
1002
1003         * Add FrameLoader::shouldTreatSchemeAsLocal which is similar to
1004         shouldTreatURLAsLocal.
1005         * Make use of FrameLoader::shouldTreatSchemeAsLocal in SecurityOrigin
1006         and do not hardcode "file". This is needed for the WebKit/qt port to make
1007         the Web Inspector work as it using the qrc protocol instead of file.
1008
1009
1010         * loader/FrameLoader.cpp:
1011         (WebCore::FrameLoader::shouldTreatSchemeAsLocal):
1012         * loader/FrameLoader.h:
1013         * platform/SecurityOrigin.cpp:
1014         (WebCore::SecurityOrigin::isSecureTransitionTo):
1015
1016 2007-12-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1017
1018         Rubber stamped by Sam Weinig.
1019
1020         Only add applewebdata to the localSchemes when building for the
1021         mac. This is in preparation of adding qrc for the Qt port there
1022         as well and http://bugs.webkit.org/show_bug.cgi?id=15938.
1023
1024         According to Anders applewebdata is not used on the win port.
1025
1026         * loader/FrameLoader.cpp:
1027         (WebCore::localSchemes):
1028
1029 2007-12-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1030
1031         Rubber stamped by Sam Weinig.
1032
1033         Fix a typo. It is contains and not containts
1034
1035         * loader/FrameLoader.cpp:
1036
1037 2007-12-03  Alp Toker  <alp@atoker.com>
1038
1039         Add another missing DEPENDPATH.
1040
1041         Noticed when fixing the build.
1042
1043         * WebCore.pro:
1044
1045 2007-12-03  Adam Roben  <aroben@apple.com>
1046
1047         Speculative Windows build fix
1048
1049         * plugins/win/PluginViewWin.cpp:
1050         (WebCore::getString):
1051
1052 2007-12-03  Geoffrey Garen  <ggaren@apple.com>
1053
1054         Build fix: added symbols to the right .exp file.
1055
1056         * WebCore.base.exp:
1057
1058 2007-12-02  Geoffrey Garen  <ggaren@apple.com>
1059
1060         Reviewed by Eric Seidel.
1061
1062         Updated to match the JavaScriptCore change to move virtual methods from
1063         Interpreter to JSGlobalObject.
1064         
1065         Moved virtual ScriptInterpreter functions to Window.
1066
1067 2007-12-02  Darin Adler  <darin@apple.com>
1068
1069         Reviewed by Mitz.
1070
1071         - fix <rdar://problem/5601995> Hang/crash on http://ebay-uk.custhelp.com/
1072
1073         There were two problems here:
1074
1075             1) Incorrect HTMLCollection behavior led to us trying to insert a
1076                new row inside an existing row instead of next to it. The fix for
1077                this is to make HTMLCollection work better for table-related
1078                collections.
1079
1080             2) HTMLTableRowElement::insertCell would return a bad pointer if
1081                the insertion failed. The code should have failed, but not crashed,
1082                so it's worth fixing that too.
1083
1084         While fixing the HTMLCollection issues, I did some clean-up of that
1085         class and its derived classes.
1086
1087         Test: fast/dom/HTMLTableElement/rows.html
1088         Test: fast/dom/HTMLTableElement/tBodies.html
1089         Test: fast/dom/HTMLTableRowElement/cells.html
1090         Test: fast/dom/HTMLTableRowElement/insertCell.html
1091         Test: fast/dom/HTMLTableSectionElement/rows.html
1092
1093         * bindings/js/JSHTMLCollectionCustom.cpp:
1094         (WebCore::toJS): Updated because collectionType() was renamed to type().
1095
1096         * html/HTMLCollection.cpp:
1097         (WebCore::HTMLCollection::HTMLCollection): Updated for data member name
1098         changes. Also added a protected constructor for use by derived classes
1099         that pass in a CollectionInfo.
1100         (WebCore::HTMLCollection::CollectionInfo::copyCacheMap): Moved out of
1101         the header.
1102         (WebCore::isTableSection): Added.
1103         (WebCore::HTMLCollection::itemAfter): Renamed from traverseNextItem,
1104         because the old name was grammatically incorrect and thus a bit confusing.
1105         Changed to operate on Element* instead of Node*, and use 0 to start
1106         rather than passing in the base node (required since the base node can be
1107         a document, which is not an element). Generalized the code that made
1108         NodeChildren not descend into deeper descendants so it can be used for
1109         TRCells, TSectionRows, TableTBodies, and TableRows. Reformatted the
1110         switch statement and got rid of the "found" boolean since we can just
1111         return when we find something. Got rid of the default case, and instead
1112         listed all the enum values. Also changed to use a for loop for clarity.
1113         (WebCore::HTMLCollection::calcLength): Updated for itemAfter changes.
1114         (WebCore::HTMLCollection::item): Ditto.
1115         (WebCore::HTMLCollection::nextItem): Ditto.
1116         (WebCore::HTMLCollection::checkForNameMatch): Updated to take an Element
1117         instead of a Node pointer.
1118         (WebCore::HTMLCollection::namedItem): More of the same.
1119         (WebCore::HTMLCollection::updateNameCache): Ditto.
1120         (WebCore::HTMLCollection::namedItems): Ditto.
1121         (WebCore::HTMLCollection::nextNamedItem): Ditto.
1122         (WebCore::HTMLCollection::tags): Ditto.
1123
1124         * html/HTMLCollection.h: Added a type FormElements, so that the
1125         HTMLFormCollection would not have a type of DocImages, which is what
1126         it previously did. Changed the base parameter to be a PassRefPtr to
1127         make it clear we take ownership of it. Added a comment explaining
1128         why we should change the name CollectionInfo. Made a lot more members
1129         private instead of protected. Renamed traverseNextItem to itemAfter.
1130         Changed most functions to take Element* instead of Node*.
1131
1132         * html/HTMLFormCollection.cpp:
1133         (WebCore::HTMLFormCollection::formCollectionInfo): Added.
1134         (WebCore::HTMLFormCollection::HTMLFormCollection): Updated to pass
1135         collection info into the base class.
1136         (WebCore::HTMLFormCollection::calcLength): Updated to use base() so we
1137         don't need to get at m_base directly.
1138         (WebCore::HTMLFormCollection::item): Same, but for info().
1139         (WebCore::HTMLFormCollection::getNamedItem): Removed unused first
1140         argument.
1141         (WebCore::HTMLFormCollection::getNamedFormItem): Got rid of unneeded
1142         checks that the base is still an element and still a form, since that's
1143         guaranteed.
1144         (WebCore::HTMLFormCollection::nextItem): Use info().
1145         (WebCore::HTMLFormCollection::nextNamedItemInternal): Node instead of
1146         Element, some name changes.
1147         (WebCore::HTMLFormCollection::namedItem): Update for changes elsewhere.
1148         (WebCore::HTMLFormCollection::nextNamedItem): Ditto, also rewrote loop
1149         to be much simpler.
1150         (WebCore::HTMLFormCollection::updateNameCache): More of the same.
1151
1152         * html/HTMLFormCollection.h: Changed constructor to take an
1153         HTMLFormElement, using a PassRefPtr to communicate transfer of
1154         ownership. Made everything private instead of protected. Removed
1155         unneeded override of firstItem. Made getNamedItem and
1156         nextNamedItemInternal non-virtual. Removed unused first argument of
1157         getNamedItem. Added declaration of formCollectionInfo.
1158
1159         * html/HTMLNameCollection.cpp:
1160         (WebCore::HTMLNameCollection::HTMLNameCollection): Updated to pass
1161         collection info into the base class.
1162         (WebCore::HTMLNameCollection::itemAfter): Reformatted a bit and
1163         changed into a for loop.
1164
1165         * html/HTMLNameCollection.h: Updated for name changes. Made function
1166         private instead of public. Used PassRefPtr in constructor.
1167
1168         * html/HTMLOptionsCollection.cpp:
1169         (WebCore::HTMLOptionsCollection::HTMLOptionsCollection): Updated to
1170         pass collection info into the base class.
1171         (WebCore::HTMLOptionsCollection::add): Updated for public/private
1172         changes in the base class.
1173         (WebCore::HTMLOptionsCollection::selectedIndex): Ditto.
1174         (WebCore::HTMLOptionsCollection::setSelectedIndex): Ditto.
1175         (WebCore::HTMLOptionsCollection::setLength): Ditto.
1176
1177         * html/HTMLOptionsCollection.h: Changed constructor parameter to be a
1178         PassRefPtr.
1179
1180         * html/HTMLTableRowElement.cpp:
1181         (WebCore::HTMLTableRowElement::insertCell): Changed code to use RefPtr
1182         and PassRefPtr since this creates a new object. This alone fixed the
1183         crash. Also cleaned up logic a bit to be more readable.
1184
1185         * html/HTMLTableRowElement.h: Changed insertCell to return a PassRefPtr.
1186         Also reordered functions a bit to make things a little more logical and
1187         removed the unused ncols data member.
1188
1189         * html/HTMLTableSectionElement.cpp:
1190         (WebCore::HTMLTableSectionElement::rows): Pass TSectionRows, not
1191         TableRows. This mistake was harmless before because TableRows and
1192         TSectionRows were handled identically inside HTMLCollection, but that is
1193         no longer the case with this fix.
1194
1195         * bindings/scripts/CodeGeneratorJS.pm: Add an include to cope with the
1196         fact that HTMLOptionsCollection no longer includes HTMLOptionElement.
1197         I don't think this really should be a special case -- might be worth
1198         returning later to see if this can be optimized.
1199
1200 2007-12-02  Nikolas Zimmermann  <zimmermann@kde.org>
1201
1202         Reviewed by Adam.
1203
1204         RenderSVGViewportContainer sets wrong width/height.
1205         Share code with RenderSVGContainer in a central calcBounds() function.
1206
1207         Fixes:
1208         - svg/custom/use-css-events.svg (http://bugs.webkit.org/show_bug.cgi?id=15403)
1209         - svg/custom/deep-dynamic-updates.svg
1210         - svg/custom/use-clipped-hit.svg
1211         - svg/custom/image-clipped-hit.svg
1212
1213         * rendering/RenderSVGContainer.cpp:
1214         (WebCore::RenderSVGContainer::layout):
1215         (WebCore::RenderSVGContainer::calcBounds):
1216         * rendering/RenderSVGContainer.h:
1217         * rendering/RenderSVGViewportContainer.cpp:
1218         (WebCore::RenderSVGViewportContainer::layout):
1219
1220 2007-12-02  Brady Eidson <beidson@apple.com>
1221
1222         Reviewed by Darin
1223
1224         databaseChanged notifications were being sent out on the database thread - they need to be on the main thread
1225         like all other notifications we send out!
1226
1227         * platform/SecurityOriginData.cpp:
1228         (WebCore::SecurityOriginData::copy): Add a deep copy method, for when an object thread hops
1229         * platform/SecurityOriginData.h:
1230
1231         * storage/DatabaseTracker.cpp:
1232         (WebCore::notificationMutex):
1233         (WebCore::notificationQueue):
1234         (WebCore::DatabaseTracker::scheduleNotifyDatabaseChanged): Add the origin/name pair to a queue
1235         (WebCore::DatabaseTracker::scheduleForNotification): Schedule to deliver this queue of notifications
1236           on the main thread
1237         (WebCore::DatabaseTracker::notifyDatabasesChanged): Deliver all notifications in the queue
1238         * storage/DatabaseTracker.h:
1239
1240         * storage/SQLTransaction.cpp:
1241         (WebCore::SQLTransaction::postflightAndCommit): scheduleNotifyDatabaseChanged() instead of "notify now!"
1242         (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback): Ditto
1243
1244 2007-12-02  Rob Buis  <buis@kde.org>
1245
1246         Reviewed by Darin.
1247
1248         http://bugs.webkit.org/show_bug.cgi?id=16002
1249         Load SVG (and other) UA StyleSheets dynamically when needed
1250
1251         Load svg sheet when needed.
1252
1253         * css/CSSStyleSelector.cpp:
1254         (WebCore::screenEval):
1255         (WebCore::printEval):
1256         (WebCore::CSSStyleSelector::CSSStyleSelector):
1257         (WebCore::CSSStyleSelector::loadDefaultStyle):
1258         (WebCore::CSSStyleSelector::styleForElement):
1259         (WebCore::CSSRuleSet::addRulesFromSheet):
1260
1261 2007-12-02  Mark Rowe  <mrowe@apple.com>
1262
1263         Try and fix the Windows build.
1264
1265         * plugins/win/PluginViewWin.cpp:
1266         (WebCore::PluginViewWin::bindingInstance):
1267
1268 2007-12-02  Nikolas Zimmermann  <zimmermann@kde.org>
1269
1270         Rubber stamped by Eric.
1271
1272         Move platform/graphics/svg to graphics/svg as discussed on webkit-dev.
1273         Updated all project files.
1274
1275         * WebCore.pro:
1276         * WebCore.vcproj/WebCore.vcproj:
1277         * WebCore.xcodeproj/project.pbxproj:
1278         * platform/graphics/svg: Removed.
1279         * platform/graphics/svg/SVGImage.cpp: Removed.
1280         * platform/graphics/svg/SVGImage.h: Removed.
1281         * platform/graphics/svg/SVGImageEmptyClients.h: Removed.
1282         * platform/graphics/svg/SVGPaintServer.cpp: Removed.
1283         * platform/graphics/svg/SVGPaintServer.h: Removed.
1284         * platform/graphics/svg/SVGPaintServerGradient.cpp: Removed.
1285         * platform/graphics/svg/SVGPaintServerGradient.h: Removed.
1286         * platform/graphics/svg/SVGPaintServerLinearGradient.cpp: Removed.
1287         * platform/graphics/svg/SVGPaintServerLinearGradient.h: Removed.
1288         * platform/graphics/svg/SVGPaintServerPattern.cpp: Removed.
1289         * platform/graphics/svg/SVGPaintServerPattern.h: Removed.
1290         * platform/graphics/svg/SVGPaintServerRadialGradient.cpp: Removed.
1291         * platform/graphics/svg/SVGPaintServerRadialGradient.h: Removed.
1292         * platform/graphics/svg/SVGPaintServerSolid.cpp: Removed.
1293         * platform/graphics/svg/SVGPaintServerSolid.h: Removed.
1294         * platform/graphics/svg/SVGResource.cpp: Removed.
1295         * platform/graphics/svg/SVGResource.h: Removed.
1296         * platform/graphics/svg/SVGResourceClipper.cpp: Removed.
1297         * platform/graphics/svg/SVGResourceClipper.h: Removed.
1298         * platform/graphics/svg/SVGResourceFilter.cpp: Removed.
1299         * platform/graphics/svg/SVGResourceFilter.h: Removed.
1300         * platform/graphics/svg/SVGResourceListener.h: Removed.
1301         * platform/graphics/svg/SVGResourceMarker.cpp: Removed.
1302         * platform/graphics/svg/SVGResourceMarker.h: Removed.
1303         * platform/graphics/svg/SVGResourceMasker.cpp: Removed.
1304         * platform/graphics/svg/SVGResourceMasker.h: Removed.
1305         * platform/graphics/svg/cairo: Removed.
1306         * platform/graphics/svg/cairo/RenderPathCairo.cpp: Removed.
1307         * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp: Removed.
1308         * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp: Removed.
1309         * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp: Removed.
1310         * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp: Removed.
1311         * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp: Removed.
1312         * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp: Removed.
1313         * platform/graphics/svg/cg: Removed.
1314         * platform/graphics/svg/cg/CgSupport.cpp: Removed.
1315         * platform/graphics/svg/cg/CgSupport.h: Removed.
1316         * platform/graphics/svg/cg/RenderPathCg.cpp: Removed.
1317         * platform/graphics/svg/cg/SVGPaintServerCg.cpp: Removed.
1318         * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: Removed.
1319         * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp: Removed.
1320         * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp: Removed.
1321         * platform/graphics/svg/cg/SVGResourceClipperCg.cpp: Removed.
1322         * platform/graphics/svg/cg/SVGResourceFilterCg.cpp: Removed.
1323         * platform/graphics/svg/cg/SVGResourceFilterCg.mm: Removed.
1324         * platform/graphics/svg/cg/SVGResourceMaskerCg.cpp: Removed.
1325         * platform/graphics/svg/cg/SVGResourceMaskerCg.mm: Removed.
1326         * platform/graphics/svg/filters: Removed.
1327         * platform/graphics/svg/filters/SVGDistantLightSource.h: Removed.
1328         * platform/graphics/svg/filters/SVGFEBlend.cpp: Removed.
1329         * platform/graphics/svg/filters/SVGFEBlend.h: Removed.
1330         * platform/graphics/svg/filters/SVGFEColorMatrix.cpp: Removed.
1331         * platform/graphics/svg/filters/SVGFEColorMatrix.h: Removed.
1332         * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp: Removed.
1333         * platform/graphics/svg/filters/SVGFEComponentTransfer.h: Removed.
1334         * platform/graphics/svg/filters/SVGFEComposite.cpp: Removed.
1335         * platform/graphics/svg/filters/SVGFEComposite.h: Removed.
1336         * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp: Removed.
1337         * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: Removed.
1338         * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp: Removed.
1339         * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: Removed.
1340         * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp: Removed.
1341         * platform/graphics/svg/filters/SVGFEDisplacementMap.h: Removed.
1342         * platform/graphics/svg/filters/SVGFEFlood.cpp: Removed.
1343         * platform/graphics/svg/filters/SVGFEFlood.h: Removed.
1344         * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp: Removed.
1345         * platform/graphics/svg/filters/SVGFEGaussianBlur.h: Removed.
1346         * platform/graphics/svg/filters/SVGFEImage.cpp: Removed.
1347         * platform/graphics/svg/filters/SVGFEImage.h: Removed.
1348         * platform/graphics/svg/filters/SVGFEMerge.cpp: Removed.
1349         * platform/graphics/svg/filters/SVGFEMerge.h: Removed.
1350         * platform/graphics/svg/filters/SVGFEMorphology.cpp: Removed.
1351         * platform/graphics/svg/filters/SVGFEMorphology.h: Removed.
1352         * platform/graphics/svg/filters/SVGFEOffset.cpp: Removed.
1353         * platform/graphics/svg/filters/SVGFEOffset.h: Removed.
1354         * platform/graphics/svg/filters/SVGFESpecularLighting.cpp: Removed.
1355         * platform/graphics/svg/filters/SVGFESpecularLighting.h: Removed.
1356         * platform/graphics/svg/filters/SVGFETile.h: Removed.
1357         * platform/graphics/svg/filters/SVGFETurbulence.cpp: Removed.
1358         * platform/graphics/svg/filters/SVGFETurbulence.h: Removed.
1359         * platform/graphics/svg/filters/SVGFilterEffect.cpp: Removed.
1360         * platform/graphics/svg/filters/SVGFilterEffect.h: Removed.
1361         * platform/graphics/svg/filters/SVGLightSource.cpp: Removed.
1362         * platform/graphics/svg/filters/SVGLightSource.h: Removed.
1363         * platform/graphics/svg/filters/SVGPointLightSource.h: Removed.
1364         * platform/graphics/svg/filters/SVGSpotLightSource.h: Removed.
1365         * platform/graphics/svg/filters/cg: Removed.
1366         * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm: Removed.
1367         * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm: Removed.
1368         * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm: Removed.
1369         * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm: Removed.
1370         * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm: Removed.
1371         * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm: Removed.
1372         * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm: Removed.
1373         * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm: Removed.
1374         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: Removed.
1375         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm: Removed.
1376         * platform/graphics/svg/filters/cg/SVGFEImageCg.mm: Removed.
1377         * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm: Removed.
1378         * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm: Removed.
1379         * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm: Removed.
1380         * platform/graphics/svg/filters/cg/SVGFETileCg.mm: Removed.
1381         * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm: Removed.
1382         * platform/graphics/svg/filters/cg/WKArithmeticFilter.cikernel: Removed.
1383         * platform/graphics/svg/filters/cg/WKArithmeticFilter.h: Removed.
1384         * platform/graphics/svg/filters/cg/WKArithmeticFilter.m: Removed.
1385         * platform/graphics/svg/filters/cg/WKComponentMergeFilter.cikernel: Removed.
1386         * platform/graphics/svg/filters/cg/WKComponentMergeFilter.h: Removed.
1387         * platform/graphics/svg/filters/cg/WKComponentMergeFilter.m: Removed.
1388         * platform/graphics/svg/filters/cg/WKDiffuseLightingFilter.cikernel: Removed.
1389         * platform/graphics/svg/filters/cg/WKDiffuseLightingFilter.h: Removed.
1390         * platform/graphics/svg/filters/cg/WKDiffuseLightingFilter.m: Removed.
1391         * platform/graphics/svg/filters/cg/WKDiscreteTransferFilter.cikernel: Removed.
1392         * platform/graphics/svg/filters/cg/WKDiscreteTransferFilter.h: Removed.
1393         * platform/graphics/svg/filters/cg/WKDiscreteTransferFilter.m: Removed.
1394         * platform/graphics/svg/filters/cg/WKDisplacementMapFilter.cikernel: Removed.
1395         * platform/graphics/svg/filters/cg/WKDisplacementMapFilter.h: Removed.
1396         * platform/graphics/svg/filters/cg/WKDisplacementMapFilter.m: Removed.
1397         * platform/graphics/svg/filters/cg/WKDistantLightFilter.cikernel: Removed.
1398         * platform/graphics/svg/filters/cg/WKDistantLightFilter.h: Removed.
1399         * platform/graphics/svg/filters/cg/WKDistantLightFilter.m: Removed.
1400         * platform/graphics/svg/filters/cg/WKGammaTransferFilter.cikernel: Removed.
1401         * platform/graphics/svg/filters/cg/WKGammaTransferFilter.h: Removed.
1402         * platform/graphics/svg/filters/cg/WKGammaTransferFilter.m: Removed.
1403         * platform/graphics/svg/filters/cg/WKIdentityTransferFilter.h: Removed.
1404         * platform/graphics/svg/filters/cg/WKIdentityTransferFilter.m: Removed.
1405         * platform/graphics/svg/filters/cg/WKLinearTransferFilter.cikernel: Removed.
1406         * platform/graphics/svg/filters/cg/WKLinearTransferFilter.h: Removed.
1407         * platform/graphics/svg/filters/cg/WKLinearTransferFilter.m: Removed.
1408         * platform/graphics/svg/filters/cg/WKNormalMapFilter.cikernel: Removed.
1409         * platform/graphics/svg/filters/cg/WKNormalMapFilter.h: Removed.
1410         * platform/graphics/svg/filters/cg/WKNormalMapFilter.m: Removed.
1411         * platform/graphics/svg/filters/cg/WKPointLightFilter.cikernel: Removed.
1412         * platform/graphics/svg/filters/cg/WKPointLightFilter.h: Removed.
1413         * platform/graphics/svg/filters/cg/WKPointLightFilter.m: Removed.
1414         * platform/graphics/svg/filters/cg/WKSpecularLightingFilter.cikernel: Removed.
1415         * platform/graphics/svg/filters/cg/WKSpecularLightingFilter.h: Removed.
1416         * platform/graphics/svg/filters/cg/WKSpecularLightingFilter.m: Removed.
1417         * platform/graphics/svg/filters/cg/WKSpotLightFilter.cikernel: Removed.
1418         * platform/graphics/svg/filters/cg/WKSpotLightFilter.h: Removed.
1419         * platform/graphics/svg/filters/cg/WKSpotLightFilter.m: Removed.
1420         * platform/graphics/svg/filters/cg/WKTableTransferFilter.cikernel: Removed.
1421         * platform/graphics/svg/filters/cg/WKTableTransferFilter.h: Removed.
1422         * platform/graphics/svg/filters/cg/WKTableTransferFilter.m: Removed.
1423         * platform/graphics/svg/mac: Removed.
1424         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h: Removed.
1425         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.mm: Removed.
1426         * platform/graphics/svg/qt: Removed.
1427         * platform/graphics/svg/qt/RenderPathQt.cpp: Removed.
1428         * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp: Removed.
1429         * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp: Removed.
1430         * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp: Removed.
1431         * platform/graphics/svg/qt/SVGPaintServerQt.cpp: Removed.
1432         * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp: Removed.
1433         * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp: Removed.
1434         * platform/graphics/svg/qt/SVGResourceClipperQt.cpp: Removed.
1435         * platform/graphics/svg/qt/SVGResourceFilterQt.cpp: Removed.
1436         * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp: Removed.
1437         * svg/graphics: Copied from platform/graphics/svg.
1438
1439 2007-12-02  Nikolas Zimmermann  <zimmermann@kde.org>
1440
1441         Reviewed by Maciej.
1442
1443         Fix IDL lookup in subdirectories. Missing 'my' prefix for the 'thisDir' variable.
1444         When entering subdirectories the 'thisDir' variable got altered - see snippet:
1445
1446         THISDIR: WebCore/page FOUND FILE: FrameView.h (endCondition: 0)
1447         ..
1448         -> ENTER: WebCore/page/gtk (THIS DIR: WebCore/page)
1449         ...
1450         <- LEAVE: WebCore/page/gtk (THIS DIR: WebCore/page/gtk)
1451         THISDIR: WebCore/page/gtk FOUND FILE: History.cpp (endCondition: 0)
1452
1453         'History.cpp' is located in WebCore/page not WebCore/page/gtk.
1454
1455         * bindings/scripts/CodeGenerator.pm:
1456
1457 2007-12-01  Alp Toker  <alp@atoker.com>
1458
1459         Reviewed by Adam Roben.
1460
1461         Add the newly introduced webkit.h convenience header.
1462
1463         * WebCore.pro:
1464
1465 2007-12-01  Antti Koivisto  <antti@apple.com>
1466
1467         Reviewed by Adam.
1468         
1469         - Fix crash when removing a loading media element from the tree.
1470         - Follow the spec by invoking pause() when element is removed from the tree instead of unloading.
1471
1472         Tests: http/tests/media/remove-while-loading.html
1473                media/remove-from-document.html
1474
1475         * html/HTMLMediaElement.cpp:
1476         (WebCore::HTMLMediaElement::removedFromDocument):
1477
1478 2007-12-01  Geoffrey Garen  <ggaren@apple.com>
1479
1480         Reviewed by Beth Dakin.
1481
1482         Restored the test string in this test.
1483
1484         * manual-tests/window-open-features-parsing.html:
1485
1486 2007-11-30  Geoffrey Garen  <ggaren@apple.com>
1487
1488         Reviewed by Beth Dakin.
1489         
1490         Modified WebCore to follow the new JSGlobalObject/Interpreter ownership
1491         rules in JavaScriptCore.
1492
1493         * bindings/js/kjs_binding.cpp:
1494         * bindings/js/kjs_binding.h: Removed stale, unused 
1495         interpreterForGlobalObject().
1496
1497         * bindings/js/kjs_proxy.cpp: Changed to store a global object, rather
1498         than an interpreter.
1499         (WebCore::KJSProxy::finishedWithEvent): Need to NULL check 
1500         m_globalObject here because we no longer unnecessarily instantiate it.
1501
1502         * bindings/js/kjs_window.cpp:
1503         (KJS::ScheduledAction::execute):
1504         * bindings/js/kjs_window.h: Removed redundant and less efficient 
1505         interpreter() function -- global objects have direct access to their
1506         interpreters now.
1507
1508         Changed these functions to pass around JSGlobalObjects instead of 
1509         Interpreters:
1510
1511         * page/Frame.cpp:
1512         (WebCore::Frame::bindingRootObject):
1513         (WebCore::Frame::createRootObject):
1514         * page/Frame.h:
1515         * page/mac/WebCoreFrameBridge.mm:
1516         (createRootObject):
1517
1518 2007-12-01  Darin Adler  <darin@apple.com>
1519
1520         Reviewed by Mitz.
1521
1522         - fix problem tracked by these bugs:
1523           http://bugs.webkit.org/show_bug.cgi?id=16097
1524           <rdar://problem/5619305> Safari crashes during load of LexisNexis search results
1525           <rdar://problem/5510779> CrashTracer: [USER] 25 crashes in Safari at
1526           WebCore::DocumentLoader::isLoadingMultipartContent const
1527
1528         * loader/ImageDocument.cpp:
1529         (WebCore::ImageDocument::createDocumentStructure): Create an ImageDocumentElement
1530         instead of an HTMLImageElement.
1531         (WebCore::ImageDocument::scale): Added a null check for m_imageElement.
1532         (WebCore::ImageDocument::resizeImageToFit): Ditto.
1533         (WebCore::ImageDocument::restoreImageSize): Ditto.
1534         (WebCore::ImageDocument::imageFitsInWindow): Ditto.
1535         (WebCore::ImageDocument::windowSizeChanged): Ditto.
1536         (WebCore::ImageDocumentElement::~ImageDocumentElement): Call
1537         disconnectImageElement so m_imageElement will be set to 0
1538          if we're still connected to the document.
1539         (WebCore::ImageDocumentElement::willMoveToNewOwnerDocument): Ditto.
1540
1541         * loader/ImageDocument.h: Changed image element type to be
1542         ImageDocumentElement instead of HTMLImageElement. Also added
1543         a disconnectImageElement function that sets m_imageElement to 0.
1544
1545 2007-12-01  Darin Adler  <darin@apple.com>
1546
1547         - remove the empty directories
1548
1549         * ksvg2: Removed.
1550         * ksvg2/css: Removed.
1551         * ksvg2/events: Removed.
1552         * ksvg2/misc: Removed.
1553         * ksvg2/scripts: Removed.
1554
1555 2007-12-01  Julien Chaffraix  <julien.chaffraix@gmail.com>
1556
1557         Bug 16189: XMLHttpRequest::setRequestHeader() should not set certain headers
1558
1559         Reviewed by Darin Adler.
1560
1561         * xml/XMLHttpRequest.cpp:
1562         (WebCore::canSetRequestHeader):
1563
1564         Test: http/tests/xmlhttprequest/set-dangerous-headers.html
1565
1566 2007-12-01  Rahul Abrol  <ra5ul@comcast.net>
1567
1568         Reviewed by Adam Roben.
1569
1570         http://bugs.webkit.org/show_bug.cgi?id=16128
1571         Ignore resizable=no for window.open().
1572
1573         * bindings/js/kjs_window.cpp:
1574         (KJS::setWindowFeature):
1575         (KJS::parseWindowFeatures):
1576         * manual-tests/window-open-features-parsing.html:
1577
1578 2007-12-01  Dan Bernstein  <mitz@apple.com>
1579
1580         Reviewed by Darin Adler.
1581
1582         - fix <rdar://problem/5619240> REGRESSION (Leopard-r28069): Reproducible crash with a Mootools-based calendar picker (jump to null in FrameView::layout)
1583
1584         Test: fast/dynamic/subtree-common-root.html
1585
1586         * page/FrameView.cpp:
1587         (WebCore::FrameView::layoutRoot): Added a parameter to let this method
1588         return the layout root for a pending layout as well.
1589         (WebCore::FrameView::scheduleRelayoutOfSubtree): Pass the new root
1590         to markContainingBlocksForLayout(). Otherwise,
1591         markContainingBlocksForLayout() could mark past the new root, if it had
1592         previously been marked as having a normal child needing layout and then
1593         was reached via a positioned child.
1594         * page/FrameView.h:
1595         * rendering/RenderBox.cpp:
1596         (WebCore::RenderBox::calcWidth):
1597         * rendering/RenderObject.cpp:
1598         (WebCore::RenderObject::~RenderObject): Fixed the ASSERT so that
1599         it would really catch deletion of the layout root.
1600         (WebCore::RenderObject::markContainingBlocksForLayout): Added the
1601         newRoot parameter, which tells this method where to stop marking.
1602         * rendering/RenderObject.h:
1603
1604 2007-12-01  Dan Bernstein  <mitz@apple.com>
1605
1606         Reviewed by Darin Adler.
1607
1608         - fold FontStyle into TextRun
1609
1610         * WebCore.xcodeproj/project.pbxproj:
1611         * platform/graphics/Font.cpp:
1612         (WebCore::WidthIterator::WidthIterator):
1613         (WebCore::WidthIterator::advance):
1614         (WebCore::Font::width):
1615         (WebCore::Font::drawSimpleText):
1616         (WebCore::Font::drawGlyphBuffer):
1617         (WebCore::Font::drawText):
1618         (WebCore::Font::floatWidth):
1619         (WebCore::Font::floatWidthForSimpleText):
1620         (WebCore::Font::selectionRectForText):
1621         (WebCore::Font::selectionRectForSimpleText):
1622         (WebCore::Font::offsetForPosition):
1623         (WebCore::Font::offsetForPositionForSimpleText):
1624         * platform/graphics/Font.h:
1625         (WebCore::TextRun::TextRun):
1626         (WebCore::TextRun::setText):
1627         (WebCore::TextRun::allowTabs):
1628         (WebCore::TextRun::xPos):
1629         (WebCore::TextRun::padding):
1630         (WebCore::TextRun::rtl):
1631         (WebCore::TextRun::ltr):
1632         (WebCore::TextRun::directionalOverride):
1633         (WebCore::TextRun::applyRunRounding):
1634         (WebCore::TextRun::applyWordRounding):
1635         (WebCore::TextRun::spacingDisabled):
1636         (WebCore::TextRun::disableSpacing):
1637         (WebCore::TextRun::disableRoundingHacks):
1638         (WebCore::TextRun::setRTL):
1639         (WebCore::TextRun::setDirectionalOverride):
1640         * platform/graphics/FontStyle.h: Removed.
1641         * platform/graphics/GraphicsContext.cpp:
1642         (WebCore::GraphicsContext::drawText):
1643         (WebCore::GraphicsContext::drawBidiText):
1644         (WebCore::GraphicsContext::drawHighlightForText):
1645         * platform/graphics/GraphicsContext.h:
1646         * platform/graphics/StringTruncator.cpp:
1647         (WebCore::stringWidth):
1648         * platform/graphics/gtk/FontGtk.cpp:
1649         (WebCore::Font::drawComplexText):
1650         (WebCore::Font::floatWidthForComplexText):
1651         (WebCore::Font::offsetForPositionForComplexText):
1652         (WebCore::Font::selectionRectForComplexText):
1653         * platform/graphics/mac/FontMac.mm:
1654         (WebCore::ATSULayoutParameters::ATSULayoutParameters):
1655         (WebCore::addDirectionalOverride):
1656         (WebCore::overrideLayoutOperation):
1657         (WebCore::ATSULayoutParameters::initialize):
1658         (WebCore::Font::selectionRectForComplexText):
1659         (WebCore::Font::drawComplexText):
1660         (WebCore::Font::floatWidthForComplexText):
1661         (WebCore::Font::offsetForPositionForComplexText):
1662         * platform/graphics/qt/FontQt.cpp:
1663         (WebCore::generateComponents):
1664         (WebCore::Font::drawText):
1665         (WebCore::Font::width):
1666         (WebCore::Font::offsetForPosition):
1667         (WebCore::cursorToX):
1668         (WebCore::Font::selectionRectForText):
1669         * platform/graphics/win/FontWin.cpp:
1670         (WebCore::Font::selectionRectForComplexText):
1671         (WebCore::Font::drawComplexText):
1672         (WebCore::Font::floatWidthForComplexText):
1673         (WebCore::Font::offsetForPositionForComplexText):
1674         * platform/graphics/wx/FontWx.cpp:
1675         (WebCore::Font::selectionRectForComplexText):
1676         (WebCore::Font::drawComplexText):
1677         (WebCore::Font::floatWidthForComplexText):
1678         (WebCore::Font::offsetForPositionForComplexText):
1679         * platform/mac/WebCoreTextRenderer.mm:
1680         (WebCoreDrawTextAtPoint):
1681         (WebCoreTextFloatWidth):
1682         * platform/win/PopupMenuWin.cpp:
1683         (WebCore::PopupMenu::paint):
1684         * platform/win/UniscribeController.cpp:
1685         (WebCore::UniscribeController::UniscribeController):
1686         (WebCore::UniscribeController::offsetForPosition):
1687         (WebCore::UniscribeController::advance):
1688         (WebCore::UniscribeController::itemizeShapeAndPlace):
1689         (WebCore::UniscribeController::resetControlAndState):
1690         (WebCore::UniscribeController::shapeAndPlaceItem):
1691         * platform/win/UniscribeController.h:
1692         * platform/win/WebCoreTextRenderer.cpp:
1693         (WebCore::doDrawTextAtPoint):
1694         * rendering/EllipsisBox.cpp:
1695         (WebCore::EllipsisBox::paint):
1696         * rendering/InlineTextBox.cpp:
1697         (WebCore::InlineTextBox::selectionRect):
1698         (WebCore::InlineTextBox::paint):
1699         (WebCore::InlineTextBox::paintSelection):
1700         (WebCore::InlineTextBox::paintCompositionBackground):
1701         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
1702         (WebCore::InlineTextBox::paintTextMatchMarker):
1703         (WebCore::InlineTextBox::offsetForPosition):
1704         (WebCore::InlineTextBox::positionForOffset):
1705         * rendering/RenderFileUploadControl.cpp:
1706         (WebCore::RenderFileUploadControl::paintObject):
1707         (WebCore::RenderFileUploadControl::calcPrefWidths):
1708         * rendering/RenderImage.cpp:
1709         * rendering/RenderListBox.cpp:
1710         (WebCore::RenderListBox::updateFromElement):
1711         (WebCore::RenderListBox::paintItemForeground):
1712         * rendering/RenderMenuList.cpp:
1713         (WebCore::RenderMenuList::updateOptionsWidth):
1714         * rendering/RenderText.cpp:
1715         (WebCore::RenderText::widthFromCache):
1716         (WebCore::RenderText::calcPrefWidths):
1717         (WebCore::RenderText::width):
1718         * rendering/RenderText.h:
1719         (WebCore::RenderText::allowTabs):
1720         * rendering/RenderTextControl.cpp:
1721         (WebCore::RenderTextControl::calcPrefWidths):
1722         * rendering/SVGInlineTextBox.cpp:
1723         (WebCore::SVGInlineTextBox::calculateGlyphWidth):
1724         (WebCore::SVGInlineTextBox::paintCharacters):
1725         (WebCore::SVGInlineTextBox::paintSelection):
1726         * rendering/SVGRootInlineBox.cpp:
1727         (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
1728         (WebCore::cummulatedWidthOfInlineBoxCharacterRange):
1729         (WebCore::svgTextRunForInlineTextBox):
1730         * rendering/SVGRootInlineBox.h:
1731
1732 2007-12-01  Adam Treat  <treat@kde.org>
1733
1734         Reviewed by Simon.
1735
1736         * Don't hide symbols when in Debug mode
1737         * On Linux (glibc) provide a backtrace in the test output for debugging purposes
1738
1739         * WebCore.pro:
1740
1741 2007-11-30  Alp Toker  <alp@atoker.com>
1742
1743         Reviewed by Adam Roben.
1744
1745         http://bugs.webkit.org/show_bug.cgi?id=15691
1746         [GTK] Public API does not follow GTK+ conventions
1747
1748         Refactor the WebKit/GTK+ public API. Changes:
1749           WebKitPage -> WebKitWebView
1750           WebKitFrame -> WebKitWebFrame
1751
1752         Public API source and header names have been updated to mirror the API
1753         changes.
1754
1755         The API is now kept in WebKit/gtk/WebView to match other ports in the
1756         same class such as Mac and Win.
1757
1758         * WebCore.pro:
1759
1760 2007-11-30   Anders Carlsson  <andersca@apple.com>
1761
1762         Add platform/text project group.
1763         
1764         * WebCore.vcproj/WebCore.vcproj:
1765
1766 2007-11-30   Anders Carlsson  <andersca@apple.com>
1767
1768         Remove extra </Filter> tag which prevented the vcproj from being parsed correctly.
1769         
1770         * WebCore.vcproj/WebCore.vcproj:
1771
1772 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
1773
1774         Not reviewed. Try to fix qt/gtk build.
1775
1776         * WebCore.pro:
1777
1778 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
1779
1780         Rubber stamped by Eric.
1781
1782         Final integration of ksvg2 in WebKit. Moving ksvg2/ to svg/ and killing all it's subdirectories,
1783         by moving the files into approriate locations (css, rendering, ...) - as dicsussed on the
1784         mailing list and on IRC with David/Darin & Eric.
1785
1786         Updated all build files - though I can't guarantee it builds on non-mac. Need buildbot to verify.
1787
1788         * DerivedSources.make:
1789         * WebCore.pro:
1790         * WebCore.vcproj/WebCore.vcproj:
1791         * WebCore.xcodeproj/project.pbxproj:
1792         * bindings/js/JSSVGLazyEventListener.cpp: Copied from ksvg2/events/JSSVGLazyEventListener.cpp.
1793         * bindings/js/JSSVGLazyEventListener.h: Copied from ksvg2/events/JSSVGLazyEventListener.h.
1794         * css/SVGCSSComputedStyleDeclaration.cpp: Copied from ksvg2/css/SVGCSSComputedStyleDeclaration.cpp.
1795         * css/SVGCSSParser.cpp: Copied from ksvg2/css/SVGCSSParser.cpp.
1796         * css/SVGCSSPropertyNames.in: Copied from ksvg2/css/SVGCSSPropertyNames.in.
1797         * css/SVGCSSStyleSelector.cpp: Copied from ksvg2/css/SVGCSSStyleSelector.cpp.
1798         * css/SVGCSSValueKeywords.in: Copied from ksvg2/css/SVGCSSValueKeywords.in.
1799         * dom/make_names.pl: Copied from ksvg2/scripts/make_names.pl.
1800         * ksvg2/css/SVGCSSComputedStyleDeclaration.cpp: Removed.
1801         * ksvg2/css/SVGCSSParser.cpp: Removed.
1802         * ksvg2/css/SVGCSSPropertyNames.in: Removed.
1803         * ksvg2/css/SVGCSSStyleSelector.cpp: Removed.
1804         * ksvg2/css/SVGCSSValueKeywords.in: Removed.
1805         * ksvg2/css/SVGRenderStyle.cpp: Removed.
1806         * ksvg2/css/SVGRenderStyle.h: Removed.
1807         * ksvg2/css/SVGRenderStyleDefs.cpp: Removed.
1808         * ksvg2/css/SVGRenderStyleDefs.h: Removed.
1809         * ksvg2/events/JSSVGLazyEventListener.cpp: Removed.
1810         * ksvg2/events/JSSVGLazyEventListener.h: Removed.
1811         * ksvg2/events/SVGZoomEvent.cpp: Removed.
1812         * ksvg2/events/SVGZoomEvent.h: Removed.
1813         * ksvg2/events/SVGZoomEvent.idl: Removed.
1814         * ksvg2/misc/PointerEventsHitRules.cpp: Removed.
1815         * ksvg2/misc/PointerEventsHitRules.h: Removed.
1816         * ksvg2/misc/SVGDocumentExtensions.cpp: Removed.
1817         * ksvg2/misc/SVGDocumentExtensions.h: Removed.
1818         * ksvg2/misc/SVGImageLoader.cpp: Removed.
1819         * ksvg2/misc/SVGImageLoader.h: Removed.
1820         * ksvg2/misc/SVGTimer.cpp: Removed.
1821         * ksvg2/misc/SVGTimer.h: Removed.
1822         * ksvg2/misc/TimeScheduler.cpp: Removed.
1823         * ksvg2/misc/TimeScheduler.h: Removed.
1824         * ksvg2/misc/xlinkattrs.in: Removed.
1825         * ksvg2/scripts/make_names.pl: Removed.
1826         * ksvg2/svg: Removed.
1827         * ksvg2/svg/ColorDistance.cpp: Removed.
1828         * ksvg2/svg/ColorDistance.h: Removed.
1829         * ksvg2/svg/GradientAttributes.h: Removed.
1830         * ksvg2/svg/LinearGradientAttributes.h: Removed.
1831         * ksvg2/svg/PatternAttributes.h: Removed.
1832         * ksvg2/svg/RadialGradientAttributes.h: Removed.
1833         * ksvg2/svg/SVGAElement.cpp: Removed.
1834         * ksvg2/svg/SVGAElement.h: Removed.
1835         * ksvg2/svg/SVGAElement.idl: Removed.
1836         * ksvg2/svg/SVGAngle.cpp: Removed.
1837         * ksvg2/svg/SVGAngle.h: Removed.
1838         * ksvg2/svg/SVGAngle.idl: Removed.
1839         * ksvg2/svg/SVGAnimateColorElement.cpp: Removed.
1840         * ksvg2/svg/SVGAnimateColorElement.h: Removed.
1841         * ksvg2/svg/SVGAnimateColorElement.idl: Removed.
1842         * ksvg2/svg/SVGAnimateElement.cpp: Removed.
1843         * ksvg2/svg/SVGAnimateElement.h: Removed.
1844         * ksvg2/svg/SVGAnimateElement.idl: Removed.
1845         * ksvg2/svg/SVGAnimateMotionElement.cpp: Removed.
1846         * ksvg2/svg/SVGAnimateMotionElement.h: Removed.
1847         * ksvg2/svg/SVGAnimateTransformElement.cpp: Removed.
1848         * ksvg2/svg/SVGAnimateTransformElement.h: Removed.
1849         * ksvg2/svg/SVGAnimateTransformElement.idl: Removed.
1850         * ksvg2/svg/SVGAnimatedAngle.idl: Removed.
1851         * ksvg2/svg/SVGAnimatedBoolean.idl: Removed.
1852         * ksvg2/svg/SVGAnimatedEnumeration.idl: Removed.
1853         * ksvg2/svg/SVGAnimatedInteger.idl: Removed.
1854         * ksvg2/svg/SVGAnimatedLength.idl: Removed.
1855         * ksvg2/svg/SVGAnimatedLengthList.idl: Removed.
1856         * ksvg2/svg/SVGAnimatedNumber.idl: Removed.
1857         * ksvg2/svg/SVGAnimatedNumberList.idl: Removed.
1858         * ksvg2/svg/SVGAnimatedPathData.cpp: Removed.
1859         * ksvg2/svg/SVGAnimatedPathData.h: Removed.
1860         * ksvg2/svg/SVGAnimatedPathData.idl: Removed.
1861         * ksvg2/svg/SVGAnimatedPoints.cpp: Removed.
1862         * ksvg2/svg/SVGAnimatedPoints.h: Removed.
1863         * ksvg2/svg/SVGAnimatedPoints.idl: Removed.
1864         * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl: Removed.
1865         * ksvg2/svg/SVGAnimatedRect.idl: Removed.
1866         * ksvg2/svg/SVGAnimatedString.idl: Removed.
1867         * ksvg2/svg/SVGAnimatedTemplate.h: Removed.
1868         * ksvg2/svg/SVGAnimatedTransformList.idl: Removed.
1869         * ksvg2/svg/SVGAnimationElement.cpp: Removed.
1870         * ksvg2/svg/SVGAnimationElement.h: Removed.
1871         * ksvg2/svg/SVGAnimationElement.idl: Removed.
1872         * ksvg2/svg/SVGCircleElement.cpp: Removed.
1873         * ksvg2/svg/SVGCircleElement.h: Removed.
1874         * ksvg2/svg/SVGCircleElement.idl: Removed.
1875         * ksvg2/svg/SVGClipPathElement.cpp: Removed.
1876         * ksvg2/svg/SVGClipPathElement.h: Removed.
1877         * ksvg2/svg/SVGClipPathElement.idl: Removed.
1878         * ksvg2/svg/SVGColor.cpp: Removed.
1879         * ksvg2/svg/SVGColor.h: Removed.
1880         * ksvg2/svg/SVGColor.idl: Removed.
1881         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp: Removed.
1882         * ksvg2/svg/SVGComponentTransferFunctionElement.h: Removed.
1883         * ksvg2/svg/SVGComponentTransferFunctionElement.idl: Removed.
1884         * ksvg2/svg/SVGCursorElement.cpp: Removed.
1885         * ksvg2/svg/SVGCursorElement.h: Removed.
1886         * ksvg2/svg/SVGCursorElement.idl: Removed.
1887         * ksvg2/svg/SVGDefinitionSrcElement.cpp: Removed.
1888         * ksvg2/svg/SVGDefinitionSrcElement.h: Removed.
1889         * ksvg2/svg/SVGDefinitionSrcElement.idl: Removed.
1890         * ksvg2/svg/SVGDefsElement.cpp: Removed.
1891         * ksvg2/svg/SVGDefsElement.h: Removed.
1892         * ksvg2/svg/SVGDefsElement.idl: Removed.
1893         * ksvg2/svg/SVGDescElement.cpp: Removed.
1894         * ksvg2/svg/SVGDescElement.h: Removed.
1895         * ksvg2/svg/SVGDescElement.idl: Removed.
1896         * ksvg2/svg/SVGDocument.cpp: Removed.
1897         * ksvg2/svg/SVGDocument.h: Removed.
1898         * ksvg2/svg/SVGDocument.idl: Removed.
1899         * ksvg2/svg/SVGElement.cpp: Removed.
1900         * ksvg2/svg/SVGElement.h: Removed.
1901         * ksvg2/svg/SVGElement.idl: Removed.
1902         * ksvg2/svg/SVGElementInstance.cpp: Removed.
1903         * ksvg2/svg/SVGElementInstance.h: Removed.
1904         * ksvg2/svg/SVGElementInstance.idl: Removed.
1905         * ksvg2/svg/SVGElementInstanceList.cpp: Removed.
1906         * ksvg2/svg/SVGElementInstanceList.h: Removed.
1907         * ksvg2/svg/SVGElementInstanceList.idl: Removed.
1908         * ksvg2/svg/SVGEllipseElement.cpp: Removed.
1909         * ksvg2/svg/SVGEllipseElement.h: Removed.
1910         * ksvg2/svg/SVGEllipseElement.idl: Removed.
1911         * ksvg2/svg/SVGException.h: Removed.
1912         * ksvg2/svg/SVGException.idl: Removed.
1913         * ksvg2/svg/SVGExternalResourcesRequired.cpp: Removed.
1914         * ksvg2/svg/SVGExternalResourcesRequired.h: Removed.
1915         * ksvg2/svg/SVGExternalResourcesRequired.idl: Removed.
1916         * ksvg2/svg/SVGFEBlendElement.cpp: Removed.
1917         * ksvg2/svg/SVGFEBlendElement.h: Removed.
1918         * ksvg2/svg/SVGFEBlendElement.idl: Removed.
1919         * ksvg2/svg/SVGFEColorMatrixElement.cpp: Removed.
1920         * ksvg2/svg/SVGFEColorMatrixElement.h: Removed.
1921         * ksvg2/svg/SVGFEColorMatrixElement.idl: Removed.
1922         * ksvg2/svg/SVGFEComponentTransferElement.cpp: Removed.
1923         * ksvg2/svg/SVGFEComponentTransferElement.h: Removed.
1924         * ksvg2/svg/SVGFEComponentTransferElement.idl: Removed.
1925         * ksvg2/svg/SVGFECompositeElement.cpp: Removed.
1926         * ksvg2/svg/SVGFECompositeElement.h: Removed.
1927         * ksvg2/svg/SVGFECompositeElement.idl: Removed.
1928         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp: Removed.
1929         * ksvg2/svg/SVGFEDiffuseLightingElement.h: Removed.
1930         * ksvg2/svg/SVGFEDiffuseLightingElement.idl: Removed.
1931         * ksvg2/svg/SVGFEDisplacementMapElement.cpp: Removed.
1932         * ksvg2/svg/SVGFEDisplacementMapElement.h: Removed.
1933         * ksvg2/svg/SVGFEDisplacementMapElement.idl: Removed.
1934         * ksvg2/svg/SVGFEDistantLightElement.cpp: Removed.
1935         * ksvg2/svg/SVGFEDistantLightElement.h: Removed.
1936         * ksvg2/svg/SVGFEDistantLightElement.idl: Removed.
1937         * ksvg2/svg/SVGFEFloodElement.cpp: Removed.
1938         * ksvg2/svg/SVGFEFloodElement.h: Removed.
1939         * ksvg2/svg/SVGFEFloodElement.idl: Removed.
1940         * ksvg2/svg/SVGFEFuncAElement.cpp: Removed.
1941         * ksvg2/svg/SVGFEFuncAElement.h: Removed.
1942         * ksvg2/svg/SVGFEFuncAElement.idl: Removed.
1943         * ksvg2/svg/SVGFEFuncBElement.cpp: Removed.
1944         * ksvg2/svg/SVGFEFuncBElement.h: Removed.
1945         * ksvg2/svg/SVGFEFuncBElement.idl: Removed.
1946         * ksvg2/svg/SVGFEFuncGElement.cpp: Removed.
1947         * ksvg2/svg/SVGFEFuncGElement.h: Removed.
1948         * ksvg2/svg/SVGFEFuncGElement.idl: Removed.
1949         * ksvg2/svg/SVGFEFuncRElement.cpp: Removed.
1950         * ksvg2/svg/SVGFEFuncRElement.h: Removed.
1951         * ksvg2/svg/SVGFEFuncRElement.idl: Removed.
1952         * ksvg2/svg/SVGFEGaussianBlurElement.cpp: Removed.
1953         * ksvg2/svg/SVGFEGaussianBlurElement.h: Removed.
1954         * ksvg2/svg/SVGFEGaussianBlurElement.idl: Removed.
1955         * ksvg2/svg/SVGFEImageElement.cpp: Removed.
1956         * ksvg2/svg/SVGFEImageElement.h: Removed.
1957         * ksvg2/svg/SVGFEImageElement.idl: Removed.
1958         * ksvg2/svg/SVGFELightElement.cpp: Removed.
1959         * ksvg2/svg/SVGFELightElement.h: Removed.
1960         * ksvg2/svg/SVGFEMergeElement.cpp: Removed.
1961         * ksvg2/svg/SVGFEMergeElement.h: Removed.
1962         * ksvg2/svg/SVGFEMergeElement.idl: Removed.
1963         * ksvg2/svg/SVGFEMergeNodeElement.cpp: Removed.
1964         * ksvg2/svg/SVGFEMergeNodeElement.h: Removed.
1965         * ksvg2/svg/SVGFEMergeNodeElement.idl: Removed.
1966         * ksvg2/svg/SVGFEOffsetElement.cpp: Removed.
1967         * ksvg2/svg/SVGFEOffsetElement.h: Removed.
1968         * ksvg2/svg/SVGFEOffsetElement.idl: Removed.
1969         * ksvg2/svg/SVGFEPointLightElement.cpp: Removed.
1970         * ksvg2/svg/SVGFEPointLightElement.h: Removed.
1971         * ksvg2/svg/SVGFEPointLightElement.idl: Removed.
1972         * ksvg2/svg/SVGFESpecularLightingElement.cpp: Removed.
1973         * ksvg2/svg/SVGFESpecularLightingElement.h: Removed.
1974         * ksvg2/svg/SVGFESpecularLightingElement.idl: Removed.
1975         * ksvg2/svg/SVGFESpotLightElement.cpp: Removed.
1976         * ksvg2/svg/SVGFESpotLightElement.h: Removed.
1977         * ksvg2/svg/SVGFESpotLightElement.idl: Removed.
1978         * ksvg2/svg/SVGFETileElement.cpp: Removed.
1979         * ksvg2/svg/SVGFETileElement.h: Removed.
1980         * ksvg2/svg/SVGFETileElement.idl: Removed.
1981         * ksvg2/svg/SVGFETurbulenceElement.cpp: Removed.
1982         * ksvg2/svg/SVGFETurbulenceElement.h: Removed.
1983         * ksvg2/svg/SVGFETurbulenceElement.idl: Removed.
1984         * ksvg2/svg/SVGFilterElement.cpp: Removed.
1985         * ksvg2/svg/SVGFilterElement.h: Removed.
1986         * ksvg2/svg/SVGFilterElement.idl: Removed.
1987         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp: Removed.
1988         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h: Removed.
1989         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl: Removed.
1990         * ksvg2/svg/SVGFitToViewBox.cpp: Removed.
1991         * ksvg2/svg/SVGFitToViewBox.h: Removed.
1992         * ksvg2/svg/SVGFitToViewBox.idl: Removed.
1993         * ksvg2/svg/SVGFontFaceElement.cpp: Removed.
1994         * ksvg2/svg/SVGFontFaceElement.h: Removed.
1995         * ksvg2/svg/SVGFontFaceElement.idl: Removed.
1996         * ksvg2/svg/SVGFontFaceFormatElement.cpp: Removed.
1997         * ksvg2/svg/SVGFontFaceFormatElement.h: Removed.
1998         * ksvg2/svg/SVGFontFaceFormatElement.idl: Removed.
1999         * ksvg2/svg/SVGFontFaceNameElement.cpp: Removed.
2000         * ksvg2/svg/SVGFontFaceNameElement.h: Removed.
2001         * ksvg2/svg/SVGFontFaceNameElement.idl: Removed.
2002         * ksvg2/svg/SVGFontFaceSrcElement.cpp: Removed.
2003         * ksvg2/svg/SVGFontFaceSrcElement.h: Removed.
2004         * ksvg2/svg/SVGFontFaceSrcElement.idl: Removed.
2005         * ksvg2/svg/SVGFontFaceUriElement.cpp: Removed.
2006         * ksvg2/svg/SVGFontFaceUriElement.h: Removed.
2007         * ksvg2/svg/SVGFontFaceUriElement.idl: Removed.
2008         * ksvg2/svg/SVGForeignObjectElement.cpp: Removed.
2009         * ksvg2/svg/SVGForeignObjectElement.h: Removed.
2010         * ksvg2/svg/SVGForeignObjectElement.idl: Removed.
2011         * ksvg2/svg/SVGGElement.cpp: Removed.
2012         * ksvg2/svg/SVGGElement.h: Removed.
2013         * ksvg2/svg/SVGGElement.idl: Removed.
2014         * ksvg2/svg/SVGGradientElement.cpp: Removed.
2015         * ksvg2/svg/SVGGradientElement.h: Removed.
2016         * ksvg2/svg/SVGGradientElement.idl: Removed.
2017         * ksvg2/svg/SVGImageElement.cpp: Removed.
2018         * ksvg2/svg/SVGImageElement.h: Removed.
2019         * ksvg2/svg/SVGImageElement.idl: Removed.
2020         * ksvg2/svg/SVGLangSpace.cpp: Removed.
2021         * ksvg2/svg/SVGLangSpace.h: Removed.
2022         * ksvg2/svg/SVGLangSpace.idl: Removed.
2023         * ksvg2/svg/SVGLength.cpp: Removed.
2024         * ksvg2/svg/SVGLength.h: Removed.
2025         * ksvg2/svg/SVGLength.idl: Removed.
2026         * ksvg2/svg/SVGLengthList.cpp: Removed.
2027         * ksvg2/svg/SVGLengthList.h: Removed.
2028         * ksvg2/svg/SVGLengthList.idl: Removed.
2029         * ksvg2/svg/SVGLineElement.cpp: Removed.
2030         * ksvg2/svg/SVGLineElement.h: Removed.
2031         * ksvg2/svg/SVGLineElement.idl: Removed.
2032         * ksvg2/svg/SVGLinearGradientElement.cpp: Removed.
2033         * ksvg2/svg/SVGLinearGradientElement.h: Removed.
2034         * ksvg2/svg/SVGLinearGradientElement.idl: Removed.
2035         * ksvg2/svg/SVGList.h: Removed.
2036         * ksvg2/svg/SVGListTraits.h: Removed.
2037         * ksvg2/svg/SVGLocatable.cpp: Removed.
2038         * ksvg2/svg/SVGLocatable.h: Removed.
2039         * ksvg2/svg/SVGLocatable.idl: Removed.
2040         * ksvg2/svg/SVGMPathElement.cpp: Removed.
2041         * ksvg2/svg/SVGMPathElement.h: Removed.
2042         * ksvg2/svg/SVGMarkerElement.cpp: Removed.
2043         * ksvg2/svg/SVGMarkerElement.h: Removed.
2044         * ksvg2/svg/SVGMarkerElement.idl: Removed.
2045         * ksvg2/svg/SVGMaskElement.cpp: Removed.
2046         * ksvg2/svg/SVGMaskElement.h: Removed.
2047         * ksvg2/svg/SVGMaskElement.idl: Removed.
2048         * ksvg2/svg/SVGMatrix.idl: Removed.
2049         * ksvg2/svg/SVGMetadataElement.cpp: Removed.
2050         * ksvg2/svg/SVGMetadataElement.h: Removed.
2051         * ksvg2/svg/SVGMetadataElement.idl: Removed.
2052         * ksvg2/svg/SVGNumber.idl: Removed.
2053         * ksvg2/svg/SVGNumberList.cpp: Removed.
2054         * ksvg2/svg/SVGNumberList.h: Removed.
2055         * ksvg2/svg/SVGNumberList.idl: Removed.
2056         * ksvg2/svg/SVGPaint.cpp: Removed.
2057         * ksvg2/svg/SVGPaint.h: Removed.
2058         * ksvg2/svg/SVGPaint.idl: Removed.
2059         * ksvg2/svg/SVGParserUtilities.cpp: Removed.
2060         * ksvg2/svg/SVGParserUtilities.h: Removed.
2061         * ksvg2/svg/SVGPathElement.cpp: Removed.
2062         * ksvg2/svg/SVGPathElement.h: Removed.
2063         * ksvg2/svg/SVGPathElement.idl: Removed.
2064         * ksvg2/svg/SVGPathSeg.h: Removed.
2065         * ksvg2/svg/SVGPathSeg.idl: Removed.
2066         * ksvg2/svg/SVGPathSegArc.cpp: Removed.
2067         * ksvg2/svg/SVGPathSegArc.h: Removed.
2068         * ksvg2/svg/SVGPathSegArcAbs.idl: Removed.
2069         * ksvg2/svg/SVGPathSegArcRel.idl: Removed.
2070         * ksvg2/svg/SVGPathSegClosePath.cpp: Removed.
2071         * ksvg2/svg/SVGPathSegClosePath.h: Removed.
2072         * ksvg2/svg/SVGPathSegClosePath.idl: Removed.
2073         * ksvg2/svg/SVGPathSegCurvetoCubic.cpp: Removed.
2074         * ksvg2/svg/SVGPathSegCurvetoCubic.h: Removed.
2075         * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl: Removed.
2076         * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl: Removed.
2077         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp: Removed.
2078         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h: Removed.
2079         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl: Removed.
2080         * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl: Removed.
2081         * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp: Removed.
2082         * ksvg2/svg/SVGPathSegCurvetoQuadratic.h: Removed.
2083         * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl: Removed.
2084         * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl: Removed.
2085         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp: Removed.
2086         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h: Removed.
2087         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl: Removed.
2088         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl: Removed.
2089         * ksvg2/svg/SVGPathSegLineto.cpp: Removed.
2090         * ksvg2/svg/SVGPathSegLineto.h: Removed.
2091         * ksvg2/svg/SVGPathSegLinetoAbs.idl: Removed.
2092         * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp: Removed.
2093         * ksvg2/svg/SVGPathSegLinetoHorizontal.h: Removed.
2094         * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl: Removed.
2095         * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl: Removed.
2096         * ksvg2/svg/SVGPathSegLinetoRel.idl: Removed.
2097         * ksvg2/svg/SVGPathSegLinetoVertical.cpp: Removed.
2098         * ksvg2/svg/SVGPathSegLinetoVertical.h: Removed.
2099         * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl: Removed.
2100         * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl: Removed.
2101         * ksvg2/svg/SVGPathSegList.cpp: Removed.
2102         * ksvg2/svg/SVGPathSegList.h: Removed.
2103         * ksvg2/svg/SVGPathSegList.idl: Removed.
2104         * ksvg2/svg/SVGPathSegMoveto.cpp: Removed.
2105         * ksvg2/svg/SVGPathSegMoveto.h: Removed.
2106         * ksvg2/svg/SVGPathSegMovetoAbs.idl: Removed.
2107         * ksvg2/svg/SVGPathSegMovetoRel.idl: Removed.
2108         * ksvg2/svg/SVGPatternElement.cpp: Removed.
2109         * ksvg2/svg/SVGPatternElement.h: Removed.
2110         * ksvg2/svg/SVGPatternElement.idl: Removed.
2111         * ksvg2/svg/SVGPoint.idl: Removed.
2112         * ksvg2/svg/SVGPointList.cpp: Removed.
2113         * ksvg2/svg/SVGPointList.h: Removed.
2114         * ksvg2/svg/SVGPointList.idl: Removed.
2115         * ksvg2/svg/SVGPolyElement.cpp: Removed.
2116         * ksvg2/svg/SVGPolyElement.h: Removed.
2117         * ksvg2/svg/SVGPolygonElement.cpp: Removed.
2118         * ksvg2/svg/SVGPolygonElement.h: Removed.
2119         * ksvg2/svg/SVGPolygonElement.idl: Removed.
2120         * ksvg2/svg/SVGPolylineElement.cpp: Removed.
2121         * ksvg2/svg/SVGPolylineElement.h: Removed.
2122         * ksvg2/svg/SVGPolylineElement.idl: Removed.
2123         * ksvg2/svg/SVGPreserveAspectRatio.cpp: Removed.
2124         * ksvg2/svg/SVGPreserveAspectRatio.h: Removed.
2125         * ksvg2/svg/SVGPreserveAspectRatio.idl: Removed.
2126         * ksvg2/svg/SVGRadialGradientElement.cpp: Removed.
2127         * ksvg2/svg/SVGRadialGradientElement.h: Removed.
2128         * ksvg2/svg/SVGRadialGradientElement.idl: Removed.
2129         * ksvg2/svg/SVGRect.idl: Removed.
2130         * ksvg2/svg/SVGRectElement.cpp: Removed.
2131         * ksvg2/svg/SVGRectElement.h: Removed.
2132         * ksvg2/svg/SVGRectElement.idl: Removed.
2133         * ksvg2/svg/SVGRenderingIntent.h: Removed.
2134         * ksvg2/svg/SVGRenderingIntent.idl: Removed.
2135         * ksvg2/svg/SVGSVGElement.cpp: Removed.
2136         * ksvg2/svg/SVGSVGElement.h: Removed.
2137         * ksvg2/svg/SVGSVGElement.idl: Removed.
2138         * ksvg2/svg/SVGScriptElement.cpp: Removed.
2139         * ksvg2/svg/SVGScriptElement.h: Removed.
2140         * ksvg2/svg/SVGScriptElement.idl: Removed.
2141         * ksvg2/svg/SVGSetElement.cpp: Removed.
2142         * ksvg2/svg/SVGSetElement.h: Removed.
2143         * ksvg2/svg/SVGSetElement.idl: Removed.
2144         * ksvg2/svg/SVGStopElement.cpp: Removed.
2145         * ksvg2/svg/SVGStopElement.h: Removed.
2146         * ksvg2/svg/SVGStopElement.idl: Removed.
2147         * ksvg2/svg/SVGStringList.cpp: Removed.
2148         * ksvg2/svg/SVGStringList.h: Removed.
2149         * ksvg2/svg/SVGStringList.idl: Removed.
2150         * ksvg2/svg/SVGStylable.cpp: Removed.
2151         * ksvg2/svg/SVGStylable.h: Removed.
2152         * ksvg2/svg/SVGStylable.idl: Removed.
2153         * ksvg2/svg/SVGStyleElement.cpp: Removed.
2154         * ksvg2/svg/SVGStyleElement.h: Removed.
2155         * ksvg2/svg/SVGStyleElement.idl: Removed.
2156         * ksvg2/svg/SVGStyledElement.cpp: Removed.
2157         * ksvg2/svg/SVGStyledElement.h: Removed.
2158         * ksvg2/svg/SVGStyledLocatableElement.cpp: Removed.
2159         * ksvg2/svg/SVGStyledLocatableElement.h: Removed.
2160         * ksvg2/svg/SVGStyledTransformableElement.cpp: Removed.
2161         * ksvg2/svg/SVGStyledTransformableElement.h: Removed.
2162         * ksvg2/svg/SVGSwitchElement.cpp: Removed.
2163         * ksvg2/svg/SVGSwitchElement.h: Removed.
2164         * ksvg2/svg/SVGSwitchElement.idl: Removed.
2165         * ksvg2/svg/SVGSymbolElement.cpp: Removed.
2166         * ksvg2/svg/SVGSymbolElement.h: Removed.
2167         * ksvg2/svg/SVGSymbolElement.idl: Removed.
2168         * ksvg2/svg/SVGTRefElement.cpp: Removed.
2169         * ksvg2/svg/SVGTRefElement.h: Removed.
2170         * ksvg2/svg/SVGTRefElement.idl: Removed.
2171         * ksvg2/svg/SVGTSpanElement.cpp: Removed.
2172         * ksvg2/svg/SVGTSpanElement.h: Removed.
2173         * ksvg2/svg/SVGTSpanElement.idl: Removed.
2174         * ksvg2/svg/SVGTests.cpp: Removed.
2175         * ksvg2/svg/SVGTests.h: Removed.
2176         * ksvg2/svg/SVGTests.idl: Removed.
2177         * ksvg2/svg/SVGTextContentElement.cpp: Removed.
2178         * ksvg2/svg/SVGTextContentElement.h: Removed.
2179         * ksvg2/svg/SVGTextContentElement.idl: Removed.
2180         * ksvg2/svg/SVGTextElement.cpp: Removed.
2181         * ksvg2/svg/SVGTextElement.h: Removed.
2182         * ksvg2/svg/SVGTextElement.idl: Removed.
2183         * ksvg2/svg/SVGTextPathElement.cpp: Removed.
2184         * ksvg2/svg/SVGTextPathElement.h: Removed.
2185         * ksvg2/svg/SVGTextPathElement.idl: Removed.
2186         * ksvg2/svg/SVGTextPositioningElement.cpp: Removed.
2187         * ksvg2/svg/SVGTextPositioningElement.h: Removed.
2188         * ksvg2/svg/SVGTextPositioningElement.idl: Removed.
2189         * ksvg2/svg/SVGTitleElement.cpp: Removed.
2190         * ksvg2/svg/SVGTitleElement.h: Removed.
2191         * ksvg2/svg/SVGTitleElement.idl: Removed.
2192         * ksvg2/svg/SVGTransform.cpp: Removed.
2193         * ksvg2/svg/SVGTransform.h: Removed.
2194         * ksvg2/svg/SVGTransform.idl: Removed.
2195         * ksvg2/svg/SVGTransformDistance.cpp: Removed.
2196         * ksvg2/svg/SVGTransformDistance.h: Removed.
2197         * ksvg2/svg/SVGTransformList.cpp: Removed.
2198         * ksvg2/svg/SVGTransformList.h: Removed.
2199         * ksvg2/svg/SVGTransformList.idl: Removed.
2200         * ksvg2/svg/SVGTransformable.cpp: Removed.
2201         * ksvg2/svg/SVGTransformable.h: Removed.
2202         * ksvg2/svg/SVGTransformable.idl: Removed.
2203         * ksvg2/svg/SVGURIReference.cpp: Removed.
2204         * ksvg2/svg/SVGURIReference.h: Removed.
2205         * ksvg2/svg/SVGURIReference.idl: Removed.
2206         * ksvg2/svg/SVGUnitTypes.h: Removed.
2207         * ksvg2/svg/SVGUnitTypes.idl: Removed.
2208         * ksvg2/svg/SVGUseElement.cpp: Removed.
2209         * ksvg2/svg/SVGUseElement.h: Removed.
2210         * ksvg2/svg/SVGUseElement.idl: Removed.
2211         * ksvg2/svg/SVGViewElement.cpp: Removed.
2212         * ksvg2/svg/SVGViewElement.h: Removed.
2213         * ksvg2/svg/SVGViewElement.idl: Removed.
2214         * ksvg2/svg/SVGViewSpec.cpp: Removed.
2215         * ksvg2/svg/SVGViewSpec.h: Removed.
2216         * ksvg2/svg/SVGViewSpec.idl: Removed.
2217         * ksvg2/svg/SVGZoomAndPan.cpp: Removed.
2218         * ksvg2/svg/SVGZoomAndPan.h: Removed.
2219         * ksvg2/svg/SVGZoomAndPan.idl: Removed.
2220         * ksvg2/svg/svgattrs.in: Removed.
2221         * ksvg2/svg/svgtags.in: Removed.
2222         * rendering/PointerEventsHitRules.cpp: Copied from ksvg2/misc/PointerEventsHitRules.cpp.
2223         * rendering/PointerEventsHitRules.h: Copied from ksvg2/misc/PointerEventsHitRules.h.
2224         * rendering/SVGRenderStyle.cpp: Copied from ksvg2/css/SVGRenderStyle.cpp.
2225         * rendering/SVGRenderStyle.h: Copied from ksvg2/css/SVGRenderStyle.h.
2226         * rendering/SVGRenderStyleDefs.cpp: Copied from ksvg2/css/SVGRenderStyleDefs.cpp.
2227         * rendering/SVGRenderStyleDefs.h: Copied from ksvg2/css/SVGRenderStyleDefs.h.
2228         * svg: Copied from ksvg2/svg.
2229         * svg/SVGDocumentExtensions.cpp: Copied from ksvg2/misc/SVGDocumentExtensions.cpp.
2230         * svg/SVGDocumentExtensions.h: Copied from ksvg2/misc/SVGDocumentExtensions.h.
2231         * svg/SVGImageLoader.cpp: Copied from ksvg2/misc/SVGImageLoader.cpp.
2232         * svg/SVGImageLoader.h: Copied from ksvg2/misc/SVGImageLoader.h.
2233         * svg/SVGTimer.cpp: Copied from ksvg2/misc/SVGTimer.cpp.
2234         * svg/SVGTimer.h: Copied from ksvg2/misc/SVGTimer.h.
2235         * svg/SVGZoomEvent.cpp: Copied from ksvg2/events/SVGZoomEvent.cpp.
2236         * svg/SVGZoomEvent.h: Copied from ksvg2/events/SVGZoomEvent.h.
2237         * svg/SVGZoomEvent.idl: Copied from ksvg2/events/SVGZoomEvent.idl.
2238         * svg/TimeScheduler.cpp: Copied from ksvg2/misc/TimeScheduler.cpp.
2239         * svg/TimeScheduler.h: Copied from ksvg2/misc/TimeScheduler.h.
2240         * svg/xlinkattrs.in: Copied from ksvg2/misc/xlinkattrs.in.
2241
2242 2007-11-30  Kevin Ollivier  <kevino@theolliviers.com>
2243
2244         wx build fix. Add WebCore/platform/graphics/wx to includes.
2245
2246         * webcore-wx.bkl:
2247
2248 2007-11-30  Brady Eidson  <beidson@apple.com>
2249
2250         Reviewed by Geoff
2251
2252         Further hookup of Database API
2253         With this change, any database operation that writes to the database (UPDATE, INSERT, CREATE, etc) will
2254         result in a didModifyDatabase notification when the transaction is successfully committed
2255
2256         * storage/DatabaseAuthorizer.cpp: Global rename of "m_lastActionIncreasedSize" to "m_lastActionChangedDatabase"
2257         (WebCore::DatabaseAuthorizer::reset):
2258         (WebCore::DatabaseAuthorizer::createTable):
2259         (WebCore::DatabaseAuthorizer::allowAlterTable):
2260         (WebCore::DatabaseAuthorizer::createIndex):
2261         (WebCore::DatabaseAuthorizer::createTrigger):
2262         (WebCore::DatabaseAuthorizer::createVTable):
2263         (WebCore::DatabaseAuthorizer::allowInsert):
2264         (WebCore::DatabaseAuthorizer::allowUpdate):
2265         * storage/DatabaseAuthorizer.h:
2266         (WebCore::DatabaseAuthorizer::lastActionChangedDatabase):
2267
2268         * storage/DatabaseTracker.cpp:
2269         (WebCore::DatabaseTracker::notifyDatabaseChanged): Added.  Allow external entities (SQLTransaction) to be able
2270           to request a didModifyDatabase notification to the delegate
2271         * storage/DatabaseTracker.h:
2272
2273         * storage/SQLTransaction.cpp: Added m_modifiedDatabase flag which tracks if any statement over the course of 
2274           a transaction resulted in a change to the database.
2275         (WebCore::SQLTransaction::SQLTransaction):
2276         (WebCore::SQLTransaction::runCurrentStatement): Set m_modifiedDatabase to true if the authorizer reports a mutation
2277           statement occurred
2278         (WebCore::SQLTransaction::postflightAndCommit): If the transaction successfully commits, call DatabaseTracker::notifyDatabaseChanged
2279         (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback): Ditto
2280         * storage/SQLTransaction.h:
2281
2282 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
2283
2284         Rubber stamped by David.
2285
2286         Next round of moves - platform reorganization.
2287         Move text/font/glyph related files from the individual port directories
2288         into platform/text/<port> or platform/graphics/<port>.
2289
2290         * DerivedSources.make:
2291         * WebCore.pro:
2292         * WebCore.vcproj/WebCore.vcproj:
2293         * WebCore.xcodeproj/project.pbxproj:
2294         * platform/cf/StringCF.cpp: Removed.
2295         * platform/cf/StringImplCF.cpp: Removed.
2296         * platform/graphics/gtk/FontCacheGtk.cpp: Copied from platform/gtk/FontCacheGtk.cpp.
2297         * platform/graphics/gtk/FontDataGtk.cpp: Copied from platform/gtk/FontDataGtk.cpp.
2298         * platform/graphics/gtk/FontGtk.cpp: Copied from platform/gtk/FontGtk.cpp.
2299         * platform/graphics/gtk/FontPlatformData.h: Copied from platform/gtk/FontPlatformData.h.
2300         * platform/graphics/gtk/FontPlatformDataGtk.cpp: Copied from platform/gtk/FontPlatformDataGtk.cpp.
2301         * platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp: Copied from platform/gtk/GlyphPageTreeNodeGtk.cpp.
2302         * platform/graphics/mac/FontCacheMac.mm: Copied from platform/mac/FontCacheMac.mm.
2303         * platform/graphics/mac/FontCustomPlatformData.cpp: Copied from platform/mac/FontCustomPlatformData.cpp.
2304         * platform/graphics/mac/FontCustomPlatformData.h: Copied from platform/mac/FontCustomPlatformData.h.
2305         * platform/graphics/mac/FontDataMac.mm: Copied from platform/mac/FontDataMac.mm.
2306         * platform/graphics/mac/FontMac.mm: Copied from platform/mac/FontMac.mm.
2307         * platform/graphics/mac/FontPlatformData.h: Copied from platform/mac/FontPlatformData.h.
2308         * platform/graphics/mac/FontPlatformDataMac.mm: Copied from platform/mac/FontPlatformDataMac.mm.
2309         * platform/graphics/mac/GlyphPageTreeNodeMac.cpp: Copied from platform/mac/GlyphPageTreeNodeMac.cpp.
2310         * platform/graphics/qt/FontCacheQt.cpp: Copied from platform/qt/FontCacheQt.cpp.
2311         * platform/graphics/qt/FontCustomPlatformData.cpp: Copied from platform/qt/FontCustomPlatformData.cpp.
2312         * platform/graphics/qt/FontCustomPlatformData.h: Copied from platform/qt/FontCustomPlatformData.h.
2313         * platform/graphics/qt/FontDataQt.cpp: Copied from platform/qt/FontDataQt.cpp.
2314         * platform/graphics/qt/FontPlatformData.h: Copied from platform/qt/FontPlatformData.h.
2315         * platform/graphics/qt/FontQt.cpp: Copied from platform/qt/FontQt.cpp.
2316         * platform/graphics/qt/GlyphPageTreeNodeQt.cpp: Copied from platform/qt/GlyphPageTreeNodeQt.cpp.
2317         * platform/graphics/win/FontCacheWin.cpp: Copied from platform/win/FontCacheWin.cpp.
2318         * platform/graphics/win/FontCustomPlatformData.cpp: Copied from platform/win/FontCustomPlatformData.cpp.
2319         * platform/graphics/win/FontCustomPlatformData.h: Copied from platform/win/FontCustomPlatformData.h.
2320         * platform/graphics/win/FontDataWin.cpp: Copied from platform/win/FontDataWin.cpp.
2321         * platform/graphics/win/FontDatabase.cpp: Copied from platform/win/FontDatabase.cpp.
2322         * platform/graphics/win/FontDatabase.h: Copied from platform/win/FontDatabase.h.
2323         * platform/graphics/win/FontPlatformData.h: Copied from platform/win/FontPlatformData.h.
2324         * platform/graphics/win/FontPlatformDataWin.cpp: Copied from platform/win/FontPlatformDataWin.cpp.
2325         * platform/graphics/win/FontWin.cpp: Copied from platform/win/FontWin.cpp.
2326         * platform/graphics/win/GlyphPageTreeNodeWin.cpp: Copied from platform/win/GlyphPageTreeNodeWin.cpp.
2327         * platform/graphics/wx/FontCacheWx.cpp: Copied from platform/wx/FontCacheWx.cpp.
2328         * platform/graphics/wx/FontDataWx.cpp: Copied from platform/wx/FontDataWx.cpp.
2329         * platform/graphics/wx/FontPlatformData.h: Copied from platform/wx/FontPlatformData.h.
2330         * platform/graphics/wx/FontPlatformDataWx.cpp: Copied from platform/wx/FontPlatformDataWx.cpp.
2331         * platform/graphics/wx/FontWx.cpp: Copied from platform/wx/FontWx.cpp.
2332         * platform/graphics/wx/GlyphMapWx.cpp: Copied from platform/wx/GlyphMapWx.cpp.
2333         * platform/gtk/FontCacheGtk.cpp: Removed.
2334         * platform/gtk/FontDataGtk.cpp: Removed.
2335         * platform/gtk/FontGtk.cpp: Removed.
2336         * platform/gtk/FontPlatformData.h: Removed.
2337         * platform/gtk/FontPlatformDataGtk.cpp: Removed.
2338         * platform/gtk/GlyphPageTreeNodeGtk.cpp: Removed.
2339         * platform/gtk/TextBreakIteratorInternalICUGtk.cpp: Removed.
2340         * platform/mac/FontCacheMac.mm: Removed.
2341         * platform/mac/FontCustomPlatformData.cpp: Removed.
2342         * platform/mac/FontCustomPlatformData.h: Removed.
2343         * platform/mac/FontDataMac.mm: Removed.
2344         * platform/mac/FontMac.mm: Removed.
2345         * platform/mac/FontPlatformData.h: Removed.
2346         * platform/mac/FontPlatformDataMac.mm: Removed.
2347         * platform/mac/GlyphPageTreeNodeMac.cpp: Removed.
2348         * platform/mac/ShapeArabic.c: Removed.
2349         * platform/mac/ShapeArabic.h: Removed.
2350         * platform/mac/StringImplMac.mm: Removed.
2351         * platform/mac/StringMac.mm: Removed.
2352         * platform/mac/TextBoundaries.mm: Removed.
2353         * platform/mac/TextBreakIteratorInternalICUMac.mm: Removed.
2354         * platform/mac/TextCodecMac.cpp: Removed.
2355         * platform/mac/TextCodecMac.h: Removed.
2356         * platform/mac/character-sets.txt: Removed.
2357         * platform/mac/mac-encodings.txt: Removed.
2358         * platform/mac/make-charset-table.pl: Removed.
2359         * platform/qt/FontCacheQt.cpp: Removed.
2360         * platform/qt/FontCustomPlatformData.cpp: Removed.
2361         * platform/qt/FontCustomPlatformData.h: Removed.
2362         * platform/qt/FontDataQt.cpp: Removed.
2363         * platform/qt/FontPlatformData.h: Removed.
2364         * platform/qt/FontQt.cpp: Removed.
2365         * platform/qt/GlyphPageTreeNodeQt.cpp: Removed.
2366         * platform/qt/StringQt.cpp: Removed.
2367         * platform/qt/TextBoundaries.cpp: Removed.
2368         * platform/qt/TextBreakIteratorQt.cpp: Removed.
2369         * platform/qt/TextCodecQt.cpp: Removed.
2370         * platform/qt/TextCodecQt.h: Removed.
2371         * platform/symbian/StringImplSymbian.cpp: Removed.
2372         * platform/symbian/StringSymbian.cpp: Removed.
2373         * platform/text/cf: Added.
2374         * platform/text/cf/StringCF.cpp: Copied from platform/cf/StringCF.cpp.
2375         * platform/text/cf/StringImplCF.cpp: Copied from platform/cf/StringImplCF.cpp.
2376         * platform/text/gtk: Added.
2377         * platform/text/gtk/TextBreakIteratorInternalICUGtk.cpp: Copied from platform/gtk/TextBreakIteratorInternalICUGtk.cpp.
2378         * platform/text/mac/ShapeArabic.c: Copied from platform/mac/ShapeArabic.c.
2379         * platform/text/mac/ShapeArabic.h: Copied from platform/mac/ShapeArabic.h.
2380         * platform/text/mac/StringImplMac.mm: Copied from platform/mac/StringImplMac.mm.
2381         * platform/text/mac/StringMac.mm: Copied from platform/mac/StringMac.mm.
2382         * platform/text/mac/TextBoundaries.mm: Copied from platform/mac/TextBoundaries.mm.
2383         * platform/text/mac/TextBreakIteratorInternalICUMac.mm: Copied from platform/mac/TextBreakIteratorInternalICUMac.mm.
2384         * platform/text/mac/TextCodecMac.cpp: Copied from platform/mac/TextCodecMac.cpp.
2385         * platform/text/mac/TextCodecMac.h: Copied from platform/mac/TextCodecMac.h.
2386         * platform/text/mac/character-sets.txt: Copied from platform/mac/character-sets.txt.
2387         * platform/text/mac/mac-encodings.txt: Copied from platform/mac/mac-encodings.txt.
2388         * platform/text/mac/make-charset-table.pl: Copied from platform/mac/make-charset-table.pl.
2389         * platform/text/qt: Added.
2390         * platform/text/qt/StringQt.cpp: Copied from platform/qt/StringQt.cpp.
2391         * platform/text/qt/TextBoundaries.cpp: Copied from platform/qt/TextBoundaries.cpp.
2392         * platform/text/qt/TextBreakIteratorQt.cpp: Copied from platform/qt/TextBreakIteratorQt.cpp.
2393         * platform/text/qt/TextCodecQt.cpp: Copied from platform/qt/TextCodecQt.cpp.
2394         * platform/text/qt/TextCodecQt.h: Copied from platform/qt/TextCodecQt.h.
2395         * platform/text/symbian: Added.
2396         * platform/text/symbian/StringImplSymbian.cpp: Copied from platform/symbian/StringImplSymbian.cpp.
2397         * platform/text/symbian/StringSymbian.cpp: Copied from platform/symbian/StringSymbian.cpp.
2398         * platform/text/win: Added.
2399         * platform/text/win/TextBreakIteratorInternalICUWin.cpp: Copied from platform/win/TextBreakIteratorInternalICUWin.cpp.
2400         * platform/text/wx: Added.
2401         * platform/text/wx/StringWx.cpp: Copied from platform/wx/StringWx.cpp.
2402         * platform/win/FontCacheWin.cpp: Removed.
2403         * platform/win/FontCustomPlatformData.cpp: Removed.
2404         * platform/win/FontCustomPlatformData.h: Removed.
2405         * platform/win/FontDataWin.cpp: Removed.
2406         * platform/win/FontDatabase.cpp: Removed.
2407         * platform/win/FontDatabase.h: Removed.
2408         * platform/win/FontPlatformData.h: Removed.
2409         * platform/win/FontPlatformDataWin.cpp: Removed.
2410         * platform/win/FontWin.cpp: Removed.
2411         * platform/win/GlyphPageTreeNodeWin.cpp: Removed.
2412         * platform/win/TextBreakIteratorInternalICUWin.cpp: Removed.
2413         * platform/wx/FontCacheWx.cpp: Removed.
2414         * platform/wx/FontDataWx.cpp: Removed.
2415         * platform/wx/FontPlatformData.h: Removed.
2416         * platform/wx/FontPlatformDataWx.cpp: Removed.
2417         * platform/wx/FontWx.cpp: Removed.
2418         * platform/wx/GlyphMapWx.cpp: Removed.
2419         * platform/wx/StringWx.cpp: Removed.
2420         * webcore-wx.bkl:
2421
2422 2007-11-30  Kevin Ollivier  <kevino@theolliviers.com>
2423
2424         Build fix for wx port. Adding editing/RemoveFormatCommand.cpp
2425
2426         * WebCoreSources.bkl:
2427
2428 2007-11-30  Simon Hausmann  <hausmann@webkit.org>
2429
2430         Reviewed by Adam Roben.
2431
2432         Fix the build with DATABASE=0.
2433
2434         * page/Settings.cpp:
2435         (WebCore::Settings::setDefaultDatabaseOriginQuota):
2436         (WebCore::Settings::defaultDatabaseOriginQuota):
2437
2438 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
2439
2440         Rubber stamped by Darin.
2441
2442         Fix misplaced file. The name "FontStyle" is not correct though - it probably
2443         needs yet another move - but this time inside platform/graphics - as soon
2444         as we agree on a better name.
2445
2446         * WebCore.xcodeproj/project.pbxproj:
2447         * platform/graphics/FontStyle.h: Copied from platform/text/FontStyle.h.
2448         * platform/text/FontStyle.h: Removed.
2449
2450 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
2451
2452         Reviewed by Sam.
2453
2454         Rename "FontStyle FontStyle(...)" to "FontStyle fontStyle(...)".
2455         I scripted a bit too much while doing the TextStyle -> FontStyle change.
2456
2457         * platform/win/PopupMenuWin.cpp:
2458         (WebCore::PopupMenu::paint):
2459         * rendering/EllipsisBox.cpp:
2460         (WebCore::EllipsisBox::paint):
2461         * rendering/RenderFileUploadControl.cpp:
2462         (WebCore::RenderFileUploadControl::paintObject):
2463         * rendering/RenderListBox.cpp:
2464         (WebCore::RenderListBox::updateFromElement):
2465         (WebCore::RenderListBox::paintItemForeground):
2466         * rendering/RenderTextControl.cpp:
2467         (WebCore::RenderTextControl::setStyle):
2468         (WebCore::RenderTextControl::createInnerTextStyle):
2469         (WebCore::RenderTextControl::createSubtreeIfNeeded):
2470         * rendering/RenderTextControl.h:
2471         * rendering/SVGRootInlineBox.cpp:
2472         (WebCore::svgFontStyleForInlineTextBox):
2473
2474 2007-11-30  Alp Toker  <alp@atoker.com>
2475
2476         GTK+ build fix following the recent text reorganization.
2477
2478         * WebCore.pro:
2479
2480 2007-11-29  Jon Honeycutt  <jhoneycutt@apple.com>
2481
2482         Reviewed by Adam.
2483
2484         Part of <rdar://problem/5506522> Seed: cannot type into text box in
2485         Facebook, don't see plugin content (Adobe Flash)
2486
2487         * plugins/win/PluginViewWin.cpp:
2488         (WebCore::PluginViewWin::handleMouseEvent): Focus the plugin's parent
2489         frame  
2490
2491 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
2492
2493         Not reviewed. Trying to fix gtk/qt/wx build. (I expected problems because of the moves)
2494
2495         * WebCore.pro:
2496         * webcore-base.bkl:
2497
2498 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
2499
2500         Rubber stamped by Brady.
2501
2502         Started platform reorganization (platform/text addition).
2503         Moving string/text/font related classes into new places - as discussed on webkit-dev.
2504
2505         In a follow-up commit I'll move classes out of platform/{mac,win,...} into
2506         platform/text/{mac,win,...}, and also do the ksvg2/ -> svg/ move.
2507
2508         * WebCore.order:
2509         * WebCore.pro:
2510         * WebCore.vcproj/WebCore.vcproj:
2511         * WebCore.xcodeproj/project.pbxproj:
2512         * WebCoreSources.bkl:
2513         * editing/ReplaceSelectionCommand.cpp:
2514         (WebCore::ReplacementFragment::insertFragmentForTestRendering):
2515         * platform/AtomicString.cpp: Removed.
2516         * platform/AtomicString.h: Removed.
2517         * platform/AtomicStringImpl.h: Removed.
2518         * platform/Base64.cpp: Removed.
2519         * platform/Base64.h: Removed.
2520         * platform/BidiContext.cpp: Removed.
2521         * platform/BidiContext.h: Removed.
2522         * platform/BidiResolver.h: Removed.
2523         * platform/CString.cpp: Removed.
2524         * platform/CString.h: Removed.
2525         * platform/CharacterNames.h: Removed.
2526         * platform/CharsetData.h: Removed.
2527         * platform/Font.cpp: Removed.
2528         * platform/Font.h: Removed.
2529         * platform/FontCache.cpp: Removed.
2530         * platform/FontCache.h: Removed.
2531         * platform/FontData.cpp: Removed.
2532         * platform/FontData.h: Removed.
2533         * platform/FontDescription.h: Removed.
2534         * platform/FontFallbackList.cpp: Removed.
2535         * platform/FontFallbackList.h: Removed.
2536         * platform/FontFamily.cpp: Removed.
2537         * platform/FontFamily.h: Removed.
2538         * platform/FontSelector.h: Removed.
2539         * platform/GlyphBuffer.h: Removed.
2540         * platform/GlyphPageTreeNode.cpp: Removed.
2541         * platform/GlyphPageTreeNode.h: Removed.
2542         * platform/GlyphWidthMap.cpp: Removed.
2543         * platform/GlyphWidthMap.h: Removed.
2544         * platform/PlatformString.h: Removed.
2545         * platform/RegularExpression.cpp: Removed.
2546         * platform/RegularExpression.h: Removed.
2547         * platform/SegmentedString.cpp: Removed.
2548         * platform/SegmentedString.h: Removed.
2549         * platform/String.cpp: Removed.
2550         * platform/StringHash.h: Removed.
2551         * platform/StringImpl.cpp: Removed.
2552         * platform/StringImpl.h: Removed.
2553         * platform/StringTruncator.cpp: Removed.
2554         * platform/StringTruncator.h: Removed.
2555         * platform/TextBoundaries.h: Removed.
2556         * platform/TextBoundariesICU.cpp: Removed.
2557         * platform/TextBreakIterator.h: Removed.
2558         * platform/TextBreakIteratorICU.cpp: Removed.
2559         * platform/TextBreakIteratorInternalICU.h: Removed.
2560         * platform/TextCodec.cpp: Removed.
2561         * platform/TextCodec.h: Removed.
2562         * platform/TextCodecICU.cpp: Removed.
2563         * platform/TextCodecICU.h: Removed.
2564         * platform/TextCodecLatin1.cpp: Removed.
2565         * platform/TextCodecLatin1.h: Removed.
2566         * platform/TextCodecUTF16.cpp: Removed.
2567         * platform/TextCodecUTF16.h: Removed.
2568         * platform/TextCodecUserDefined.cpp: Removed.
2569         * platform/TextCodecUserDefined.h: Removed.
2570         * platform/TextDecoder.cpp: Removed.
2571         * platform/TextDecoder.h: Removed.
2572         * platform/TextDirection.h: Removed.
2573         * platform/TextEncoding.cpp: Removed.
2574         * platform/TextEncoding.h: Removed.
2575         * platform/TextEncodingRegistry.cpp: Removed.
2576         * platform/TextEncodingRegistry.h: Removed.
2577         * platform/TextStream.cpp: Removed.
2578         * platform/TextStream.h: Removed.
2579         * platform/TextStyle.h: Removed.
2580         * platform/UnicodeRange.cpp: Removed.
2581         * platform/UnicodeRange.h: Removed.
2582         * platform/graphics/Font.cpp: Copied from platform/Font.cpp.
2583         (WebCore::WidthIterator::WidthIterator):
2584         (WebCore::Font::width):
2585         (WebCore::Font::drawSimpleText):
2586         (WebCore::Font::drawGlyphBuffer):
2587         (WebCore::Font::drawText):
2588         (WebCore::Font::floatWidth):
2589         (WebCore::Font::floatWidthForSimpleText):
2590         (WebCore::Font::selectionRectForText):
2591         (WebCore::Font::selectionRectForSimpleText):
2592         (WebCore::Font::offsetForPosition):
2593         (WebCore::Font::offsetForPositionForSimpleText):
2594         * platform/graphics/Font.h: Copied from platform/Font.h.
2595         * platform/graphics/FontCache.cpp: Copied from platform/FontCache.cpp.
2596         * platform/graphics/FontCache.h: Copied from platform/FontCache.h.
2597         * platform/graphics/FontData.cpp: Copied from platform/FontData.cpp.
2598         * platform/graphics/FontData.h: Copied from platform/FontData.h.
2599         * platform/graphics/FontDescription.h: Copied from platform/FontDescription.h.
2600         * platform/graphics/FontFallbackList.cpp: Copied from platform/FontFallbackList.cpp.
2601         * platform/graphics/FontFallbackList.h: Copied from platform/FontFallbackList.h.
2602         * platform/graphics/FontFamily.cpp: Copied from platform/FontFamily.cpp.
2603         * platform/graphics/FontFamily.h: Copied from platform/FontFamily.h.
2604         * platform/graphics/FontSelector.h: Copied from platform/FontSelector.h.
2605         * platform/graphics/GlyphBuffer.h: Copied from platform/GlyphBuffer.h.
2606         * platform/graphics/GlyphPageTreeNode.cpp: Copied from platform/GlyphPageTreeNode.cpp.
2607         * platform/graphics/GlyphPageTreeNode.h: Copied from platform/GlyphPageTreeNode.h.
2608         * platform/graphics/GlyphWidthMap.cpp: Copied from platform/GlyphWidthMap.cpp.
2609         * platform/graphics/GlyphWidthMap.h: Copied from platform/GlyphWidthMap.h.
2610         * platform/graphics/GraphicsContext.cpp:
2611         (WebCore::GraphicsContext::drawText):
2612         (WebCore::GraphicsContext::drawBidiText):
2613         (WebCore::GraphicsContext::drawHighlightForText):
2614         * platform/graphics/GraphicsContext.h:
2615         * platform/graphics/StringTruncator.cpp: Copied from platform/StringTruncator.cpp.
2616         (WebCore::stringWidth):
2617         * platform/graphics/StringTruncator.h: Copied from platform/StringTruncator.h.
2618         * platform/graphics/qt/GraphicsContextQt.cpp:
2619         * platform/gtk/FontGtk.cpp:
2620         (WebCore::Font::drawComplexText):
2621         (WebCore::Font::floatWidthForComplexText):
2622         (WebCore::Font::offsetForPositionForComplexText):
2623         (WebCore::Font::selectionRectForComplexText):
2624         * platform/mac/FontMac.mm:
2625         (WebCore::ATSULayoutParameters::ATSULayoutParameters):
2626         (WebCore::Font::selectionRectForComplexText):
2627         (WebCore::Font::drawComplexText):
2628         (WebCore::Font::floatWidthForComplexText):
2629         (WebCore::Font::offsetForPositionForComplexText):
2630         * platform/mac/WebCoreTextRenderer.mm:
2631         (WebCoreDrawTextAtPoint):
2632         (WebCoreTextFloatWidth):
2633         * platform/qt/FontQt.cpp:
2634         (WebCore::generateComponents):
2635         (WebCore::Font::drawText):
2636         (WebCore::Font::width):
2637         (WebCore::Font::floatWidth):
2638         (WebCore::Font::offsetForPosition):
2639         (WebCore::cursorToX):
2640         (WebCore::Font::selectionRectForText):
2641         * platform/text: Added.
2642         * platform/text/AtomicString.cpp: Copied from platform/AtomicString.cpp.
2643         * platform/text/AtomicString.h: Copied from platform/AtomicString.h.
2644         * platform/text/AtomicStringImpl.h: Copied from platform/AtomicStringImpl.h.
2645         * platform/text/Base64.cpp: Copied from platform/Base64.cpp.
2646         * platform/text/Base64.h: Copied from platform/Base64.h.
2647         * platform/text/BidiContext.cpp: Copied from platform/BidiContext.cpp.
2648         * platform/text/BidiContext.h: Copied from platform/BidiContext.h.
2649         * platform/text/BidiResolver.h: Copied from platform/BidiResolver.h.
2650         * platform/text/CString.cpp: Copied from platform/CString.cpp.
2651         * platform/text/CString.h: Copied from platform/CString.h.
2652         * platform/text/CharacterNames.h: Copied from platform/CharacterNames.h.
2653         * platform/text/FontStyle.h: Copied from platform/TextStyle.h.
2654         (WebCore::FontStyle::FontStyle):
2655         * platform/text/PlatformString.h: Copied from platform/PlatformString.h.
2656         * platform/text/RegularExpression.cpp: Copied from platform/RegularExpression.cpp.
2657         * platform/text/RegularExpression.h: Copied from platform/RegularExpression.h.
2658         * platform/text/SegmentedString.cpp: Copied from platform/SegmentedString.cpp.
2659         * platform/text/SegmentedString.h: Copied from platform/SegmentedString.h.
2660         * platform/text/String.cpp: Copied from platform/String.cpp.
2661         * platform/text/StringHash.h: Copied from platform/StringHash.h.
2662         * platform/text/StringImpl.cpp: Copied from platform/StringImpl.cpp.
2663         * platform/text/StringImpl.h: Copied from platform/StringImpl.h.
2664         * platform/text/TextBoundaries.h: Copied from platform/TextBoundaries.h.
2665         * platform/text/TextBoundariesICU.cpp: Copied from platform/TextBoundariesICU.cpp.
2666         (WebCore::findNextWordFromIndex):
2667         * platform/text/TextBreakIterator.h: Copied from platform/TextBreakIterator.h.
2668         * platform/text/TextBreakIteratorICU.cpp: Copied from platform/TextBreakIteratorICU.cpp.
2669         * platform/text/TextBreakIteratorInternalICU.h: Copied from platform/TextBreakIteratorInternalICU.h.
2670         * platform/text/TextCodec.cpp: Copied from platform/TextCodec.cpp.
2671         * platform/text/TextCodec.h: Copied from platform/TextCodec.h.
2672         * platform/text/TextCodecICU.cpp: Copied from platform/TextCodecICU.cpp.
2673         * platform/text/TextCodecICU.h: Copied from platform/TextCodecICU.h.
2674         * platform/text/TextCodecLatin1.cpp: Copied from platform/TextCodecLatin1.cpp.
2675         * platform/text/TextCodecLatin1.h: Copied from platform/TextCodecLatin1.h.
2676         * platform/text/TextCodecUTF16.cpp: Copied from platform/TextCodecUTF16.cpp.
2677         * platform/text/TextCodecUTF16.h: Copied from platform/TextCodecUTF16.h.
2678         * platform/text/TextCodecUserDefined.cpp: Copied from platform/TextCodecUserDefined.cpp.
2679         * platform/text/TextCodecUserDefined.h: Copied from platform/TextCodecUserDefined.h.
2680         * platform/text/TextDecoder.cpp: Copied from platform/TextDecoder.cpp.
2681         * platform/text/TextDecoder.h: Copied from platform/TextDecoder.h.
2682         * platform/text/TextDirection.h: Copied from platform/TextDirection.h.
2683         * platform/text/TextEncoding.cpp: Copied from platform/TextEncoding.cpp.
2684         * platform/text/TextEncoding.h: Copied from platform/TextEncoding.h.
2685         * platform/text/TextEncodingRegistry.cpp: Copied from platform/TextEncodingRegistry.cpp.
2686         * platform/text/TextEncodingRegistry.h: Copied from platform/TextEncodingRegistry.h.
2687         * platform/text/TextStream.cpp: Copied from platform/TextStream.cpp.
2688         * platform/text/TextStream.h: Copied from platform/TextStream.h.
2689         * platform/text/UnicodeRange.cpp: Copied from platform/UnicodeRange.cpp.
2690         * platform/text/UnicodeRange.h: Copied from platform/UnicodeRange.h.
2691         * platform/text/mac: Added.
2692         * platform/text/mac/CharsetData.h: Copied from platform/CharsetData.h.
2693         * platform/win/FontWin.cpp:
2694         (WebCore::Font::selectionRectForComplexText):
2695         (WebCore::Font::drawComplexText):
2696         (WebCore::Font::floatWidthForComplexText):
2697         (WebCore::Font::offsetForPositionForComplexText):
2698         * platform/win/PopupMenuWin.cpp:
2699         (WebCore::PopupMenu::paint):
2700         * platform/win/UniscribeController.cpp:
2701         (WebCore::UniscribeController::UniscribeController):
2702         * platform/win/UniscribeController.h:
2703         * platform/win/WebCoreTextRenderer.cpp:
2704         (WebCore::doDrawTextAtPoint):
2705         * platform/wx/FontWx.cpp:
2706         (WebCore::Font::selectionRectForComplexText):
2707         (WebCore::Font::drawComplexText):
2708         (WebCore::Font::floatWidthForComplexText):
2709         (WebCore::Font::offsetForPositionForComplexText):
2710         * rendering/EllipsisBox.cpp:
2711         (WebCore::EllipsisBox::paint):
2712         * rendering/InlineTextBox.cpp:
2713         (WebCore::InlineTextBox::selectionRect):
2714         (WebCore::InlineTextBox::paint):
2715         (WebCore::InlineTextBox::paintSelection):
2716         (WebCore::InlineTextBox::paintCompositionBackground):
2717         (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
2718         (WebCore::InlineTextBox::paintTextMatchMarker):
2719         (WebCore::InlineTextBox::offsetForPosition):
2720         (WebCore::InlineTextBox::positionForOffset):
2721         * rendering/RenderFileUploadControl.cpp:
2722         (WebCore::RenderFileUploadControl::paintObject):
2723         (WebCore::RenderFileUploadControl::calcPrefWidths):
2724         * rendering/RenderImage.cpp:
2725         * rendering/RenderListBox.cpp:
2726         (WebCore::RenderListBox::updateFromElement):
2727         (WebCore::RenderListBox::paintItemForeground):
2728         * rendering/RenderMenuList.cpp:
2729         (WebCore::RenderMenuList::updateOptionsWidth):
2730         * rendering/RenderText.cpp:
2731         (WebCore::RenderText::widthFromCache):
2732         (WebCore::RenderText::calcPrefWidths):
2733         (WebCore::RenderText::width):
2734         * rendering/RenderTextControl.cpp:
2735         (WebCore::RenderTextControl::setStyle):
2736         (WebCore::RenderTextControl::createInnerFontStyle):
2737         (WebCore::RenderTextControl::createSubtreeIfNeeded):
2738         (WebCore::RenderTextControl::calcPrefWidths):
2739         * rendering/RenderTextControl.h:
2740         * rendering/SVGInlineTextBox.cpp:
2741         (WebCore::SVGInlineTextBox::calculateGlyphWidth):
2742         (WebCore::SVGInlineTextBox::paintCharacters):
2743         (WebCore::SVGInlineTextBox::paintSelection):
2744         * rendering/SVGRootInlineBox.cpp:
2745         (WebCore::cummulatedWidthOfInlineBoxCharacterRange):
2746         (WebCore::svgFontStyleForInlineTextBox):
2747         * rendering/SVGRootInlineBox.h:
2748
2749 2007-11-30  Adele Peterson  <adele@apple.com>
2750
2751         Reviewed by Darin.
2752
2753         Fix for http://bugs.webkit.org/show_bug.cgi?id=16072
2754         <rdar://problem/5463821> REGRESSION: Mousemove event isn't fired when mouse moves over scrollbar with pressed button (16072)
2755
2756         Test: fast/events/mousemove-after-drag-over-scrollbar.html
2757
2758         * page/EventHandler.cpp:
2759         (WebCore::EventHandler::handleMouseMoveEvent): If the mouse is pressed, and we've moved over a new scrollbar, then we can clear m_lastScrollbarUnderMouse.
2760          We should only need to show the hover effect when the mouse isn't pressed.
2761
2762 2007-11-29  Brady Eidson <beidson@apple.com>
2763
2764         Reviewed by Tim
2765
2766         Part of <rdar://problem/5556377> - Need to accurately track and enforce database quota
2767
2768         SQLite has the ability to enforce the page usage for databases.  This gives us bulletproof
2769         enforcement of the database size limit with reasonable granularity (within 1023 bytes by 
2770         default on OS X with SQLite 3.4.0)
2771
2772         This also involved enhancing the ability to install/remove the authorizer to run the PRAGMA
2773         statements involved
2774
2775         Note this patch does not actually use the new maximumSize() functionality of the 
2776         SQLiteDatabase class - that can be reviewed/landed seperately
2777         
2778         * platform/sql/SQLiteDatabase.cpp:
2779         (WebCore::SQLiteDatabase::SQLiteDatabase): 
2780         (WebCore::SQLiteDatabase::maximumSize): Return the current maximum size in bytes
2781         (WebCore::SQLiteDatabase::setMaximumSize): Based on m_pageSize, set the maximum page count
2782           to enforce the maximum size in bytes
2783         (WebCore::SQLiteDatabase::pageSize): Fetch m_pageSize if it hasn't been fetched, or return
2784           the cached value
2785         (WebCore::SQLiteDatabase::setAuthorizer): Use enableAuthorizer for the sqlite_* level 
2786           authorizer setup
2787         (WebCore::SQLiteDatabase::enableAuthorizer): Install or remove the sqlite authorizer handler
2788         * platform/sql/SQLiteDatabase.h: Add the m_pageSize member so we only have to fetch it once
2789
2790 2007-11-29  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
2791
2792         Reviewed by Maciej.
2793
2794         * Fix fast/events/mousedown_in_scrollbar.html
2795         * This test used to crash in PlatformScrollbarQt::mouse*Event due parent() returning 0.
2796         * Extend the current check that the scrollbar in the mev can be go away.
2797         This happens if we destroy a RenderLayer as the result of a click. In the
2798         case of Qt we can have this scrollbar in m_lastScrollbarUnderMouse. The RenderLayer
2799         is the ScrollbarClient, m_lastScrollbarUnderMouse is a RefPtr and keeps the
2800         last reference. When calling into this scrollbar the m_client pointer is a dangling pointer.
2801         We extend the check to set m_lastScrollbarUnderMouse back to zero when it was the
2802         scrollbar in the old mev and is gone in the new one.
2803         * This happens only on the Qt port because we send more/different move events.
2804
2805         * page/EventHandler.cpp:
2806         (WebCore::EventHandler::handleMousePressEvent):
2807
2808 2007-11-29  Antti Koivisto  <antti@apple.com>
2809
2810         Reviewed by Mitz.
2811
2812         Fix aspect ratio calculation of video.
2813         
2814         Video should always be treated as a replaced element in size calculation.
2815         
2816         Test: media/video-aspect-ratio.html
2817
2818         * rendering/RenderBox.cpp:
2819         (WebCore::RenderBox::calcWidth):
2820         (WebCore::RenderBox::calcHeight):
2821         * rendering/RenderBox.h:
2822         (WebCore::RenderBox::shouldCalculateSizeAsReplaced):
2823         * rendering/RenderMedia.h:
2824         (WebCore::RenderMedia::shouldCalculateSizeAsReplaced):
2825
2826 2007-11-29  Sam Weinig  <sam@webkit.org>
2827
2828         Reviewed by Oliver.
2829
2830         Additional fix for <rdar://problem/5592988> / http://bugs.webkit.org/show_bug.cgi?id=15936
2831         - More closely match IE's policy for frame navigation.
2832
2833         * bindings/js/kjs_window.cpp:
2834         (KJS::WindowProtoFuncOpen::callAsFunction):
2835         * loader/FrameLoader.cpp:
2836         (WebCore::FrameLoader::shouldAllowNavigation):
2837         * page/FrameTree.cpp:
2838         (WebCore::FrameTree::top):
2839         * page/FrameTree.h:
2840
2841 2007-11-29  Dan Bernstein  <mitz@apple.com>
2842
2843         Reviewed by Adam Roben and John Sullivan.
2844
2845         - make the recent searches popup extend only along the straight part of
2846           the search field (unless it needs to be wider).
2847
2848         * platform/PopupMenuClient.h:
2849           Added clientInsetLeft() and clientInsetRight() for clients to
2850           specify desired horizontal insets for the menu.
2851         * platform/win/PopupMenuWin.cpp:
2852         (WebCore::PopupMenu::calculatePositionAndSize):
2853         (WebCore::PopupMenu::paint):
2854         * rendering/RenderMenuList.cpp:
2855         (WebCore::RenderMenuList::clientInsetLeft): Added. Returns 0.
2856         (WebCore::RenderMenuList::clientInsetRight): Ditto.
2857         * rendering/RenderMenuList.h:
2858         * rendering/RenderTextControl.cpp:
2859         (WebCore::RenderTextControl::clientInsetLeft): Added. Returns half the
2860         control's height, which is the radius of the cap on the left.
2861         (WebCore::RenderTextControl::clientInsetRight): Added.
2862         * rendering/RenderTextControl.h:
2863
2864 2007-11-30  Alp Toker  <alp@atoker.com>
2865
2866         Reviewed by Maciej.
2867
2868         http://bugs.webkit.org/show_bug.cgi?id=16173
2869         Licensing change
2870
2871         Change license from BSD to LGPL.
2872
2873         This is being done to encourage vendors to contribute their fixes back
2874         upstream.
2875
2876         * platform/graphics/gtk/ColorGtk.cpp:
2877         * platform/graphics/gtk/IntPointGtk.cpp:
2878         * platform/graphics/gtk/IntRectGtk.cpp:
2879         * platform/graphics/svg/cairo/RenderPathCairo.cpp:
2880         * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp:
2881         * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp:
2882         * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp:
2883         * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp:
2884         * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp:
2885         * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp:
2886         * platform/gtk/Language.cpp:
2887         * platform/gtk/LoggingGtk.cpp:
2888         * platform/gtk/SoundGtk.cpp:
2889         * platform/gtk/SystemTimeGtk.cpp:
2890         * platform/gtk/TextBreakIteratorInternalICUGtk.cpp:
2891
2892 2007-11-29  Darin Adler  <darin@apple.com>
2893
2894         Reviewed by Adele.
2895
2896         - fix http://bugs.webkit.org/show_bug.cgi?id=16191
2897           REGRESSION: cannot tab to radio input after setting checked to false
2898
2899         Test: fast/forms/input-radio-checked-tab.html
2900
2901         * html/HTMLFormElement.cpp:
2902         (WebCore::HTMLFormElement::CheckedRadioButtons::addButton): Fix this code
2903         so that it doesn't call setChecked(false) until after the map has been updated.
2904         Otherwise, we can end up deallocating the map before manipulating it. As long
2905         as I was changing the function, I decided to make it do only a single hash
2906         table lookup.
2907
2908         * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::setChecked):
2909         Remove the button from the radio buttons set before changing the checked
2910         state. This matches the idiom used elsewhere and fixes the problem where
2911         setting checked to false would not remove it from the set.
2912
2913 2007-11-29  Justin Garcia  <justin.garcia@apple.com>
2914
2915         Reviewed by Darin Adler.
2916
2917         <rdar://problem/5620093> Brief hang when Safari caches page text of XML document
2918
2919         * editing/TextIterator.cpp:
2920         (WebCore::TextIterator::representNodeOffsetZero): When we haven't been emitting any 
2921         characters, shouldRepresentNodeOffsetZero() can create VisiblePositions, which is
2922         expensive.  So, we perform the inexpensive checks on m_node to see if it necessitates 
2923         emitting a character first and will early return before encountering 
2924         shouldRepresentNodeOffsetZero()s worse case behavior.
2925
2926 2007-11-29  Anders Carlsson  <andersca@apple.com>
2927
2928         Reviewed by Sam.
2929
2930         Don't install event handlers or set the zoom cursor if auto-shrink has been disabled.
2931
2932         * loader/ImageDocument.cpp:
2933         (WebCore::ImageDocument::createDocumentStructure):
2934         (WebCore::ImageDocument::imageChanged):
2935
2936 2007-11-29  Beth Dakin  <bdakin@apple.com>
2937
2938         Reviewed by Geoff.
2939
2940         Fix for <rdar://problem/5620151> Disable JavaScript for SVG as 
2941         image for <img> and CSS images
2942
2943         * platform/graphics/svg/SVGImage.cpp:
2944         (WebCore::SVGImage::dataChanged): When we create the empty clients, 
2945         explicitly disable JavaScript in the settings.
2946
2947 2007-11-29  Brady Eidson  <beidson@apple.com>
2948
2949         Reviewed by Anders
2950
2951         Support for <rdar://problem/5556381> and <rdar://problem/5556379>
2952
2953         The Database feature in the engine needs to support delegate calls for policy decisions and
2954         also provide notifications when origins and databases change their state.
2955
2956         This patch also polishes off the missing features of the management API
2957
2958         * page/Chrome.cpp: Implement the two UIDelegate methods
2959         (WebCore::Chrome::requestQuotaIncreaseForNewDatabase): Ask for more space to create a new database if it won't fit
2960         (WebCore::Chrome::requestQuotaIncreaseForDatabaseOperation): Ask for more space to complete an in-progress operation
2961         * page/Chrome.h:
2962         * page/ChromeClient.h:
2963         * platform/graphics/svg/SVGImageEmptyClients.h:
2964         (WebCore::SVGEmptyChromeClient::requestQuotaIncreaseForNewDatabase):
2965         (WebCore::SVGEmptyChromeClient::requestQuotaIncreaseForDatabaseOperation):
2966
2967         * storage/Database.cpp:
2968         (WebCore::Database::openDatabase): Check to see if this database can be opened - the quota must be high 
2969           enough and if it isn't, the UIDelegate should have a change to bump the quota.
2970           Also update the UI-relevant details (display name and estimated size) upon successful opening of the database
2971
2972         * storage/DatabaseDetails.h: Remove the version parameter as it is a programatic detail of a
2973           site database and is not important to API clients
2974         (WebCore::DatabaseDetails::DatabaseDetails):
2975         (WebCore::DatabaseDetails::isValid):
2976         (WebCore::DatabaseDetails::name):
2977
2978         * storage/DatabaseTracker.cpp:
2979         (WebCore::DatabaseTracker::openTrackerDatabase): Tweaked the schema here - there was a horrible bug with the old schema that would
2980           prevent you from having two databases of the same name from two different origins.  Also simplify the origin-management schema
2981         (WebCore::DatabaseTracker::canEstablishDatabase): Added.  Does some estimated size vs quota checks, and asks the UI delegate for 
2982           more space if necessary
2983         (WebCore::DatabaseTracker::hasEntryForOrigin):
2984         (WebCore::DatabaseTracker::establishEntryForOrigin): Establishes a tracker entry for the given origin with the current default quota
2985           Also notifies the client of the new origin
2986         (WebCore::DatabaseTracker::setDatabaseDetails): Update the display name and estimated size for the given database
2987         (WebCore::DatabaseTracker::fullPathForDatabase): Tweak to add the ability to get the path without creating it - for management purposes
2988         (WebCore::DatabaseTracker::populateOrigins): Populate origins from the Origins table instead of the Databases table
2989         (WebCore::DatabaseTracker::origins):
2990         (WebCore::DatabaseTracker::detailsForNameAndOrigin): For API management
2991         (WebCore::DatabaseTracker::usageForDatabase):
2992         (WebCore::DatabaseTracker::usageForOrigin):
2993         (WebCore::DatabaseTracker::quotaForOrigin):
2994         (WebCore::DatabaseTracker::setQuota): Notify the client
2995         (WebCore::DatabaseTracker::addDatabase): Notify the client 
2996         (WebCore::DatabaseTracker::deleteAllDatabases):
2997         (WebCore::DatabaseTracker::deleteDatabasesWithOrigin):
2998         (WebCore::DatabaseTracker::deleteDatabase):
2999         (WebCore::DatabaseTracker::deleteDatabaseFile):
3000         * storage/DatabaseTracker.h:
3001
3002 2007-11-29  Dan Bernstein  <mitz@apple.com>
3003
3004         Reviewed by Beth Dakin and Darin Adler.
3005
3006         - manual test for <rdar://problem/5346394> Contextmenu event doesn't fire on body element inside frame
3007
3008         * manual-tests/context-click-unfocused-frame.html: Added.
3009
3010 2007-11-28  Antti Koivisto  <antti@apple.com>
3011
3012         Reviewed by Geoff.
3013         
3014         Fallback content inside media elements should not be rendered.
3015
3016         Test: media/fallback.html
3017
3018         * rendering/RenderMedia.h:
3019         (WebCore::RenderMedia::canHaveChildren):
3020
3021 2007-11-28  Mark Rowe  <mrowe@apple.com>
3022
3023         Windows build fix.
3024
3025         * WebCore.vcproj/WebCore.vcproj:
3026
3027 2007-11-28  Mark Rowe  <mrowe@apple.com>
3028
3029         Gtk build fix.
3030
3031         * WebCore.pro:
3032
3033 2007-11-28  Antti Koivisto  <antti@apple.com>
3034
3035         Reviewed by Oliver.
3036
3037         Make QTMovieView fill color transparent. This behavior matches the specification
3038         (and allows nice alpha blended video).
3039
3040         * platform/graphics/mac/MoviePrivateQTKit.mm:
3041         (WebCore::MoviePrivate::createQTMovieView):
3042
3043 2007-11-28  Antti Koivisto  <antti@apple.com>
3044
3045         Reviewed by Darin.
3046
3047         Test: media/video-controls.html
3048         
3049         <rdar://problem/5605668>
3050         Implement controls attribute for video element
3051         
3052         - Add RenderMedia and make RenderVideo its subclass. Controls code goes to RenderMedia while
3053           video specific (painting etc) code stays in RenderVideo. For example audio controls can be implemented
3054           later by just instantiating RenderMedia as renderer.
3055         - Make media renderer hierarchy inherit from RenderBlock instead of RenderReplaced so it can 
3056           have child nodes (for controls).
3057         - Controls are implemented as a shadow DOM.
3058         - Current look is a placeholder. It is defined purely in CSS.
3059         - Some things like volume controls are not yet implemented.
3060         - Fade-in/out is done manually, CSS animations don't work well in shadow trees.
3061           
3062         * WebCore.xcodeproj/project.pbxproj:
3063         * css/html4.css:
3064         * html/HTMLMediaElement.cpp:
3065         (WebCore::HTMLMediaElement::attributeChanged):
3066         (WebCore::HTMLMediaElement::updateMovie):
3067         (WebCore::HTMLMediaElement::defaultEventHandler):
3068         * html/HTMLMediaElement.h:
3069         * rendering/RenderMedia.cpp: Added.
3070         (WebCore::MediaControlShadowRootElement::MediaControlShadowRootElement):
3071         (WebCore::MediaControlShadowRootElement::isShadowNode):
3072         (WebCore::MediaControlShadowRootElement::shadowParentNode):
3073         (WebCore::MediaControlInputElement::MediaControlInputElement):
3074         (WebCore::MediaControlInputElement::attachToParent):
3075         (WebCore::MediaControlPlayButtonElement::MediaControlPlayButtonElement):
3076         (WebCore::MediaControlPlayButtonElement::inPausedState):
3077         (WebCore::MediaControlPlayButtonElement::defaultEventHandler):
3078         (WebCore::MediaControlPlayButtonElement::update):
3079         (WebCore::MediaControlTimelineElement::MediaControlTimelineElement):
3080         (WebCore::MediaControlTimelineElement::defaultEventHandler):
3081         (WebCore::MediaControlTimelineElement::update):
3082         (WebCore::RenderMedia::RenderMedia):
3083         (WebCore::RenderMedia::~RenderMedia):
3084         (WebCore::RenderMedia::mediaElement):
3085         (WebCore::RenderMedia::movie):
3086         (WebCore::RenderMedia::setStyle):
3087         (WebCore::RenderMedia::createControlsShadowRoot):
3088         (WebCore::RenderMedia::createPanel):
3089         (WebCore::RenderMedia::createPlayButton):
3090         (WebCore::RenderMedia::createTimeline):
3091         (WebCore::RenderMedia::createTimeDisplay):
3092         (WebCore::RenderMedia::updateFromElement):
3093         (WebCore::RenderMedia::updateControls):
3094         (WebCore::RenderMedia::timeUpdateTimerFired):
3095         (WebCore::RenderMedia::updateTimeDisplay):
3096         (WebCore::RenderMedia::updateControlVisibility):
3097         (WebCore::RenderMedia::changeOpacity):
3098         (WebCore::RenderMedia::opacityAnimationTimerFired):
3099         (WebCore::RenderMedia::forwardEvent):
3100         * rendering/RenderMedia.h: Added.
3101         (WebCore::RenderMedia::renderName):
3102         (WebCore::RenderMedia::isMedia):
3103         (WebCore::RenderMedia::intrinsicSize):
3104         * rendering/RenderObject.h:
3105         (WebCore::RenderObject::isMedia):
3106         * rendering/RenderVideo.cpp:
3107         (WebCore::RenderVideo::RenderVideo):
3108         (WebCore::RenderVideo::videoSizeChanged):
3109         (WebCore::RenderVideo::paintObject):
3110         (WebCore::RenderVideo::layout):
3111         (WebCore::RenderVideo::updateFromElement):
3112         (WebCore::RenderVideo::calcAspectRatioWidth):
3113         (WebCore::RenderVideo::calcAspectRatioHeight):
3114         * rendering/RenderVideo.h:
3115
3116 2007-11-28  Justin Garcia  <justin.garcia@apple.com>
3117
3118         Reviewed by Darin Adler.
3119
3120         <rdar://problem/5573879> GMail Beta: Crash in when undoing Remove Formating
3121         
3122         In the new beta, Google has added some custom code on top of our RemoveFormat
3123         to work around a bug where fully selected lists aren't removed.  This code corrupts
3124         the undo stack and causes crashes.  This change fixes two problems with RemoveFormat
3125         so that Google doesn't have to have any custom code. After checking this in I'll 
3126         work on bulletproofing the undo stack
3127
3128         * WebCore.xcodeproj/project.pbxproj: 
3129         * editing/CompositeEditCommand.cpp:
3130         (WebCore::CompositeEditCommand::insertLineBreak): Added this convenience method.
3131         (WebCore::CompositeEditCommand::inputText): Added code to select all inserted text, not
3132         just the last paragraph.  Added code to support an input string with '\n's.
3133         * editing/CompositeEditCommand.h:
3134         * editing/Editor.cpp:
3135         (WebCore::Editor::removeFormattingAndStyle): Moved code to its own EditCommand.
3136         * editing/RemoveFormatCommand.cpp: Added. Moved code from removeFormattingAndStyle here.
3137         (WebCore::RemoveFormatCommand::RemoveFormatCommand):
3138         (WebCore::RemoveFormatCommand::doApply): Added code to remove fully selected lists.
3139         * editing/RemoveFormatCommand.h: Added.
3140         (WebCore::RemoveFormatCommand::editingAction):
3141
3142 2007-11-28  Dan Bernstein  <mitz@apple.com>
3143
3144         Reviewed by Dave Hyatt.
3145
3146         - fix <rdar://problem/5612459> CrashTracer: [REGRESSION] 61 crashes in Safari at com.apple.WebCore: WebCore::AutoTableLayout::layout + 2046
3147
3148         Test: fast/table/empty-auto-column-zero-divide.html
3149
3150         * rendering/AutoTableLayout.cpp:
3151         (WebCore::AutoTableLayout::recalcColumn):
3152         (WebCore::AutoTableLayout::fullRecalc):
3153         (WebCore::AutoTableLayout::calcEffectiveWidth):
3154         (WebCore::AutoTableLayout::layout): When distributing the remaining
3155         width among columns, skip those whose effective (rather than
3156         specified) width is auto and contain only empty cells.
3157
3158 2007-11-28  Peter Kasting  <zerodpx@gmail.com>
3159
3160         Reviewed by Alp Toker.
3161
3162         http://bugs.webkit.org/show_bug.cgi?id=16169
3163         GIF decoder needs to set hasAlpha() correctly on subsequent frames.
3164         
3165         This also removes the workaround for this problem in
3166         ImageSourceCairo.cpp.
3167
3168         * platform/graphics/cairo/ImageSourceCairo.cpp:
3169         (WebCore::ImageSource::frameHasAlphaAtIndex):
3170         * platform/image-decoders/gif/GIFImageDecoder.cpp:
3171         (WebCore::GIFImageDecoder::initFrameBuffer):
3172
3173 2007-11-28  Dan Bernstein  <mitz@apple.com>
3174
3175         Reviewed by Darin Adler and Adam Roben.
3176
3177         - <rdar://problem/5057218> Reenable "recent searches" search field menu when menu is fully implemented
3178
3179         * platform/win/SearchPopupMenuWin.cpp:
3180         (WebCore::SearchPopupMenu::enabled): Changed to return true.
3181         (WebCore::autosaveKey): Added. Returns a preferences key for the
3182         autosave name by prefixing it with "com.apple.WebKit.searchField:".
3183         (WebCore::SearchPopupMenu::saveRecentSearches): Implemented.
3184         (WebCore::SearchPopupMenu::loadRecentSearches): Implemented.
3185
3186 2007-11-28  Alp Toker  <alp@atoker.com>
3187
3188         Reviewed by Mark Rowe.
3189
3190         http://bugs.webkit.org/show_bug.cgi?id=15689
3191         [GTK] Background of loading images is always black
3192
3193         frameHasAlphaAtIndex() exists only to allow optimization for cases we
3194         are certain the image can be blitted rather than composited.
3195
3196         Thus we need to be conservative, returning false only when we are
3197         absolutely certain there is no need for composited copying, and true
3198         otherwise.
3199
3200         CG doesn't even bother with this optimization at all and always
3201         returns true.
3202
3203         Patch includes a workaround for
3204           http://bugs.webkit.org/show_bug.cgi?id=16169
3205           GIF ImageDecoder hasAlpha() return value incorrect
3206
3207         * platform/graphics/cairo/ImageSourceCairo.cpp:
3208         (WebCore::ImageSource::frameHasAlphaAtIndex):
3209
3210 2007-11-27  Alp Toker  <alp@atoker.com>
3211
3212         Reviewed by Mark Rowe.
3213
3214         Install the JavaScriptCore headers as part of the GTK+ port.
3215
3216         * WebCore.pro:
3217
3218 2007-11-27  Beth Dakin  <bdakin@apple.com>
3219
3220         Reviewed by Oliver.
3221
3222         Fix for <rdar://problem/5616052> SVGs with width or height of 100% 
3223         hang when used as a background-image (16164)
3224
3225         * platform/graphics/svg/SVGImage.cpp:
3226         (WebCore::SVGImage::size): Use valueAsPercentage() for percents 
3227         instead of valueInSpecifiedUnits(). valueInSpecifiedUnits() 
3228         returns, for example, 50 for 50%, so multiplying percentages by the 
3229         default size of 300 x 150 led to ridiculously huge dimensions for 
3230         SVG images, and the subsequent hang. 
3231
3232 2007-11-27  Jon Honeycutt  <jhoneycutt@apple.com>
3233
3234         Reviewed by Adam.
3235
3236         Set haveRegisteredWindowClass when we register the window class.
3237
3238         * plugins/win/PluginViewWin.cpp:
3239         (WebCore::registerPluginView):
3240
3241 2007-11-27  Timothy Hatcher  <timothy@apple.com>
3242
3243         Reviewed by Sam Weinig.
3244
3245         Bug 16165: Dragging the inspector toolbar should move the window
3246         http://bugs.webkit.org/show_bug.cgi?id=16165
3247
3248         * page/inspector/DocumentPanel.js: Call the new drag functions, and cleanup code.
3249         * page/inspector/inspector.css: Only make the toolbar transparent in detached mode.
3250         * page/inspector/inspector.js: Call the new drag functions, and cleanup code. Add
3251           toolbar drag functions that move the window.
3252
3253 2007-11-27  Antti Koivisto  <antti@apple.com>
3254
3255         Reviewed by Mitz.
3256
3257         Small changes to make RenderSlider a bit more generic so it can be used in video controls.
3258
3259         * html/HTMLInputElement.cpp:
3260         (WebCore::HTMLInputElement::defaultEventHandler): Fix coordinates with forwarded events.
3261         * rendering/RenderSlider.cpp:
3262         (WebCore::HTMLSliderThumbElement::defaultEventHandler): Fix coordinates with forwarded events.
3263         (WebCore::RenderSlider::setStyle):
3264         (WebCore::RenderSlider::createThumbStyle): Copy thumb left and top from the orginal style so position does not reset.
3265         (WebCore::RenderSlider::mouseEventIsInThumb): Make this work with forwarded events.
3266         * rendering/RenderSlider.h:
3267
3268 2007-11-27  Antti Koivisto  <antti@apple.com>
3269
3270         Reviewed by Darin.
3271
3272         - Don't use hasPseudoId() optimization for pseudo styles used in shadow trees. These styles
3273           generally exist when asked for so the optimization does not do much. This reverses the continuing
3274           growth of the _pseudoBits bitfield in RenderStyle.
3275         - Add some pseudo elements for media controls
3276
3277         * css/CSSSelector.cpp:
3278         (WebCore::CSSSelector::extractPseudoType):
3279         * css/CSSSelector.h:
3280         (WebCore::CSSSelector::):
3281         * css/CSSStyleSelector.cpp:
3282         (WebCore::CSSStyleSelector::matchRulesForList):
3283         (WebCore::CSSStyleSelector::checkOneSelector):
3284         * rendering/RenderObject.cpp:
3285         (WebCore::RenderObject::getPseudoStyle):
3286         * rendering/RenderStyle.cpp:
3287         (WebCore::pseudoBit):
3288         (WebCore::RenderStyle::hasPseudoStyle):
3289         (WebCore::RenderStyle::setHasPseudoStyle):
3290         * rendering/RenderStyle.h:
3291         (WebCore::RenderStyle::):
3292
3293 2007-11-27  Timothy Hatcher  <timothy@apple.com>
3294
3295         Reviewed by Kevin McCullough.
3296
3297         Bug 16161: window.moveBy(0, 0) moves the window by -22px vertically
3298         http://bugs.webkit.org/show_bug.cgi?id=16161
3299
3300         Removed the "Adjust the window rect to be in the coordinate space of
3301         the screen rect" step which was always adding (0,22) to the window
3302         position (on the main screen). Instead, account for screen X and Y
3303         in the bottom and right constrain step.
3304
3305         Added more test cases to: fast/dom/Window/window-resize.html
3306
3307         * bindings/js/kjs_window.cpp:
3308         (KJS::adjustWindowRect):
3309
3310 2007-11-27  Timothy Hatcher  <timothy@apple.com>
3311
3312         Reviewed by Adam Roben.
3313
3314         * page/inspector/inspector.css: Make the text in the Network
3315         panel legend more readable.
3316
3317 2007-11-27  Timothy Hatcher  <timothy@apple.com>
3318
3319         Reviewed by Adam Roben.
3320
3321         Don't call setNeedsReapplyStylesInAllFrames if the
3322         authorAndUserStylesEnabled setting didn't change.
3323
3324         * page/Settings.cpp:
3325         (WebCore::Settings::setAuthorAndUserStylesEnabled):
3326
3327 2007-11-27  Alp Toker  <alp@atoker.com>
3328
3329         Fix potential broken build due to a missing DEPENDPATH.
3330
3331         * WebCore.pro:
3332
3333 2007-11-26  Timothy Hatcher  <timothy@apple.com>
3334
3335         Reviewed by Dave Hyatt.
3336
3337         <rdar://problem/5569233> Add the ability to disable author and user CSS styles
3338
3339         * WebCore.base.exp: Add the Settings::setAuthorAndUserStylesEnabled symbol.
3340         * css/CSSStyleSelector.cpp:
3341         (WebCore::CSSStyleSelector::CSSStyleSelector): Add a new matchAuthorAndUserStyles parameter.
3342         (WebCore::CSSStyleSelector::styleForElement): Check m_matchAuthorAndUserStyles before
3343         matching user and author rules.
3344         (WebCore::CSSStyleSelector::pseudoStyleForElement): Ditto.
3345         (WebCore::CSSStyleSelector::styleRulesForElement): Ditto.
3346         * css/CSSStyleSelector.h: Add m_matchAuthorAndUserStyles and new constructor parameter.
3347         * dom/Document.cpp:
3348         (WebCore::Document::Document): Pass Settings::authorAndUserStylesEnabled to the CSSStyleSelector.
3349         (WebCore::Document::recalcStyleSelector): Skip collecting the author stylesheets if
3350         Settings::authorAndUserStylesEnabled is false, and pass that to the CSSStyleSelector.
3351         * page/Settings.cpp:
3352         (WebCore::Settings::Settings): Initialize m_authorAndUserStylesEnabled to true.
3353         (WebCore::Settings::setAuthorAndUserStylesEnabled): Recalc style in all the frames
3354         when the setting changes.
3355         * page/Settings.h: Add m_authorAndUserStylesEnabled.
3356         (WebCore::Settings::authorAndUserStylesEnabled): Return m_authorAndUserStylesEnabled.
3357
3358 2007-11-27  Alp Toker  <alp@atoker.com>
3359
3360         Reviewed by Mark Rowe.
3361
3362         Based on changes by Mike Emmel.
3363
3364         CURL HTTP backend local file fixes:
3365
3366         Set a MIME type for local files based on the file extension.
3367
3368         Remove any HTTP query part sent to a local file.
3369
3370         * platform/network/curl/ResourceHandleManager.cpp:
3371         (WebCore::ResourceHandleManager::startJob):
3372
3373 2007-11-26  Brady Eidson  <beidson@apple.com>
3374
3375         Reviewed by Mark Rowe
3376
3377         Allow setting the default storage quota per database origin
3378
3379         * WebCore.base.exp:
3380
3381         * page/Settings.cpp:
3382         (WebCore::Settings::setDefaultDatabaseOriginQuota):
3383         (WebCore::Settings::defaultDatabaseOriginQuota):
3384         * page/Settings.h:
3385
3386         * storage/DatabaseTracker.cpp:
3387         (WebCore::DatabaseTracker::DatabaseTracker):
3388         (WebCore::DatabaseTracker::setDefaultOriginQuota):
3389         (WebCore::DatabaseTracker::defaultOriginQuota):
3390         * storage/DatabaseTracker.h:
3391
3392 2007-11-26  Peter Kasting  <zerodpx@gmail.com>
3393
3394         Reviewed by Alp Toker.
3395
3396         http://bugs.webkit.org/show_bug.cgi?id=15974
3397         GIF decoding should respect frames' specified disposal methods.
3398
3399         * platform/image-decoders/ImageDecoder.h:
3400         (WebCore::RGBA32Buffer::):
3401         (WebCore::RGBA32Buffer::RGBA32Buffer):
3402         (WebCore::RGBA32Buffer::disposalMethod):
3403         (WebCore::RGBA32Buffer::setDisposalMethod):
3404         * platform/image-decoders/gif/GIFImageDecoder.cpp:
3405         (WebCore::GIFImageDecoder::frameBufferAtIndex):
3406         (WebCore::GIFImageDecoder::initFrameBuffer):
3407         (WebCore::GIFImageDecoder::prepEmptyFrameBuffer):
3408         (WebCore::GIFImageDecoder::haveDecodedRow):
3409         (WebCore::GIFImageDecoder::frameComplete):
3410         * platform/image-decoders/gif/GIFImageDecoder.h:
3411         * platform/image-decoders/gif/GIFImageReader.cpp:
3412         (GIFImageReader::read):
3413         * platform/image-decoders/gif/GIFImageReader.h:
3414         (GIFFrameReader::GIFFrameReader):
3415
3416 2007-11-26  Adam Roben  <aroben@apple.com>
3417
3418         Add a Color(CGColorRef) constructor
3419
3420         Reviewed by Darin.
3421
3422         * platform/graphics/Color.h:
3423         * platform/graphics/cg/ColorCG.cpp:
3424         (WebCore::Color::Color): Added.
3425
3426 2007-11-26  Adele Peterson  <adele@apple.com>
3427
3428         Reviewed by Darin.
3429
3430         Update to last change.  Moved addPendingSheet call to within nil check for m_cachedSheet.
3431
3432         * page/Frame.cpp:
3433         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
3434
3435 2007-11-26  Adele Peterson  <adele@apple.com>
3436
3437         Reviewed by Darin.
3438
3439         Fix for <rdar://problem/5591583> CrashTracer: [USER] 157 in Mail crashes at -[WebCoreFrameBridge reapplyStylesForDeviceType:]
3440
3441         * page/Frame.cpp: Add nil checks since every other caller of requestCSSStyleSheet checks for nil.
3442         (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
3443         (WebCore::UserStyleSheetLoader::~UserStyleSheetLoader):
3444
3445 2007-11-26  Mark Rowe  <mrowe@apple.com>
3446
3447         GCC 4.2 build fix.
3448
3449         * xml/XSLTUnicodeSort.cpp: Add another WTF_ATTRIBUTE_PRINTF.
3450
3451 2007-11-26  Feng Qian <ian.eng.webkit@gmail.com>
3452
3453         Reviewed and touched up by Sam Weinig.
3454
3455         Fix for http://bugs.webkit.org/show_bug.cgi?id=16073
3456
3457         Test: http/tests/security/xss-DENIED-invalid-domain-change.html
3458
3459         * dom/Document.cpp:
3460         (WebCore::Document::setDomain): Don't set the securityOrigin policy unless
3461         the set succeeds.  Adds some early returns as well.
3462
3463 2007-11-26  Steve Falkenburg  <sfalken@apple.com>
3464
3465         Build fix.
3466
3467         * WebCore.vcproj/WebCore.make:
3468         * WebCore.vcproj/migrate-idls.sh:
3469
3470 2007-11-26  Sam Weinig  <sam@webkit.org>
3471
3472         Fix potential null-dereference.
3473
3474         Reviewed by Adam Roben.
3475
3476         * page/FrameTree.cpp:
3477         (WebCore::FrameTree::isDescendantOf):
3478
3479 2007-11-26  Sam Weinig  <sam@webkit.org>
3480
3481         Reviewed by Darin.
3482
3483         Fix for <rdar://problem/5592988>
3484         - Enforce tighter restrictions on what frames in other domains
3485           can be navigated.
3486
3487         Tests: http/tests/security/frameNavigation/xss-ALLOWED-parent-navigation-change.html
3488                http/tests/security/frameNavigation/xss-ALLOWED-targeted-subframe-navigation-change.html
3489
3490         * bindings/js/kjs_window.cpp: