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