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