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