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