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