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