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