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