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