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