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