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