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