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