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