9fcff73ddd41361a5dd93f4142a3b2a305d3fa67
[WebKit-https.git] / WebCore / ChangeLog
1 2007-11-09  Simon Hausmann  <hausmann@kde.org>
2
3         Reviewed by nobody, build/link fix for Qt/Windows.
4
5         userIdleTime() is stubbed in win/SystemTimeWin.cpp, so don't
6         define it twice.
7
8         * platform/qt/TemporaryLinkStubs.cpp:
9
10 2007-11-09  Simon Hausmann  <hausmann@kde.org>
11
12         Reviewed by Holger.
13
14         Fix ContextMenu allocation in the Qt port.
15
16         Store all items and submenus value based in ContextMenu and ContextMenuItem.
17         That fixes the crashes when the context menu was populated with sub-menus because
18         of the use of temporary ContextMenu objects like this:
19
20         ContextMenu subMenu(...);
21         subMenu.appendItem(...);
22         subMenu.appendItem(...);
23
24         subMenuItem.setSubMenu(&subMenu); // temporary pointer, need to _copy_ contents
25
26         * platform/ContextMenu.h:
27         * platform/ContextMenuItem.h:
28         * platform/PlatformMenuDescription.h:
29         * platform/qt/ContextMenuItemQt.cpp:
30         (WebCore::ContextMenuItem::ContextMenuItem):
31         (WebCore::ContextMenuItem::platformSubMenu):
32         * platform/qt/ContextMenuQt.cpp:
33         (WebCore::ContextMenu::ContextMenu):
34         (WebCore::ContextMenu::~ContextMenu):
35         (WebCore::ContextMenu::appendItem):
36         (WebCore::ContextMenu::itemCount):
37
38 2007-11-09  Peter Kasting  <zerodpx@gmail.com>
39
40         Reviewed by Mark Rowe.
41
42         http://bugs.webkit.org/show_bug.cgi?id=15909
43         Malformed GIFs should not result in memory corruption.
44
45         * platform/image-decoders/gif/GIFImageDecoder.cpp:
46         (WebCore::GIFImageDecoder::haveDecodedRow):
47
48 2007-11-09  Steve Falkenburg  <sfalken@apple.com>
49
50         Initialize WindowFeatures struct before using it.
51         
52         Reviewed by Oliver.
53
54         * page/ContextMenuController.cpp:
55         (WebCore::openNewWindow):
56
57 2007-11-08  Timothy Hatcher  <timothy@apple.com>
58
59         Reviewed by Sam Weinig.
60
61         Some Web Inspector CSS editing changes.
62         - Only delete the property if all the text is delete or the new user input correctly parses.
63           This prevents deleting the existing property if the new text is invalid.
64         - Intercept the Escape key and cancel editing, not saving any changes.
65
66         * page/inspector/StylesSidebarPane.js:
67
68 2007-11-08  Kevin Ollivier  <kevino@theolliviers.com>
69
70         Bakefiles for building WebCore, needed by wx port.
71
72         Reviewed by Mark Rowe.
73
74         * WebCoreSources.bkl: Added.
75         * webcore-base.bkl: Added.
76         * webcore-wx.bkl: Added.
77
78 2007-11-08  Justin Haygood  <jhaygood@reaktix.com>
79
80         Reviewed by Mark Rowe.
81
82         http://bugs.webkit.org/show_bug.cgi?id=15905
83
84         Fix builds with HTML 5 Storage support disabled.
85         ENABLE(DATABASE) needs to be added in a few places.
86
87         * page/InspectorController.cpp:
88         * storage/Database.h:
89
90 2007-11-08  Steve Falkenburg  <sfalken@apple.com>
91
92         <rdar://problem/5524082> Allow images to be dragged out directly into other apps
93         
94         We weren't including CF_HDROP in our image drops.  This broke drag of
95         images out of the browser window directly into other apps (examples
96         include notepad, mspaint, msword).
97         
98         Reviewed by Oliver, Ada.
99
100         * platform/win/ClipboardWin.cpp:
101         (WebCore::createGlobalImageFileContent): Removed unused variable.
102         (WebCore::createGlobalHDropContent): Added
103         (WebCore::writeFileToDataObject): Write HDROP data if available.
104         (WebCore::writeImageToDataObject): Write HDROP for dragged images.
105         (WebCore::ClipboardWin::writeURL): Don't write HDROP for dragged URLs.
106
107 2007-11-08  Xan Lopez  <xan@gnome.org>
108
109         Reviewed by Alp.
110
111         http://bugs.webkit.org/show_bug.cgi?id=15908
112         Use g_object_ref_sink when available
113
114         * platform/gtk/PopupMenuGtk.cpp:
115         (WebCore::PopupMenu::show):
116         * platform/gtk/ScrollViewGtk.cpp:
117         (WebCore::ScrollView::setGtkAdjustments):
118
119 2007-11-08  Dan Bernstein  <mitz@apple.com>
120
121         Reviewed by Beth Dakin.
122
123         - fix <rdar://problem/5491922> REGRESSION (Safari 2-3): Flash-based "Cash Optimizer" on etrade.com does not draw completely
124
125         Test: fast/dom/length-attribute-mapping.html
126
127         * dom/StyledElement.cpp:
128         (WebCore::StyledElement::addCSSLength): Changed the garbage-stripping
129         logic to stop after the first "%" or "*" in the string. This allows for
130         "100%25" to be mapped to "100%" like it is in Firefox and WinIE.
131
132 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
133
134         - Build fix.
135
136         * loader/FrameLoaderClient.h:
137         * platform/graphics/svg/SVGImageEmptyClients.h:
138         (WebCore::SVGEmptyFrameLoaderClient::windowObjectCleared):
139
140 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
141
142         Reviewed by Sam.
143
144         - windowObjectCleared() is no longer const.  It needs to setup the
145         script debugger and cannot be const to do so.
146
147         * loader/FrameLoaderClient.h:
148         * platform/graphics/svg/SVGImageEmptyClients.h:
149         (WebCore::SVGEmptyFrameLoaderClient::windowObjectCleared):
150
151 2007-11-08  Adam Roben  <aroben@apple.com>
152
153         Hopeful Windows build fix
154
155         * rendering/RenderObject.cpp: Touch this file to make it recompile.
156
157 2007-11-08  Sam Weinig  <sam@webkit.org>
158
159         Reviewed by Darin.
160
161         Convert JavaScript internal function objects to use one class per
162         function.  This avoids a switch statement inside what used to be
163         the shared function classes and will allow Shark to better analyze
164         the code.
165
166         To make this switch, the value property of the HashEntry was changed
167         to a union of an intptr_t (which is used to continue handle valueGetters)
168         and function pointer which points to a static constructor for the
169         individual new function objects.
170
171         SunSpider claims this is a 1.0% speedup.
172
173         - On the WebCore side, I updated CodeGeneratorJS.pm to generate the
174           new classes and hand updated the remain non-generated (groan) classes.
175
176         * bindings/js/JSDOMWindowCustom.cpp:
177         (WebCore::JSDOMWindow::customGetOwnPropertySlot):
178         * bindings/js/JSEventTargetNode.cpp:
179         (WebCore::JSEventTargetNodePrototypeFunctionAddEventListener::callAsFunction):
180         (WebCore::JSEventTargetNodePrototypeFunctionRemoveEventListener::callAsFunction):
181         (WebCore::JSEventTargetNodePrototypeFunctionDispatchEvent::callAsFunction):
182         * bindings/js/JSEventTargetNode.h:
183         * bindings/js/JSHTMLInputElementBase.cpp:
184         (WebCore::JSHTMLInputElementBaseFunctionSetSelectionRange::callAsFunction):
185         (WebCore::JSHTMLInputElementBase::getOwnPropertySlot):
186         * bindings/js/JSHTMLInputElementBase.h:
187         (WebCore::JSHTMLInputElementBase::):
188         * bindings/js/JSXMLHttpRequest.cpp:
189         (KJS::JSXMLHttpRequestPrototypeFunctionAbort::callAsFunction):
190         (KJS::JSXMLHttpRequestPrototypeFunctionGetAllResponseHeaders::callAsFunction):
191         (KJS::JSXMLHttpRequestPrototypeFunctionGetResponseHeader::callAsFunction):
192         (KJS::JSXMLHttpRequestPrototypeFunctionOpen::callAsFunction):
193         (KJS::JSXMLHttpRequestPrototypeFunctionSend::callAsFunction):
194         (KJS::JSXMLHttpRequestPrototypeFunctionSetRequestHeader::callAsFunction):
195         (KJS::JSXMLHttpRequestPrototypeFunctionOverrideMIMEType::callAsFunction):
196         (KJS::JSXMLHttpRequestPrototypeFunctionAddEventListener::callAsFunction):
197         (KJS::JSXMLHttpRequestPrototypeFunctionRemoveEventListener::callAsFunction):
198         (KJS::JSXMLHttpRequestPrototypeFunctionDispatchEvent::callAsFunction):
199         * bindings/js/JSXMLHttpRequest.h:
200         (KJS::JSXMLHttpRequest::impl):
201         * bindings/js/JSXSLTProcessor.cpp:
202         (KJS::JSXSLTProcessorPrototypeFunctionImportStylesheet::callAsFunction):
203         (KJS::JSXSLTProcessorPrototypeFunctionTransformToFragment::callAsFunction):
204         (KJS::JSXSLTProcessorPrototypeFunctionTransformToDocument::callAsFunction):
205         (KJS::JSXSLTProcessorPrototypeFunctionSetParameter::callAsFunction):
206         (KJS::JSXSLTProcessorPrototypeFunctionGetParameter::callAsFunction):
207         (KJS::JSXSLTProcessorPrototypeFunctionRemoveParameter::callAsFunction):
208         (KJS::JSXSLTProcessorPrototypeFunctionClearParameters::callAsFunction):
209         (KJS::JSXSLTProcessorPrototypeFunctionReset::callAsFunction):
210         * bindings/js/JSXSLTProcessor.h:
211         * bindings/js/kjs_events.cpp:
212         (WebCore::JSClipboardPrototypeFunctionClearData::callAsFunction):
213         (WebCore::JSClipboardPrototypeFunctionGetData::callAsFunction):
214         (WebCore::JSClipboardPrototypeFunctionSetData::callAsFunction):
215         (WebCore::JSClipboardPrototypeFunctionSetDragImage::callAsFunction):
216         * bindings/js/kjs_events.h:
217         * bindings/js/kjs_navigator.cpp:
218         (KJS::Plugins::):
219         (KJS::Navigator::getOwnPropertySlot):
220         (KJS::Plugins::getOwnPropertySlot):
221         (KJS::PluginsFunctionRefresh::callAsFunction):
222         (KJS::NavigatorProtoFuncJavaEnabled::callAsFunction):
223         * bindings/js/kjs_navigator.h:
224         (KJS::Navigator::):
225         * bindings/js/kjs_window.cpp:
226         (KJS::Window::getOwnPropertySlot):
227         (KJS::Window::put):
228         (KJS::WindowProtoFuncAToB::callAsFunction):
229         (KJS::WindowProtoFuncBToA::callAsFunction):
230         (KJS::WindowProtoFuncOpen::callAsFunction):
231         (KJS::WindowProtoFuncScrollBy::callAsFunction):
232         (KJS::WindowProtoFuncScrollTo::callAsFunction):
233         (KJS::WindowProtoFuncMoveBy::callAsFunction):
234         (KJS::WindowProtoFuncMoveTo::callAsFunction):
235         (KJS::WindowProtoFuncResizeBy::callAsFunction):
236         (KJS::WindowProtoFuncResizeTo::callAsFunction):
237         (KJS::WindowProtoFuncSetTimeout::callAsFunction):
238         (KJS::WindowProtoFuncClearTimeout::callAsFunction):
239         (KJS::WindowProtoFuncSetInterval::callAsFunction):
240         (KJS::WindowProtoFuncAddEventListener::callAsFunction):
241         (KJS::WindowProtoFuncRemoveEventListener::callAsFunction):
242         (KJS::WindowProtoFuncShowModalDialog::callAsFunction):
243         (KJS::WindowProtoFuncNotImplemented::callAsFunction):
244         (KJS::Location::getOwnPropertySlot):
245         (KJS::Location::put):
246         (KJS::LocationProtoFuncReplace::callAsFunction):
247         (KJS::LocationProtoFuncReload::callAsFunction):
248         (KJS::LocationProtoFuncAssign::callAsFunction):
249         (KJS::LocationProtoFuncToString::callAsFunction):
250         * bindings/js/kjs_window.h:
251         (KJS::Window::):
252         * bindings/scripts/CodeGeneratorJS.pm:
253
254 2007-11-08  Mark Rowe  <mrowe@apple.com>
255
256         Fix the Gtk, Qt and Wx builds.
257
258         * platform/gtk/TemporaryLinkStubs.cpp:
259         * platform/qt/TemporaryLinkStubs.cpp:
260         * platform/wx/TemporaryLinkStubs.cpp:
261
262 2007-11-08  Mark Rowe  <mrowe@apple.com>
263
264         Not reviewed.  Fix two instances of includes using the wrong case in the filename.
265
266         * platform/graphics/mac/MoviePrivateQTKit.mm:
267         * platform/wx/MimeTypeRegistryWx.cpp:
268
269 2007-11-08  Darin Adler  <darin@apple.com>
270
271         Reviewed by Adam.
272
273         - fix <rdar://problem/5552943> accesskey does not focus <button> elements
274
275         Test: fast/forms/access-key.html
276
277         * html/HTMLButtonElement.cpp: (WebCore::HTMLButtonElement::accessKeyAction):
278         Added a call to focus.
279
280 2007-11-07  Darin Adler  <darin@apple.com>
281
282         Reviewed by Steve.
283
284         - cut down on notImplemented() functions on Windows
285
286         * bridge/AXObjectCache.h: Put #if around the accessibility
287         global.
288
289         * bridge/win/FrameWin.cpp: (WebCore::Frame::setNeedsReapplyStyles):
290         Moved here from TemporaryLinkStubs.
291
292         * dom/Document.cpp: (WebCore::Document::lastModified): Re-implemented
293         using the ResourceResponse that's now available from the DocumentLoader.
294
295         * editing/JSEditor.cpp: (execTranspose): Changed to call transpose() on
296         the Editor instead of the obsolete one on the Frame.
297
298         * loader/DocumentLoader.h: Removed getResponseModifiedHeader.
299         * loader/FrameLoader.h: Removed overrideMediaType.
300
301         * loader/gtk/DocumentLoaderGtk.cpp: Removed.
302         * loader/mac/DocumentLoaderMac.mm: Removed.
303         * loader/qt/DocumentLoaderQt.cpp: Removed.
304
305         * page/Frame.cpp: Removed transpose.
306         * page/Frame.h: Ditto.
307         * page/FrameView.h: Removed updateBorder.
308         * page/gtk/FrameGtk.cpp: Removed issueTransposeCommand.
309         * page/mac/FrameMac.mm: Ditto.
310         * page/mac/WebCoreFrameBridge.h: Removed issueTransposeCommand and
311         overrideMediaType.
312         * page/qt/FrameQt.cpp: Removed issueTransposeCommand.
313
314         * platform/gtk/TemporaryLinkStubs.cpp: Removed gAccessibilityEnabled.
315         * platform/qt/TemporaryLinkStubs.cpp: Ditto.
316         * platform/win/TemporaryLinkStubs.cpp: Removed or moved all but 3 of the stubs.
317         * platform/wx/TemporaryLinkStubs.cpp: Removed gAccessibilityEnabled,
318         issueTransposeCommand, and overrideMediaType.
319
320         * platform/network/cf/ResourceHandleCFNet.cpp:
321         (WebCore::ResourceHandle::loadsBlocked): Moved here from TemporaryLinkStubs.
322         (WebCore::ResourceHandle::willLoadFromCache): Ditto.
323         * platform/win/GraphicsContextWin.cpp:
324         (WebCore::GraphicsContextPlatformPrivate::clip): Ditto.
325         * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::inWindow): Ditto.
326         * platform/win/SystemTimeWin.cpp: (WebCore::userIdleTime): Ditto.
327         * platform/win/WidgetWin.cpp: (WebCore::Widget::setIsSelected): Ditto.
328
329         * WebCore.pro: Updated for removed files.
330         * WebCore.xcodeproj/project.pbxproj: Updated for removed file.
331
332 2007-11-08  Mark Rowe  <mrowe@apple.com>
333
334        Build fix for case-sensitive file systems.  Fix case of file names
335        in #include's.
336
337         * html/HTMLMediaElement.cpp:
338         * platform/graphics/Movie.cpp:
339
340 2007-11-08  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
341
342         Reviewed by Lars Knoll <lars@trolltech.com>.
343
344         Remove some warnings about not implemented methods.
345
346         * ResourceHandle::loadsBlocked and ResourceHandle::supportsBufferedData are
347         specific to the NS API and won't be implemented on Qt.
348         * ResourceHandle::bufferedData can not be reached as we return false in
349         ResourceHandle::supportsBufferedData.
350
351
352         * platform/network/qt/ResourceHandleQt.cpp:
353         (WebCore::ResourceHandle::supportsBufferedData):
354
355 2007-11-08  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
356
357         Reviewed by Lars Knoll <lars@trolltech.com>.
358
359         Cleanup checking for the request method.
360
361         * Check the request method only in QWebNetworkManager::add.
362         * Currently HEAD, GET, POST are allowed and for everything else
363         QWebNetworkManager::add returns false.
364         * Returning false is compatible with ResourceHandle::start and it
365         can be used in ResourceHandle::loadResourceSynchronously to generate
366         a ResourceError
367
368
369         * platform/network/qt/ResourceHandleQt.cpp:
370         (WebCore::ResourceHandle::start):
371         (WebCore::ResourceHandle::loadResourceSynchronously):
372
373 2007-11-08  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
374
375         Reviewed by Lars Knoll <lars@trolltech.com>.
376
377         Implement WebCore::callOnMainThread
378
379         Implemented using a global QObject, that is moved to the main thread
380         and then sending a custom event to it.
381         Picked a number below QEvent::User but above any other documented value.
382
383
384         * platform/qt/ThreadingQt.cpp:
385         (WebCore::PerformFunctionEvent::PerformFunctionEvent):
386         (WebCore::MainThreadInvoker::MainThreadInvoker):
387         (WebCore::MainThreadInvoker::event):
388         (WebCore::callOnMainThread):
389
390 2007-11-08  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
391
392         Reviewed by Lars Knoll <lars@trolltech.com>.
393
394         Avoid problems with calling QPainter::begin() on an already active paintdevice
395
396         * Partial pick from 6200e04c3e0a77873c3b3f3969b65bc701020326 to avoid getting
397         crashes on Qt/Mac 4.4 with QPainter::begin to fail because we already draw.
398         * If we are in a layout or need one do not paint. This can happen for the PlatformScrollBar
399         used by the ScrollView on a layout triggered by QWebPage::paintEvent.
400
401
402         * platform/qt/WidgetQt.cpp:
403         (WebCore::Widget::invalidateRect):
404
405 2007-11-08  Eric Seidel  <eric@webkit.org>
406
407         No review.
408
409         * ksvg2/svg/SVGPathElement.h: remove old comment
410
411 2007-11-07  Antti Koivisto  <antti@apple.com>
412
413         Reviewed by Ollie.
414
415         Ensure video renderer has correct size if video has already been loaded
416         when it is constructed.
417
418         * rendering/RenderVideo.cpp:
419         (WebCore::RenderVideo::RenderVideo):
420
421 2007-11-07  Antti Koivisto  <antti@apple.com>
422
423         Reviewed by Ollie.
424
425         Ensure video is visible when it should be.
426
427         * rendering/RenderVideo.cpp:
428         (WebCore::RenderVideo::updateMovie):
429
430 2007-11-07  Dan Bernstein  <mitz@apple.com>
431
432         Reviewed by Darin Adler.
433
434         - fix <rdar://problem/5523503> Safari crashes clicking scroll bar in FaceBook 'Trips'
435
436         Layers and listboxes are two kinds of ScrollBarClient that can be
437         removed while the scrollbar is tracking the mouse. The scrollbar is not
438         destroyed until later, and meanwhile it can try to call the client,
439         which results in a crash.
440
441         * manual-tests/stale-scrollbar-client-crash.html: Added.
442         * platform/ScrollBar.h:
443         (WebCore::Scrollbar::setClient): Added.
444         * rendering/RenderLayer.cpp:
445         (WebCore::RenderLayer::destroyScrollbar): Call Scrollbar::setClient().
446         * rendering/RenderListBox.cpp:
447         (WebCore::RenderListBox::~RenderListBox): Ditto.
448
449 2007-11-07  Adam Roben  <aroben@apple.com>
450
451         Fix <rdar://5569268> Crash when opening any FTP site in second tab/window
452
453         Reviewed by Sam.
454
455         No test possible.
456
457         * platform/win/SharedBufferWin.cpp:
458         (WebCore::SharedBuffer::createWithContentsOfFile): Bail if we get an
459         empty path, because _wfopen_s will crash if we pass it a null pointer.
460
461 2007-11-07  David Kilzer  <ddkilzer@apple.com>
462
463         WebKit confuses width/height for Media Queries device-aspect-ratio evaluation
464         <http://bugs.webkit.org/show_bug.cgi?id=14893>
465         <rdar://problem/5380295>
466
467         Reviewed by Darin.
468
469         Tests: fast/css/device-aspect-ratio.html
470                fast/css/max-device-aspect-ratio.html
471                fast/css/min-device-aspect-ratio.html
472
473         * css/MediaQueryEvaluator.cpp:
474         (WebCore::parseAspectRatio): Renamed method parameters from a/b to h/v.
475         (WebCore::device_aspect_ratioMediaFeatureEval): Renamed local variables from
476         a/b to h/v.  Switched first two arguments of the call to cmpvalue() to fix
477         the bug.
478
479 2007-11-07  Dan Bernstein  <mitz@apple.com>
480
481         Reviewed by Dave Hyatt.
482
483         - fix http://bugs.webkit.org/show_bug.cgi?id=15887
484           REGRESSION (r27576): Crash in RenderStyle::affectedByHoverRules clicking link on Digg
485
486         Test: fast/css/display-none-inline-style-change-crash.html
487
488         * dom/Element.cpp:
489         (WebCore::Element::recalcStyle): Fixed the crash by null-checking
490         the current style and removed other checks that are not strictly
491         necessary.
492
493 2007-11-07  Brady Eidson  <beidson@apple.com>
494
495         Rubberstamped by Sam
496
497         Remove FrameLoaderClient methods from SVG that were pruned awhile ago
498
499         * platform/graphics/svg/SVGImageEmptyClients.h:
500
501 2007-11-07  Dan Bernstein  <mitz@apple.com>
502
503         Reviewed by Darin Adler.
504
505         - fix a bug where CSS rules with :hover in the ancestor chain stopped
506           working after changing the inline style declaration of the ancestor
507
508         Test: fast/css/affected-by-hover-after-style-change.html
509
510         * dom/Element.cpp:
511         (WebCore::Element::recalcStyle): If we are not forcing style
512         recalculation for all descendants, preserve any "affected by
513         {hover|active|drag} bits that we may have acquired from them.
514         Also renamed _style to currentStyle.
515
516 2007-11-06  Timothy Hatcher  <timothy@apple.com>
517
518         Reviewed by Adam.
519
520         Bug 11920: Web Inspector should have Firebug-like CSS editing
521         http://bugs.webkit.org/show_bug.cgi?id=11920
522
523         * css/CSSComputedStyleDeclaration.h:
524           (WebCore::CSSComputedStyleDeclaration::isPropertyImplicit): Return false. I'm not sure why
525           this was true, but computed style has no concept of implicit. So false makes more sense
526           and makes the code simpler in the inspector. This function was added for the inspector,
527           so this isn't a compatibility change.
528         * page/inspector/PropertiesSection.js: Add a getter/setter to reset populated status.
529         * page/inspector/StylesSidebarPane.js: Some refactoring along with the main support for
530           style editing.
531         * page/inspector/inspector.css: Style changes for propery editing and focus correctness.
532         * page/inspector/inspector.js: Look for a handleKeyEvent function of the focus element before
533           trying to call a function based on the element's id. Call focused and blurred on the focused
534           element when currentFocusElement is changed. Use the new listItemElement getter instead of
535           the private property.
536         * page/inspector/treeoutline.js: No longer expand on double click if ondblclick is implemented.
537           Shrink the toggle zone to 10px to better match the size of the arrow. Add an onattach call
538           to allow generation of the title using the DOM element. Add listItemElement and
539           childrenListElement getters.
540         * page/inspector/utilities.js: Add new helper prototype methods on CSSStyleDeclaration.
541         * page/inspector/DocumentPanel.js: Use the new listItemElement getter instead of the private
542           property. Also expand the DOM node on double click now that the TreeOutline dosen't do it.
543         * page/inspector/Resource.js: Use the new listItemElement and childrenListElement getters
544           instead of the private properties.
545
546 2007-11-07  Simon Hausmann  <hausmann@kde.org>
547
548         Reviewed by Alexey Proskuryakov.
549
550         Coding style fix, don't use inline explicitly.
551
552         * bridge/WindowFeatures.h:
553
554 2007-11-07  Simon Hausmann  <hausmann@kde.org>
555
556         Reviewed by Maciej.
557
558         For safety provide a default constructor for WindowFeatures().
559         ContextMenuController.cpp: createNewWindow as well as QWebPage need to
560         create a default initialized WindowFeatures object on the fly.
561
562         * bridge/WindowFeatures.h:
563         (WebCore::WindowFeatures::WindowFeatures):
564
565 2007-11-07  Simon Hausmann  <shausman@trolltech.com>
566
567         Reviewed by Lars.
568
569         Fix "nmake clean" for the Qt/Windows build by replacing tmp/ with a variable that ends with the correct type of slash/backslash depending on the choice of compiler/make tool.
570
571         * WebCore.pro:
572
573 2007-11-07  Simon Hausmann  <hausmann@kde.org>
574
575         Reviewed by Lars.
576
577         Made the QWebSettings::webGraphic functions static. The implementation was using QWebSettings::global() anyway.
578
579         * platform/graphics/qt/ImageQt.cpp:
580         (loadResourcePixmap):
581
582 2007-11-07  Simon Hausmann  <hausmann@kde.org>
583
584         Reviewed by Lars.
585
586         Moved the WebCore::Image specific function loadResourcePixmap from qwebsettings.cpp to ImageQt.cpp and made it static.
587
588         * platform/graphics/qt/ImageQt.cpp:
589         (loadResourcePixmap):
590
591 2007-11-07  Simon Hausmann  <hausmann@kde.org>
592
593         Reviewed by Lars.
594
595         Restructure the context menu classes for the Qt port. ContextMenu and ContextMenuItem don't store
596         QActions/QMenus anymore but just store the action type, tag, title and optionally submenu as created
597         in ContextMenu::populate().
598         For the actual Qt context menu we traverse this structure after sendContextMenuEvent and create a QMenu
599         out of it. That menu is currently not functional anymore though.
600
601         * platform/ContextMenu.h:
602         * platform/ContextMenuItem.h:
603         (WebCore::PlatformMenuItemDescription::PlatformMenuItemDescription):
604         * platform/PlatformMenuDescription.h:
605         * platform/qt/ContextMenuItemQt.cpp:
606         (WebCore::ContextMenuItem::ContextMenuItem):
607         (WebCore::ContextMenuItem::type):
608         (WebCore::ContextMenuItem::setType):
609         (WebCore::ContextMenuItem::action):
610         (WebCore::ContextMenuItem::setAction):
611         (WebCore::ContextMenuItem::title):
612         (WebCore::ContextMenuItem::setTitle):
613         (WebCore::ContextMenuItem::platformSubMenu):
614         (WebCore::ContextMenuItem::setSubMenu):
615         (WebCore::ContextMenuItem::setChecked):
616         (WebCore::ContextMenuItem::setEnabled):
617         * platform/qt/ContextMenuQt.cpp:
618         (WebCore::ContextMenu::ContextMenu):
619         (WebCore::ContextMenu::~ContextMenu):
620         (WebCore::ContextMenu::appendItem):
621         (WebCore::ContextMenu::itemCount):
622         (WebCore::ContextMenu::insertItem):
623         (WebCore::ContextMenu::setPlatformDescription):
624         (WebCore::ContextMenu::platformDescription):
625
626 2007-11-07  Simon Hausmann  <hausmann@kde.org>
627
628         Reviewed by Lars.
629
630         Changed ContextMenu::setPlatformDescription for the Qt port to not show the qmenu right away
631         but instead just behave as a normal setter that takes ownership of the platform menu description (the qmenu).
632         Instead now QWebPage::contextMenuEvent() retrieves the QMenu after calling sendContextMenuEvent and calls exec()
633         on it.
634
635         * platform/qt/ContextMenuQt.cpp:
636
637 2007-11-07  Simon Hausmann  <hausmann@kde.org>
638
639         Reviewed by Lars.
640
641         Changed to PlatformMouseEvent constructor to allow construction from a QContextMenuEvent.
642         Call sendContextMenuEvent on the event handler from a QWidget::contextMenuEvent re-implementation instead of in mousePressEvent.
643
644         * platform/PlatformMouseEvent.h:
645         * platform/qt/PlatformMouseEventQt.cpp:
646         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
647
648 2007-11-07  Lars Knoll  <lars@trolltech.com>
649
650         Reviewed by Simon.
651
652         don't put nbsp's into the plan text paste
653         
654         Fix both ClipboardQt and PasteboardQt to replace
655         nbsp's with spaces before putting the text onto the
656         native clipboard. This is consistent with Mac and Win
657         and fixes at least editing/pasteboard/4076267-3.html
658
659         * platform/qt/ClipboardQt.cpp:
660         (WebCore::ClipboardQt::writeRange):
661         * platform/qt/PasteboardQt.cpp:
662         (WebCore::Pasteboard::writeSelection):
663
664 2007-11-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
665
666         Reviewed by Lars Knoll <lars@trolltech.com>.
667
668         Implement Pasteboard::writeImage()
669         
670         * Pasteboard is now fully implemented. Copying of Images into the Clipboard
671         is now supported.
672         * As with URLs we only copy into the Clipboard (and not additionally to the
673         Selection)
674         
675
676         WARNING: NO TEST CASES ADDED OR CHANGED
677
678         * platform/qt/PasteboardQt.cpp:
679         (WebCore::Pasteboard::writeImage):
680
681 2007-11-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
682
683         Reviewed by Lars Knoll <lars@trolltech.com>.
684
685         Apple CodingStyle fixes
686         
687
688         WARNING: NO TEST CASES ADDED OR CHANGED
689
690         * platform/qt/PasteboardQt.cpp:
691         (WebCore::Pasteboard::documentFragment):
692
693 2007-11-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
694
695         Reviewed by Lars Knoll <lars@trolltech.com>.
696
697         Implement Pasteboard::writeURL()
698         * The URL currently gets written as text/plain and text/uri-list.
699         The win and mac port have some more types which we currently do
700         not support. When supporting them we can use the 'titleString'
701         as well.
702         * As with writeSelection we only copy into the Clipboard. We could
703         consider copying into the Selection as well.
704         
705
706         WARNING: NO TEST CASES ADDED OR CHANGED
707
708         * platform/qt/PasteboardQt.cpp:
709         (WebCore::Pasteboard::writeURL):
710
711 2007-11-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
712
713         Reviewed by Lars Knoll <lars@trolltech.com>.
714
715         Kill whitespace
716         
717
718         WARNING: NO TEST CASES ADDED OR CHANGED
719
720         * platform/qt/PasteboardQt.cpp:
721         (WebCore::Pasteboard::documentFragment):
722
723 2007-11-07  Lars Knoll  <lars@trolltech.com>
724
725         Reviewed by Simon.
726
727         Use the correct function calls to convert a selection to
728         HTML or plain text.
729
730         WARNING: NO TEST CASES ADDED OR CHANGED
731
732         * platform/qt/ClipboardQt.cpp:
733         (WebCore::ClipboardQt::setData):
734         (WebCore::ClipboardQt::writeRange):
735         * platform/qt/PasteboardQt.cpp:
736         (WebCore::Pasteboard::writeSelection):
737
738 2007-11-07  Lars Knoll  <lars@trolltech.com>
739
740         Reviewed by Simon.
741
742         Some more clipboard fixes.
743         
744         We have to set things immediately on the QClipBoard if the
745         Clipboard object is not for dragging.
746         
747         This is due to the fact that the Clipboard object might be
748         rather long lived if accessed through javascript (it'll only
749         get deleted by JS garbage collection). We have to transfer
750         the data over to the QClipboard before that to make things work.
751         
752         Fixes editing/execCommand/copy-without-selection.html
753
754         * platform/qt/ClipboardQt.cpp:
755         (WebCore::ClipboardQt::ClipboardQt):
756         (WebCore::ClipboardQt::~ClipboardQt):
757         (WebCore::ClipboardQt::clearData):
758         (WebCore::ClipboardQt::clearAllData):
759         (WebCore::ClipboardQt::getData):
760         (WebCore::ClipboardQt::setData):
761         (WebCore::ClipboardQt::declareAndWriteDragImage):
762         (WebCore::ClipboardQt::writeURL):
763         (WebCore::ClipboardQt::writeRange):
764
765 2007-11-07  Simon Hausmann  <hausmann@kde.org>
766
767         Reviewed by Mark.
768
769         Fix compilation on Windows with non-cygwin perl. open FILE, "|-" is
770         not supported due to implicit forks, use IPC::Open2 instead.
771
772         * bindings/scripts/IDLParser.pm:
773
774 2007-11-07  Dan Bernstein  <mitz@apple.com>
775
776         Reviewed by Brady Eidson.
777
778         - fix http://bugs.webkit.org/show_bug.cgi?id=15877
779           REGRESSION: r27486 caused a layout regression at my bank's website
780
781         Test: fast/block/float/overhanging-after-height-decrease-offsets.html
782
783         * rendering/RenderBlock.cpp:
784         (WebCore::RenderBlock::layoutBlock):
785
786 2007-11-06  Beth Dakin  <bdakin@apple.com>
787
788         Reviewed by Sam.
789
790         <rdar://problem/5575812> REGRESSION:When using absolute positioning 
791         with overflow:auto div, WebKit seems to add an additional 15px
792
793         * rendering/RenderBox.cpp:
794         (WebCore::RenderBox::containingBlockWidthForPositioned): We need to 
795         subtract off the vertical scrollbar width too.
796
797 2007-11-06  Justin Garcia  <justin.garcia@apple.com>
798
799         Reviewed by Dan Bernstein.
800         
801         <rdar://problem/5583387> ASSERTION FAILED: !refChild->hasTagName(bodyTag) when pasting newline in plain text into rich text Mail
802         <rdar://problem/5583362> REGRESSION (5523.10.3-TOT): Newlines stripped when pasting plain text in Mail
803
804         * editing/markup.cpp:
805         (WebCore::createFragmentFromText): Put paragraphs of text into clones of the block
806         that encloses the input context, unless that block is the body, which shouldn't
807         be cloned.  In that case, use regular divs, as we did before r27369.
808
809 2007-11-06  Christian Dywan  <christian@twotoasts.de>
810
811         Reviewed by Darin.
812
813         Fix http://bugs.webkit.org/show_bug.cgi?id=15828
814         Bug 15828: WebKit GTK include and lib directory is installed in qt4-named directory
815
816         * WebCore.pro: Use sane default install paths for the gtk port.
817
818 2007-11-06  Justin Garcia  <justin.garcia@apple.com>
819
820         Reviewed by Darin Adler.
821         
822         <rdar://problem/5576619> 
823         REGRESSION: Caret disappears after deleting the last character in inline hole (15714)
824
825         * editing/TypingCommand.cpp:
826         (WebCore::TypingCommand::deleteSelection): Like the other TypingCommands, including
827         both of the other deletion commands, call typingAddedToOpenCommand(), which takes 
828         the command's endingSelection and sets it as selection.
829
830 2007-11-06  Dan Bernstein  <mitz@apple.com>
831
832         Reviewed by Antti Koivisto and Dave Hyatt.
833
834         - fix <rdar://problem/5582961> Incorrect layout and floating object list corruption when CSS decreases a block's height
835
836         Test: fast/block/float/overhanging-after-height-decrease.html
837
838         * rendering/RenderBlock.cpp:
839         (WebCore::RenderBlock::layoutBlock): If after calculating the height
840         it turns out that there are overhanging floats that were not overhanging
841         before, rescan children with overhanging floats and add them. 
842         (WebCore::RenderBlock::layoutBlockChildren): Added a parameter that
843         returns the lowest float bottom of any of the children.
844         (WebCore::RenderBlock::addOverhangingFloats): Changed to return the
845         lowest float bottom.
846         * rendering/RenderBlock.h:
847
848 2007-11-06  Adele Peterson  <adele@apple.com>
849
850         Reviewed by Darin.
851
852         Switched all uses of HTMLImageLoader to use OwnPtrs.
853
854         * html/HTMLInputElement.h:
855         * html/HTMLInputElement.cpp:
856         (WebCore::HTMLInputElement::init):
857         (WebCore::HTMLInputElement::~HTMLInputElement):
858         (WebCore::HTMLInputElement::setInputType):
859         (WebCore::HTMLInputElement::parseMappedAttribute):
860         (WebCore::HTMLInputElement::attach):
861         * html/HTMLObjectElement.h:
862         * html/HTMLObjectElement.cpp:
863         (WebCore::HTMLObjectElement::HTMLObjectElement):
864         (WebCore::HTMLObjectElement::~HTMLObjectElement):
865         (WebCore::HTMLObjectElement::parseMappedAttribute):
866         (WebCore::HTMLObjectElement::attach):
867         * html/HTMLVideoElement.h:
868         * html/HTMLVideoElement.cpp:
869         (WebCore::HTMLVideoElement::HTMLVideoElement):
870         (WebCore::HTMLVideoElement::attach):
871         (WebCore::HTMLVideoElement::detach):
872         (WebCore::HTMLVideoElement::parseMappedAttribute):
873
874 2007-11-06  Antti Koivisto  <antti@apple.com>
875
876         Reviewed by Darin.
877         
878         Trigger media load on on src attribute changes as specified in new HTML5 draft.
879
880         Tests: media/video-src-change.html
881                media/video-src-remove.html
882                media/video-src-set.html
883
884         * html/HTMLMediaElement.cpp:
885         (WebCore::HTMLMediaElement::attributeChanged):
886         * html/HTMLMediaElement.h:
887
888 2007-11-06  Dan Bernstein  <mitz@apple.com>
889
890         Reviewed by Darin Adler.
891
892         - fix http://bugs.webkit.org/show_bug.cgi?id=15838
893           Incomplete repaint toggling "How you know this person" on Facebook
894
895         Test: fast/repaint/make-children-non-inline.html
896
897         * rendering/RenderBlock.cpp:
898         (WebCore::RenderBlock::makeChildrenNonInline): Repaint the block. This
899         is needed because the inline children may be repositioned as they move
900         into new anonymous blocks, but those blocks have no knowledge of where
901         their children used to be, so they cannot invalidate those areas.
902
903 2007-11-06  Alexey Proskuryakov  <ap@webkit.org>
904
905         Reviewed by Darin.
906
907         http://bugs.webkit.org/show_bug.cgi?id=15847
908         Some editing cleanup
909
910         No change in functionality.
911
912         * editing/TextIterator.cpp:
913         (WebCore::plainText):
914         * editing/TextIterator.h:
915         Made WebCore::plainText() return String instead of DeprecatedString.
916
917         * bridge/mac/WebCoreAXObject.mm:
918         (-[WebCoreAXObject textUnderElement]):
919         (-[WebCoreAXObject value]):
920         (-[WebCoreAXObject doAXBoundsForTextMarkerRange:]):
921         (-[WebCoreAXObject doAXNextSentenceEndTextMarkerForTextMarker:]):
922         (-[WebCoreAXObject doAXPreviousSentenceStartTextMarkerForTextMarker:]):
923         Updated for the above change. There is no need to explicitly convert to NSString now.
924
925         * editing/EditCommand.cpp:
926         (WebCore::EditCommand::EditCommand): m_startingSelection and m_endingSelection are actually
927         initialized in constructor body, so the work done in initializer list was wasted.
928
929         (WebCore::EditCommand::apply): Moved some stars.
930         (WebCore::EditCommand::unapply): Ditto.
931         (WebCore::EditCommand::reapply): Ditto.
932         (WebCore::EditCommand::setStartingSelection): The loop exit condition was evaluated twice,
933         removed one of the checks.
934
935         * editing/SelectionController.cpp:
936         (WebCore::SelectionController::toString): plainText() result type now matches what we need here.
937
938         * page/mac/WebCoreFrameBridge.h:
939         * page/mac/WebCoreFrameBridge.mm:
940         Removed unused -[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:] and
941         -[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:].
942
943 2007-11-05  Mark Rowe  <mrowe@apple.com>
944
945         Mac build fix.
946
947         * bindings/js/JSHTMLDocumentCustom.cpp:
948         (WebCore::writeHelper):
949
950 2007-11-05  Adam Roben  <aroben@apple.com>
951
952         Don't crash if SafariTheme can't be loaded
953
954         PlatformScrollBarSafari and RenderThemeSafari were not checking
955         whether SafariTheme was successfully loaded. All other uses of
956         SafariTheme already check this.
957
958         Reviewed by Steve.
959
960         * platform/win/PlatformScrollBarSafari.cpp: Don't paint if SafariTheme
961         couldn't be loaded.
962         (WebCore::PlatformScrollbar::paintButton):
963         (WebCore::PlatformScrollbar::paintTrack):
964         (WebCore::PlatformScrollbar::paintThumb):
965         * rendering/RenderThemeSafari.cpp:
966         (WebCore::RenderThemeSafari::isControlStyled): Always return true if
967         we couldn't load SafariTheme. This way we should never try to paint
968         themed controls (and we assert as such in the paint functions).
969         (WebCore::RenderThemeSafari::paintCheckbox):
970         (WebCore::RenderThemeSafari::paintRadio):
971         (WebCore::RenderThemeSafari::paintButton):
972         (WebCore::RenderThemeSafari::paintTextField):
973         (WebCore::RenderThemeSafari::paintCapsLockIndicator):
974         (WebCore::RenderThemeSafari::paintTextArea):
975         (WebCore::RenderThemeSafari::paintMenuList):
976         (WebCore::RenderThemeSafari::paintSliderThumb):
977         (WebCore::RenderThemeSafari::paintSearchField):
978         (WebCore::RenderThemeSafari::paintSearchFieldCancelButton):
979         (WebCore::RenderThemeSafari::paintSearchFieldResultsDecoration):
980         (WebCore::RenderThemeSafari::paintSearchFieldResultsButton):
981
982 2007-11-05  Kevin Ollivier  <kevino@theolliviers.com>
983
984         Adding the rest of wx port's graphics impl. 
985
986         Rubber-stamped by Maciej Stachowiak.
987
988         * platform/graphics/wx/AffineTransformWx.cpp: Added.
989         * platform/graphics/wx/GraphicsContextWx.cpp: Added.
990         * platform/graphics/wx/ImageBufferWx.cpp: Added.
991         * platform/graphics/wx/ImageSourceWx.cpp: Added.
992         * platform/graphics/wx/ImageWx.cpp: Added.
993         * platform/graphics/wx/PathWx.cpp: Added.
994
995 2007-11-05  Kevin Ollivier  <kevino@theolliviers.com>
996
997         wx port bug fixes and new files to get platform/wx building on trunk.
998
999         Rubber-stamped by Maciej Stachowiak.
1000
1001         * platform/wx/CursorWx.cpp:
1002         * platform/wx/FileSystemWx.cpp: Added.
1003         * platform/wx/FontCacheWx.cpp:
1004         * platform/wx/FontPlatformDataWx.cpp:
1005         * platform/wx/FontWx.cpp:
1006         * platform/wx/KeyboardEventWx.cpp:
1007         * platform/wx/LocalizedStringsWx.cpp: Added.
1008         * platform/wx/LoggingWx.cpp: Added.
1009         * platform/wx/RenderThemeWx.cpp:
1010         * platform/wx/ScrollViewWx.cpp:
1011         * platform/wx/SharedTimerWx.cpp:
1012         * platform/wx/StringWx.cpp:
1013         * platform/wx/ThreadingWx.cpp: Added.
1014         * platform/wx/WidgetWx.cpp:
1015
1016 2007-11-05  Adele Peterson  <adele@apple.com>
1017
1018         Reviewed by Maciej.
1019
1020         Fix for <rdar://problem/5579999> Add poster attribute for video element
1021
1022         * html/HTMLAttributeNames.in: Added poster attribute.
1023
1024         * html/HTMLImageLoader.cpp: (WebCore::HTMLImageLoader::updateFromElement):
1025           Calls imageSourceAttributeName instead of having special cases for the different kinds of elements. 
1026         * dom/Element.cpp: (WebCore::Element::imageSourceAttributeName): Added.
1027         * dom/Element.h:
1028         * html/HTMLObjectElement.cpp: (WebCore::HTMLObjectElement::imageSourceAttributeName): Added.
1029         * html/HTMLObjectElement.h:
1030
1031         * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::movieNetworkStateChanged):
1032           Calls updatePosterImage when the network state is empty and when the first frame has been loaded.
1033         * html/HTMLMediaElement.h: (WebCore::HTMLMediaElement::rendererIsNeeded): Made this inline.  HTMLVideoElement now also implements this.
1034
1035         * html/HTMLVideoElement.idl: Added case for poster attribute.
1036         * html/HTMLVideoElement.h: Added image loader and flag to keep track of whether or not the poster image should be shown.
1037         * html/HTMLVideoElement.cpp:
1038         (WebCore::HTMLVideoElement::HTMLVideoElement): Initialize m_imageLoader and m_shouldShowPosterImage.
1039         (WebCore::HTMLVideoElement::rendererIsNeeded): Calls HTMLElement::rendererIsNeeded since HTMLMediaElements have renderer by default.
1040         (WebCore::HTMLVideoElement::createRenderer): Create a RenderImage or RenderVideo depending on whether or not the poster image should be shown.
1041         (WebCore::HTMLVideoElement::attach): Set up image loader and RenderImage if necessary.
1042         (WebCore::HTMLVideoElement::detach): Delete image loader if its no longer needed.
1043         (WebCore::HTMLVideoElement::parseMappedAttribute): Added case to process poster attribute.
1044         (WebCore::HTMLVideoElement::poster): Added getter for poster attribute.
1045         (WebCore::HTMLVideoElement::setPoster): Added setter for poster attribute.
1046         (WebCore::HTMLVideoElement::isURLAttribute): Added.
1047         (WebCore::HTMLVideoElement::imageSourceAttributeName): Added.
1048         (WebCore::HTMLVideoElement::updatePosterImage): Added.  Updates m_shouldShowPosterImage and if its changed, detaches and attaches so the renderer is correct.
1049
1050 2007-11-05  Adam Roben  <aroben@apple.com>
1051
1052         Fix <rdar://5563572> SVG image support is turned off
1053
1054         Turned on SVG images for all platforms.
1055
1056         Reviewed by Eric.
1057
1058         * WebCore.vcproj/WebCore.vcproj: Added SVGImage.{cpp,h}
1059         * loader/CachedImage.cpp:
1060         (WebCore::CachedImage::createImage): Removed platform checks for
1061         SVGImage.
1062
1063 2007-11-05  Antti Koivisto  <antti@apple.com>
1064
1065         Reviewed by Darin.
1066
1067         QTMovieView can generate callbacks during paint. This can lead to crashes.
1068         
1069         Delay callbacks so they get handled after painting is completed. No test case,
1070         I don't know how to reliably reproduce this.
1071
1072         * platform/graphics/mac/MoviePrivateQTKit.mm:
1073         (WebCore::MoviePrivate::MoviePrivate):
1074         (WebCore::MoviePrivate::~MoviePrivate):
1075         (WebCore::MoviePrivate::paint):
1076         (-[WebCoreMovieObserver initWithCallback:WebCore::]):
1077         (-[WebCoreMovieObserver disconnect]):
1078         (-[WebCoreMovieObserver loadStateChanged:]):
1079         (-[WebCoreMovieObserver rateChanged:]):
1080         (-[WebCoreMovieObserver sizeChanged:]):
1081         (-[WebCoreMovieObserver timeChanged:]):
1082         (-[WebCoreMovieObserver volumeChanged:]):
1083         (-[WebCoreMovieObserver didEnd:]):
1084         (-[WebCoreMovieObserver setDelayCallbacks:]):
1085
1086 2007-11-05  Antti Koivisto  <antti@apple.com>
1087
1088         Reviewed by Adam.
1089
1090         Add some missing WebCore* prefixes to ObjC classes
1091
1092         * platform/mac/FileChooserMac.mm:
1093         (WebCore::FileChooser::FileChooser):
1094         * platform/mac/SharedBufferMac.mm:
1095         (WebCore::SharedBuffer::createNSData):
1096         (WebCore::SharedBuffer::createCFData):
1097         * platform/mac/SharedTimerMac.cpp:
1098         (WebCore::setSharedTimerFireTime):
1099
1100 2007-11-05  Ada Chan  <adachan@apple.com>
1101
1102         <rdar://problem/5579772> Regression: AltGr does not work
1103         We now store the system key event info in PlatforkKeyboardEvent().
1104
1105         Reviewed by Oliver.
1106
1107         * platform/PlatformKeyboardEvent.h:
1108         (WebCore::PlatformKeyboardEvent::isSystemKey):
1109         * platform/win/KeyEventWin.cpp:
1110         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
1111
1112 2007-11-02  Tristan O'Tierney  <tristan@apple.com>
1113
1114         Reviewed by Darin Adler.
1115
1116         * WebCore.xcodeproj/project.pbxproj:
1117         Set WindowFeatures.h as a Private header.
1118         
1119         * loader/FrameLoader.cpp:
1120         (WebCore::FrameLoader::createWindow):
1121         Revised to use a single createWindow function instead of
1122         two createWindow functions and one createModalDialog function.
1123         The logic for this is now addressed in WebKit in an effort
1124         to make this easier to follow.
1125         
1126         * page/Chrome.cpp:
1127         (WebCore::Chrome::createWindow):
1128         * page/Chrome.h:
1129         * page/ChromeClient.h:
1130         * page/ContextMenuController.cpp:
1131         (WebCore::openNewWindow):
1132         * platform/graphics/svg/SVGImageEmptyClients.h:
1133         (WebCore::SVGEmptyChromeClient::createWindow):
1134         Revised to take new additional windowFeatures parameter.
1135
1136 2007-11-04  Geoffrey Garen  <ggaren@apple.com>
1137
1138         Reviewed by Darin Adler.
1139         
1140         http://bugs.webkit.org/show_bug.cgi?id=15835
1141
1142         Small adaptations to new KJS::List class.
1143
1144         * bindings/js/kjs_window.cpp:
1145         (KJS::WindowFunc::callAsFunction):
1146         (KJS::ScheduledAction::ScheduledAction):
1147
1148 2007-11-05  Adam Roben  <aroben@apple.com>
1149
1150         Allow passing a base class pointer to COMPtr::copyRefTo
1151
1152         Reviewed by Sam.
1153
1154         * platform/win/COMPtr.h:
1155
1156 2007-11-05  Dan Bernstein  <mitz@apple.com>
1157
1158         Reviewed by Oliver Hunt.
1159
1160         - fix ASSERTION FAILED: !HashTranslator::equal(KeyTraits::emptyValue(), key) when a class attribute is all-whitespace
1161
1162         Test: fast/dom/class-all-whitespace.html
1163
1164         * dom/StyledElement.cpp:
1165         (WebCore::StyledElement::parseMappedAttribute): Check if there is any
1166         non-whitespace character in the class attribute.
1167
1168 2007-11-05  Brady Eidson  <beidson@apple.com>
1169
1170         Reviewed by Sam
1171
1172         Add transaction blocking to the DatabaseAuthorizer in preparation for the new version
1173         of the sql storage API
1174
1175         * storage/DatabaseAuthorizer.cpp:
1176         (WebCore::DatabaseAuthorizer::allowTransaction):
1177         * storage/DatabaseAuthorizer.h:
1178
1179 2007-11-05  Mark Rowe  <mrowe@apple.com>
1180
1181         Reviewed by Alp Toker.
1182
1183         Have getMIMETypeForExtension return a null string when no MIME type is known
1184         for the extension rather than returning "text/plain".  This prevents plugin data
1185         being dumped into object elements when plugins are disabled.
1186
1187         * platform/gtk/MIMETypeRegistryGtk.cpp:
1188         (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
1189
1190 2007-11-04  Sam Weinig  <sam@webkit.org>
1191
1192         Rubber-stamped by Adam Roben.
1193
1194         Rename SecurityOrigin::allowsAccessFrom to SecurityOrigin::canAccess to 
1195         clear up ambiguity.
1196
1197         * bindings/js/kjs_window.cpp:
1198         (KJS::Window::isSafeScript):
1199         * platform/SecurityOrigin.cpp:
1200         (WebCore::SecurityOrigin::canAccess):
1201         * platform/SecurityOrigin.h:
1202
1203 2007-11-04  Timothy Hatcher  <timothy@apple.com>
1204
1205         Reviewed by Adam.
1206
1207         Bug 15834: There are many subtle bugs in the Styles pane of the Web Inspector
1208         http://bugs.webkit.org/show_bug.cgi?id=15834
1209
1210         - Broke up DocumentPanel and added three SidebarPane sub-classes.
1211         - Fixed many Style pane bugs, including:
1212           * Poor handling of duplicate properties in the same rule. Some of this can't be
1213             fixed since we can't only get the "winning" value for duplicate properties.
1214             So we should only show one entry per unique property name.
1215           * Computed style does not show font shorthand sub-properties if 'font' was used.
1216           * Property priority was broken, the wrong properties were crossed out.
1217           * The 'border' shorthand shows null for the shorthand value.
1218           * Shorthands didn't show their priority (e.g. !important).
1219           * HSL and HTML hex colors didn't have preview swatch blocks.
1220           * Code refactoring, making it easier to reuse for console.log later.
1221
1222         * page/inspector/DocumentPanel.js: Move sidebar pane code to three seperate
1223           classes in new files.
1224         * page/inspector/MetricsSidebarPane.js: Added.
1225         * page/inspector/Panel.js: Remove an InspectorController.log() call.
1226         * page/inspector/PropertiesSection.js: Add the section to the TreeOutline.
1227           So TreeElements can access properties on their section.
1228         * page/inspector/PropertiesSidebarPane.js: Added.
1229         * page/inspector/SidebarPane.js: Remove the explicit asignment of the
1230           onexpand and oncollapse to null. These were hiding prototypes.
1231         * page/inspector/StylesSidebarPane.js: Added.
1232         * page/inspector/inspector.html: Include the new script files.
1233         * page/inspector/treeoutline.js: If a null representedObject is passed
1234           in just use a empty object.
1235
1236 2007-11-04  David D. Kilzer  <ddkilzer@webkit.org>
1237
1238         Fix build when spaces appear in the WebKit source path.
1239
1240         Reviewed by Mark Rowe.
1241
1242         * bindings/scripts/IDLParser.pm: Use safer open() method which lists
1243         arguments individually and prevents the need to work around spaces
1244         in the path.
1245
1246 2007-11-04  Alp Toker  <alp@atoker.com>
1247
1248         Reviewed by Alexey Proskuryakov.
1249
1250         Fix a crash when no clipboard text is available
1251
1252         * platform/gtk/PasteboardGtk.cpp:
1253         (WebCore::Pasteboard::plainText):
1254
1255 2007-11-03  Darin Adler  <darin@apple.com>
1256
1257         Reviewed by Maciej.
1258
1259         - WebCore part of http://bugs.webkit.org/show_bug.cgi?id=15821
1260           remove unused PCRE features for speed
1261
1262         * page/Frame.cpp: (WebCore::Frame::matchLabelsAgainstElement):
1263         * page/mac/FrameMac.mm: (WebCore::Frame::matchLabelsAgainstElement):
1264         Remove use of "[[:digit:]]" syntax. This hasn't worked for some time.
1265         Use "\d" instead.
1266
1267         * platform/RegularExpression.h: Remove the unused cap function. We can
1268         add it back later if we find we need it.
1269         * platform/RegularExpression.cpp:
1270         (WebCore::RegularExpression::Private::compile): Update for JavaScriptCore
1271         regular expression entry point changes.
1272         (WebCore::RegularExpression::Private::~Private): Ditto.
1273         (WebCore::RegularExpression::match): Remove the code to set PCRE_NOTBOL.
1274         This means that regular expressions with metacharactesr like ^ in them
1275         won't work any more with non-whole-string searches, but we don't use
1276         any regular expressions like that.
1277
1278 2007-11-03  Kevin Ollivier  <kevino@theolliviers.com>
1279
1280         Update the link stubs to match the current build,
1281         and fix coding style issues.
1282
1283         Reviewed by Mark Rowe.
1284
1285         * platform/wx/TemporaryLinkStubs.cpp:
1286         (loadResourceIntoArray):
1287         (findNextSentenceFromIndex):
1288         (findSentenceBoundary):
1289         (Frame::dashboardRegionsChanged):
1290         (WebCore::historyContains):
1291         (CachedPage::close):
1292         (Editor::showStylesPanel):
1293         (EventHandler::passSubframeEventToSubframe):
1294         (EventHandler::passWheelEventToWidget):
1295         (WebCore::currentTextBreakLocaleID):
1296
1297 2007-11-03  Kevin Ollivier  <kevino@theolliviers.com>
1298
1299         wx <-> WebKit conversions for IntPoint, IntRect and FloatRect
1300
1301         Reviewed by Mark Rowe.
1302
1303         * platform/graphics/wx/FloatRectWx.cpp: Added.
1304         * platform/graphics/wx/IntPointWx.cpp: Added.
1305         * platform/graphics/wx/IntRectWx.cpp: Added.
1306
1307 2007-11-03  Kevin Ollivier  <kevino@theolliviers.com>
1308
1309         wx <-> WebKit data type conversions for Pen and Color.
1310
1311         Reviewed by Darin Adler.
1312
1313         * platform/graphics/wx: Added.
1314         * platform/graphics/wx/ColorWx.cpp: Added.
1315         * platform/graphics/wx/PenWx.cpp: Added.
1316
1317 2007-11-03  Sam Weinig  <sam@webkit.org>
1318
1319         Reviewed by Oliver.
1320
1321         Remove dummy variable from ClassInfo reducing the size of the struct by 1 word.
1322         The variable had been kept around for binary compatibility, but since nothing
1323         else is there is no point in continuing to keep it around.
1324
1325         * bindings/js/JSDOMExceptionConstructor.cpp:
1326         (WebCore::):
1327         * bindings/js/JSHTMLInputElementBase.cpp:
1328         (WebCore::):
1329         * bindings/js/JSNamedNodesCollection.cpp:
1330         (WebCore::):
1331         * bindings/js/JSXMLHttpRequest.cpp:
1332         (KJS::):
1333         * bindings/js/JSXSLTProcessor.cpp:
1334         (KJS::):
1335         * bindings/js/kjs_css.cpp:
1336         (WebCore::):
1337         * bindings/js/kjs_events.cpp:
1338         (WebCore::):
1339         * bindings/js/kjs_navigator.cpp:
1340         (KJS::):
1341         * bindings/js/kjs_window.cpp:
1342         (KJS::):
1343         * bindings/scripts/CodeGeneratorJS.pm:
1344
1345 2007-11-03  Kevin Ollivier  <kevino@theolliviers.com>
1346
1347         Build fixes to get wx impls. building on trunk.
1348
1349         Reviewed by Mark Rowe.
1350
1351         * platform/wx/DragDataWx.cpp:
1352         (WebCore::DragData::containsFiles):
1353         (WebCore::DragData::asFilenames):
1354         * platform/wx/DragImageWx.cpp:
1355         (WebCore::scaleDragImage):
1356         * platform/wx/MimeTypeRegistryWx.cpp:
1357         (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
1358         * platform/wx/MouseEventWx.cpp:
1359         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
1360         * platform/wx/MouseWheelEventWx.cpp:
1361         * platform/wx/PasteboardWx.cpp:
1362         (WebCore::Pasteboard::writeImage):
1363         * platform/wx/WidgetWx.cpp:
1364         (WebCore::Widget::setCursor):
1365
1366 2007-11-03  David D. Kilzer  <ddkilzer@webkit.org>
1367
1368         Sort files(...); sections of Xcode project files.
1369
1370         Rubber-stamped by Darin.
1371
1372         * WebCore.xcodeproj/project.pbxproj:
1373         * manual-tests/NPN_Invoke/NPN_Invoke.xcodeproj/project.pbxproj:
1374
1375 2007-11-03  Kevin Ollivier  <kevino@theolliviers.com>
1376
1377         Coding style fixes for platform/wx files.
1378
1379         Reviewed by Mark Rowe.
1380
1381         * platform/wx/ClipboardWx.cpp:
1382         * platform/wx/GlyphMapWx.cpp:
1383         * platform/wx/ScreenWx.cpp:
1384
1385 2007-11-03  Alp Toker  <alp@atoker.com>
1386
1387         Reviewed by Mark Rowe.
1388
1389         Implement platform scrollbar static width/height getters
1390
1391         * platform/gtk/PlatformScrollBar.h:
1392         * platform/gtk/PlatformScrollBarGtk.cpp:
1393         (scrollbarSize):
1394         (PlatformScrollbar::horizontalScrollbarHeight):
1395
1396 2007-11-03  Alp Toker  <alp@atoker.com>
1397
1398         Reviewed by Mark Rowe.
1399
1400         Cast function pointers to gpointer.
1401
1402         * platform/gtk/PlatformScrollBarGtk.cpp:
1403         (PlatformScrollbar::~PlatformScrollbar):
1404
1405 2007-11-03  Alp Toker  <alp@atoker.com>
1406
1407         Reviewed by Adam Roben.
1408
1409         RenderThemeGtk implementation based on Mozilla's GTK+ style code
1410
1411         There is still work needed to complete this feature.
1412
1413         * WebCore.pro:
1414         * platform/gtk/RenderThemeGtk.cpp:
1415         (WebCore::theme):
1416         (WebCore::RenderThemeGtk::RenderThemeGtk):
1417         (WebCore::supportsFocus):
1418         (WebCore::RenderThemeGtk::supportsFocusRing):
1419         (WebCore::RenderThemeGtk::controlSupportsTints):
1420         (WebCore::RenderThemeGtk::baselinePosition):
1421         (WebCore::adjustMozStyle):
1422         (WebCore::setMozState):
1423         (WebCore::paintMozWidget):
1424         (WebCore::setButtonPadding):
1425         (WebCore::setToggleSize):
1426         (WebCore::RenderThemeGtk::setCheckboxSize):
1427         (WebCore::RenderThemeGtk::paintCheckbox):
1428         (WebCore::RenderThemeGtk::setRadioSize):
1429         (WebCore::RenderThemeGtk::paintRadio):
1430         (WebCore::RenderThemeGtk::adjustButtonStyle):
1431         (WebCore::RenderThemeGtk::paintButton):
1432         (WebCore::RenderThemeGtk::adjustMenuListStyle):
1433         (WebCore::RenderThemeGtk::paintMenuList):
1434         (WebCore::RenderThemeGtk::adjustTextFieldStyle):
1435         (WebCore::RenderThemeGtk::paintTextField):
1436         (WebCore::RenderThemeGtk::adjustSearchFieldResultsButtonStyle):
1437         (WebCore::RenderThemeGtk::paintSearchFieldResultsButton):
1438         (WebCore::RenderThemeGtk::adjustSearchFieldResultsDecorationStyle):
1439         (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration):
1440         (WebCore::RenderThemeGtk::adjustSearchFieldCancelButtonStyle):
1441         (WebCore::RenderThemeGtk::paintSearchFieldCancelButton):
1442         (WebCore::RenderThemeGtk::adjustSearchFieldStyle):
1443         (WebCore::RenderThemeGtk::paintSearchField):
1444         (WebCore::RenderThemeGtk::platformActiveSelectionBackgroundColor):
1445         (WebCore::RenderThemeGtk::platformInactiveSelectionBackgroundColor):
1446         (WebCore::RenderThemeGtk::platformActiveSelectionForegroundColor):
1447         (WebCore::RenderThemeGtk::platformInactiveSelectionForegroundColor):
1448         (WebCore::RenderThemeGtk::activeListBoxSelectionBackgroundColor):
1449         (WebCore::RenderThemeGtk::inactiveListBoxSelectionBackgroundColor):
1450         (WebCore::RenderThemeGtk::activeListBoxSelectionForegroundColor):
1451         (WebCore::RenderThemeGtk::inactiveListBoxSelectionForegroundColor):
1452         (WebCore::RenderThemeGtk::caretBlinkFrequency):
1453         (WebCore::RenderThemeGtk::systemFont):
1454         (WebCore::gtkStyleSetCallback):
1455         (WebCore::RenderThemeGtk::gtkContainer):
1456         (WebCore::RenderThemeGtk::gtkEntry):
1457         (WebCore::RenderThemeGtk::gtkTreeView):
1458         * platform/gtk/RenderThemeGtk.h:
1459         * platform/gtk/gtk2drawing.c: Added.
1460         (moz_gtk_enable_style_props):
1461         (ensure_window_widget):
1462         (setup_widget_prototype):
1463         (ensure_button_widget):
1464         (ensure_checkbox_widget):
1465         (ensure_radiobutton_widget):
1466         (ensure_scrollbar_widget):
1467         (ensure_spin_widget):
1468         (ensure_scale_widget):
1469         (ensure_entry_widget):
1470         (ensure_option_menu_widget):
1471         (ensure_arrow_widget):
1472         (ensure_handlebox_widget):
1473         (ensure_toolbar_widget):
1474         (ensure_tooltip_widget):
1475         (ensure_tab_widget):
1476         (ensure_progress_widget):
1477         (ensure_frame_widget):
1478         (ensure_menu_bar_widget):
1479         (ensure_menu_bar_item_widget):
1480         (ensure_menu_popup_widget):
1481         (ensure_menu_item_widget):
1482         (ensure_check_menu_item_widget):
1483         (ConvertGtkState):
1484         (TSOffsetStyleGCArray):
1485         (TSOffsetStyleGCs):
1486         (moz_gtk_button_paint):
1487         (moz_gtk_init):
1488         (moz_gtk_checkbox_get_metrics):
1489         (moz_gtk_radio_get_metrics):
1490         (moz_gtk_checkbox_get_focus):
1491         (moz_gtk_radio_get_focus):
1492         (moz_gtk_button_get_focus):
1493         (moz_gtk_option_menu_get_metrics):
1494         (moz_gtk_toggle_paint):
1495         (calculate_arrow_dimensions):
1496         (moz_gtk_scrollbar_button_paint):
1497         (moz_gtk_scrollbar_trough_paint):
1498         (moz_gtk_scrollbar_thumb_paint):
1499         (moz_gtk_spin_paint):
1500         (moz_gtk_scale_paint):
1501         (moz_gtk_scale_thumb_paint):
1502         (moz_gtk_gripper_paint):
1503         (moz_gtk_entry_paint):
1504         (moz_gtk_option_menu_paint):
1505         (moz_gtk_dropdown_arrow_paint):
1506         (moz_gtk_container_paint):
1507         (moz_gtk_toggle_label_paint):
1508         (moz_gtk_toolbar_paint):
1509         (moz_gtk_tooltip_paint):
1510         (moz_gtk_frame_paint):
1511         (moz_gtk_progressbar_paint):
1512         (moz_gtk_progress_chunk_paint):
1513         (moz_gtk_tab_paint):
1514         (moz_gtk_tabpanels_paint):
1515         (moz_gtk_menu_bar_paint):
1516         (moz_gtk_menu_popup_paint):
1517         (moz_gtk_menu_item_paint):
1518         (moz_gtk_check_menu_item_paint):
1519         (moz_gtk_window_paint):
1520         (moz_gtk_get_widget_border):
1521         (moz_gtk_get_dropdown_arrow_size):
1522         (moz_gtk_get_scalethumb_metrics):
1523         (moz_gtk_get_scrollbar_metrics):
1524         (moz_gtk_widget_paint):
1525         (moz_gtk_get_scrollbar_widget):
1526         (moz_gtk_shutdown):
1527         * platform/gtk/gtkdrawing.h: Added.
1528
1529 2007-11-03  Alp Toker  <alp@atoker.com>
1530
1531         Reviewed by Mark Rowe.
1532
1533         Do not allow scrollbars to handle wheel events
1534         
1535         We bubble the wheel event up so the parent can handle it instead.
1536
1537         * platform/gtk/PlatformScrollBarGtk.cpp:
1538         (gtkScrollEventCallback):
1539         (PlatformScrollbar::PlatformScrollbar):
1540         (PlatformScrollbar::~PlatformScrollbar):
1541
1542 2007-11-03  Alp Toker  <alp@atoker.com>
1543
1544         Reviewed by Mark Rowe.
1545
1546         Frame scrolling and invalidation fixes
1547
1548         Make upward scroll events have a positive delta to match other ports.
1549
1550         Fix the invalidation rect offset for frames so that scrolling works properly.
1551
1552         Avoid allocating negative sizes to widgets to avoid GTK+ warnings.
1553
1554         Allow tabbing to all widgets and links.
1555
1556         Fix event returns, improving the focus situation and correcting scroll wheel
1557         behavior.
1558
1559         * page/gtk/EventHandlerGtk.cpp:
1560         (WebCore::EventHandler::tabsToAllControls):
1561         (WebCore::EventHandler::passWheelEventToWidget):
1562         * platform/gtk/ScrollViewGtk.cpp:
1563         (WebCore::ScrollViewScrollbar::geometryChanged):
1564         (WebCore::ScrollView::updateContents):
1565         (WebCore::ScrollView::update):
1566         (WebCore::ScrollView::wheelEvent):
1567         (WebCore::ScrollView::updateScrollbars):
1568         * platform/gtk/WheelEventGtk.cpp:
1569         (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1570
1571 2007-11-03  David D. Kilzer  <ddkilzer@webkit.org>
1572
1573         LGPL'ed files contain incorrect FSF address
1574         <http://bugs.webkit.org/show_bug.cgi?id=14885>
1575
1576         Reviewed by NOBODY (follow-up fix).
1577
1578         * bindings/js/JSSVGTransformListCustom.cpp:
1579         * ksvg2/svg/SVGException.idl:
1580         * ksvg2/svg/SVGTextPathElement.cpp:
1581         * ksvg2/svg/SVGTextPathElement.h:
1582         * ksvg2/svg/SVGViewSpec.cpp:
1583         * ksvg2/svg/SVGViewSpec.h:
1584         * platform/mac/FontCustomPlatformData.cpp:
1585         * platform/mac/FontCustomPlatformData.h:
1586         * platform/mac/FontPlatformDataMac.mm:
1587         * platform/win/FontCustomPlatformData.cpp:
1588         * platform/win/FontCustomPlatformData.h:
1589         * rendering/RenderSVGRoot.cpp:
1590         * rendering/RenderSVGRoot.h:
1591         * rendering/RenderSVGTextPath.cpp:
1592         * rendering/RenderSVGTextPath.h:
1593         * rendering/RenderSVGTransformableContainer.h:
1594         * rendering/RenderSVGViewportContainer.cpp:
1595         * rendering/RenderSVGViewportContainer.h:
1596         * rendering/SVGCharacterLayoutInfo.cpp:
1597         * rendering/SVGCharacterLayoutInfo.h:
1598         * rendering/SVGRenderSupport.cpp:
1599         * rendering/SVGRenderSupport.h:
1600
1601 2007-11-02  Antti Koivisto  <antti@apple.com>
1602
1603         Reviewed by Adam.
1604         
1605         Add video width/height DOM and content attributes from latest HTML5 draft.
1606
1607         Test: media/video-width-height.html
1608
1609         * html/HTMLVideoElement.cpp:
1610         (WebCore::HTMLVideoElement::parseMappedAttribute):
1611         (WebCore::HTMLVideoElement::width):
1612         (WebCore::HTMLVideoElement::setWidth):
1613         (WebCore::HTMLVideoElement::height):
1614         (WebCore::HTMLVideoElement::setHeight):
1615         * html/HTMLVideoElement.h:
1616         * html/HTMLVideoElement.idl:
1617
1618 2007-11-02  Darin Adler  <darin@apple.com>
1619
1620         Reviewed by Maciej.
1621
1622         * DerivedSources.make: Remove a few explicit filenames from some rules by using
1623         make variables a little more.
1624         * WebCore.LP64.exp: Fix typo, grammar.
1625
1626 2007-11-02  Darin Adler  <darin@apple.com>
1627
1628         Reviewed by Maciej.
1629
1630         - use the new HashMap::take function where appropriate
1631
1632         * bindings/js/kjs_binding.cpp:
1633         (KJS::addWrapper): Made an inline rather than a macro; inlines good, macros bad.
1634         (KJS::removeWrapper): Ditto.
1635         (KJS::removeWrappers): Ditto.
1636         (KJS::ScriptInterpreter::putDOMObject): Use the inline instead of the macro.
1637         (KJS::ScriptInterpreter::forgetDOMObject): Ditto. This involves using take instead
1638         of remove -- in theory ever so slightly less efficient, but I think it's fine.
1639         (KJS::ScriptInterpreter::forgetDOMNodeForDocument): Ditto.
1640         (KJS::ScriptInterpreter::putDOMNodeForDocument): Use the inline instead of the macro.
1641         (KJS::ScriptInterpreter::forgetAllDOMNodesForDocument): Use take instead of find/remove.
1642         (KJS::ScriptInterpreter::updateDOMNodeDocument): Use the inlines instead of the macros.
1643
1644         * bindings/js/kjs_window.cpp: (KJS::Window::clearTimeout): Use take instead of find/remove.
1645         * bridge/mac/AXObjectCacheMac.mm: (WebCore::AXObjectCache::remove): Ditto.
1646         * page/AnimationController.cpp: (WebCore::AnimationControllerPrivate::clear): Ditto.
1647         * rendering/RenderBlock.cpp:
1648         (WebCore::RenderBlock::~RenderBlock): Ditto.
1649         (WebCore::RenderBlock::setDesiredColumnCountAndWidth): Ditto.
1650         * rendering/RootInlineBox.cpp: Ditto.(WebCore::RootInlineBox::detachEllipsisBox): Ditto.
1651
1652 2007-11-02  Antti Koivisto  <antti@apple.com>
1653
1654         Reviewed by Darin.
1655
1656         Enable video composition.
1657
1658         * WebCore.base.exp:
1659         * platform/graphics/mac/MoviePrivateQTKit.mm:
1660         (WebCore::MoviePrivate::createQTMovieView):
1661         * platform/mac/WebCoreSystemInterface.h:
1662         * platform/mac/WebCoreSystemInterface.mm:
1663
1664 2007-11-02  Darin Adler  <darin@apple.com>
1665
1666         Reviewed by Mitz.
1667
1668         - fix http://bugs.webkit.org/show_bug.cgi?id=15806
1669           <rdar://problem/5561626> ASSERT(element->isRadioButton()) fires destroying form elements
1670
1671         Test: fast/forms/remove-radio-button-assert.html
1672
1673         * html/HTMLGenericFormElement.cpp: (WebCore::HTMLGenericFormElement::removeFromForm):
1674         Added protected function to be used by derived classes that need to do the same sort
1675         of removal from form that's automatically done by the base class in certain circumstances.
1676         * html/HTMLGenericFormElement.h: Added removeFromForm.
1677
1678         * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::~HTMLInputElement):
1679         Call removeFromForm here so the element is removed before we destroy the HTMLInputElement
1680         part of this object. By the time we get to the base class's destructor it's too late.
1681         The problem is specific to radio buttons so we don't have to worry about other classes
1682         derived from HTMLGenericFormElement.
1683
1684 2007-11-02  Darin Adler  <darin@apple.com>
1685
1686         Reviewed by Mitz.
1687
1688         - speculative fix for http://bugs.webkit.org/show_bug.cgi?id=15805
1689           <rdar://problem/5510779> crashes in isLoadingMultipartContent
1690
1691         * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::isLoadingMultipartContent):
1692         Instead of asserting the frame loader is non-0, return false if it is 0.
1693
1694 2007-11-02  Darin Adler  <darin@apple.com>
1695
1696         Reviewed by Mitz.
1697
1698         - fix <rdar://problem/5530185> WebKit does not show <object> fallback content when both
1699           URL and MIME type is omitted
1700
1701         Already covered by existing tests (that had incorrect results).
1702
1703         * loader/FrameLoader.cpp: (WebCore::FrameLoader::requestObject): Return false to indicate
1704         failure when both URL and MIME type are empty. The old code would not attempt a load, but
1705         it would indicate success.
1706
1707         * rendering/RenderPartObject.cpp: (WebCore::RenderPartObject::updateWidget): Remove
1708         non-helpful early exit for the case where there is no URL and no type. Returning early
1709         prevents the fallback code from running.
1710
1711 2007-11-02  Alp Toker  <alp@atoker.com>
1712
1713         Reviewed by Darin.
1714
1715         Include Cairo headers properly
1716
1717         * platform/graphics/AffineTransform.h:
1718         * platform/graphics/ImageBuffer.h:
1719         * platform/graphics/cairo/AffineTransformCairo.cpp:
1720         * platform/gtk/FontPlatformDataGtk.cpp:
1721
1722 2007-11-01  Oliver Hunt  <oliver@apple.com>
1723
1724         Reviewed by Alexey.
1725
1726         Make sure we send the correct events for Capslock, Shift, Ctrl, Alt and the Windows key        
1727
1728         * platform/win/KeyEventWin.cpp:
1729         (WebCore::keyIdentifierForWindowsKeyCode):
1730         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
1731
1732 2007-11-01  Geoffrey Garen  <ggaren@apple.com>
1733
1734         Reviewed by Maciej Stachowiak.
1735         
1736         In preparation for making List a simple stack-allocated Vector:
1737
1738         Removed all instances of List copying, assignment, and/or storage.
1739         
1740         Layout tests and JS tests pass.
1741
1742         * bindings/js/kjs_window.cpp:
1743         (KJS::WindowFunc::callAsFunction): Stores a Vector of protected 
1744         JSValue*'s instead of a List now. Converts to List on the fly when 
1745         calling the timer function. This is slightly less efficient, but the 
1746         common case is 0-2 arguments, so it's no biggie.
1747
1748         (HTML iBench shows no regression. PLT does not use JS timers.)
1749         
1750         (KJS::ScheduledAction::execute): Uses the more efficient and non-copying
1751         List::slice now.
1752         (KJS::ScheduledAction::ScheduledAction): ditto
1753
1754         * bindings/objc/WebScriptObject.mm:
1755         (getListFromNSArray): Takes a List out parameter now, to avoid copying.
1756
1757 2007-11-01  Oliver Hunt  <oliver@apple.com>
1758
1759         Reviewed by Geoff.
1760
1761         Correct event behaviour on certain control keys
1762
1763         Make sure we send the correct keyDown and keyUp events for the
1764         control keys CapsLock, Shift, Ctrl, Alt, and Meta/Command, and
1765         uses Windows key codes for the event keyCode.
1766
1767         * WebCore.base.exp:
1768         * page/EventHandler.cpp:
1769         (WebCore::EventHandler::keyEvent):
1770         * platform/PlatformKeyboardEvent.h:
1771         * platform/gtk/KeyEventGtk.cpp:
1772         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
1773         * platform/mac/KeyEventMac.mm:
1774         (WebCore::keyIdentifierForKeyEvent):
1775         (WebCore::WindowsKeyCodeForKeyEvent):
1776         (WebCore::isKeyUpEvent):
1777         (WebCore::textFromEvent):
1778         (WebCore::unmodifiedTextFromEvent):
1779         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
1780         * platform/win/KeyEventWin.cpp:
1781         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
1782         * platform/wx/KeyEventWin.cpp:
1783         (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
1784
1785 2007-11-01  Timothy Hatcher  <timothy@apple.com>
1786
1787         Reviewed by Sam.
1788
1789         * page/inspector/inspector.css: Use the white disclosure triangles
1790           when a parent DOM element is sepected.
1791
1792 2007-11-01  Justin Garcia  <justin.garcia@apple.com>
1793
1794         Reviewed by Oliver Hunt.
1795
1796         <rdar://problem/5195056> Huge plain text pastes are slow, time spent in ApplyStyleCommand::doApply
1797
1798         * editing/ReplaceSelectionCommand.cpp:
1799         (WebCore::ReplaceSelectionCommand::doApply): No need to match style when pasting
1800         into a plaintext-only region, since when we build the fragment to insert from
1801         plain text, we don't put any style information on it, so it will automatically
1802         match style with no intervention.
1803         * editing/markup.cpp:
1804         (WebCore::createFragmentFromText): Place paragraphs into clones of the
1805         block being inserted into, instead of default paragraph elements,
1806         so that when inserted content will match the surrounding paragraph style.
1807         This was broken before, but I haven't added a layout test yet because
1808         there currently isn't a way to get only plain text onto the pasteboard
1809         in a layout test.
1810
1811 2007-11-01  Sam Weinig  <sam@webkit.org>
1812
1813         Reviewed by Adam Roben. 
1814
1815         Add a releaseRef method to COMPtr which matches the behavior
1816         of the method by the same name in PassRefPtr.  This is in
1817         preparation of adding autogenerated COM DOM bindings.
1818
1819         * platform/win/COMPtr.h:
1820         (COMPtr::releaseRef):
1821
1822 2007-11-01  Kevin Ollivier  <kevino@theolliviers.com>
1823
1824         wx impl. for DragController and EventHandler interfaces.
1825
1826         Reviewed by Adam Roben.
1827
1828         * page/wx: Added.
1829         * page/wx/DragControllerWx.cpp: Added.
1830         (WebCore::DragController::isCopyKeyDown):
1831         (WebCore::DragController::dragOperation):
1832         (WebCore::DragController::maxDragImageSize):
1833         * page/wx/EventHandlerWx.cpp: Added.
1834         (WebCore::EventHandler::passMousePressEventToSubframe):
1835         (WebCore::EventHandler::passMouseMoveEventToSubframe):
1836         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
1837         (WebCore::EventHandler::passMousePressEventToScrollbar):
1838         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
1839         (WebCore::EventHandler::focusDocumentView):
1840         (WebCore::EventHandler::eventActivatedView):
1841         (WebCore::EventHandler::createDraggingClipboard):
1842
1843 2007-11-01  Kevin Ollivier  <kevino@theolliviers.com>
1844
1845         Adding files for wx impl. of editing interfaces.
1846
1847         Reviewed by Adam Roben.
1848
1849         * editing/wx: Added.
1850         * editing/wx/EditorWx.cpp: Added.
1851         (WebCore::Editor::newGeneralClipboard):
1852
1853 2007-11-01  Sam Weinig  <sam@webkit.org>
1854
1855         Reviewed by Adam Roben.
1856
1857         Make implicit conversions from LPCSTRs and BSTRs to WebCore string
1858         types possible in preparation of adding autogenerated COM DOM bindings.
1859
1860         * platform/AtomicString.cpp: 
1861         (WebCore::AtomicString::add):
1862         * platform/AtomicString.h:
1863         (WebCore::AtomicString::AtomicString):
1864         * platform/PlatformString.h:
1865         * platform/win/BString.cpp:
1866         (WebCore::BString::BString):
1867         * platform/win/BString.h:
1868
1869 2007-11-01  Brady Eidson  <beidson@apple.com>
1870
1871         Reviewed by Anders
1872
1873         Renamed a flag inside of SQLiteTransaction and added an accessor (for future work)
1874
1875         * platform/sql/SQLiteTransaction.cpp:
1876         (WebCore::SQLiteTransaction::SQLiteTransaction):
1877         (WebCore::SQLiteTransaction::~SQLiteTransaction):
1878         (WebCore::SQLiteTransaction::begin):
1879         (WebCore::SQLiteTransaction::commit):
1880         (WebCore::SQLiteTransaction::rollback):
1881         * platform/sql/SQLiteTransaction.h:
1882         (WebCore::SQLiteTransaction::inProgress):
1883
1884 2007-11-01  Adam Roben  <aroben@apple.com>
1885
1886         Remove all duplicate xcopy commands from WebCore's post-build step
1887
1888         Also add the /d option to the copy of platform/sql.
1889
1890         Rubberstamped by Sam.
1891
1892         * WebCore.vcproj/WebCore.vcproj:
1893
1894 2007-11-01  Adele Peterson  <adele@apple.com>
1895
1896         Reviewed by Maciej.
1897
1898         Add support for the animation of the -webkit-border-raduis properties.
1899
1900         * page/AnimationController.cpp:
1901         (WebCore::blendFunc): Added for IntSize.
1902         (WebCore::ImplicitAnimation::animate): Added cases for border radius properties.
1903
1904 2007-11-01  Alp Toker  <alp@atoker.com>
1905
1906         Reviewed by Mitz Pettel.
1907
1908         Fix an unbalanced save/restore.
1909
1910         * platform/graphics/cg/ImageCG.cpp:
1911         (WebCore::BitmapImage::draw):
1912
1913 2007-11-01  David Hyatt  <hyatt@apple.com>
1914
1915         Add support for the animation of the visibility property.
1916
1917         Reviewed by oliver, aroben
1918
1919         * page/AnimationController.cpp:
1920         (WebCore::blendFunc):
1921         (WebCore::ImplicitAnimation::animate):
1922
1923 2007-11-01  Kevin McCullough  <kmccullough@apple.com>
1924
1925         Reviewed by Adam.
1926
1927         - Made COMPtr be able to be used by certain other templates,
1928         specifically HashSet.
1929
1930         * platform/win/COMPtr.h:
1931         (WTF::):
1932
1933 2007-11-01  Dan Bernstein  <mitz@apple.com>
1934
1935         Reviewed by Dave Hyatt.
1936
1937         - fix http://bugs.webkit.org/show_bug.cgi?id=15015
1938           <rdar://problem/5420308> Most of www.aol.com redraws unnecessarily when headline/photo section changes
1939
1940         Test: fast/repaint/overflow-clip-subtree-layout.html
1941
1942         This patch does not address the bigger issue of doing a full relayout
1943         of inline flows containing floats, but it addresses the problem on
1944         aol.com, where the changes that trigger layout are confined to an
1945         overflow area inside the float.
1946
1947         * page/FrameView.cpp:
1948         (WebCore::FrameView::scheduleRelayoutOfSubtree): If the new and old
1949         layout roots are different but one descends from the other, make (or
1950         keep) the ancestor as the layout root.
1951         * rendering/RenderObject.cpp:
1952         (WebCore::objectIsRelayoutBoundary): Made boxes with overflow
1953         clipping and non-auto width and height relayout boundaries.
1954
1955 2007-11-01  Alexey Proskuryakov  <ap@webkit.org>
1956
1957         Reviewed by Mark Rowe.
1958
1959         Fixed line endings that got confused in this file somehow.
1960
1961         * platform/network/ResourceResponse.cpp:
1962         (WebCore::ResourceResponse::isAttachment):
1963
1964 2007-11-01  Peter Kasting  <zerodpx@gmail.com>
1965
1966         Reviewed by Dave Hyatt.
1967
1968         http://bugs.webkit.org/show_bug.cgi?id=15778
1969         Malformed GIFs should not result in memory corruption.
1970
1971         * platform/image-decoders/gif/GIFImageDecoder.cpp:
1972         (WebCore::GIFImageDecoder::haveDecodedRow):
1973         * platform/image-decoders/gif/GIFImageReader.cpp:
1974         (GIFImageReader::output_row):
1975         (GIFImageReader::read):
1976
1977 2007-10-31  Adam Roben  <aroben@apple.com>
1978
1979         Fix a crash when parsing a cubic-bezier function
1980
1981         Reviewed by Hyatt.
1982
1983         Test: fast/css/parse-timing-function-crash.html
1984
1985         * WebCore.vcproj/WebCore.vcproj:
1986         * css/CSSParser.cpp:
1987         (WebCore::CSSParser::parseTimingFunctionValue): Don't walk off the end
1988         of the ValueList.
1989
1990 2007-10-31  David Hyatt  <hyatt@apple.com>
1991
1992         Fix a merge error from when I applied my patch to ToT.  A couple of lines should be part of an if.
1993
1994         * rendering/RenderStyle.cpp:
1995         (WebCore::RenderStyle::adjustTransitions):
1996
1997 2007-10-31  Anders Carlsson  <andersca@apple.com>
1998
1999         Reviewed by Sam.
2000
2001         Add new SQL callback interfaces and JS implementations of them.
2002         
2003         * DerivedSources.make:
2004         * WebCore.xcodeproj/project.pbxproj:
2005         * bindings/js/JSCustomSQLStatementCallback.cpp: Added.
2006         (WebCore::JSCustomSQLStatementCallback::JSCustomSQLStatementCallback):
2007         (WebCore::JSCustomSQLStatementCallback::handleEvent):
2008         * bindings/js/JSCustomSQLStatementCallback.h: Added.
2009         * bindings/js/JSCustomSQLStatementErrorCallback.cpp: Added.
2010         (WebCore::JSCustomSQLStatementErrorCallback::JSCustomSQLStatementErrorCallback):
2011         (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
2012         * bindings/js/JSCustomSQLStatementErrorCallback.h: Added.
2013         * bindings/js/JSCustomSQLTransactionCallback.cpp: Added.
2014         (WebCore::JSCustomSQLTransactionCallback::JSCustomSQLTransactionCallback):
2015         (WebCore::JSCustomSQLTransactionCallback::handleEvent):
2016         * bindings/js/JSCustomSQLTransactionCallback.h: Added.
2017         * bindings/js/JSCustomSQLTransactionErrorCallback.cpp: Added.
2018         (WebCore::JSCustomSQLTransactionErrorCallback::JSCustomSQLTransactionErrorCallback):
2019         (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
2020         * bindings/js/JSCustomSQLTransactionErrorCallback.h: Added.
2021         * storage/JSCustomSQLStatementCallback.h: Added.
2022         * storage/JSCustomSQLStatementErrorCallback.h: Added.
2023         * storage/JSCustomSQLTransactionCallback.h: Added.
2024         * storage/JSCustomSQLTransactionErrorCallback.h: Added.
2025         * storage/SQLStatementCallback.h: Added.
2026         (WebCore::SQLStatementCallback::~SQLStatementCallback):
2027         * storage/SQLStatementCallback.idl: Added.
2028         * storage/SQLStatementErrorCallback.h: Added.
2029         (WebCore::SQLStatementErrorCallback::~SQLStatementErrorCallback):
2030         * storage/SQLStatementErrorCallback.idl: Added.
2031         * storage/SQLTransaction.h: Added.
2032         * storage/SQLTransaction.idl: Added.
2033         * storage/SQLTransactionCallback.h: Added.
2034         (WebCore::SQLTransactionCallback::~SQLTransactionCallback):
2035         * storage/SQLTransactionCallback.idl: Added.
2036         * storage/SQLTransactionErrorCallback.h: Added.
2037         (WebCore::SQLTransactionErrorCallback::~SQLTransactionErrorCallback):
2038         * storage/SQLTransactionErrorCallback.idl: Added.
2039
2040 2007-10-31  Justin Garcia  <justin.garcia@apple.com>
2041
2042         Reviewed by Dave Harrison.
2043
2044         <rdar://problem/5569741> Pasting content with a line break into a list can remove the list
2045
2046         * editing/htmlediting.cpp:
2047         (WebCore::enclosingEmptyListItem): A single list item can contain multiple 
2048         paragraphs, so if the incoming VisiblePosition is in an empty paragraph in a 
2049         list item, that list item isn't necessarily empty.
2050
2051 2007-10-31  David Hyatt  <hyatt@apple.com>
2052
2053         Disable style sharing for animating styles.
2054
2055         Reviewed by mitzpettel
2056
2057         * css/CSSStyleSelector.cpp:
2058         (WebCore::CSSStyleSelector::canShareStyleWithElement):
2059
2060 2007-10-31  Dan Bernstein  <mitz@apple.com>
2061
2062         Reviewed by Darin Adler.
2063
2064         - fix intermediate length calculation
2065
2066         * rendering/Length.h:
2067         (WebCore::Length::blend):
2068
2069 2007-10-31  Anders Carlsson  <andersca@apple.com>
2070
2071         Reviewed by Darin.
2072
2073         Add new SQLError implementation.
2074         
2075         * DerivedSources.make:
2076         * WebCore.vcproj/WebCore.vcproj:
2077         * WebCore.xcodeproj/project.pbxproj:
2078         * storage/SQLError.h: Added.
2079         (WebCore::SQLError::SQLError):
2080         (WebCore::SQLError::code):
2081         (WebCore::SQLError::message):
2082         * storage/SQLError.idl: Added.
2083
2084 2007-10-31  David Hyatt  <hyatt@apple.com>
2085
2086         Change the initial value of transition-property to all.  Change the initial value of
2087         transition-duration to 0.
2088
2089         Reviewed by antti
2090
2091         * rendering/RenderStyle.h:
2092         (WebCore::RenderStyle::initialTransitionDuration):
2093         (WebCore::RenderStyle::initialTransitionProperty):
2094
2095 2007-10-31  Alp Toker  <alp@atoker.com>
2096
2097         Reviewed by Mark Rowe.
2098
2099         The new Color must be marked valid.
2100
2101         * platform/graphics/gtk/ColorGtk.cpp:
2102
2103 2007-10-31  Simon Hausmann  <hausmann@kde.org>
2104
2105         Reviewed by Maciej;
2106
2107         Build fix for non-Qt builds.
2108
2109         * dom/XMLTokenizer.cpp:
2110         (WebCore::XMLTokenizer::XMLTokenizer):
2111
2112 2007-10-31  Simon Hausmann  <hausmann@kde.org>
2113
2114         Reviewed by Lars.
2115
2116         Fix dependency path to header files of the public API of the Qt port.
2117
2118         * WebCore.pro:
2119
2120 2007-10-31  Holger Freyther  <zecke@selfish.org>
2121
2122         Reviewed by Simon.
2123
2124         * QXmlStreamNamespaceDeclaration doesn't have the constructor we
2125         want to use for Qt4.3. Reenable the old code path which is likely
2126         to be dead as I have not checked if m_prefixToNamespaceMap is actually
2127         used.
2128         * Guard the entity resolver with the QT_VERSION as well.
2129         * Partially reverts 369506279abdaa863e15efed649ca19e062f2c30 and
2130         d2b54d0fc1b07a2480f4f7a1417abd7a636b0107 for Qt4.3.
2131
2132         * dom/XMLTokenizer.cpp:
2133         (WebCore::XMLTokenizer::XMLTokenizer):
2134         * dom/XMLTokenizer.h:
2135
2136 2007-10-31  Holger Freyther  <zecke@selfish.org>
2137
2138         Reviewed by Lars Knoll <lars@trolltech.com>.
2139
2140         * QMimeData::removeData will be new in Qt4.4, don't use it for Qt4.3 
2141         * Provide a bad fallback implementation to filter the format list.
2142
2143         * platform/qt/ClipboardQt.cpp:
2144         (WebCore::ClipboardQt::clearData):
2145
2146 2007-10-31  Lars Knoll  <lars@trolltech.com>
2147
2148         Reviewed by Simon.
2149
2150         add an entitiy resolver to QXmlStream.
2151         Fixes fast/parser/entities-in-attributes.xhtml.
2152
2153         * dom/XMLTokenizer.cpp:
2154         (WebCore::EntityResolver::resolveUndeclaredEntity):
2155         (WebCore::XMLTokenizer::XMLTokenizer):
2156         (WebCore::XMLTokenizer::~XMLTokenizer):
2157
2158 2007-10-31  Lars Knoll  <lars@trolltech.com>
2159
2160         Reviewed by Simon.
2161
2162         Fixes in the XML tokenizer when using QXmlStream.
2163         
2164         Use new functionality of QXmlStream in Qt 4.4 to simplify
2165         the code (but keep the old code for now to still support Qt 4.3).
2166         
2167         Add proper support for namespace handling when parsing into
2168         a document fragment.
2169
2170         * dom/XMLTokenizer.cpp:
2171         (WebCore::XMLTokenizer::XMLTokenizer):
2172         (WebCore::XMLTokenizer::write):
2173         (WebCore::XMLTokenizer::startElementNs):
2174         (WebCore::):
2175         * dom/XMLTokenizer.h:
2176
2177 2007-10-31  Lars Knoll  <lars@trolltech.com>
2178
2179         Reviewed by Simon.
2180
2181         add support for dragging images.
2182
2183         * platform/DragImage.h:
2184         * platform/qt/ClipboardQt.cpp:
2185         (WebCore::ClipboardQt::clearData):
2186         (WebCore::ClipboardQt::setDragImage):
2187         (WebCore::ClipboardQt::setDragImageElement):
2188         (WebCore::ClipboardQt::createDragImage):
2189         (WebCore::getCachedImage):
2190         (WebCore::ClipboardQt::declareAndWriteDragImage):
2191         * platform/qt/ClipboardQt.h:
2192
2193 2007-10-31  Lars Knoll  <lars@trolltech.com>
2194
2195         Reviewed by Simon.
2196
2197         fix most of the issues I found with Clipboard and DnD.
2198
2199         * editing/qt/EditorQt.cpp:
2200         * platform/qt/ClipboardQt.cpp:
2201         (WebCore::ClipboardQt::ClipboardQt):
2202         (WebCore::ClipboardQt::~ClipboardQt):
2203         (WebCore::ClipboardQt::clearData):
2204         (WebCore::ClipboardQt::clearAllData):
2205         (WebCore::ClipboardQt::getData):
2206         (WebCore::ClipboardQt::setData):
2207         (WebCore::ClipboardQt::types):
2208         (WebCore::ClipboardQt::setDragImage):
2209         (WebCore::ClipboardQt::setDragImageElement):
2210         (WebCore::ClipboardQt::declareAndWriteDragImage):
2211         (WebCore::ClipboardQt::writeURL):
2212         (WebCore::ClipboardQt::writeRange):
2213         (WebCore::ClipboardQt::hasData):
2214         * platform/qt/ClipboardQt.h:
2215         * platform/qt/DragDataQt.cpp:
2216         (WebCore::DragData::asURL):
2217
2218 2007-10-30  Mark Rowe  <mrowe@apple.com>
2219
2220         Fix the Gtk and Qt builds by stubbing out PlatformKeyboardEvent::currentCapsLockState.
2221
2222         * platform/gtk/KeyEventGtk.cpp:
2223         (WebCore::PlatformKeyboardEvent::currentCapsLockState):
2224         * platform/qt/PlatformKeyboardEventQt.cpp:
2225         (WebCore::PlatformKeyboardEvent::currentCapsLockState):
2226
2227 2007-10-31  Alexey Proskuryakov  <ap@webkit.org>
2228
2229         Reviewed by Anders.
2230
2231         http://bugs.webkit.org/show_bug.cgi?id=15762
2232         XSLStylesheet loads subresources from a wrong URL
2233
2234         Covered by corrected existing tests.
2235
2236         * xml/XSLStyleSheet.cpp:
2237         (WebCore::XSLStyleSheet::parseString): Pass stylesheet URL, not
2238         the document one.
2239
2240 2007-10-31  Alexey Proskuryakov  <ap@webkit.org>
2241
2242         Reviewed by Darin.
2243
2244         http://bugs.webkit.org/show_bug.cgi?id=10818
2245         String::append does 2 full copies instead of 1 (or zero!)
2246
2247         No change in functionality, thus no test.
2248
2249         * platform/String.cpp:
2250         (WebCore::String::append): Rewrote to copy once. Also removed an ancient
2251         FIXME that doesn't seem to make any sense. Note that append() behavior doesn't 
2252         match documented String behavior ("modifications to one instance will
2253         also modify all others"), but there are a lot of methods that don't.
2254
2255 2007-10-31  Adam Roben  <aroben@apple.com>
2256
2257         Windows build fix
2258
2259         * WebCore.vcproj/WebCore.vcproj: Add [JS]ProgressEvent.{cpp,h} files.
2260
2261 2007-10-30  Adam Roben  <aroben@apple.com>
2262
2263         Windows build fixes
2264
2265         I'm not completely sure why these const issues weren't caught by GCC,
2266         but MSVC was certainly not happy with them.
2267
2268         * editing/IndentOutdentCommand.cpp:
2269         (WebCore::isIndentBlockquote):
2270         * editing/markup.cpp:
2271         (WebCore::styleFromMatchedRulesAndInlineDecl):
2272
2273 2007-10-30  David Hyatt  <hyatt@apple.com>
2274
2275         transition-property was defaulting to all when it should default to none.  
2276
2277         It was taking a string type.  I figured out how to make it take an ident instead, so you can write:
2278
2279         transition-property: opacity
2280
2281         instead of
2282
2283         transition-property: "opacity"
2284
2285         Transition layers also weren't properly repeating patterns the way they were supposed to.  I fixed that.
2286
2287         Finally, I fixed a bug in the code to fix up transition layers where something was misplaced that should have been inside a null check.
2288
2289         Reviewed by aroben
2290
2291         * css/CSSHelper.h:
2292         * css/CSSParser.cpp:
2293         (WebCore::CSSParser::parseTransitionProperty):
2294         * css/CSSStyleSelector.cpp:
2295         (WebCore::CSSStyleSelector::adjustRenderStyle):
2296         * page/AnimationController.cpp:
2297         (WebCore::ImplicitAnimation::animate):
2298         * rendering/RenderStyle.cpp:
2299         (WebCore::RenderStyle::adjustTransitions):
2300         * rendering/RenderStyle.h:
2301         (WebCore::RenderStyle::initialTransitionProperty):
2302
2303 2007-10-30  Antti Koivisto  <antti@apple.com>
2304
2305         Reviewed by Geoff.
2306
2307         Leak fix
2308
2309         * platform/graphics/mac/MoviePrivateQTKit.mm:
2310         (WebCore::MoviePrivate::getSupportedTypes):
2311
2312 2007-10-30  Dan Bernstein  <mitz@apple.com>
2313
2314         Reviewed by Stephanie Lewis.
2315
2316         - fix <rdar://problem/5547237> REGRESSION (304-ToT): Repro font-related crash in fontdatawin.cpp Line 93 (many sites)
2317
2318         * platform/win/FontDataWin.cpp:
2319         (WebCore::FontData::platformInit): Handle the case where the font has no
2320         glyphs on page zero.
2321
2322 2007-10-30  David Hyatt  <hyatt@apple.com>
2323
2324         Make sure CSS transforms can be animated using the CSS transition property.
2325
2326         Reviewed by Dan and Antti
2327
2328         * css/CSSStyleSelector.cpp:
2329         (WebCore::CSSStyleSelector::applyProperty):
2330         * page/AnimationController.cpp:
2331         (WebCore::blendFunc):
2332         (WebCore::ImplicitAnimation::animate):
2333         * rendering/Length.h:
2334         (WebCore::Length::blend):
2335         * rendering/RenderStyle.cpp:
2336         (WebCore::StyleTransformData::operator==):
2337         (WebCore::TransformOperations::operator==):
2338         (WebCore::blendLengths):
2339         (WebCore::ScaleTransformOperation::blend):
2340         (WebCore::RotateTransformOperation::blend):
2341         (WebCore::SkewTransformOperation::blend):
2342         (WebCore::TranslateTransformOperation::blend):
2343         (WebCore::MatrixTransformOperation::blend):
2344         * rendering/RenderStyle.h:
2345         (WebCore::TransformOperations::operator!=):
2346         (WebCore::TransformOperations::isEmpty):
2347         (WebCore::TransformOperations::size):
2348         (WebCore::TransformOperations::operator[]):
2349         (WebCore::TransformOperations::append):
2350         (WebCore::RenderStyle::transform):
2351         (WebCore::RenderStyle::setTransform):
2352         (WebCore::RenderStyle::initialTransform):
2353
2354 2007-10-30  Antti Koivisto  <antti@apple.com>
2355
2356         Another Qt/GTK build fix.
2357
2358         * bindings/js/JSHTMLElementWrapperFactory.cpp:
2359
2360 2007-10-30  Antti Koivisto  <antti@apple.com>
2361
2362         Attempt to fix Qt/GTK build.
2363
2364         * WebCore.pro:
2365
2366 2007-10-30  Justin Garcia  <justin.garcia@apple.com>
2367
2368         Reviewed by Darin Adler.
2369
2370         <rdar://problem/5549929> CrashTracer: [USER] 35 crashes at WebCore::CharacterData::insertData
2371         
2372         We were trying to insert a tab into a br, after the br incorrectly ended up inside
2373         a tab span.
2374         
2375         * editing/DeleteButtonController.cpp: 
2376         (WebCore::isDeletableElement): Changed to take in a const Node* instead of a Node*.
2377         * editing/DeleteSelectionCommand.cpp:
2378         (WebCore::isTableRow): Ditto.
2379         * editing/IndentOutdentCommand.cpp:
2380         (WebCore::isIndentBlockquote): Ditto.
2381         (WebCore::isListOrIndentBlockquote): Ditto.
2382         * editing/InsertLineBreakCommand.cpp:
2383         (WebCore::InsertLineBreakCommand::shouldUseBreakElement): Added, moved code from
2384         doApply here.
2385         (WebCore::InsertLineBreakCommand::doApply): 
2386         Don't upstream() the insertion position.  upstream()ing it will only have an effect
2387         when the insertion position is the first in its paragraph (since we canonicalize
2388         VisiblePositions to the upstream() candidate).  In this start of paragraph case, 
2389         upstream() can move outside inline elements like tab spans or elements that might
2390         have a different whitespace mode (added two test cases to cover these).
2391         Moved code to decide whether to insert a br or a '\n' to its own method.
2392         Removed special case code for inserting at a position inside a tab span.  We instead
2393         adjust the insertion position before insertion if it is inside a tab span and
2394         handle insertion in the appropriate if-block.  This fixes a bug where we would 
2395         only insert one line break when two were needed (added a testcase).
2396         Removed special case code for inserting before and after tables and horizontal
2397         rules.  We handle these insertions in the appropriate if-block.
2398         * editing/InsertLineBreakCommand.h:
2399         * editing/ReplaceSelectionCommand.cpp:
2400         (WebCore::isMailPasteAsQuotationNode): Change to take in a const Node*.
2401         * editing/htmlediting.cpp:
2402         (WebCore::isContentEditable): Ditto.
2403         (WebCore::isBlock): Ditto.
2404         (WebCore::enclosingNodeOfType): Changed to take a function pointer to a function
2405         that takes in a const Node*.
2406         (WebCore::isTabSpanTextNode): Check to see that the node actually a text node,
2407         and not, say, a br.
2408         * editing/htmlediting.h:
2409         * editing/markup.cpp:
2410         (WebCore::styleFromMatchedRulesAndInlineDecl): Changed to take in a const Node*.
2411         (WebCore::elementHasTextDecorationProperty): Ditto.
2412
2413 2007-10-30  Antti Koivisto  <antti@apple.com>
2414
2415         Reviewed by NOBODY.
2416
2417         Add missing files.
2418
2419         * html/VoidCallback.cpp: Added.
2420         (VoidCallback::VoidCallback):
2421         (VoidCallback::~VoidCallback):
2422         (VoidCallback::handleEvent):
2423         (VoidCallback::execute):
2424         (VoidCallback::operator==):
2425         (WebCore::toVoidCallback):
2426         * html/VoidCallback.h: Added.
2427         * html/VoidCallback.idl: Added.
2428
2429 2007-10-30  David Kilzer  <ddkilzer@webkit.org>
2430
2431         Generated files missing from WebCore's Xcode project file
2432         <http://bugs.webkit.org/show_bug.cgi?id=15406>
2433
2434         Reviewed by Darin.
2435
2436         Added the following files to the Xcode project file (note that
2437         JSHTMLInputElementBaseTable.cpp is used as a header file):
2438
2439         - DOMCSSStyleSheetPrivate.h
2440         - DOMEventPrivate.h
2441         - DOMHTMLCollectionPrivate.h
2442         - DOMHTMLEmbedElementPrivate.h
2443         - DOMHTMLIFrameElementPrivate.h
2444         - DOMHTMLObjectElementPrivate.h
2445         - DOMHTMLSelectElementPrivate.h
2446         - DOMTextEventInternal.h
2447         - JSHTMLInputElementBaseTable.cpp
2448
2449         * DerivedSources.make: Removed DOMSVGException.h and JSSVGAnimatedPoints.h
2450         since their generated code was not used.
2451         * WebCore.xcodeproj/project.pbxproj: Added missing header files.
2452
2453 2007-10-29  Antti Koivisto  <antti@apple.com>
2454
2455         Rubber stamped by Adele.
2456
2457         Initial media (<video> and <audio>) support from feature branch and 
2458         QTKit based platform implementation.
2459         
2460         This will need to be updated to match current draft specification.
2461
2462         * Configurations/WebCore.xcconfig:
2463         * DerivedSources.make:
2464         * WebCore.base.exp:
2465         * WebCore.xcodeproj/project.pbxproj:
2466         * bindings/js/JSEventCustom.cpp:
2467         (WebCore::toJS):
2468         * bindings/js/JSHTMLAudioElementConstructor.cpp: Added.
2469         (WebCore::JSHTMLAudioElementConstructor::JSHTMLAudioElementConstructor):
2470         (WebCore::JSHTMLAudioElementConstructor::implementsConstruct):
2471         (WebCore::JSHTMLAudioElementConstructor::construct):
2472         * bindings/js/JSHTMLAudioElementConstructor.h: Added.
2473         * bindings/js/JSHTMLElementWrapperFactory.cpp:
2474         (WebCore::createJSHTMLWrapper):
2475         * bindings/js/kjs_window.cpp:
2476         (KJS::Window::getValueProperty):
2477         * bindings/js/kjs_window.h:
2478         (KJS::Window::):
2479         * bindings/scripts/CodeGeneratorJS.pm:
2480         * dom/Document.cpp:
2481         (WebCore::Document::createEvent):
2482         (WebCore::Document::willSaveToCache):
2483         (WebCore::Document::didRestoreFromCache):
2484         (WebCore::Document::registerForCacheCallbacks):
2485         (WebCore::Document::unregisterForCacheCallbacks):
2486         * dom/Document.h:
2487         * dom/Element.cpp:
2488         (WebCore::Element::setBooleanAttribute):
2489         * dom/Element.h:
2490         (WebCore::Element::willSaveToCache):
2491         * dom/Event.cpp:
2492         (WebCore::Event::isProgressEvent):
2493         * dom/Event.h:
2494         * dom/EventNames.h:
2495         * dom/EventTargetNode.cpp:
2496         (WebCore::EventTargetNode::dispatchProgressEvent):
2497         * dom/EventTargetNode.h:
2498         * dom/ProgressEvent.cpp: Added.
2499         (WebCore::ProgressEvent::ProgressEvent):
2500         (WebCore::ProgressEvent::initProgressEvent):
2501         (WebCore::ProgressEvent::initProgressEventNS):
2502         * dom/ProgressEvent.h: Added.
2503         (WebCore::ProgressEvent::lengthComputable):
2504         (WebCore::ProgressEvent::loaded):
2505         (WebCore::ProgressEvent::total):
2506         (WebCore::ProgressEvent::isProgressEvent):
2507         * dom/ProgressEvent.idl: Added.
2508         * history/CachedPage.cpp:
2509         (WebCore::CachedPage::CachedPage):
2510         * html/HTMLAttributeNames.in:
2511         * html/HTMLAudioElement.cpp: Added.
2512         (WebCore::HTMLAudioElement::HTMLAudioElement):
2513         * html/HTMLAudioElement.h: Added.
2514         (WebCore::HTMLAudioElement::tagPriority):
2515         * html/HTMLAudioElement.idl: Added.
2516         * html/HTMLElement.cpp:
2517         (WebCore::inlineTagList):
2518         * html/HTMLElementFactory.cpp:
2519         (WebCore::audioConstructor):
2520         (WebCore::videoConstructor):
2521         (WebCore::sourceConstructor):
2522         (WebCore::createFunctionMap):
2523         * html/HTMLInputElement.cpp:
2524         (WebCore::HTMLInputElement::~HTMLInputElement):
2525         (WebCore::HTMLInputElement::setInputType):
2526         (WebCore::HTMLInputElement::willMoveToNewOwnerDocument):
2527         (WebCore::HTMLInputElement::didMoveToNewOwnerDocument):
2528         * html/HTMLMediaElement.cpp: Added.
2529         (WebCore::HTMLMediaElement::HTMLMediaElement):
2530         (WebCore::HTMLMediaElement::~HTMLMediaElement):
2531         (WebCore::HTMLMediaElement::checkDTD):
2532         (WebCore::HTMLMediaElement::rendererIsNeeded):
2533         (WebCore::HTMLMediaElement::createRenderer):
2534         (WebCore::HTMLMediaElement::insertedIntoDocument):
2535         (WebCore::HTMLMediaElement::removedFromDocument):
2536         (WebCore::HTMLMediaElement::scheduleLoad):
2537         (WebCore::HTMLMediaElement::initAndDispatchProgressEvent):
2538         (WebCore::HTMLMediaElement::dispatchEventAsync):
2539         (WebCore::HTMLMediaElement::loadTimerFired):
2540         (WebCore::HTMLMediaElement::asyncEventTimerFired):
2541         (WebCore::serializeTimeOffset):
2542         (WebCore::parseTimeOffset):
2543         (WebCore::HTMLMediaElement::getTimeOffsetAttribute):
2544         (WebCore::HTMLMediaElement::setTimeOffsetAttribute):
2545         (WebCore::HTMLMediaElement::error):
2546         (WebCore::HTMLMediaElement::src):
2547         (WebCore::HTMLMediaElement::HTMLMediaElement::setSrc):
2548         (WebCore::HTMLMediaElement::currentSrc):
2549         (WebCore::HTMLMediaElement::networkState):
2550         (WebCore::HTMLMediaElement::bufferingRate):
2551         (WebCore::HTMLMediaElement::load):
2552         (WebCore::HTMLMediaElement::movieNetworkStateChanged):
2553         (WebCore::HTMLMediaElement::movieReadyStateChanged):
2554         (WebCore::HTMLMediaElement::setReadyState):
2555         (WebCore::HTMLMediaElement::progressEventTimerFired):
2556         (WebCore::HTMLMediaElement::seek):
2557         (WebCore::HTMLMediaElement::readyState):
2558         (WebCore::HTMLMediaElement::seeking):
2559         (WebCore::HTMLMediaElement::currentTime):
2560         (WebCore::HTMLMediaElement::setCurrentTime):
2561         (WebCore::HTMLMediaElement::duration):
2562         (WebCore::HTMLMediaElement::paused):
2563         (WebCore::HTMLMediaElement::defaultPlaybackRate):
2564         (WebCore::HTMLMediaElement::setDefaultPlaybackRate):
2565         (WebCore::HTMLMediaElement::playbackRate):
2566         (WebCore::HTMLMediaElement::setPlaybackRate):
2567         (WebCore::HTMLMediaElement::ended):
2568         (WebCore::HTMLMediaElement::autoplay):
2569         (WebCore::HTMLMediaElement::setAutoplay):
2570         (WebCore::HTMLMediaElement::play):
2571         (WebCore::HTMLMediaElement::pause):
2572         (WebCore::HTMLMediaElement::loopCount):
2573         (WebCore::HTMLMediaElement::setLoopCount):
2574         (WebCore::HTMLMediaElement::start):
2575         (WebCore::HTMLMediaElement::setStart):
2576         (WebCore::HTMLMediaElement::end):
2577         (WebCore::HTMLMediaElement::setEnd):
2578         (WebCore::HTMLMediaElement::loopStart):
2579         (WebCore::HTMLMediaElement::setLoopStart):
2580         (WebCore::HTMLMediaElement::loopEnd):
2581         (WebCore::HTMLMediaElement::setLoopEnd):
2582         (WebCore::HTMLMediaElement::currentLoop):
2583         (WebCore::HTMLMediaElement::setCurrentLoop):
2584         (WebCore::HTMLMediaElement::controls):
2585         (WebCore::HTMLMediaElement::setControls):
2586         (WebCore::HTMLMediaElement::volume):
2587         (WebCore::HTMLMediaElement::setVolume):
2588         (WebCore::HTMLMediaElement::muted):
2589         (WebCore::HTMLMediaElement::setMuted):
2590         (WebCore::HTMLMediaElement::pickMedia):
2591         (WebCore::HTMLMediaElement::checkIfSeekNeeded):
2592         (WebCore::HTMLMediaElement::movieVolumeChanged):
2593         (WebCore::HTMLMediaElement::movieDidEnd):
2594         (WebCore::HTMLMediaElement::movieCuePointReached):
2595         (WebCore::HTMLMediaElement::addCuePoint):
2596         (WebCore::HTMLMediaElement::removeCuePoint):
2597         (WebCore::HTMLMediaElement::buffered):
2598         (WebCore::HTMLMediaElement::played):
2599         (WebCore::HTMLMediaElement::seekable):
2600         (WebCore::HTMLMediaElement::effectiveStart):
2601         (WebCore::HTMLMediaElement::effectiveEnd):
2602         (WebCore::HTMLMediaElement::effectiveLoopStart):
2603         (WebCore::HTMLMediaElement::effectiveLoopEnd):
2604         (WebCore::HTMLMediaElement::activelyPlaying):
2605         (WebCore::HTMLMediaElement::endedPlayback):
2606         (WebCore::HTMLMediaElement::willSaveToCache):
2607         (WebCore::HTMLMediaElement::didRestoreFromCache):
2608         * html/HTMLMediaElement.h: Added.
2609         (WebCore::HTMLMediaElement::movie):
2610         (WebCore::HTMLMediaElement::isVideo):
2611         (WebCore::HTMLMediaElement::):
2612         (WebCore::HTMLMediaElement::CallbackEntry::CallbackEntry):
2613         * html/HTMLMediaElement.idl: Added.
2614         * html/HTMLSourceElement.cpp: Added.
2615         (WebCore::HTMLSourceElement::HTMLSourceElement):
2616         (WebCore::HTMLSourceElement::~HTMLSourceElement):
2617         (WebCore::HTMLSourceElement::insertedIntoDocument):
2618         (WebCore::HTMLSourceElement::src):
2619         (WebCore::HTMLSourceElement::setSrc):
2620         (WebCore::HTMLSourceElement::media):
2621         (WebCore::HTMLSourceElement::setMedia):
2622         (WebCore::HTMLSourceElement::type):
2623         (WebCore::HTMLSourceElement::setType):
2624         * html/HTMLSourceElement.h: Added.
2625         (WebCore::HTMLSourceElement::endTagRequirement):
2626         (WebCore::HTMLSourceElement::tagPriority):
2627         * html/HTMLSourceElement.idl: Added.
2628         * html/HTMLTagNames.in:
2629         * html/HTMLVideoElement.cpp: Added.
2630         (WebCore::HTMLVideoElement::HTMLVideoElement):
2631         (WebCore::HTMLVideoElement::videoWidth):
2632         (WebCore::HTMLVideoElement::videoHeight):
2633         * html/HTMLVideoElement.h: Added.
2634         (WebCore::HTMLVideoElement::tagPriority):
2635         (WebCore::HTMLVideoElement::isVideo):
2636         * html/HTMLVideoElement.idl: Added.
2637         * html/MediaError.h: Added.
2638         (WebCore::MediaError::):
2639         (WebCore::MediaError::MediaError):
2640         (WebCore::MediaError::code):
2641         * html/MediaError.idl: Added.
2642         * html/TimeRanges.cpp: Added.
2643         (TimeRanges::TimeRanges):
2644         (TimeRanges::start):
2645         (TimeRanges::end):
2646         (TimeRanges::add):
2647         (TimeRanges::contain):
2648         * html/TimeRanges.h: Added.
2649         (WebCore::TimeRanges::TimeRanges):
2650         (WebCore::TimeRanges::length):
2651         (WebCore::TimeRanges::Range::Range):
2652         * html/TimeRanges.idl: Added.
2653         * page/DOMWindow.idl:
2654         * platform/MIMETypeRegistry.cpp:
2655         (WebCore::initialiseSupportedMovieMIMETypes):
2656         (WebCore::initialiseMIMETypeRegistry):
2657         (WebCore::MIMETypeRegistry::isSupportedMovieMIMEType):
2658         (WebCore::MIMETypeRegistry::getSupportedMovieMIMETypes):
2659         * platform/MIMETypeRegistry.h:
2660         * platform/graphics/Movie.cpp: Added.
2661         (WebCore::Movie::Movie):
2662         (WebCore::Movie::~Movie):
2663         (WebCore::Movie::load):
2664         (WebCore::Movie::cancelLoad):
2665         (WebCore::Movie::play):
2666         (WebCore::Movie::pause):
2667         (WebCore::Movie::duration):
2668         (WebCore::Movie::currentTime):
2669         (WebCore::Movie::seek):
2670         (WebCore::Movie::paused):
2671         (WebCore::Movie::seeking):
2672         (WebCore::Movie::naturalSize):
2673         (WebCore::Movie::hasVideo):
2674         (WebCore::Movie::networkState):
2675         (WebCore::Movie::readyState):
2676         (WebCore::Movie::volume):
2677         (WebCore::Movie::setVolume):
2678         (WebCore::Movie::rate):
2679         (WebCore::Movie::setRate):
2680         (WebCore::Movie::muted):
2681         (WebCore::Movie::setMuted):
2682         (WebCore::Movie::dataRate):
2683         (WebCore::Movie::setEndTime):
2684         (WebCore::Movie::addCuePoint):
2685         (WebCore::Movie::removeCuePoint):
2686         (WebCore::Movie::clearCuePoints):
2687         (WebCore::Movie::maxTimeBuffered):
2688         (WebCore::Movie::maxTimeSeekable):
2689         (WebCore::Movie::bytesLoaded):
2690         (WebCore::Movie::totalBytesKnown):
2691         (WebCore::Movie::totalBytes):
2692         (WebCore::Movie::setRect):
2693         (WebCore::Movie::visible):
2694         (WebCore::Movie::setVisible):
2695         (WebCore::Movie::paint):
2696         (WebCore::Movie::getSupportedTypes):
2697         (WebCore::Movie::networkStateChanged):
2698         (WebCore::Movie::readyStateChanged):
2699         (WebCore::Movie::volumeChanged):
2700         (WebCore::Movie::didEnd):
2701         (WebCore::Movie::cuePointReached):
2702         * platform/graphics/Movie.h: Added.
2703         (WebCore::MovieClient::~MovieClient):
2704         (WebCore::MovieClient::movieNetworkStateChanged):
2705         (WebCore::MovieClient::movieReadyStateChanged):
2706         (WebCore::MovieClient::movieVolumeChanged):
2707         (WebCore::MovieClient::movieDidEnd):
2708         (WebCore::MovieClient::movieCuePointReached):
2709         (WebCore::Movie::parentWidget):
2710         (WebCore::Movie::setParentWidget):
2711         (WebCore::Movie::rect):
2712         (WebCore::Movie::):
2713         * platform/graphics/mac/MoviePrivateQTKit.h: Added.
2714         * platform/graphics/mac/MoviePrivateQTKit.mm: Added.
2715         (WebCore::MoviePrivate::MoviePrivate):
2716         (WebCore::MoviePrivate::~MoviePrivate):
2717         (WebCore::MoviePrivate::createQTMovie):
2718         (WebCore::MoviePrivate::createQTMovieView):
2719         (WebCore::MoviePrivate::createQTTime):
2720         (WebCore::MoviePrivate::load):
2721         (WebCore::MoviePrivate::play):
2722         (WebCore::MoviePrivate::pause):
2723         (WebCore::MoviePrivate::duration):
2724         (WebCore::MoviePrivate::currentTime):
2725         (WebCore::MoviePrivate::seek):
2726         (WebCore::MoviePrivate::setEndTime):
2727         (WebCore::MoviePrivate::addCuePoint):
2728         (WebCore::MoviePrivate::removeCuePoint):
2729         (WebCore::MoviePrivate::clearCuePoints):
2730         (WebCore::MoviePrivate::startCuePointTimerIfNeeded):
2731         (WebCore::MoviePrivate::cancelSeek):
2732         (WebCore::MoviePrivate::seekTimerFired):
2733         (WebCore::MoviePrivate::cuePointTimerFired):
2734         (WebCore::MoviePrivate::paused):
2735         (WebCore::MoviePrivate::seeking):
2736         (WebCore::MoviePrivate::naturalSize):
2737         (WebCore::MoviePrivate::hasVideo):
2738         (WebCore::MoviePrivate::setVolume):
2739         (WebCore::MoviePrivate::setMuted):
2740         (WebCore::MoviePrivate::setRate):
2741         (WebCore::MoviePrivate::dataRate):
2742         (WebCore::MoviePrivate::networkState):
2743         (WebCore::MoviePrivate::readyState):
2744         (WebCore::MoviePrivate::maxTimeBuffered):
2745         (WebCore::MoviePrivate::maxTimeSeekable):
2746         (WebCore::MoviePrivate::maxTimeLoaded):
2747         (WebCore::MoviePrivate::bytesLoaded):
2748         (WebCore::MoviePrivate::totalBytesKnown):
2749         (WebCore::MoviePrivate::totalBytes):
2750         (WebCore::MoviePrivate::cancelLoad):
2751         (WebCore::MoviePrivate::updateStates):
2752         (WebCore::MoviePrivate::loadStateChanged):
2753         (WebCore::MoviePrivate::rateChanged):
2754         (WebCore::MoviePrivate::sizeChanged):
2755         (WebCore::MoviePrivate::timeChanged):
2756         (WebCore::MoviePrivate::volumeChanged):
2757         (WebCore::MoviePrivate::didEnd):
2758         (WebCore::MoviePrivate::setRect):
2759         (WebCore::MoviePrivate::setVisible):
2760         (WebCore::MoviePrivate::paint):
2761         (WebCore::MoviePrivate::getSupportedTypes):
2762         (-[WebCoreMovieObserver loadStateChanged:]):
2763         (-[WebCoreMovieObserver rateChanged:]):
2764         (-[WebCoreMovieObserver sizeChanged:]):
2765         (-[WebCoreMovieObserver timeChanged:]):
2766         (-[WebCoreMovieObserver volumeChanged:]):
2767         (-[WebCoreMovieObserver didEnd:]):
2768         (-[WebCoreMovieObserver setCallback:WebCore::]):
2769         * platform/mac/WebCoreSystemInterface.h:
2770         * platform/mac/WebCoreSystemInterface.mm:
2771         * rendering/RenderLayer.cpp:
2772         (WebCore::RenderLayer::collectLayers):
2773         * rendering/RenderVideo.cpp: Added.
2774         (WebCore::RenderVideo::RenderVideo):
2775         (WebCore::RenderVideo::~RenderVideo):
2776         (WebCore::RenderVideo::movie):
2777         (WebCore::RenderVideo::videoSizeChanged):
2778         (WebCore::RenderVideo::paint):
2779         (WebCore::RenderVideo::layout):
2780         (WebCore::RenderVideo::updateFromElement):
2781         (WebCore::RenderVideo::updateMovie):
2782         (WebCore::RenderVideo::isWidthSpecified):
2783         (WebCore::RenderVideo::isHeightSpecified):
2784         (WebCore::RenderVideo::calcReplacedWidth):
2785         (WebCore::RenderVideo::calcReplacedHeight):
2786         (WebCore::RenderVideo::calcAspectRatioWidth):
2787         (WebCore::RenderVideo::calcAspectRatioHeight):
2788         (WebCore::RenderVideo::calcPrefWidths):
2789         * rendering/RenderVideo.h: Added.
2790         (WebCore::RenderVideo::renderName):
2791
2792 2007-10-30  Sam Weinig  <sam@webkit.org>
2793
2794         Reviewed by Adam Roben.
2795
2796         Add Interface and Class UUIDs to the IDLs in preparation of adding
2797         autogeneration of the COM DOM bindings.
2798
2799         * bindings/scripts/IDLParser.pm: Relax parsing rules to allow newlines as whitespace.
2800         * css/CSSCharsetRule.idl:
2801         * css/CSSFontFaceRule.idl:
2802         * css/CSSImportRule.idl:
2803         * css/CSSMediaRule.idl:
2804         * css/CSSPageRule.idl:
2805         * css/CSSPrimitiveValue.idl:
2806         * css/CSSRule.idl:
2807         * css/CSSRuleList.idl:
2808         * css/CSSStyleDeclaration.idl:
2809         * css/CSSStyleRule.idl:
2810         * css/CSSStyleSheet.idl:
2811         * css/CSSUnknownRule.idl:
2812         * css/CSSValue.idl:
2813         * css/CSSValueList.idl:
2814         * css/Counter.idl:
2815         * css/MediaList.idl:
2816         * css/RGBColor.idl:
2817         * css/Rect.idl:
2818         * css/StyleSheet.idl:
2819         * css/StyleSheetList.idl:
2820         * dom/Attr.idl:
2821         * dom/CDATASection.idl:
2822         * dom/CharacterData.idl:
2823         * dom/Comment.idl:
2824         * dom/DOMImplementation.idl:
2825         * dom/Document.idl:
2826         * dom/DocumentFragment.idl:
2827         * dom/DocumentType.idl:
2828         * dom/Element.idl:
2829         * dom/Entity.idl:
2830         * dom/EntityReference.idl:
2831         * dom/Event.idl:
2832         * dom/EventListener.idl:
2833         * dom/EventTarget.idl:
2834         * dom/NamedNodeMap.idl:
2835         * dom/Node.idl:
2836         * dom/NodeList.idl:
2837         * dom/Notation.idl:
2838         * dom/ProcessingInstruction.idl:
2839         * dom/Text.idl:
2840         * html/CanvasGradient.idl:
2841         * html/CanvasPattern.idl:
2842         * html/CanvasRenderingContext2D.idl:
2843         * html/HTMLAnchorElement.idl:
2844         * html/HTMLAppletElement.idl:
2845         * html/HTMLAreaElement.idl:
2846         * html/HTMLBRElement.idl:
2847         * html/HTMLBaseElement.idl:
2848         * html/HTMLBaseFontElement.idl:
2849         * html/HTMLBlockquoteElement.idl:
2850         * html/HTMLBodyElement.idl:
2851         * html/HTMLButtonElement.idl:
2852         * html/HTMLCanvasElement.idl:
2853         * html/HTMLCollection.idl:
2854         * html/HTMLDListElement.idl:
2855         * html/HTMLDirectoryElement.idl:
2856         * html/HTMLDivElement.idl:
2857         * html/HTMLDocument.idl:
2858         * html/HTMLElement.idl:
2859         * html/HTMLEmbedElement.idl:
2860         * html/HTMLFieldSetElement.idl:
2861         * html/HTMLFontElement.idl:
2862         * html/HTMLFormElement.idl:
2863         * html/HTMLFrameElement.idl:
2864         * html/HTMLFrameSetElement.idl:
2865         * html/HTMLHRElement.idl:
2866         * html/HTMLHeadElement.idl:
2867         * html/HTMLHeadingElement.idl:
2868         * html/HTMLHtmlElement.idl:
2869         * html/HTMLIFrameElement.idl:
2870         * html/HTMLImageElement.idl:
2871         * html/HTMLInputElement.idl:
2872         * html/HTMLIsIndexElement.idl:
2873         * html/HTMLLIElement.idl:
2874         * html/HTMLLabelElement.idl:
2875         * html/HTMLLegendElement.idl:
2876         * html/HTMLLinkElement.idl:
2877         * html/HTMLMapElement.idl:
2878         * html/HTMLMarqueeElement.idl:
2879         * html/HTMLMenuElement.idl:
2880         * html/HTMLMetaElement.idl:
2881         * html/HTMLModElement.idl:
2882         * html/HTMLOListElement.idl:
2883         * html/HTMLObjectElement.idl:
2884         * html/HTMLOptGroupElement.idl:
2885         * html/HTMLOptionElement.idl:
2886         * html/HTMLOptionsCollection.idl:
2887         * html/HTMLParagraphElement.idl:
2888         * html/HTMLParamElement.idl:
2889         * html/HTMLPreElement.idl:
2890         * html/HTMLQuoteElement.idl:
2891         * html/HTMLScriptElement.idl:
2892         * html/HTMLSelectElement.idl:
2893         * html/HTMLStyleElement.idl:
2894         * html/HTMLTableCaptionElement.idl:
2895         * html/HTMLTableCellElement.idl:
2896         * html/HTMLTableColElement.idl:
2897         * html/HTMLTableElement.idl:
2898         * html/HTMLTableRowElement.idl:
2899         * html/HTMLTableSectionElement.idl:
2900         * html/HTMLTextAreaElement.idl:
2901         * html/HTMLTitleElement.idl:
2902         * html/HTMLUListElement.idl:
2903
2904 2007-10-30  Adele Peterson  <adele@apple.com>
2905
2906         RS by Darin.
2907
2908         * page/AnimationController.cpp: (WebCore::blendFunc): Use lround instead of round.
2909
2910 2007-10-29  Timothy Hatcher  <timothy@apple.com>
2911
2912         Reviewed by John Sullivan.
2913
2914         - Allow showing and closing the inspector programatically.
2915         - Add showConsole() and showTimeline() methods. 
2916
2917         * WebCore.base.exp: Add exports for WebKit.
2918         * page/InspectorController.cpp:
2919         (WebCore::callSimpleFunction): Renamed from callClearFunction().
2920         (WebCore::unloading): Renamed to close().
2921         (WebCore::InspectorController::InspectorController):
2922         (WebCore::InspectorController::inspect): Moved showing code to show().
2923         (WebCore::InspectorController::setWindowVisible): Show the timeline or console if needed.
2924         (WebCore::InspectorController::show): Code factored out of inspect().
2925         (WebCore::InspectorController::showConsole): Call show() and the JS showConsole().
2926         (WebCore::InspectorController::showTimeline): Call show() and the JS showTimeline().
2927         (WebCore::InspectorController::close):
2928         (WebCore::InspectorController::clearScriptResources): Call the new callSimpleFunction.
2929         (WebCore::InspectorController::clearDatabaseScriptResources): Ditto.
2930         (WebCore::InspectorController::clearScriptConsoleMessages): Ditto.
2931         (WebCore::InspectorController::clearNetworkTimeline): Ditto.
2932         * page/InspectorController.h: Add and rename methods.
2933         * page/inspector/inspector.js: Add showConsole() and showTimeline().
2934
2935 2007-10-30  Adele Peterson  <adele@apple.com>
2936
2937         Reviewed by Sam.
2938
2939         Build fix.
2940
2941         * page/AnimationController.cpp: (WebCore::blendFunc):
2942
2943 2007-10-30  Adele Peterson  <adele@apple.com>
2944
2945         Reviewed by Darin.
2946
2947         WebCore part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577
2948         <rdar://problem/5103625> REGRESSION: Caps lock icon should show in password fields
2949
2950         Test: manual-tests/password-caps-lock.html
2951
2952         * WebCore.base.exp: Added symbol for capsLockStateMayHaveChanged.
2953
2954         * page/Frame.cpp: (WebCore::Frame::setIsActive): Calls capsLockStateMayHaveChanged.
2955         * page/EventHandler.cpp: (WebCore::EventHandler::capsLockStateMayHaveChanged): Added. Tells the focused node's renderer that the capsLockStateMayHaveChanged.
2956         * page/EventHandler.h:
2957
2958         * platform/PlatformKeyboardEvent.h:
2959         * platform/mac/KeyEventMac.mm: (WebCore::PlatformKeyboardEvent::currentCapsLockState): Added.
2960         * platform/win/KeyEventWin.cpp: (WebCore::PlatformKeyboardEvent::currentCapsLockState): Added.
2961
2962         * rendering/RenderTextControl.cpp:
2963         (WebCore::RenderTextControl::RenderTextControl):
2964         (WebCore::RenderTextControl::paint): Added.  If m_shouldDrawCapsLockIndicator is true, paints the caps lock indicator after the background.
2965         (WebCore::RenderTextControl::forwardEvent): When the control gets and loses focus, update the caps lock state.
2966         (WebCore::RenderTextControl::capsLockStateMayHaveChanged): Added. Updates m_shouldDrawCapsLockIndicator, which is true if the field is a password field, 
2967          and the frame is active, and the element is focused, and the caps lock is on.  Causes a repaint when m_shouldDrawCapsLockIndicator changes state.
2968         * rendering/RenderTextControl.h: Added m_shouldDrawCapsLockIndicator.
2969         * rendering/RenderObject.h: (WebCore::RenderObject::capsLockStateMayHaveChanged): Added.
2970
2971         * rendering/RenderTheme.h: (WebCore::RenderTheme::paintCapsLockIndicator): Added.
2972         * rendering/RenderThemeMac.h:
2973         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintCapsLockIndicator): Added.  Calls wkDrawCapsLockIndicator.
2974         * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::paintCapsLockIndicator): Added.  Calls paintThemePart for the CapsLockPart.
2975         * rendering/RenderThemeSafari.h:
2976
2977 2007-10-30  David Hyatt  <hyatt@apple.com>
2978
2979         Land support for implicit animation in CSS.
2980
2981         Reviewed by mitz, darin
2982
2983         * css/CSSParser.cpp:
2984         (WebCore::CSSParser::parseTimingFunctionValue):
2985         (WebCore::CSSParser::parseTransitionTimingFunction):
2986         (WebCore::CSSParser::parseTransitionProperty):
2987         * css/CSSStyleSelector.cpp:
2988         (WebCore::CSSStyleSelector::mapTransitionDuration):
2989         (WebCore::CSSStyleSelector::mapTransitionRepeatCount):
2990         (WebCore::CSSStyleSelector::mapTransitionTimingFunction):
2991         (WebCore::CSSStyleSelector::mapTransitionProperty):
2992         * css/CSSTimingFunctionValue.h:
2993         (WebCore::CSSTimingFunctionValue::CSSTimingFunctionValue):
2994         (WebCore::CSSTimingFunctionValue::x1):
2995         (WebCore::CSSTimingFunctionValue::y1):
2996         (WebCore::CSSTimingFunctionValue::x2):
2997         (WebCore::CSSTimingFunctionValue::y2):
2998         * dom/Element.cpp:
2999         (WebCore::Element::styleForRenderer):
3000         (WebCore::Element::createRenderer):
3001         * dom/Node.cpp:
3002         (WebCore::Node::createRendererIfNeeded):
3003         (WebCore::Node::setRenderStyle):
3004         * page/AnimationController.cpp:
3005         (WebCore::CurveData::CurveData):
3006         (WebCore::CurveData::sampleCurveX):
3007         (WebCore::CurveData::sampleCurveY):
3008         (WebCore::CurveData::sampleCurveDerivativeX):
3009         (WebCore::CurveData::solveCurveX):
3010         (WebCore::solveEpsilon):
3011         (WebCore::solveCubicBezierFunction):
3012         (WebCore::ImplicitAnimation::finished):
3013         (WebCore::CompositeImplicitAnimation::~CompositeImplicitAnimation):
3014         (WebCore::CompositeImplicitAnimation::hasAnimationForProperty):
3015         (WebCore::ImplicitAnimation::ImplicitAnimation):
3016         (WebCore::ImplicitAnimation::~ImplicitAnimation):
3017         (WebCore::ImplicitAnimation::reset):
3018         (WebCore::ImplicitAnimation::progress):
3019         (WebCore::blendFunc):
3020         (WebCore::ImplicitAnimation::animate):
3021         (WebCore::CompositeImplicitAnimation::animate):
3022         (WebCore::CompositeImplicitAnimation::animating):
3023         (WebCore::CompositeImplicitAnimation::reset):
3024         (WebCore::AnimationControllerPrivate::hasImplicitAnimations):
3025         (WebCore::AnimationControllerPrivate::AnimationControllerPrivate):
3026         (WebCore::AnimationControllerPrivate::~AnimationControllerPrivate):
3027         (WebCore::AnimationControllerPrivate::get):
3028         (WebCore::AnimationControllerPrivate::clear):
3029         (WebCore::AnimationControllerPrivate::updateTimer):
3030         (WebCore::AnimationControllerPrivate::timerFired):
3031         (WebCore:::m_data):
3032         (WebCore::AnimationController::~AnimationController):
3033         (WebCore::AnimationController::cancelImplicitAnimations):
3034         (WebCore::AnimationController::updateImplicitAnimations):
3035         (WebCore::AnimationController::suspendAnimations):
3036         (WebCore::AnimationController::resumeAnimations):
3037         * page/AnimationController.h:
3038         * page/Frame.cpp:
3039         (WebCore::FramePrivate::FramePrivate):
3040         * rendering/RenderBox.cpp:
3041         (WebCore::RenderBox::setStyle):
3042         (WebCore::RenderBox::destroy):
3043         * rendering/RenderObject.cpp:
3044         (WebCore::RenderObject::setAnimatableStyle):
3045         (WebCore::RenderObject::destroy):
3046         * rendering/RenderObject.h:
3047         * rendering/RenderStyle.h:
3048         (WebCore::TimingFunction::TimingFunction):
3049         (WebCore::TimingFunction::operator==):
3050         (WebCore::TimingFunction::x1):
3051         (WebCore::TimingFunction::y1):
3052         (WebCore::TimingFunction::x2):
3053         (WebCore::TimingFunction::y2):
3054         (WebCore::TimingFunction::type):
3055         (WebCore::Transition::transitionProperty):
3056         (WebCore::Transition::setTransitionProperty):
3057         (WebCore::RenderStyle::initialTransitionProperty):
3058         * rendering/RenderWidget.cpp:
3059         (WebCore::RenderWidget::destroy):
3060
3061 2007-10-29  Beth Dakin  <bdakin@apple.com>
3062
3063         Reviewed by Hyatt.
3064
3065         Fix for <rdar://problem/5399614> anchor tag is not rendered without 
3066         text content, works in Firefox with CSS background-image (13237)
3067
3068         This patch allows empty inlines that have box decorations or width 
3069         from border/padding/margin to have line boxes.
3070
3071         * rendering/bidi.cpp:
3072         (WebCore::inlineFlowAllowsLineBox): Convenience function that 
3073         defines when we allow an inline flow to have a line box.
3074         (WebCore::requiresLineBox): Call inlineFlowAllowsLineBox.
3075         (WebCore::shouldSkipWhitespaceAfterStartObject): New function to 
3076         merge some shared code between list markers and empty inline flows 
3077         that fall at the beginning of a line.
3078         (WebCore::RenderBlock::findNextLineBreak): Make flows more like 
3079         list markers.
3080
3081         One interesting side effect of this bug appeared in our xhtml/svg 
3082         tests that generate parser error tags. The tag we generate was 
3083         actually an empty inline with box decorations. This patch causes 
3084         those inlines to draw now, and the parser errors looked strange. So 
3085         I changed it so that the parsererror tag is display:block. This 
3086         matches Firefox, and I think was the original intent of the tag 
3087         since that causes its red background and border to show up.
3088         * dom/XMLTokenizer.cpp:
3089         (WebCore::createXHTMLParserErrorHeader):
3090
3091 2007-10-29  Dan Bernstein  <mitz@apple.com>
3092
3093         Reviewed by Dave Hyatt.
3094
3095         - fix crashing tests fast/frames/inline-object-inside-frameset.html and
3096           fast/forms/form-hides-table.html
3097
3098         * rendering/RenderBox.cpp:
3099         (WebCore::RenderBox::destroy):
3100         * rendering/RenderWidget.cpp:
3101         (WebCore::RenderWidget::destroy):
3102
3103 2007-10-29  Dan Bernstein  <mitz@apple.com>
3104
3105         Reviewed by Adam Roben.
3106
3107         - fix http://bugs.webkit.org/show_bug.cgi?id=15750
3108           REGRESSION(r27173): Web Inspector freezes beneath Image::drawPattern()
3109
3110         Test: fast/backgrounds/size/zero.html
3111
3112         * platform/graphics/cg/ImageCG.cpp:
3113         (WebCore::Image::drawPattern): Added an ASSERT and an early return
3114         to guard against singular pattern transforms.
3115         * rendering/RenderBox.cpp:
3116         (WebCore::cacluateBackgroundSize): Changed to ensure a minimum tile
3117         size of 1x1.
3118
3119 2007-10-29  Alp Toker  <alp@atoker.com>
3120
3121         Reviewed by Maciej.
3122
3123         Add GTK+ convenience conversions for various primitives
3124
3125         * WebCore.pro:
3126         * platform/graphics/Color.h:
3127         * platform/graphics/IntPoint.h:
3128         * platform/graphics/IntRect.h:
3129         * platform/graphics/gtk/ColorGtk.cpp: Added.
3130         (WebCore::Color::Color):
3131         * platform/graphics/gtk/IntPointGtk.cpp: Added.
3132         (WebCore::IntPoint::IntPoint):
3133         (WebCore::IntPoint::operator GdkPoint):
3134         * platform/graphics/gtk/IntRectGtk.cpp: Added.
3135         (WebCore::IntRect::IntRect):
3136         (WebCore::IntRect::operator GdkRectangle):
3137
3138 2007-10-29  Jon Honeycutt  <jhoneycutt@apple.com>
3139
3140         Reviewed by Anders.
3141
3142         Speculative fix for <rdar://5538489> Safari 3.0.4 seed hangs at
3143         http://tgmonline.futuregamer.it/ (works fine on Safari 2.0.4 and Safari
3144         Beta for Mac)
3145         
3146         I cannot reproduce this hang, but it is likely due to our not limiting
3147         WM_USER+1 messages or InvalidateRect calls for a plugin with initially-
3148         unknown MIME type. The embed tag on the page is missing a type
3149         attribute, so as fallback, we choose to load the Flash plugin based on
3150         the file extension of "swf." However, we do not record this determined
3151         MIME type, and so our quirks cannot be established.
3152         
3153         Changed findPlugin() so that, if it fails to find a plugin for the
3154         given MIME type, it will lookup the MIME type for the file extension -
3155         overwriting its passed MIME type parameter - and search for a plugin
3156         for that MIME type.
3157
3158         * plugins/win/PluginDatabaseWin.cpp:
3159         (WebCore::PluginDatabaseWin::pluginForMIMEType): Added an early return
3160         if the MIME type is empty
3161         (WebCore::PluginDatabaseWin::MIMETypeForExtension): Added to replace
3162         pluginForExtension. Returns a String with the MIME type for the file
3163         extension. Also, changed to use case-insensitive compares
3164         (WebCore::PluginDatabaseWin::findPlugin): If we fail to find a plugin
3165         for the given extension, overwrite the incoming MIME type parameter
3166         with the MIME type for the file extension, and search for a plugin for
3167         that MIME type. Also, changed the way that the extension is determined
3168         (WebCore::PluginDatabaseWin::createPluginView): Pass a mutable String
3169         to findPlugin() so that it can be updated if necessary
3170         * plugins/win/PluginDatabaseWin.h: Changed findPlugin() to take a non-
3171         const String, removed definition of pluginForExtension, added
3172         definition for MIMETypeForExtension
3173         * plugins/win/PluginPackageWin.cpp: 
3174         (WebCore::PluginPackageWin::fetchInfo): Store the MIME type in
3175         lowercase for easier compares
3176
3177 2007-10-29  Andrew Wellington  <proton@wiretapped.net>
3178
3179         Not reviewed - build fix
3180
3181         Fix Mac Build.
3182         
3183         WebKit/WebCore/xml/XSLTProcessor.cpp:79: warning: 'level' may be used uninitialized
3184         in this function
3185
3186         * xml/XSLTProcessor.cpp:
3187         (WebCore::XSLTProcessor::parseErrorFunc):
3188
3189 2007-10-29  Alp Toker  <alp@atoker.com>
3190
3191         Reviewed by Adam Roben.
3192
3193         http://bugs.webkit.org/show_bug.cgi?id=15725
3194         [GTK] WebCore.pro header dependencies are incorrect
3195
3196         Fix header dependencies in the build system
3197
3198         INCLUDEPATH and DEPENDPATH are now up to date.
3199
3200         * WebCore.pro:
3201
3202 2007-10-29  Beth Dakin  <bdakin@apple.com>
3203
3204         Build fix.
3205
3206         * css/CSSParser.cpp:
3207         (WebCore::CSSParser::parseTimingFunctionValue):
3208         * css/CSSStyleSelector.cpp:
3209         (WebCore::CSSStyleSelector::mapTransitionTimingFunction):
3210
3211 2007-10-29  David Hyatt  <hyatt@apple.com>
3212
3213         Land the back end for CSS animated property transitions.  I am landing this in stages, so the AnimationController
3214         class is deliberately left empty.
3215
3216         Reviewed by darin/aroben
3217
3218         * WebCore.pro:
3219         * WebCore.vcproj/WebCore.vcproj:
3220         * WebCore.xcodeproj/project.pbxproj:
3221         * css/CSSComputedStyleDeclaration.cpp:
3222         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3223         * css/CSSPropertyNames.in:
3224         * css/CSSTimingFunctionValue.cpp: Added.
3225         (WebCore::CSSTimingFunctionValue::cssText):
3226         * css/CSSTimingFunctionValue.h: Added.
3227         (WebCore::CSSTimingFunctionValue::CSSTimingFunctionValue):
3228         (WebCore::CSSTimingFunctionValue::firstPoint):
3229         (WebCore::CSSTimingFunctionValue::secondPoint):
3230         * css/CSSValueKeywords.in:
3231         * history/CachedPage.cpp:
3232         (WebCore::CachedPage::restore):
3233         * page/AnimationController.cpp: Added.
3234         (WebCore::AnimationController::AnimationController):
3235         (WebCore::AnimationController::~AnimationController):
3236         (WebCore::AnimationController::cancelTransitions):
3237         (WebCore::AnimationController::updateTransitions):
3238         (WebCore::AnimationController::suspendAnimations):
3239         (WebCore::AnimationController::resumeAnimations):
3240         * page/AnimationController.h: Added.
3241         * page/Frame.cpp:
3242         (WebCore::Frame::animationController):
3243         (WebCore::Frame::clearTimers):
3244         * page/Frame.h:
3245         * page/FramePrivate.h:
3246         * rendering/RenderBox.cpp:
3247         (WebCore::RenderBox::setStyle):
3248         (WebCore::RenderBox::destroy):
3249         * rendering/RenderObject.cpp:
3250         (WebCore::RenderObject::animationController):
3251         * rendering/RenderObject.h:
3252         * rendering/RenderStyle.cpp:
3253         (WebCore::Transition::Transition):
3254         (WebCore::Transition::~Transition):
3255         (WebCore::Transition::operator=):
3256         (WebCore::Transition::operator==):
3257         (WebCore::Transition::fillUnsetProperties):
3258         (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
3259         (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData):
3260         (WebCore::StyleRareNonInheritedData::operator==):
3261         (WebCore::StyleRareNonInheritedData::transitionDataEquivalent):
3262         (WebCore::RenderStyle::diff):
3263         (WebCore::RenderStyle::adjustTransitions):
3264         (WebCore::RenderStyle::accessTransitions):
3265         * rendering/RenderStyle.h:
3266         (WebCore::BackgroundLayer::next):
3267         (WebCore::):
3268         (WebCore::TimingFunction::TimingFunction):
3269         (WebCore::TimingFunction::operator==):
3270         (WebCore::Transition::next):
3271         (WebCore::Transition::isTransitionDurationSet):
3272         (WebCore::Transition::isTransitionRepeatCountSet):
3273         (WebCore::Transition::isTransitionTimingFunctionSet):
3274         (WebCore::Transition::isTransitionPropertySet):
3275         (WebCore::Transition::isEmpty):
3276         (WebCore::Transition::clearTransitionDuration):
3277         (WebCore::Transition::clearTransitionRepeatCount):
3278         (WebCore::Transition::clearTransitionTimingFunction):
3279         (WebCore::Transition::clearTransitionProperty):
3280         (WebCore::Transition::transitionDuration):
3281         (WebCore::Transition::transitionRepeatCount):
3282         (WebCore::Transition::transitionTimingFunction):
3283         (WebCore::Transition::transitionProperty):
3284         (WebCore::Transition::setTransitionDuration):
3285         (WebCore::Transition::setTransitionRepeatCount):
3286         (WebCore::Transition::setTransitionTimingFunction):
3287         (WebCore::Transition::setTransitionProperty):
3288         (WebCore::Transition::setNext):
3289         (WebCore::Transition::operator!=):
3290         (WebCore::RenderStyle::transitions):
3291         (WebCore::RenderStyle::clearTransitions):
3292         (WebCore::RenderStyle::inheritTransitions):
3293         (WebCore::RenderStyle::initialTransitionDuration):
3294         (WebCore::RenderStyle::initialTransitionRepeatCount):
3295         (WebCore::RenderStyle::initialTransitionTimingFunction):
3296         (WebCore::RenderStyle::initialTransitionProperty):
3297         * rendering/RenderWidget.cpp:
3298         (WebCore::RenderWidget::destroy):
3299
3300 2007-10-29  Alexey Proskuryakov  <ap@webkit.org>
3301
3302         Reviewed by Darin.
3303
3304         http://bugs.webkit.org/show_bug.cgi?id=6040
3305         XSLT does not report errors to the user
3306
3307         Made parseErrorFunc a static member function of XSLTProcessor to be reusable from XSLStylesheet.
3308         Switched to xmlSetStructuredErrorFunc to get an error structure instead of pre-formatted console
3309         output. Got rid of DeprecatedString in XSLTProcessor.
3310
3311         * dom/Document.cpp:
3312         (WebCore::Document::applyXSLTransform):
3313         * xml/XSLStyleSheet.cpp:
3314         (WebCore::XSLStyleSheet::parseString):
3315         * xml/XSLTProcessor.cpp:
3316         (WebCore::XSLTProcessor::parseErrorFunc):
3317         (WebCore::docLoaderFunc):
3318         (WebCore::setXSLTLoadCallBack):
3319         (WebCore::writeToString):
3320         (WebCore::saveResultToString):
3321         (WebCore::transformTextStringToXHTMLDocumentString):
3322         (WebCore::xsltParamArrayFromParameterMap):
3323         (WebCore::freeXsltParamArray):
3324         (WebCore::XSLTProcessor::createDocumentFromSource):
3325         (WebCore::createFragmentFromSource):
3326         (WebCore::xsltStylesheetPointer):
3327         (WebCore::xmlDocPtrFromNode):
3328         (WebCore::resultMIMEType):
3329         (WebCore::XSLTProcessor::transformToString):
3330         (WebCore::XSLTProcessor::transformToDocument):
3331         (WebCore::XSLTProcessor::transformToFragment):
3332         * xml/XSLTProcessor.h:
3333         (WebCore::XSLTProcessor::setXSLStylesheet):
3334         (WebCore::XSLTProcessor::importStylesheet):
3335         (WebCore::XSLTProcessor::xslStylesheet):
3336
3337 2007-10-29  Dan Bernstein  <mitz@apple.com>
3338
3339         Reviewed by John Sullivan.
3340
3341         - fix <rdar://problem/5424455> REGRESSION (r21168-r21193, Tiger only): Safari scrollbar is clipped at top when loading particular RSS page
3342
3343         Test: fast/repaint/layout-state-only-positioned.html
3344
3345         * rendering/RenderBlock.cpp:
3346         (WebCore::RenderBlock::layoutOnlyPositionedObjects): Pop layout state
3347         before updating scroll info, which possibly repaints us.
3348
3349 2007-10-29  David Kilzer  <ddkilzer@webkit.org>
3350
3351         REGRESSION (r17701): Favicons should be viewable as image documents
3352         <http://bugs.webkit.org/show_bug.cgi?id=15640>
3353
3354         Reviewed by Darin.
3355
3356         On Tiger and Leopard, the image/x-icon MIME type is not returned from
3357         CGImageSourceCopyTypeIdentifiers(), so opening a URL to a favicon caused
3358         the icon to be downloaded instead being displayed in an image document.
3359
3360         Test: fast/images/favicon-as-image.html
3361
3362         * platform/MIMETypeRegistry.cpp:
3363         (WebCore::initialiseSupportedImageMIMETypes): Manually add image/x-icon to
3364         supportedImageMIMETypes and supportedImageResourceMIMETypes.  Also fixed
3365         comment about the image/bmp MIME type since it applies to both Tiger and
3366         Leopard.
3367
3368 2007-10-29  Maciej Stachowiak  <mjs@apple.com>
3369
3370         Reviewed by Mark.
3371
3372         - fixed assertion failures detected by the new assertions
3373
3374         * bindings/objc/DOMRGBColor.mm:
3375         (-[DOMRGBColor dealloc]): Clear _internal before calling [super dealloc]
3376         because it's not a pointer and shouldn't be in the normal wrapper cache.
3377         * dom/Document.cpp:
3378         (WebCore::Document::addImageMap): Don't access hashmap if name is null.
3379         (WebCore::Document::removeImageMap): ditto
3380         * dom/StyledElement.cpp:
3381         (WebCore::StyledElement::parseMappedAttribute): Don't claim we have a class
3382         when the class attribute is empty.
3383         * platform/TextCodecICU.cpp:
3384         (WebCore::gbkCallbackEscape): Don't look up 0 code points.
3385
3386 2007-10-28  Alexey Proskuryakov  <ap@webkit.org>
3387
3388         Reviewed by Darin.
3389
3390         http://bugs.webkit.org/show_bug.cgi?id=10734
3391         Made HTMLOptionElement.index read-only, matching IE and DOM standard.
3392
3393         Test: fast/dom/HTMLOptionElement/set-option-index-text.html
3394
3395         * html/HTMLOptionElement.idl: Marked index as readonly.
3396
3397         * html/HTMLOptionElement.cpp:
3398         * html/HTMLOptionElement.h:
3399         Removed setIndex().
3400
3401 2007-10-28  Eric Seidel  <eric@webkit.org>
3402
3403         Reviewed by darin.
3404
3405         Fix leaks on TOT and prevent Path code from logging to console so frequently
3406
3407         * platform/graphics/svg/SVGResourceFilter.h:
3408         (WebCore::SVGResourceFilterPlatformData::SVGResourceFilterPlatformData):
3409         (WebCore::SVGResourceFilterPlatformData::~SVGResourceFilterPlatformData):
3410         * platform/graphics/svg/cg/CgSupport.cpp:
3411         (WebCore::strokeBoundingBox):
3412         * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
3413         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h:
3414
3415 2007-10-28  Mark Rowe  <mrowe@apple.com>
3416
3417         Reviewed by Maciej.
3418
3419         Replace uses of isNaN and isInf with isnan and isinf.
3420
3421         * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
3422         (WebCore::JSHTMLOptionsCollection::setLength):
3423
3424 2007-10-28  Maciej Stachowiak  <mjs@apple.com>
3425
3426         Reviewed by Mark.
3427
3428         - fixed REGRESSION(r27176): Reproducible crash while trying to order dinner makes bdash sad
3429         http://bugs.webkit.org/show_bug.cgi?id=15731
3430
3431         * bindings/js/kjs_window.cpp:
3432         (KJS::Window::installTimeout): Avoid putting in or accessing empty or deleted keys.
3433         (KJS::Window::clearTimeout): ditto
3434         * manual-tests/bad-clearTimeout-crash.html: Added. Automated test not possible.
3435
3436 2007-10-28  Kevin Ollivier  <kevino@theolliviers.com>
3437
3438         wx port defines for graphics and network layers.
3439
3440         Reviewed by Darin Adler.
3441
3442         * platform/graphics/AffineTransform.h:
3443         * platform/graphics/BitmapImage.h:
3444         * platform/graphics/Color.h:
3445         * platform/graphics/FloatRect.h:
3446         * platform/graphics/GraphicsContext.h:
3447         * platform/graphics/ImageSource.h:
3448         * platform/graphics/IntPoint.h:
3449         * platform/graphics/IntRect.h:
3450         * platform/graphics/Path.h:
3451         * platform/graphics/Pen.h:
3452         * platform/network/ResourceHandle.h:
3453
3454
3455 2007-10-28  Alp Toker  <alp@atoker.com>
3456
3457         Reviewed by Anders Carlsson.
3458
3459         http://bugs.webkit.org/show_bug.cgi?id=14124
3460         [CURL] Support data URLs
3461
3462         Add data URL support (both Base64 and percent-encoded formats).
3463
3464         Inspired by code from the Qt port.
3465
3466         * platform/Base64.cpp:
3467         (WebCore::base64Decode):
3468         * platform/Base64.h:
3469         * platform/network/curl/ResourceHandleManager.cpp:
3470         (WebCore::ResourceHandleManager::startScheduledJobs):
3471         (WebCore::parseDataUrl):
3472
3473 2007-10-28  Alp Toker  <alp@atoker.com>
3474
3475         Reviewed by Adam Roben.
3476
3477         http://bugs.webkit.org/show_bug.cgi?id=15701
3478         The curl http backend does not deal properly with redirects
3479
3480         Implement http redirect support.
3481
3482         * platform/network/curl/ResourceHandleManager.cpp:
3483         (WebCore::headerCallback):
3484
3485 2007-10-28  Kevin Ollivier  <kevino@theolliviers.com>
3486
3487         Define types and accessors needed for wx implementation
3488         of platform classes. Also, turn off DisallowCTypes.h because
3489         disallowed methods appear in wx headers.
3490
3491         Reviewed by Adam Roben.
3492
3493         * config.h:
3494         * platform/ContextMenuItem.h:
3495         * platform/Cursor.h:
3496         * platform/DeprecatedString.h:
3497         * platform/DragData.h:
3498         * platform/DragImage.h:
3499         * platform/FontData.h:
3500         (WebCore::FontData::getWxFont):
3501         * platform/GlyphBuffer.h:
3502         (WebCore::GlyphBuffer::glyphAt):
3503         (WebCore::GlyphBuffer::advanceAt):
3504         (WebCore::GlyphBuffer::add):
3505         * platform/PlatformKeyboardEvent.h:
3506         (WebCore::PlatformKeyboardEvent::isWxCharEvent):
3507         * platform/PlatformMenuDescription.h:
3508         * platform/PlatformMouseEvent.h:
3509         * platform/PlatformString.h:
3510         * platform/PlatformWheelEvent.h:
3511         * platform/ScrollView.h:
3512         * platform/Widget.h:
3513         * platform/image-decoders/bmp/BMPImageDecoder.cpp:
3514         * platform/image-decoders/gif/GIFImageDecoder.cpp:
3515         * platform/image-decoders/gif/GIFImageReader.cpp:
3516         * platform/image-decoders/ico/ICOImageDecoder.cpp:
3517         * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
3518         * platform/image-decoders/png/PNGImageDecoder.cpp:
3519         * platform/image-decoders/xbm/XBMImageDecoder.cpp:
3520
3521 2007-10-28  Mark Rowe  <mrowe@apple.com>
3522
3523         We don't include "config.h" in headers.
3524
3525         * dom/XMLTokenizer.h:
3526         * platform/graphics/svg/SVGResourceFilter.h:
3527         * platform/image-decoders/ImageDecoder.h:
3528         * platform/wx/FontPlatformData.h:
3529
3530 2007-10-28  Darin Adler  <darin@apple.com>
3531
3532         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h:
3533         We don't include "config.h" in headers. Hope this desn't break
3534         the non-SVG build again.
3535
3536 2007-10-28  Eric Seidel  <eric@webkit.org>
3537
3538         Build fix for non-SVG build, no review.
3539
3540         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h:
3541         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.mm:
3542
3543 2007-10-28  Eric Seidel  <eric@webkit.org>
3544
3545         Reviewed by Oliver.
3546
3547         Push SVGResourceFilter platform specific data down into m_platformData
3548         in preparation for implementing a non-mac filter solution.
3549         
3550         Also update a very old email address in copyright headers
3551
3552         * WebCore.xcodeproj/project.pbxproj:
3553         * platform/graphics/FloatPoint3D.cpp:
3554         (WebCore::FloatPoint3D::FloatPoint3D):
3555         * platform/graphics/FloatPoint3D.h:
3556         * platform/graphics/svg/SVGResourceFilter.cpp:
3557         (WebCore::SVGResourceFilter::SVGResourceFilter):
3558         * platform/graphics/svg/SVGResourceFilter.h:
3559         (WebCore::SVGResourceFilter::platformData):
3560         (WebCore::SVGResourceFilter::effects):
3561         * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
3562         (WebCore::SVGResourceFilter::createPlatformData):l
3563         (WebCore::SVGResourceFilter::prepareFilter):
3564         (WebCore::SVGResourceFilter::applyFilter):
3565         * platform/graphics/svg/filters/SVGDistantLightSource.h:
3566         * platform/graphics/svg/filters/SVGFEBlend.cpp:
3567         * platform/graphics/svg/filters/SVGFEBlend.h:
3568         * platform/graphics/svg/filters/SVGFEColorMatrix.cpp:
3569         * platform/graphics/svg/filters/SVGFEColorMatrix.h:
3570         * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp:
3571         * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
3572         * platform/graphics/svg/filters/SVGFEComposite.cpp:
3573         * platform/graphics/svg/filters/SVGFEComposite.h:
3574         * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
3575         * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
3576         * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
3577         * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
3578         * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp:
3579         * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
3580         * platform/graphics/svg/filters/SVGFEFlood.cpp:
3581         * platform/graphics/svg/filters/SVGFEFlood.h:
3582         * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
3583         * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
3584         * platform/graphics/svg/filters/SVGFEImage.cpp:
3585         * platform/graphics/svg/filters/SVGFEImage.h:
3586         * platform/graphics/svg/filters/SVGFEMerge.cpp:
3587         * platform/graphics/svg/filters/SVGFEMerge.h:
3588         * platform/graphics/svg/filters/SVGFEMorphology.cpp:
3589         * platform/graphics/svg/filters/SVGFEMorphology.h:
3590         * platform/graphics/svg/filters/SVGFEOffset.cpp:
3591         * platform/graphics/svg/filters/SVGFEOffset.h:
3592         * platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
3593         * platform/graphics/svg/filters/SVGFESpecularLighting.h:
3594         * platform/graphics/svg/filters/SVGFETile.h:
3595         * platform/graphics/svg/filters/SVGFETurbulence.cpp:
3596         * platform/graphics/svg/filters/SVGFETurbulence.h:
3597         * platform/graphics/svg/filters/SVGFilterEffect.cpp:
3598         * platform/graphics/svg/filters/SVGFilterEffect.h:
3599         * platform/graphics/svg/filters/SVGLightSource.cpp:
3600         * platform/graphics/svg/filters/SVGLightSource.h:
3601         * platform/graphics/svg/filters/SVGPointLightSource.h:
3602         * platform/graphics/svg/filters/SVGSpotLightSource.h:
3603         * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm:
3604         (WebCore::SVGFEBlend::getCIFilter):
3605         * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
3606         (WebCore::SVGFEColorMatrix::getCIFilter):
3607         * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm:
3608         (WebCore::SVGFEComponentTransfer::getCIFilter):
3609         * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm:
3610         (WebCore::SVGFEComposite::getCIFilter):
3611         * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm:
3612         (WebCore::SVGFEDiffuseLighting::getCIFilter):
3613         * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm:
3614         (WebCore::SVGFEDisplacementMap::getCIFilter):
3615         * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm:
3616         (WebCore::SVGFEFlood::getCIFilter):
3617         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
3618         * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
3619         (WebCore::SVGFEImage::getCIFilter):
3620         * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm:
3621         (WebCore::SVGFEMerge::getCIFilter):
3622         * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm:
3623         (WebCore::SVGFESpecularLighting::getCIFilter):
3624         * platform/graphics/svg/mac: Added.
3625         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h: Added.
3626         * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.mm: Added.
3627         (WebCore::SVGResourceFilterPlatformDataMac::SVGResourceFilterPlatformDataMac):
3628         (WebCore::SVGResourceFilterPlatformDataMac::~SVGResourceFilterPlatformDataMac):
3629         (WebCore::SVGResourceFilterPlatformDataMac::getCIFilterStack):
3630         (WebCore::alphaImageForImage):
3631         (WebCore::SVGResourceFilterPlatformDataMac::imageForName):
3632         (WebCore::SVGResourceFilterPlatformDataMac::setImageForName):
3633         (WebCore::SVGResourceFilterPlatformDataMac::setOutputImage):
3634         (WebCore::SVGResourceFilterPlatformDataMac::inputImage):
3635
3636 2007-10-28  Alexey Proskuryakov  <ap@webkit.org>
3637
3638         Reviewed by Adam Roben.
3639
3640         http://bugs.webkit.org/show_bug.cgi?id=15217
3641         Plugin complains that xpcom_core.dll missing
3642
3643         * plugins/win/PluginDatabaseWin.cpp:
3644         (WebCore::PluginDatabaseWin::isPluginBlacklisted): Blacklist npmozax.dll.
3645
3646 2007-10-28  Timothy Hatcher  <timothy@apple.com>
3647
3648         Reviewed by Adam.
3649
3650         Pass the Document's domain to InspectorController:didOpenDatabase. This matches
3651         what the Inspector shows for other resources.
3652
3653         * storage/Database.cpp:
3654         (WebCore::Database::openDatabase):
3655
3656         * dom/Document.h: Remove KURL.h, no longer needed.
3657
3658 2007-10-28  Timothy Hatcher  <timothy@apple.com>
3659
3660         Reviewed by Adam.
3661
3662         Bug 15728: Selected Resource background image gradient has banding
3663         http://bugs.webkit.org/show_bug.cgi?id=15728
3664
3665         - Reduced images to 1px wide that are tiled horizontally in CSS.
3666         - Corrected the -webkit-background-size usage to specify auto for the width.
3667
3668         * page/inspector/Images/attachedShadow.png:
3669         * page/inspector/Images/bottomShadow.png:
3670         * page/inspector/Images/darkShadow.png:
3671         * page/inspector/Images/gradient.png:
3672         * page/inspector/Images/gradientHighlight.png:
3673         * page/inspector/Images/gradientHighlightBottom.png:
3674         * page/inspector/Images/sidebarSelection.png:
3675         * page/inspector/Images/sidebarSelectionBlurred.png:
3676         * page/inspector/Images/sidebarSelectionBlurredTall.png:
3677         * page/inspector/Images/sidebarSelectionGray.png:
3678         * page/inspector/Images/sidebarSelectionGrayTall.png:
3679         * page/inspector/Images/sidebarSelectionTall.png:
3680         * page/inspector/inspector.css:
3681
3682 2007-10-27  Timothy Hatcher  <timothy@apple.com>
3683
3684         Reviewed by Adam.
3685
3686         Bug 15727: Resizing the resource sidebar doesn't scale the font preview or network timeline
3687         http://bugs.webkit.org/show_bug.cgi?id=15727
3688
3689         Add one window resize listener and call the new resize function on the currentPanel.
3690         Also call the currentPanel's resize function when resizing the sidebar.
3691
3692         * page/inspector/DocumentPanel.js: Implement resize and call updateTreeSelection() when
3693           the panel is shown and when resizing the DOM sidebar.
3694         * page/inspector/FontPanel.js: Implement resize.
3695         * page/inspector/NetworkPanel.js: Ditto.
3696         * page/inspector/inspector.js: Add a window resize listener.
3697
3698 2007-10-27  Maciej Stachowiak  <mjs@apple.com>
3699
3700         Reviewed by Oliver.
3701         
3702         - update for HashTable changes
3703
3704         * bindings/js/JSSVGPODTypeWrapper.h:
3705         * dom/Document.h:
3706         * dom/QualifiedName.cpp:
3707         * dom/StyledElement.cpp:
3708         * ksvg2/svg/SVGAnimatedTemplate.h:
3709         * platform/FontCache.cpp:
3710         * platform/StringHash.h:
3711         (WTF::):
3712         * platform/TextEncodingRegistry.cpp:
3713         * platform/graphics/IntSizeHash.h:
3714         (WTF::):
3715         * plugins/win/PluginPackageWin.h:
3716
3717 2007-10-28  Alp Toker  <alp@atoker.com>
3718
3719         Reviewed by Adam Roben.
3720
3721         http://bugs.webkit.org/show_bug.cgi?id=15646
3722         [GTK] caretBlinkFrequency is hard-coded in Frame.cpp
3723
3724         Abstract caretBlinkFrequency to RenderTheme.
3725
3726         * page/Frame.cpp:
3727         (WebCore::Frame::selectionLayoutChanged):
3728         * platform/gtk/RenderThemeGtk.cpp:
3729         (WebCore::RenderThemeGtk::caretShouldBlink):
3730         (WebCore::RenderThemeGtk::caretBlinkFrequency):
3731         * platform/gtk/RenderThemeGtk.h:
3732         * rendering/RenderTheme.h:
3733
3734 2007-10-27  Timothy Hatcher  <timothy@apple.com>
3735
3736         Reviewed by Adam.
3737
3738         Don't print the line number in the Inspector Console if it is Zero.
3739
3740         * page/inspector/ConsolePanel.js:
3741
3742 2007-10-27  Sam Weinig  <sam@webkit.org>
3743
3744         Reviewed by Adam Roben.
3745
3746         Fix http://bugs.webkit.org/show_bug.cgi?id=14953
3747         Implement window.console in WebCore
3748
3749         - Adds a window.console object that has 4 methods (log, info, warn, and error)
3750           that send messages to the Chrome.  This moves functionality that was in the
3751           app down into WebCore.
3752
3753         * DerivedSources.make:
3754         * WebCore.pro:
3755         * WebCore.vcproj/WebCore.vcproj:
3756         * WebCore.xcodeproj/project.pbxproj:
3757         * bindings/scripts/CodeGeneratorJS.pm: Add extended attribute
3758         to mark attributes as [Replacable] which indicates they can 
3759         overridden when set.
3760         * page/Chrome.cpp:
3761         (WebCore::Chrome::addMessageToConsole): Allow all messages to go
3762         up to the ChromeClient.
3763         * page/Console.cpp: Added.
3764         (WebCore::Console::Console):
3765         (WebCore::Console::disconnectFrame):
3766         (WebCore::Console::error):
3767         (WebCore::Console::info):
3768         (WebCore::Console::log):
3769         (WebCore::Console::warn):
3770         * page/Console.h: Added.
3771         * page/Console.idl: Added.
3772         * page/DOMWindow.cpp:
3773         (WebCore::DOMWindow::clear):
3774         (WebCore::DOMWindow::console):
3775         * page/DOMWindow.h:
3776         * page/DOMWindow.idl:
3777
3778 2007-10-27  Eric Seidel  <eric@webkit.org>
3779
3780         Reviewed by aroben.
3781         
3782         Remove legacy createFilterEffect function (causing extra filter tests to fail on windows)
3783
3784         No functional changes, thus no tests.
3785
3786         * ksvg2/svg/SVGFEBlendElement.cpp:
3787         (WebCore::SVGFEBlendElement::filterEffect):
3788         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
3789         (WebCore::SVGFEColorMatrixElement::filterEffect):
3790         * ksvg2/svg/SVGFEComponentTransferElement.cpp:
3791         (WebCore::SVGFEComponentTransferElement::filterEffect):
3792         * ksvg2/svg/SVGFECompositeElement.cpp:
3793         (WebCore::SVGFECompositeElement::filterEffect):
3794         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
3795         (WebCore::SVGFEDiffuseLightingElement::filterEffect):
3796         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
3797         (WebCore::SVGFEDisplacementMapElement::filterEffect):
3798         * ksvg2/svg/SVGFEFloodElement.cpp:
3799         (WebCore::SVGFEFloodElement::filterEffect):
3800         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
3801         (WebCore::SVGFEGaussianBlurElement::filterEffect):
3802         * ksvg2/svg/SVGFEImageElement.cpp:
3803         (WebCore::SVGFEImageElement::filterEffect):
3804         * ksvg2/svg/SVGFEMergeElement.cpp:
3805         (WebCore::SVGFEMergeElement::filterEffect):
3806         * ksvg2/svg/SVGFEOffsetElement.cpp:
3807         (WebCore::SVGFEOffsetElement::filterEffect):
3808         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
3809         (WebCore::SVGFESpecularLightingElement::filterEffect):
3810         * ksvg2/svg/SVGFETileElement.cpp:
3811         (WebCore::SVGFETileElement::filterEffect):
3812         * ksvg2/svg/SVGFETurbulenceElement.cpp:
3813         (WebCore::SVGFETurbulenceElement::filterEffect):
3814         * platform/graphics/svg/SVGResourceFilter.h:
3815         * platform/graphics/svg/cg/SVGResourceFilterCg.cpp:
3816         * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
3817         * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
3818
3819 2007-10-27  Dan Bernstein  <mitz@apple.com>
3820
3821         Reviewed by Darin Adler.
3822
3823         - fix a crash when opening Zenoss server history view
3824           <rdar://problem/5530657>
3825
3826         Test: fast/table/colgroup-relative.html
3827
3828         * rendering/LayoutState.cpp:
3829         (WebCore::LayoutState::LayoutState): Added a hasLayer() check before
3830         accessing layer().
3831
3832 2007-10-27  Julien  <julien.chaffraix@gmail.com>
3833
3834         Reviewed by Alexey.
3835
3836         http://bugs.webkit.org/show_bug.cgi?id=13141
3837         XMLHttpRequest should set readyState to 0 after abort()
3838         
3839         Test: http/tests/xmlhttprequest/xmlhttprequest-abort-readyState.html
3840
3841         * xml/XMLHttpRequest.cpp:
3842         (WebCore::XMLHttpRequest::open):
3843         (WebCore::XMLHttpRequest::abort):
3844
3845 2007-10-27  Dan Bernstein  <mitz@apple.com>
3846
3847         Reviewed by Dave Hyatt.
3848
3849         - fix rotated border images by using a temporary subimage containing
3850           only the part we want to tile
3851
3852         Test: fast/borders/border-image-rotate-transform.html
3853
3854         * platform/graphics/cg/ImageCG.cpp:
3855         (WebCore::Image::drawPatternCallback):
3856         (WebCore::Image::drawPattern):
3857
3858 2007-10-27  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
3859
3860         Reviewed by Alp.
3861
3862         http://bugs.webkit.org/show_bug.cgi?id=15722
3863         [GTK] Refactor gtk/RenderThemeGtk and implement a few more methods
3864
3865         Refactor/enhance GTK RenderTheme
3866
3867         * platform/gtk/RenderThemeGtk.cpp:
3868         (WebCore::RenderThemeGtk::supportsFocus): added TextArea, Menulist, Radio, and Checkbox Appearances
3869         (WebCore::RenderThemeGtk::supportsFocusRing): call supportsFocus() to check if focus on appearance is supported
3870         (WebCore::RenderThemeGtk::controlSupportsTints): copied from Qt and Safari ports
3871         (WebCore::RenderThemeGtk::baselinePosition): copied from Qt and Safari ports
3872         (WebCore::RenderThemeGtk::paintCheckbox): moved painting in paintButton
3873         (WebCore::RenderThemeGtk::paintRadio): moved painting in paintButton
3874         (WebCore::RenderThemeGtk::paintButton): paint the different buttons here, checking for the right appearance before doing so
3875         (WebCore::RenderThemeGtk::paintMenuList): use 0 instead of NULLs
3876         (WebCore::RenderThemeGtk::adjustTextFieldStyle):
3877         (WebCore::RenderThemeGtk::getThemeData):
3878         * platform/gtk/RenderThemeGtk.h:
3879         (WebCore::RenderThemeGtk::supportsControlTints):
3880
3881 2007-10-27  Alexey Proskuryakov  <ap@webkit.org>
3882
3883         Reviewed by Darin.
3884
3885         http://bugs.webkit.org/show_bug.cgi?id=15555
3886         XMLHttpRequest does not support charset "x-user-defined", which can
3887         facilitate loading of binary data
3888
3889         Test: http/tests/xmlhttprequest/binary-x-user-defined.html
3890
3891         * WebCore.pro:
3892         * WebCore.vcproj/WebCore.vcproj:
3893         * WebCore.xcodeproj/project.pbxproj:
3894         * platform/TextCodecUserDefined.cpp: Added.
3895         (WebCore::TextCodecUserDefined::registerEncodingNames):
3896         (WebCore::newStreamingTextDecoderUserDefined):
3897         (WebCore::TextCodecUserDefined::registerCodecs):
3898         (WebCore::TextCodecUserDefined::decode):
3899         (WebCore::encodeComplexUserDefined):
3900         (WebCore::TextCodecUserDefined::encode):
3901         * platform/TextCodecUserDefined.h: Added.
3902         * platform/TextEncodingRegistry.cpp:
3903         (WebCore::buildBaseTextCodecMaps):
3904
3905 2007-10-27  Alexey Proskuryakov  <ap@webkit.org>
3906
3907         Reviewed by Darin.
3908
3909         http://bugs.webkit.org/show_bug.cgi?id=15467
3910         Setting innerHTML to blank string in application/xhtml+xml mode
3911         throws DOM Exception 7
3912
3913         Test: fast/dom/blank-innerHTML.xhtml
3914
3915         * dom/XMLTokenizer.cpp:
3916         (WebCore::parseXMLDocumentFragment): Bail out early if the input string is empty.
3917
3918 2007-10-26  Sam Weinig  <sam@webkit.org>
3919
3920         Enable dragging the left sidebar using the separator.
3921
3922         Reviewed by Anders (unless Mitz says otherwise).
3923
3924         * page/inspector/DocumentPanel.js:
3925         * page/inspector/inspector.css:
3926         * page/inspector/inspector.html:
3927         * page/inspector/inspector.js:
3928
3929 2007-10-26  Sam Weinig  <sam@webkit.org>
3930
3931         Fix an off by one error when resizing the Inspector find window.
3932
3933         Reviewed by Hyatt.
3934
3935         * page/inspector/inspector.js:
3936
3937 2007-10-26  Jon Honeycutt  <jhoneycutt@apple.com>
3938
3939         Reviewed by Adam.
3940
3941         Fix fallout from r26072, which leads to all plugin streams for local
3942         resources being cancelled
3943
3944         * loader/win/NetscapePlugInStreamLoaderWin.cpp:
3945         (WebCore::NetscapePlugInStreamLoader::didReceiveResponse): Ensure this
3946         is an HTTP response before checking the HTTP response code
3947
3948 2007-10-26  David Hyatt  <hyatt@apple.com>
3949
3950         Fix for http://bugs.webkit.org/show_bug.cgi?id=15719, transformed box doesn't repaint properly
3951         when only translation changes.
3952
3953         Move the updating of the transform to in between the old repaint and the new repaint.
3954
3955         Reviewed by mitz
3956
3957         fast/repaint/transform-translate.html
3958
3959         * rendering/RenderLayer.cpp:
3960         (WebCore::RenderLayer::updateLayerPositions):
3961
3962 2007-10-26  Jon Honeycutt  <jhoneycutt@apple.com>
3963
3964         Reviewed by Darin.
3965
3966         <rdar://5557379> Crash in Silverlight when opening microsoft.com
3967
3968         The crash is within Silverlight, and the latest version of the plugin
3969         does not exhibit this crash, so just avoid loading this version of the
3970         plugin.
3971
3972         * plugins/win/PluginDatabaseWin.cpp: Added isPluginBlacklisted() and
3973         constants silverlightPluginMinRequiredVersionMSDWORD and
3974         silverlightPluginMinRequiredVersionLSDWORD. Their values are taken from 
3975         the version info of Silverlight 1.0.20926.0, which is a version known
3976         not to exhibit this crash
3977         (WebCore::PluginDatabaseWin::isPluginBlacklisted): Determine whether
3978         this plugin is blacklisted
3979         * plugins/win/PluginDatabaseWin.h:
3980         * plugins/win/PluginPackageWin.cpp:
3981         (WebCore::PluginPackageWin::PluginPackageWin): Initialize m_fileVersion*
3982         (WebCore::PluginPackageWin::getFileVersion):
3983         (WebCore::PluginPackageWin::storeFileVersion): Read version info for
3984         the plugin, and store the file version
3985         (WebCore::PluginPackageWin::fetchInfo): After determining the name,
3986         description, and file version, determine whether this plug-in is
3987         blacklisted. If so, return false so this plug-in isn't loaded
3988         * plugins/win/PluginPackageWin.h:
3989
3990 2007-10-26  Sam Weinig  <sam@webkit.org>
3991
3992         Reviewed by Adele Peterson.
3993
3994         Fix for <rdar://problem/5421754>
3995         m_frameName member variable in HTMLPlugInElement unnecessary
3996
3997         - Refactor the willRemove() method down into HTMLFrameOwnerElement now that
3998           we no longer need to use the m_frameName variable.
3999
4000         * html/HTMLFrameElementBase.cpp:
4001         * html/HTMLFrameElementBase.h:
4002         * html/HTMLFrameOwnerElement.cpp:
4003         (WebCore::HTMLFrameOwnerElement::willRemove):
4004         * html/HTMLFrameOwnerElement.h:
4005         * html/HTMLPlugInElement.cpp:
4006         * html/HTMLPlugInElement.h:
4007         * loader/FrameLoader.cpp:
4008         (WebCore::FrameLoader::requestObject):
4009
4010 2007-10-26  Adele Peterson  <adele@apple.com>
4011
4012         Export _wkDrawCapsLockIndicator.
4013
4014         * WebCore.base.exp:
4015
4016 2007-10-26  Adele Peterson  <adele@apple.com>
4017
4018         Reviewed by Oliver.
4019
4020         Adding WebKitSystemInterface support for the caps lock indicator
4021
4022         * platform/mac/WebCoreSystemInterface.h:
4023         * platform/mac/WebCoreSystemInterface.mm:
4024
4025 2007-10-26  Tristan O'Tierney  <tristan@apple.com>
4026
4027         Reviewed by Darin Adler.
4028
4029         <rdar://problem/5555053> REGRESSION:9A581: Window disappears when opening http://research.microsoft.com/users/darkok/
4030         The problem was caused by checkin r24654. This change moved explicit bounds checking into adjustWindowRect
4031         but failed to account for bounds checking (instead replaced with bounds clipping).  This caused issues
4032         when NaN was used. This patch goes one step further and does NaN checking to prevent the possibility of
4033         setting window bounds to NaN before an update occurs.
4034
4035         Test: fast/dom/Window/window-resize-nan.html
4036         
4037         * bindings/js/kjs_window.cpp:
4038         (KJS::adjustWindowRect):
4039         Added a new parameter, pendingChanges, which takes pending changes to the window
4040         rect, and if they are valid (not NaN) sets them on window.
4041         
4042         (KJS::WindowFunc::callAsFunction):
4043         Adjusted uses of adjustWindowRect to take new update parameter.
4044
4045 2007-10-26  Sam Weinig  <sam@webkit.org>
4046
4047         Reviewed by Tim Hatcher.
4048
4049         Fix for http://bugs.webkit.org/show_bug.cgi?id=15175
4050         Cannot copy text of errors from Web Inspector from Console view
4051
4052         * page/inspector/inspector.css: add -webkit-user-select: text for console messages.
4053
4054 2007-10-26  Sam Weinig  <sam@webkit.org>
4055
4056         Reviewed by Tim Hatcher.
4057
4058         Fix for http://bugs.webkit.org/show_bug.cgi?id=15446
4059         Web Inspector find window is not resizable
4060
4061         - Adds ability to resize the find window.
4062         - Fixes bug that messed up the find window when resizing the left sidebar. 
4063
4064         * page/inspector/inspector.css:
4065         * page/inspector/inspector.html:
4066         * page/inspector/inspector.js:
4067
4068 2007-10-26  Ada Chan  <adachan@apple.com>
4069
4070         Update m_current index after we've removed an item:
4071         - if item removed is before m_current, decrement m_current
4072         - if the current item is removed, make sure m_current is within bounds.
4073
4074         Reviewed by Darin.
4075
4076         * history/BackForwardList.cpp:
4077         (WebCore::BackForwardList::removeItem):
4078
4079 2007-10-26  Mark Rowe  <mrowe@apple.com>
4080
4081         Debug build fix.
4082
4083         * bindings/js/kjs_proxy.cpp:
4084         (WebCore::KJSProxy::~KJSProxy):
4085
4086 2007-10-26  Maciej Stachowiak  <mjs@apple.com>
4087
4088         No review, build fix.
4089
4090         * bindings/objc/WebScriptObject.mm:
4091         (+[WebScriptObject throwException:]):
4092         (-[WebScriptObject setException:]):
4093
4094 2007-10-26  Maciej Stachowiak  <mjs@apple.com>
4095
4096         Rubber Stamped by Mark.
4097
4098         - fix build
4099
4100         * bridge/mac/WebCoreScriptDebugger.mm:
4101         (-[WebCoreScriptCallFrame scopeChain]):
4102         (-[WebCoreScriptCallFrame functionName]):
4103         (-[WebCoreScriptCallFrame evaluateWebScript:]):
4104
4105 2007-10-26  Maciej Stachowiak  <mjs@apple.com>
4106
4107         Reviewed by Oliver.
4108
4109         - update for JavaScriptCore header changes
4110
4111         * bindings/objc/WebScriptObject.mm:
4112         * bridge/mac/WebCoreScriptDebugger.mm:
4113
4114 2007-10-26  Alp Toker  <alp@atoker.com>
4115
4116         Reviewed by Mark Rowe.
4117
4118         http://bugs.webkit.org/show_bug.cgi?id=15693
4119         [GTK] Paging does not work when widget is added to a GtkScrolledWindow
4120
4121         Eliminate MagicGtkScrollConstant in favour of the same calculations as
4122         GtkTextView for step and page increments. This also makes paging work,
4123         as the page increment was previously always 0.
4124
4125         * platform/gtk/ScrollViewGtk.cpp:
4126         (WebCore::ScrollView::updateScrollbars):
4127
4128 2007-10-25  Dan Bernstein  <mitz@apple.com>
4129
4130         Reviewed by Dave Hyatt and Sam Weinig.
4131
4132         Build fix
4133
4134         * platform/graphics/cg/ImageCG.cpp:
4135         (WebCore::Image::drawPattern):
4136
4137 2007-10-23  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
4138
4139         Reviewed by Alp.
4140
4141         http://bugs.webkit.org/show_bug.cgi?id=15656
4142         [GTK] Implement WebCore::Widget::isEnabled/setEnabled
4143
4144         * platform/gtk/WidgetGtk.cpp:
4145         (WebCore::Widget::isEnabled):
4146         (WebCore::Widget::setEnabled): Implemented.
4147
4148 2007-10-25  David Hyatt  <hyatt@apple.com>
4149
4150         Fix for bug 15672, background images don't tile properly inside transforms.  This patch fixes background
4151         tiling to work in the presence of transforms and fixes bugs in both SVG and CSS transforms.
4152
4153         Reviewed by aroben and mitz
4154
4155         * WebCore.base.exp:
4156         * platform/graphics/Image.cpp:
4157         (WebCore::Image::setData):
4158         * platform/graphics/cg/ImageCG.cpp:
4159         (WebCore::ImageInfo::ImageInfo):
4160         (WebCore::Image::drawPatternCallback):
4161         (WebCore::Image::drawPattern):
4162         * platform/graphics/mac/GraphicsContextMac.mm:
4163         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
4164         * platform/mac/WebCoreSystemInterface.h:
4165         * platform/mac/WebCoreSystemInterface.mm:
4166
4167 2007-10-25  Brady Eidson  <beidson@apple.com>
4168
4169         Blind build fix attempt
4170
4171         * WebCore.pro:
4172
4173 2007-10-25  Brady Eidson  <beidson@apple.com>
4174
4175         Reviewed by Anders and Sam
4176
4177         Bulk rename of platform/sql/SQL* to platform/sql/SQLite*
4178         
4179         This is more accurate in that there is no realistic "SQL" abstraction, the classes are obviously
4180         tied extremely close to SQLite, and is necessitated by the introduction of "SQLTransaction" in 
4181         the HTML5 database API which we are adopting.
4182
4183         * WebCore.vcproj/WebCore.vcproj:
4184         * WebCore.xcodeproj/project.pbxproj:
4185         * loader/icon/IconDatabase.cpp:
4186         (WebCore::IconDatabase::iconDatabaseSyncThread):
4187         (WebCore::databaseVersionNumber):
4188         (WebCore::isValidDatabase):
4189         (WebCore::createDatabaseTables):
4190         (WebCore::IconDatabase::performOpenInitialization):
4191         (WebCore::IconDatabase::checkIntegrity):
4192         (WebCore::IconDatabase::performURLImport):
4193         (WebCore::IconDatabase::writeToDatabase):
4194         (WebCore::IconDatabase::pruneUnretainedIcons):
4195         (WebCore::IconDatabase::checkForDanglingPageURLs):
4196         (WebCore::IconDatabase::imported):
4197         (WebCore::IconDatabase::setImported):
4198         (WebCore::readySQLiteStatement):
4199         (WebCore::IconDatabase::setIconIDForPageURLInSQLDatabase):
4200         (WebCore::IconDatabase::removePageURLFromSQLDatabase):
4201         (WebCore::IconDatabase::getIconIDForIconURLFromSQLDatabase):
4202         (WebCore::IconDatabase::addIconURLToSQLDatabase):
4203         (WebCore::IconDatabase::getImageDataForIconURLFromSQLDatabase):
4204         (WebCore::IconDatabase::removeIconFromSQLDatabase):
4205         (WebCore::IconDatabase::writeIconSnapshotToSQLDatabase):
4206         * loader/icon/IconDatabase.h:
4207         * loader/icon/IconRecord.cpp:
4208         * platform/sql/SQLAuthorizer.cpp: Removed.
4209         * platform/sql/SQLAuthorizer.h: Removed.
4210         * platform/sql/SQLDatabase.cpp: Removed.
4211         * platform/sql/SQLDatabase.h: Removed.
4212         * platform/sql/SQLStatement.cpp: Removed.
4213         * platform/sql/SQLStatement.h: Removed.
4214         * platform/sql/SQLTransaction.cpp: Removed.
4215         * platform/sql/SQLTransaction.h: Removed.
4216         * platform/sql/SQLiteAuthorizer.cpp: Copied from platform/sql/SQLAuthorizer.cpp.
4217         * platform/sql/SQLiteAuthorizer.h: Copied from platform/sql/SQLAuthorizer.h.
4218         (WebCore::SQLiteAuthorizer::~SQLiteAuthorizer):
4219         * platform/sql/SQLiteDatabase.cpp: Copied from platform/sql/SQLDatabase.cpp.
4220         (WebCore::SQLiteDatabase::SQLiteDatabase):
4221         (WebCore::SQLiteDatabase::~SQLiteDatabase):
4222         (WebCore::SQLiteDatabase::open):
4223         (WebCore::SQLiteDatabase::close):
4224         (WebCore::SQLiteDatabase::setFullsync):
4225         (WebCore::SQLiteDatabase::setSynchronous):
4226         (WebCore::SQLiteDatabase::setBusyTimeout):
4227         (WebCore::SQLiteDatabase::setBusyHandler):
4228         (WebCore::SQLiteDatabase::executeCommand):
4229         (WebCore::SQLiteDatabase::returnsAtLeastOneResult):
4230         (WebCore::SQLiteDatabase::tableExists):
4231         (WebCore::SQLiteDatabase::clearAllTables):
4232         (WebCore::SQLiteDatabase::runVacuumCommand):
4233         (WebCore::SQLiteDatabase::lastInsertRowID):
4234         (WebCore::SQLiteDatabase::lastChanges):
4235         (WebCore::SQLiteDatabase::lastError):
4236         (WebCore::SQLiteDatabase::lastErrorMsg):
4237         (WebCore::SQLiteDatabase::authorizerFunction):
4238         (WebCore::SQLiteDatabase::setAuthorizer):
4239         (WebCore::SQLiteDatabase::lock):
4240         (WebCore::SQLiteDatabase::unlock):
4241         * platform/sql/SQLiteDatabase.h: Copied from platform/sql/SQLDatabase.h.
4242         * platform/sql/SQLiteStatement.cpp: Copied from platform/sql/SQLStatement.cpp.
4243         (WebCore::SQLiteStatement::SQLiteStatement):
4244         (WebCore::SQLiteStatement::~SQLiteStatement):
4245         (WebCore::SQLiteStatement::prepare):
4246         * platform/sql/SQLiteStatement.h: Copied from platform/sql/SQLStatement.h.
4247         (WebCore::SQLiteStatement::database):
4248         * platform/sql/SQLiteTransaction.cpp: Copied from platform/sql/SQLTransaction.cpp.
4249         (WebCore::SQLiteTransaction::SQLiteTransaction):
4250         (WebCore::SQLiteTransaction::~SQLiteTransaction):
4251         (WebCore::SQLiteTransaction::begin):
4252         (WebCore::SQLiteTransaction::commit):
4253         (WebCore::SQLiteTransaction::rollback):
4254         * platform/sql/SQLiteTransaction.h: Copied from platform/sql/SQLTransaction.h.
4255         * storage/Database.cpp:
4256         (WebCore::retrieveTextResultFromDatabase):
4257         (WebCore::setTextValueInDatabase):
4258         (WebCore::Database::performExecuteSql):
4259         (WebCore::Database::performGetTableNames):
4260         (WebCore::Database::executeSql):
4261         * storage/Database.h:
4262         * storage/DatabaseAuthorizer.h:
4263         * storage/DatabaseTracker.cpp:
4264         (WebCore::DatabaseTracker::fullPathForDatabase):
4265         (WebCore::DatabaseTracker::populateOrigins):
4266         (WebCore::DatabaseTracker::databaseNamesForOrigin):
4267         (WebCore::DatabaseTracker::addDatabase):
4268         * storage/DatabaseTracker.h:
4269
4270 2007-10-25  Alexey Proskuryakov  <ap@webkit.org>
4271
4272         Reviewed by Darin.
4273
4274         http://bugs.webkit.org/show_bug.cgi?id=15650
4275         XML attribute nodes are not importable
4276
4277         Tests: fast/dom/import-attribute-node.html