1 2007-11-06 Dan Bernstein <mitz@apple.com>
3 Reviewed by Darin Adler.
5 - fix http://bugs.webkit.org/show_bug.cgi?id=15838
6 Incomplete repaint toggling "How you know this person" on Facebook
8 Test: fast/repaint/make-children-non-inline.html
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.
16 2007-11-06 Alexey Proskuryakov <ap@webkit.org>
20 http://bugs.webkit.org/show_bug.cgi?id=15847
23 No change in functionality.
25 * editing/TextIterator.cpp:
27 * editing/TextIterator.h:
28 Made WebCore::plainText() return String instead of DeprecatedString.
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.
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.
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.
48 * editing/SelectionController.cpp:
49 (WebCore::SelectionController::toString): plainText() result type now matches what we need here.
51 * page/mac/WebCoreFrameBridge.h:
52 * page/mac/WebCoreFrameBridge.mm:
53 Removed unused -[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:] and
54 -[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:].
56 2007-11-05 Mark Rowe <mrowe@apple.com>
60 * bindings/js/JSHTMLDocumentCustom.cpp:
61 (WebCore::writeHelper):
63 2007-11-05 Adam Roben <aroben@apple.com>
65 Don't crash if SafariTheme can't be loaded
67 PlatformScrollBarSafari and RenderThemeSafari were not checking
68 whether SafariTheme was successfully loaded. All other uses of
69 SafariTheme already check this.
73 * platform/win/PlatformScrollBarSafari.cpp: Don't paint if SafariTheme
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):
95 2007-11-05 Kevin Ollivier <kevino@theolliviers.com>
97 Adding the rest of wx port's graphics impl.
99 Rubber-stamped by Maciej Stachowiak.
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.
108 2007-11-05 Kevin Ollivier <kevino@theolliviers.com>
110 wx port bug fixes and new files to get platform/wx building on trunk.
112 Rubber-stamped by Maciej Stachowiak.
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:
129 2007-11-05 Adele Peterson <adele@apple.com>
133 Fix for <rdar://problem/5579999> Add poster attribute for video element
135 * html/HTMLAttributeNames.in: Added poster attribute.
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.
141 * html/HTMLObjectElement.cpp: (WebCore::HTMLObjectElement::imageSourceAttributeName): Added.
142 * html/HTMLObjectElement.h:
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.
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.
163 2007-11-05 Adam Roben <aroben@apple.com>
165 Fix <rdar://5563572> SVG image support is turned off
167 Turned on SVG images for all platforms.
171 * WebCore.vcproj/WebCore.vcproj: Added SVGImage.{cpp,h}
172 * loader/CachedImage.cpp:
173 (WebCore::CachedImage::createImage): Removed platform checks for
176 2007-11-05 Antti Koivisto <antti@apple.com>
180 QTMovieView can generate callbacks during paint. This can lead to crashes.
182 Delay callbacks so they get handled after painting is completed. No test case,
183 I don't know how to reliably reproduce this.
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:]):
199 2007-11-05 Antti Koivisto <antti@apple.com>
203 Add some missing WebCore* prefixes to ObjC classes
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):
213 2007-11-05 Ada Chan <adachan@apple.com>
215 <rdar://problem/5579772> Regression: AltGr does not work
216 We now store the system key event info in PlatforkKeyboardEvent().
220 * platform/PlatformKeyboardEvent.h:
221 (WebCore::PlatformKeyboardEvent::isSystemKey):
222 * platform/win/KeyEventWin.cpp:
223 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
225 2007-11-02 Tristan O'Tierney <tristan@apple.com>
227 Reviewed by Darin Adler.
229 * WebCore.xcodeproj/project.pbxproj:
230 Set WindowFeatures.h as a Private header.
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.
240 (WebCore::Chrome::createWindow):
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.
249 2007-11-04 Geoffrey Garen <ggaren@apple.com>
251 Reviewed by Darin Adler.
253 http://bugs.webkit.org/show_bug.cgi?id=15835
255 Small adaptations to new KJS::List class.
257 * bindings/js/kjs_window.cpp:
258 (KJS::WindowFunc::callAsFunction):
259 (KJS::ScheduledAction::ScheduledAction):
261 2007-11-05 Adam Roben <aroben@apple.com>
263 Allow passing a base class pointer to COMPtr::copyRefTo
267 * platform/win/COMPtr.h:
269 2007-11-05 Dan Bernstein <mitz@apple.com>
271 Reviewed by Oliver Hunt.
273 - fix ASSERTION FAILED: !HashTranslator::equal(KeyTraits::emptyValue(), key) when a class attribute is all-whitespace
275 Test: fast/dom/class-all-whitespace.html
277 * dom/StyledElement.cpp:
278 (WebCore::StyledElement::parseMappedAttribute): Check if there is any
279 non-whitespace character in the class attribute.
281 2007-11-05 Brady Eidson <beidson@apple.com>
285 Add transaction blocking to the DatabaseAuthorizer in preparation for the new version
286 of the sql storage API
288 * storage/DatabaseAuthorizer.cpp:
289 (WebCore::DatabaseAuthorizer::allowTransaction):
290 * storage/DatabaseAuthorizer.h:
292 2007-11-05 Mark Rowe <mrowe@apple.com>
294 Reviewed by Alp Toker.
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.
300 * platform/gtk/MIMETypeRegistryGtk.cpp:
301 (WebCore::MIMETypeRegistry::getMIMETypeForExtension):
303 2007-11-04 Sam Weinig <sam@webkit.org>
305 Rubber-stamped by Adam Roben.
307 Rename SecurityOrigin::allowsAccessFrom to SecurityOrigin::canAccess to
310 * bindings/js/kjs_window.cpp:
311 (KJS::Window::isSafeScript):
312 * platform/SecurityOrigin.cpp:
313 (WebCore::SecurityOrigin::canAccess):
314 * platform/SecurityOrigin.h:
316 2007-11-04 Timothy Hatcher <timothy@apple.com>
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
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.
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.
349 2007-11-04 David D. Kilzer <ddkilzer@webkit.org>
351 Fix build when spaces appear in the WebKit source path.
353 Reviewed by Mark Rowe.
355 * bindings/scripts/IDLParser.pm: Use safer open() method which lists
356 arguments individually and prevents the need to work around spaces
359 2007-11-04 Alp Toker <alp@atoker.com>
361 Reviewed by Alexey Proskuryakov.
363 Fix a crash when no clipboard text is available
365 * platform/gtk/PasteboardGtk.cpp:
366 (WebCore::Pasteboard::plainText):
368 2007-11-03 Darin Adler <darin@apple.com>
372 - WebCore part of http://bugs.webkit.org/show_bug.cgi?id=15821
373 remove unused PCRE features for speed
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.
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.
391 2007-11-03 Kevin Ollivier <kevino@theolliviers.com>
393 Update the link stubs to match the current build,
394 and fix coding style issues.
396 Reviewed by Mark Rowe.
398 * platform/wx/TemporaryLinkStubs.cpp:
399 (loadResourceIntoArray):
400 (findNextSentenceFromIndex):
401 (findSentenceBoundary):
402 (Frame::dashboardRegionsChanged):
403 (WebCore::historyContains):
405 (Editor::showStylesPanel):
406 (EventHandler::passSubframeEventToSubframe):
407 (EventHandler::passWheelEventToWidget):
408 (WebCore::currentTextBreakLocaleID):
410 2007-11-03 Kevin Ollivier <kevino@theolliviers.com>
412 wx <-> WebKit conversions for IntPoint, IntRect and FloatRect
414 Reviewed by Mark Rowe.
416 * platform/graphics/wx/FloatRectWx.cpp: Added.
417 * platform/graphics/wx/IntPointWx.cpp: Added.
418 * platform/graphics/wx/IntRectWx.cpp: Added.
420 2007-11-03 Kevin Ollivier <kevino@theolliviers.com>
422 wx <-> WebKit data type conversions for Pen and Color.
424 Reviewed by Darin Adler.
426 * platform/graphics/wx: Added.
427 * platform/graphics/wx/ColorWx.cpp: Added.
428 * platform/graphics/wx/PenWx.cpp: Added.
430 2007-11-03 Sam Weinig <sam@webkit.org>
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.
438 * bindings/js/JSDOMExceptionConstructor.cpp:
440 * bindings/js/JSHTMLInputElementBase.cpp:
442 * bindings/js/JSNamedNodesCollection.cpp:
444 * bindings/js/JSXMLHttpRequest.cpp:
446 * bindings/js/JSXSLTProcessor.cpp:
448 * bindings/js/kjs_css.cpp:
450 * bindings/js/kjs_events.cpp:
452 * bindings/js/kjs_navigator.cpp:
454 * bindings/js/kjs_window.cpp:
456 * bindings/scripts/CodeGeneratorJS.pm:
458 2007-11-03 Kevin Ollivier <kevino@theolliviers.com>
460 Build fixes to get wx impls. building on trunk.
462 Reviewed by Mark Rowe.
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):
479 2007-11-03 David D. Kilzer <ddkilzer@webkit.org>
481 Sort files(...); sections of Xcode project files.
483 Rubber-stamped by Darin.
485 * WebCore.xcodeproj/project.pbxproj:
486 * manual-tests/NPN_Invoke/NPN_Invoke.xcodeproj/project.pbxproj:
488 2007-11-03 Kevin Ollivier <kevino@theolliviers.com>
490 Coding style fixes for platform/wx files.
492 Reviewed by Mark Rowe.
494 * platform/wx/ClipboardWx.cpp:
495 * platform/wx/GlyphMapWx.cpp:
496 * platform/wx/ScreenWx.cpp:
498 2007-11-03 Alp Toker <alp@atoker.com>
500 Reviewed by Mark Rowe.
502 Implement platform scrollbar static width/height getters
504 * platform/gtk/PlatformScrollBar.h:
505 * platform/gtk/PlatformScrollBarGtk.cpp:
507 (PlatformScrollbar::horizontalScrollbarHeight):
509 2007-11-03 Alp Toker <alp@atoker.com>
511 Reviewed by Mark Rowe.
513 Cast function pointers to gpointer.
515 * platform/gtk/PlatformScrollBarGtk.cpp:
516 (PlatformScrollbar::~PlatformScrollbar):
518 2007-11-03 Alp Toker <alp@atoker.com>
520 Reviewed by Adam Roben.
522 RenderThemeGtk implementation based on Mozilla's GTK+ style code
524 There is still work needed to complete this feature.
527 * platform/gtk/RenderThemeGtk.cpp:
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):
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):
597 (TSOffsetStyleGCArray):
599 (moz_gtk_button_paint):
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):
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):
640 * platform/gtk/gtkdrawing.h: Added.
642 2007-11-03 Alp Toker <alp@atoker.com>
644 Reviewed by Mark Rowe.
646 Do not allow scrollbars to handle wheel events
648 We bubble the wheel event up so the parent can handle it instead.
650 * platform/gtk/PlatformScrollBarGtk.cpp:
651 (gtkScrollEventCallback):
652 (PlatformScrollbar::PlatformScrollbar):
653 (PlatformScrollbar::~PlatformScrollbar):
655 2007-11-03 Alp Toker <alp@atoker.com>
657 Reviewed by Mark Rowe.
659 Frame scrolling and invalidation fixes
661 Make upward scroll events have a positive delta to match other ports.
663 Fix the invalidation rect offset for frames so that scrolling works properly.
665 Avoid allocating negative sizes to widgets to avoid GTK+ warnings.
667 Allow tabbing to all widgets and links.
669 Fix event returns, improving the focus situation and correcting scroll wheel
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):
684 2007-11-03 David D. Kilzer <ddkilzer@webkit.org>
686 LGPL'ed files contain incorrect FSF address
687 <http://bugs.webkit.org/show_bug.cgi?id=14885>
689 Reviewed by NOBODY (follow-up fix).
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:
714 2007-11-02 Antti Koivisto <antti@apple.com>
718 Add video width/height DOM and content attributes from latest HTML5 draft.
720 Test: media/video-width-height.html
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:
731 2007-11-02 Darin Adler <darin@apple.com>
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.
739 2007-11-02 Darin Adler <darin@apple.com>
743 - use the new HashMap::take function where appropriate
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.
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.
765 2007-11-02 Antti Koivisto <antti@apple.com>
769 Enable video composition.
772 * platform/graphics/mac/MoviePrivateQTKit.mm:
773 (WebCore::MoviePrivate::createQTMovieView):
774 * platform/mac/WebCoreSystemInterface.h:
775 * platform/mac/WebCoreSystemInterface.mm:
777 2007-11-02 Darin Adler <darin@apple.com>
781 - fix http://bugs.webkit.org/show_bug.cgi?id=15806
782 <rdar://problem/5561626> ASSERT(element->isRadioButton()) fires destroying form elements
784 Test: fast/forms/remove-radio-button-assert.html
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.
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.
797 2007-11-02 Darin Adler <darin@apple.com>
801 - speculative fix for http://bugs.webkit.org/show_bug.cgi?id=15805
802 <rdar://problem/5510779> crashes in isLoadingMultipartContent
804 * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::isLoadingMultipartContent):
805 Instead of asserting the frame loader is non-0, return false if it is 0.
807 2007-11-02 Darin Adler <darin@apple.com>
811 - fix <rdar://problem/5530185> WebKit does not show <object> fallback content when both
812 URL and MIME type is omitted
814 Already covered by existing tests (that had incorrect results).
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.
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.
824 2007-11-02 Alp Toker <alp@atoker.com>
828 Include Cairo headers properly
830 * platform/graphics/AffineTransform.h:
831 * platform/graphics/ImageBuffer.h:
832 * platform/graphics/cairo/AffineTransformCairo.cpp:
833 * platform/gtk/FontPlatformDataGtk.cpp:
835 2007-11-01 Oliver Hunt <oliver@apple.com>
839 Make sure we send the correct events for Capslock, Shift, Ctrl, Alt and the Windows key
841 * platform/win/KeyEventWin.cpp:
842 (WebCore::keyIdentifierForWindowsKeyCode):
843 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
845 2007-11-01 Geoffrey Garen <ggaren@apple.com>
847 Reviewed by Maciej Stachowiak.
849 In preparation for making List a simple stack-allocated Vector:
851 Removed all instances of List copying, assignment, and/or storage.
853 Layout tests and JS tests pass.
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.
861 (HTML iBench shows no regression. PLT does not use JS timers.)
863 (KJS::ScheduledAction::execute): Uses the more efficient and non-copying
865 (KJS::ScheduledAction::ScheduledAction): ditto
867 * bindings/objc/WebScriptObject.mm:
868 (getListFromNSArray): Takes a List out parameter now, to avoid copying.
870 2007-11-01 Oliver Hunt <oliver@apple.com>
874 Correct event behaviour on certain control keys
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.
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):
898 2007-11-01 Timothy Hatcher <timothy@apple.com>
902 * page/inspector/inspector.css: Use the white disclosure triangles
903 when a parent DOM element is sepected.
905 2007-11-01 Justin Garcia <justin.garcia@apple.com>
907 Reviewed by Oliver Hunt.
909 <rdar://problem/5195056> Huge plain text pastes are slow, time spent in ApplyStyleCommand::doApply
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
924 2007-11-01 Sam Weinig <sam@webkit.org>
926 Reviewed by Adam Roben.
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.
932 * platform/win/COMPtr.h:
933 (COMPtr::releaseRef):
935 2007-11-01 Kevin Ollivier <kevino@theolliviers.com>
937 wx impl. for DragController and EventHandler interfaces.
939 Reviewed by Adam Roben.
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):
956 2007-11-01 Kevin Ollivier <kevino@theolliviers.com>
958 Adding files for wx impl. of editing interfaces.
960 Reviewed by Adam Roben.
963 * editing/wx/EditorWx.cpp: Added.
964 (WebCore::Editor::newGeneralClipboard):
966 2007-11-01 Sam Weinig <sam@webkit.org>
968 Reviewed by Adam Roben.
970 Make implicit conversions from LPCSTRs and BSTRs to WebCore string
971 types possible in preparation of adding autogenerated COM DOM bindings.
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:
982 2007-11-01 Brady Eidson <beidson@apple.com>
986 Renamed a flag inside of SQLiteTransaction and added an accessor (for future work)
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):
997 2007-11-01 Adam Roben <aroben@apple.com>
999 Remove all duplicate xcopy commands from WebCore's post-build step
1001 Also add the /d option to the copy of platform/sql.
1003 Rubberstamped by Sam.
1005 * WebCore.vcproj/WebCore.vcproj:
1007 2007-11-01 Adele Peterson <adele@apple.com>
1011 Add support for the animation of the -webkit-border-raduis properties.
1013 * page/AnimationController.cpp:
1014 (WebCore::blendFunc): Added for IntSize.
1015 (WebCore::ImplicitAnimation::animate): Added cases for border radius properties.
1017 2007-11-01 Alp Toker <alp@atoker.com>
1019 Reviewed by Mitz Pettel.
1021 Fix an unbalanced save/restore.
1023 * platform/graphics/cg/ImageCG.cpp:
1024 (WebCore::BitmapImage::draw):
1026 2007-11-01 David Hyatt <hyatt@apple.com>
1028 Add support for the animation of the visibility property.
1030 Reviewed by oliver, aroben
1032 * page/AnimationController.cpp:
1033 (WebCore::blendFunc):
1034 (WebCore::ImplicitAnimation::animate):
1036 2007-11-01 Kevin McCullough <kmccullough@apple.com>
1040 - Made COMPtr be able to be used by certain other templates,
1041 specifically HashSet.
1043 * platform/win/COMPtr.h:
1046 2007-11-01 Dan Bernstein <mitz@apple.com>
1048 Reviewed by Dave Hyatt.
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
1053 Test: fast/repaint/overflow-clip-subtree-layout.html
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.
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.
1068 2007-11-01 Alexey Proskuryakov <ap@webkit.org>
1070 Reviewed by Mark Rowe.
1072 Fixed line endings that got confused in this file somehow.
1074 * platform/network/ResourceResponse.cpp:
1075 (WebCore::ResourceResponse::isAttachment):
1077 2007-11-01 Peter Kasting <zerodpx@gmail.com>
1079 Reviewed by Dave Hyatt.
1081 http://bugs.webkit.org/show_bug.cgi?id=15778
1082 Malformed GIFs should not result in memory corruption.
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):
1090 2007-10-31 Adam Roben <aroben@apple.com>
1092 Fix a crash when parsing a cubic-bezier function
1096 Test: fast/css/parse-timing-function-crash.html
1098 * WebCore.vcproj/WebCore.vcproj:
1099 * css/CSSParser.cpp:
1100 (WebCore::CSSParser::parseTimingFunctionValue): Don't walk off the end
1103 2007-10-31 David Hyatt <hyatt@apple.com>
1105 Fix a merge error from when I applied my patch to ToT. A couple of lines should be part of an if.
1107 * rendering/RenderStyle.cpp:
1108 (WebCore::RenderStyle::adjustTransitions):
1110 2007-10-31 Anders Carlsson <andersca@apple.com>
1114 Add new SQL callback interfaces and JS implementations of them.
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.
1153 2007-10-31 Justin Garcia <justin.garcia@apple.com>
1155 Reviewed by Dave Harrison.
1157 <rdar://problem/5569741> Pasting content with a line break into a list can remove the list
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.
1164 2007-10-31 David Hyatt <hyatt@apple.com>
1166 Disable style sharing for animating styles.
1168 Reviewed by mitzpettel
1170 * css/CSSStyleSelector.cpp:
1171 (WebCore::CSSStyleSelector::canShareStyleWithElement):
1173 2007-10-31 Dan Bernstein <mitz@apple.com>
1175 Reviewed by Darin Adler.
1177 - fix intermediate length calculation
1179 * rendering/Length.h:
1180 (WebCore::Length::blend):
1182 2007-10-31 Anders Carlsson <andersca@apple.com>
1186 Add new SQLError implementation.
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.
1197 2007-10-31 David Hyatt <hyatt@apple.com>
1199 Change the initial value of transition-property to all. Change the initial value of
1200 transition-duration to 0.
1204 * rendering/RenderStyle.h:
1205 (WebCore::RenderStyle::initialTransitionDuration):
1206 (WebCore::RenderStyle::initialTransitionProperty):
1208 2007-10-31 Alp Toker <alp@atoker.com>
1210 Reviewed by Mark Rowe.
1212 The new Color must be marked valid.
1214 * platform/graphics/gtk/ColorGtk.cpp:
1216 2007-10-31 Simon Hausmann <hausmann@kde.org>
1220 Build fix for non-Qt builds.
1222 * dom/XMLTokenizer.cpp:
1223 (WebCore::XMLTokenizer::XMLTokenizer):
1225 2007-10-31 Simon Hausmann <hausmann@kde.org>
1229 Fix dependency path to header files of the public API of the Qt port.
1233 2007-10-31 Holger Freyther <zecke@selfish.org>
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
1241 * Guard the entity resolver with the QT_VERSION as well.
1242 * Partially reverts 369506279abdaa863e15efed649ca19e062f2c30 and
1243 d2b54d0fc1b07a2480f4f7a1417abd7a636b0107 for Qt4.3.
1245 * dom/XMLTokenizer.cpp:
1246 (WebCore::XMLTokenizer::XMLTokenizer):
1247 * dom/XMLTokenizer.h:
1249 2007-10-31 Holger Freyther <zecke@selfish.org>
1251 Reviewed by Lars Knoll <lars@trolltech.com>.
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.
1256 * platform/qt/ClipboardQt.cpp:
1257 (WebCore::ClipboardQt::clearData):
1259 2007-10-31 Lars Knoll <lars@trolltech.com>
1263 add an entitiy resolver to QXmlStream.
1264 Fixes fast/parser/entities-in-attributes.xhtml.
1266 * dom/XMLTokenizer.cpp:
1267 (WebCore::EntityResolver::resolveUndeclaredEntity):
1268 (WebCore::XMLTokenizer::XMLTokenizer):
1269 (WebCore::XMLTokenizer::~XMLTokenizer):
1271 2007-10-31 Lars Knoll <lars@trolltech.com>
1275 Fixes in the XML tokenizer when using QXmlStream.
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).
1280 Add proper support for namespace handling when parsing into
1281 a document fragment.
1283 * dom/XMLTokenizer.cpp:
1284 (WebCore::XMLTokenizer::XMLTokenizer):
1285 (WebCore::XMLTokenizer::write):
1286 (WebCore::XMLTokenizer::startElementNs):
1288 * dom/XMLTokenizer.h:
1290 2007-10-31 Lars Knoll <lars@trolltech.com>
1294 add support for dragging images.
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:
1306 2007-10-31 Lars Knoll <lars@trolltech.com>
1310 fix most of the issues I found with Clipboard and DnD.
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):
1331 2007-10-30 Mark Rowe <mrowe@apple.com>
1333 Fix the Gtk and Qt builds by stubbing out PlatformKeyboardEvent::currentCapsLockState.
1335 * platform/gtk/KeyEventGtk.cpp:
1336 (WebCore::PlatformKeyboardEvent::currentCapsLockState):
1337 * platform/qt/PlatformKeyboardEventQt.cpp:
1338 (WebCore::PlatformKeyboardEvent::currentCapsLockState):
1340 2007-10-31 Alexey Proskuryakov <ap@webkit.org>
1344 http://bugs.webkit.org/show_bug.cgi?id=15762
1345 XSLStylesheet loads subresources from a wrong URL
1347 Covered by corrected existing tests.
1349 * xml/XSLStyleSheet.cpp:
1350 (WebCore::XSLStyleSheet::parseString): Pass stylesheet URL, not
1353 2007-10-31 Alexey Proskuryakov <ap@webkit.org>
1357 http://bugs.webkit.org/show_bug.cgi?id=10818
1358 String::append does 2 full copies instead of 1 (or zero!)
1360 No change in functionality, thus no test.
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.
1368 2007-10-31 Adam Roben <aroben@apple.com>
1372 * WebCore.vcproj/WebCore.vcproj: Add [JS]ProgressEvent.{cpp,h} files.
1374 2007-10-30 Adam Roben <aroben@apple.com>
1378 I'm not completely sure why these const issues weren't caught by GCC,
1379 but MSVC was certainly not happy with them.
1381 * editing/IndentOutdentCommand.cpp:
1382 (WebCore::isIndentBlockquote):
1383 * editing/markup.cpp:
1384 (WebCore::styleFromMatchedRulesAndInlineDecl):
1386 2007-10-30 David Hyatt <hyatt@apple.com>
1388 transition-property was defaulting to all when it should default to none.
1390 It was taking a string type. I figured out how to make it take an ident instead, so you can write:
1392 transition-property: opacity
1396 transition-property: "opacity"
1398 Transition layers also weren't properly repeating patterns the way they were supposed to. I fixed that.
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.
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):
1416 2007-10-30 Antti Koivisto <antti@apple.com>
1422 * platform/graphics/mac/MoviePrivateQTKit.mm:
1423 (WebCore::MoviePrivate::getSupportedTypes):
1425 2007-10-30 Dan Bernstein <mitz@apple.com>
1427 Reviewed by Stephanie Lewis.
1429 - fix <rdar://problem/5547237> REGRESSION (304-ToT): Repro font-related crash in fontdatawin.cpp Line 93 (many sites)
1431 * platform/win/FontDataWin.cpp:
1432 (WebCore::FontData::platformInit): Handle the case where the font has no
1433 glyphs on page zero.
1435 2007-10-30 David Hyatt <hyatt@apple.com>
1437 Make sure CSS transforms can be animated using the CSS transition property.
1439 Reviewed by Dan and Antti
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):
1467 2007-10-30 Antti Koivisto <antti@apple.com>
1469 Another Qt/GTK build fix.
1471 * bindings/js/JSHTMLElementWrapperFactory.cpp:
1473 2007-10-30 Antti Koivisto <antti@apple.com>
1475 Attempt to fix Qt/GTK build.
1479 2007-10-30 Justin Garcia <justin.garcia@apple.com>
1481 Reviewed by Darin Adler.
1483 <rdar://problem/5549929> CrashTracer: [USER] 35 crashes at WebCore::CharacterData::insertData
1485 We were trying to insert a tab into a br, after the br incorrectly ended up inside
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
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,
1521 * editing/htmlediting.h:
1522 * editing/markup.cpp:
1523 (WebCore::styleFromMatchedRulesAndInlineDecl): Changed to take in a const Node*.
1524 (WebCore::elementHasTextDecorationProperty): Ditto.
1526 2007-10-30 Antti Koivisto <antti@apple.com>
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.
1542 2007-10-30 David Kilzer <ddkilzer@webkit.org>
1544 Generated files missing from WebCore's Xcode project file
1545 <http://bugs.webkit.org/show_bug.cgi?id=15406>
1549 Added the following files to the Xcode project file (note that
1550 JSHTMLInputElementBaseTable.cpp is used as a header file):
1552 - DOMCSSStyleSheetPrivate.h
1554 - DOMHTMLCollectionPrivate.h
1555 - DOMHTMLEmbedElementPrivate.h
1556 - DOMHTMLIFrameElementPrivate.h
1557 - DOMHTMLObjectElementPrivate.h
1558 - DOMHTMLSelectElementPrivate.h
1559 - DOMTextEventInternal.h
1560 - JSHTMLInputElementBaseTable.cpp
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.
1566 2007-10-29 Antti Koivisto <antti@apple.com>
1568 Rubber stamped by Adele.
1570 Initial media (<video> and <audio>) support from feature branch and
1571 QTKit based platform implementation.
1573 This will need to be updated to match current draft specification.
1575 * Configurations/WebCore.xcconfig:
1576 * DerivedSources.make:
1578 * WebCore.xcodeproj/project.pbxproj:
1579 * bindings/js/JSEventCustom.cpp:
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:
1592 * bindings/scripts/CodeGeneratorJS.pm:
1594 (WebCore::Document::createEvent):
1595 (WebCore::Document::willSaveToCache):
1596 (WebCore::Document::didRestoreFromCache):
1597 (WebCore::Document::registerForCacheCallbacks):
1598 (WebCore::Document::unregisterForCacheCallbacks):
1601 (WebCore::Element::setBooleanAttribute):
1603 (WebCore::Element::willSaveToCache):
1605 (WebCore::Event::isProgressEvent):
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):
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):
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):
1905 2007-10-30 Sam Weinig <sam@webkit.org>
1907 Reviewed by Adam Roben.
1909 Add Interface and Class UUIDs to the IDLs in preparation of adding
1910 autogeneration of the COM DOM bindings.
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:
1920 * css/CSSRuleList.idl:
1921 * css/CSSStyleDeclaration.idl:
1922 * css/CSSStyleRule.idl:
1923 * css/CSSStyleSheet.idl:
1924 * css/CSSUnknownRule.idl:
1926 * css/CSSValueList.idl:
1928 * css/MediaList.idl:
1931 * css/StyleSheet.idl:
1932 * css/StyleSheetList.idl:
1934 * dom/CDATASection.idl:
1935 * dom/CharacterData.idl:
1937 * dom/DOMImplementation.idl:
1939 * dom/DocumentFragment.idl:
1940 * dom/DocumentType.idl:
1943 * dom/EntityReference.idl:
1945 * dom/EventListener.idl:
1946 * dom/EventTarget.idl:
1947 * dom/NamedNodeMap.idl:
1951 * dom/ProcessingInstruction.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:
2017 2007-10-30 Adele Peterson <adele@apple.com>
2021 * page/AnimationController.cpp: (WebCore::blendFunc): Use lround instead of round.
2023 2007-10-29 Timothy Hatcher <timothy@apple.com>
2025 Reviewed by John Sullivan.
2027 - Allow showing and closing the inspector programatically.
2028 - Add showConsole() and showTimeline() methods.
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().
2048 2007-10-30 Adele Peterson <adele@apple.com>
2054 * page/AnimationController.cpp: (WebCore::blendFunc):
2056 2007-10-30 Adele Peterson <adele@apple.com>
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
2063 Test: manual-tests/password-caps-lock.html
2065 * WebCore.base.exp: Added symbol for capsLockStateMayHaveChanged.
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:
2071 * platform/PlatformKeyboardEvent.h:
2072 * platform/mac/KeyEventMac.mm: (WebCore::PlatformKeyboardEvent::currentCapsLockState): Added.
2073 * platform/win/KeyEventWin.cpp: (WebCore::PlatformKeyboardEvent::currentCapsLockState): Added.
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.
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:
2090 2007-10-30 David Hyatt <hyatt@apple.com>
2092 Land support for implicit animation in CSS.
2094 Reviewed by mitz, darin
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):
2112 (WebCore::Element::styleForRenderer):
2113 (WebCore::Element::createRenderer):
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):
2145 (WebCore::AnimationController::~AnimationController):
2146 (WebCore::AnimationController::cancelImplicitAnimations):
2147 (WebCore::AnimationController::updateImplicitAnimations):
2148 (WebCore::AnimationController::suspendAnimations):
2149 (WebCore::AnimationController::resumeAnimations):
2150 * page/AnimationController.h:
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):
2174 2007-10-29 Beth Dakin <bdakin@apple.com>
2178 Fix for <rdar://problem/5399614> anchor tag is not rendered without
2179 text content, works in Firefox with CSS background-image (13237)
2181 This patch allows empty inlines that have box decorations or width
2182 from border/padding/margin to have line boxes.
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
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):
2204 2007-10-29 Dan Bernstein <mitz@apple.com>
2206 Reviewed by Dave Hyatt.
2208 - fix crashing tests fast/frames/inline-object-inside-frameset.html and
2209 fast/forms/form-hides-table.html
2211 * rendering/RenderBox.cpp:
2212 (WebCore::RenderBox::destroy):
2213 * rendering/RenderWidget.cpp:
2214 (WebCore::RenderWidget::destroy):
2216 2007-10-29 Dan Bernstein <mitz@apple.com>
2218 Reviewed by Adam Roben.
2220 - fix http://bugs.webkit.org/show_bug.cgi?id=15750
2221 REGRESSION(r27173): Web Inspector freezes beneath Image::drawPattern()
2223 Test: fast/backgrounds/size/zero.html
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
2232 2007-10-29 Alp Toker <alp@atoker.com>
2236 Add GTK+ convenience conversions for various primitives
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):
2251 2007-10-29 Jon Honeycutt <jhoneycutt@apple.com>
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
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.
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
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
2290 2007-10-29 Andrew Wellington <proton@wiretapped.net>
2292 Not reviewed - build fix
2296 WebKit/WebCore/xml/XSLTProcessor.cpp:79: warning: 'level' may be used uninitialized
2299 * xml/XSLTProcessor.cpp:
2300 (WebCore::XSLTProcessor::parseErrorFunc):
2302 2007-10-29 Alp Toker <alp@atoker.com>
2304 Reviewed by Adam Roben.
2306 http://bugs.webkit.org/show_bug.cgi?id=15725
2307 [GTK] WebCore.pro header dependencies are incorrect
2309 Fix header dependencies in the build system
2311 INCLUDEPATH and DEPENDPATH are now up to date.
2315 2007-10-29 Beth Dakin <bdakin@apple.com>
2319 * css/CSSParser.cpp:
2320 (WebCore::CSSParser::parseTimingFunctionValue):
2321 * css/CSSStyleSelector.cpp:
2322 (WebCore::CSSStyleSelector::mapTransitionTimingFunction):
2324 2007-10-29 David Hyatt <hyatt@apple.com>
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.
2329 Reviewed by darin/aroben
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.
2355 (WebCore::Frame::animationController):
2356 (WebCore::Frame::clearTimers):
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):
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):
2413 2007-10-29 Alexey Proskuryakov <ap@webkit.org>
2417 http://bugs.webkit.org/show_bug.cgi?id=6040
2418 XSLT does not report errors to the user
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.
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):
2450 2007-10-29 Dan Bernstein <mitz@apple.com>
2452 Reviewed by John Sullivan.
2454 - fix <rdar://problem/5424455> REGRESSION (r21168-r21193, Tiger only): Safari scrollbar is clipped at top when loading particular RSS page
2456 Test: fast/repaint/layout-state-only-positioned.html
2458 * rendering/RenderBlock.cpp:
2459 (WebCore::RenderBlock::layoutOnlyPositionedObjects): Pop layout state
2460 before updating scroll info, which possibly repaints us.
2462 2007-10-29 David Kilzer <ddkilzer@webkit.org>
2464 REGRESSION (r17701): Favicons should be viewable as image documents
2465 <http://bugs.webkit.org/show_bug.cgi?id=15640>
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.
2473 Test: fast/images/favicon-as-image.html
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
2481 2007-10-29 Maciej Stachowiak <mjs@apple.com>
2485 - fixed assertion failures detected by the new assertions
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.
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.
2499 2007-10-28 Alexey Proskuryakov <ap@webkit.org>
2503 http://bugs.webkit.org/show_bug.cgi?id=10734
2504 Made HTMLOptionElement.index read-only, matching IE and DOM standard.
2506 Test: fast/dom/HTMLOptionElement/set-option-index-text.html
2508 * html/HTMLOptionElement.idl: Marked index as readonly.
2510 * html/HTMLOptionElement.cpp:
2511 * html/HTMLOptionElement.h:
2514 2007-10-28 Eric Seidel <eric@webkit.org>
2518 Fix leaks on TOT and prevent Path code from logging to console so frequently
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:
2528 2007-10-28 Mark Rowe <mrowe@apple.com>
2532 Replace uses of isNaN and isInf with isnan and isinf.
2534 * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
2535 (WebCore::JSHTMLOptionsCollection::setLength):
2537 2007-10-28 Maciej Stachowiak <mjs@apple.com>
2541 - fixed REGRESSION(r27176): Reproducible crash while trying to order dinner makes bdash sad
2542 http://bugs.webkit.org/show_bug.cgi?id=15731
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.
2549 2007-10-28 Kevin Ollivier <kevino@theolliviers.com>
2551 wx port defines for graphics and network layers.
2553 Reviewed by Darin Adler.
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:
2568 2007-10-28 Alp Toker <alp@atoker.com>
2570 Reviewed by Anders Carlsson.
2572 http://bugs.webkit.org/show_bug.cgi?id=14124
2573 [CURL] Support data URLs
2575 Add data URL support (both Base64 and percent-encoded formats).
2577 Inspired by code from the Qt port.
2579 * platform/Base64.cpp:
2580 (WebCore::base64Decode):
2581 * platform/Base64.h:
2582 * platform/network/curl/ResourceHandleManager.cpp:
2583 (WebCore::ResourceHandleManager::startScheduledJobs):
2584 (WebCore::parseDataUrl):
2586 2007-10-28 Alp Toker <alp@atoker.com>
2588 Reviewed by Adam Roben.
2590 http://bugs.webkit.org/show_bug.cgi?id=15701
2591 The curl http backend does not deal properly with redirects
2593 Implement http redirect support.
2595 * platform/network/curl/ResourceHandleManager.cpp:
2596 (WebCore::headerCallback):
2598 2007-10-28 Kevin Ollivier <kevino@theolliviers.com>
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.
2604 Reviewed by Adam Roben.
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:
2634 2007-10-28 Mark Rowe <mrowe@apple.com>
2636 We don't include "config.h" in headers.
2638 * dom/XMLTokenizer.h:
2639 * platform/graphics/svg/SVGResourceFilter.h:
2640 * platform/image-decoders/ImageDecoder.h:
2641 * platform/wx/FontPlatformData.h:
2643 2007-10-28 Darin Adler <darin@apple.com>
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.
2649 2007-10-28 Eric Seidel <eric@webkit.org>
2651 Build fix for non-SVG build, no review.
2653 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h:
2654 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.mm:
2656 2007-10-28 Eric Seidel <eric@webkit.org>
2660 Push SVGResourceFilter platform specific data down into m_platformData
2661 in preparation for implementing a non-mac filter solution.
2663 Also update a very old email address in copyright headers
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):
2749 2007-10-28 Alexey Proskuryakov <ap@webkit.org>
2751 Reviewed by Adam Roben.
2753 http://bugs.webkit.org/show_bug.cgi?id=15217
2754 Plugin complains that xpcom_core.dll missing
2756 * plugins/win/PluginDatabaseWin.cpp:
2757 (WebCore::PluginDatabaseWin::isPluginBlacklisted): Blacklist npmozax.dll.
2759 2007-10-28 Timothy Hatcher <timothy@apple.com>
2763 Pass the Document's domain to InspectorController:didOpenDatabase. This matches
2764 what the Inspector shows for other resources.
2766 * storage/Database.cpp:
2767 (WebCore::Database::openDatabase):
2769 * dom/Document.h: Remove KURL.h, no longer needed.
2771 2007-10-28 Timothy Hatcher <timothy@apple.com>
2775 Bug 15728: Selected Resource background image gradient has banding
2776 http://bugs.webkit.org/show_bug.cgi?id=15728
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.
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:
2795 2007-10-27 Timothy Hatcher <timothy@apple.com>
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
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.
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.
2811 2007-10-27 Maciej Stachowiak <mjs@apple.com>
2815 - update for HashTable changes
2817 * bindings/js/JSSVGPODTypeWrapper.h:
2819 * dom/QualifiedName.cpp:
2820 * dom/StyledElement.cpp:
2821 * ksvg2/svg/SVGAnimatedTemplate.h:
2822 * platform/FontCache.cpp:
2823 * platform/StringHash.h:
2825 * platform/TextEncodingRegistry.cpp:
2826 * platform/graphics/IntSizeHash.h:
2828 * plugins/win/PluginPackageWin.h:
2830 2007-10-28 Alp Toker <alp@atoker.com>
2832 Reviewed by Adam Roben.
2834 http://bugs.webkit.org/show_bug.cgi?id=15646
2835 [GTK] caretBlinkFrequency is hard-coded in Frame.cpp
2837 Abstract caretBlinkFrequency to RenderTheme.
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:
2847 2007-10-27 Timothy Hatcher <timothy@apple.com>
2851 Don't print the line number in the Inspector Console if it is Zero.
2853 * page/inspector/ConsolePanel.js:
2855 2007-10-27 Sam Weinig <sam@webkit.org>
2857 Reviewed by Adam Roben.
2859 Fix http://bugs.webkit.org/show_bug.cgi?id=14953
2860 Implement window.console in WebCore
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.
2866 * DerivedSources.make:
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.
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):
2889 * page/DOMWindow.idl:
2891 2007-10-27 Eric Seidel <eric@webkit.org>
2895 Remove legacy createFilterEffect function (causing extra filter tests to fail on windows)
2897 No functional changes, thus no tests.
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:
2932 2007-10-27 Dan Bernstein <mitz@apple.com>
2934 Reviewed by Darin Adler.
2936 - fix a crash when opening Zenoss server history view
2937 <rdar://problem/5530657>
2939 Test: fast/table/colgroup-relative.html
2941 * rendering/LayoutState.cpp:
2942 (WebCore::LayoutState::LayoutState): Added a hasLayer() check before
2945 2007-10-27 Julien <julien.chaffraix@gmail.com>
2949 http://bugs.webkit.org/show_bug.cgi?id=13141
2950 XMLHttpRequest should set readyState to 0 after abort()
2952 Test: http/tests/xmlhttprequest/xmlhttprequest-abort-readyState.html
2954 * xml/XMLHttpRequest.cpp:
2955 (WebCore::XMLHttpRequest::open):
2956 (WebCore::XMLHttpRequest::abort):
2958 2007-10-27 Dan Bernstein <mitz@apple.com>
2960 Reviewed by Dave Hyatt.
2962 - fix rotated border images by using a temporary subimage containing
2963 only the part we want to tile
2965 Test: fast/borders/border-image-rotate-transform.html
2967 * platform/graphics/cg/ImageCG.cpp:
2968 (WebCore::Image::drawPatternCallback):
2969 (WebCore::Image::drawPattern):
2971 2007-10-27 Jan Michael Alonzo <jmalonzo@unpluggable.com>
2975 http://bugs.webkit.org/show_bug.cgi?id=15722
2976 [GTK] Refactor gtk/RenderThemeGtk and implement a few more methods
2978 Refactor/enhance GTK RenderTheme
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):
2994 2007-10-27 Alexey Proskuryakov <ap@webkit.org>
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
3002 Test: http/tests/xmlhttprequest/binary-x-user-defined.html
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):
3018 2007-10-27 Alexey Proskuryakov <ap@webkit.org>
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
3026 Test: fast/dom/blank-innerHTML.xhtml
3028 * dom/XMLTokenizer.cpp:
3029 (WebCore::parseXMLDocumentFragment): Bail out early if the input string is empty.
3031 2007-10-26 Sam Weinig <sam@webkit.org>
3033 Enable dragging the left sidebar using the separator.
3035 Reviewed by Anders (unless Mitz says otherwise).
3037 * page/inspector/DocumentPanel.js:
3038 * page/inspector/inspector.css:
3039 * page/inspector/inspector.html:
3040 * page/inspector/inspector.js:
3042 2007-10-26 Sam Weinig <sam@webkit.org>
3044 Fix an off by one error when resizing the Inspector find window.
3048 * page/inspector/inspector.js:
3050 2007-10-26 Jon Honeycutt <jhoneycutt@apple.com>
3054 Fix fallout from r26072, which leads to all plugin streams for local
3055 resources being cancelled
3057 * loader/win/NetscapePlugInStreamLoaderWin.cpp:
3058 (WebCore::NetscapePlugInStreamLoader::didReceiveResponse): Ensure this
3059 is an HTTP response before checking the HTTP response code
3061 2007-10-26 David Hyatt <hyatt@apple.com>
3063 Fix for http://bugs.webkit.org/show_bug.cgi?id=15719, transformed box doesn't repaint properly
3064 when only translation changes.
3066 Move the updating of the transform to in between the old repaint and the new repaint.
3070 fast/repaint/transform-translate.html
3072 * rendering/RenderLayer.cpp:
3073 (WebCore::RenderLayer::updateLayerPositions):
3075 2007-10-26 Jon Honeycutt <jhoneycutt@apple.com>
3079 <rdar://5557379> Crash in Silverlight when opening microsoft.com
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
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:
3103 2007-10-26 Sam Weinig <sam@webkit.org>
3105 Reviewed by Adele Peterson.
3107 Fix for <rdar://problem/5421754>
3108 m_frameName member variable in HTMLPlugInElement unnecessary
3110 - Refactor the willRemove() method down into HTMLFrameOwnerElement now that
3111 we no longer need to use the m_frameName variable.
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):
3123 2007-10-26 Adele Peterson <adele@apple.com>
3125 Export _wkDrawCapsLockIndicator.
3129 2007-10-26 Adele Peterson <adele@apple.com>
3133 Adding WebKitSystemInterface support for the caps lock indicator
3135 * platform/mac/WebCoreSystemInterface.h:
3136 * platform/mac/WebCoreSystemInterface.mm:
3138 2007-10-26 Tristan O'Tierney <tristan@apple.com>
3140 Reviewed by Darin Adler.
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.
3148 Test: fast/dom/Window/window-resize-nan.html
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.
3155 (KJS::WindowFunc::callAsFunction):
3156 Adjusted uses of adjustWindowRect to take new update parameter.
3158 2007-10-26 Sam Weinig <sam@webkit.org>
3160 Reviewed by Tim Hatcher.
3162 Fix for http://bugs.webkit.org/show_bug.cgi?id=15175
3163 Cannot copy text of errors from Web Inspector from Console view
3165 * page/inspector/inspector.css: add -webkit-user-select: text for console messages.
3167 2007-10-26 Sam Weinig <sam@webkit.org>
3169 Reviewed by Tim Hatcher.
3171 Fix for http://bugs.webkit.org/show_bug.cgi?id=15446
3172 Web Inspector find window is not resizable
3174 - Adds ability to resize the find window.
3175 - Fixes bug that messed up the find window when resizing the left sidebar.
3177 * page/inspector/inspector.css:
3178 * page/inspector/inspector.html:
3179 * page/inspector/inspector.js:
3181 2007-10-26 Ada Chan <adachan@apple.com>
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.
3189 * history/BackForwardList.cpp:
3190 (WebCore::BackForwardList::removeItem):
3192 2007-10-26 Mark Rowe <mrowe@apple.com>
3196 * bindings/js/kjs_proxy.cpp:
3197 (WebCore::KJSProxy::~KJSProxy):
3199 2007-10-26 Maciej Stachowiak <mjs@apple.com>
3201 No review, build fix.
3203 * bindings/objc/WebScriptObject.mm:
3204 (+[WebScriptObject throwException:]):
3205 (-[WebScriptObject setException:]):
3207 2007-10-26 Maciej Stachowiak <mjs@apple.com>
3209 Rubber Stamped by Mark.
3213 * bridge/mac/WebCoreScriptDebugger.mm:
3214 (-[WebCoreScriptCallFrame scopeChain]):
3215 (-[WebCoreScriptCallFrame functionName]):
3216 (-[WebCoreScriptCallFrame evaluateWebScript:]):
3218 2007-10-26 Maciej Stachowiak <mjs@apple.com>
3222 - update for JavaScriptCore header changes
3224 * bindings/objc/WebScriptObject.mm:
3225 * bridge/mac/WebCoreScriptDebugger.mm:
3227 2007-10-26 Alp Toker <alp@atoker.com>
3229 Reviewed by Mark Rowe.
3231 http://bugs.webkit.org/show_bug.cgi?id=15693
3232 [GTK] Paging does not work when widget is added to a GtkScrolledWindow
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.
3238 * platform/gtk/ScrollViewGtk.cpp:
3239 (WebCore::ScrollView::updateScrollbars):
3241 2007-10-25 Dan Bernstein <mitz@apple.com>
3243 Reviewed by Dave Hyatt and Sam Weinig.
3247 * platform/graphics/cg/ImageCG.cpp:
3248 (WebCore::Image::drawPattern):
3250 2007-10-23 Jan Michael Alonzo <jmalonzo@unpluggable.com>
3254 http://bugs.webkit.org/show_bug.cgi?id=15656
3255 [GTK] Implement WebCore::Widget::isEnabled/setEnabled
3257 * platform/gtk/WidgetGtk.cpp:
3258 (WebCore::Widget::isEnabled):
3259 (WebCore::Widget::setEnabled): Implemented.
3261 2007-10-25 David Hyatt <hyatt@apple.com>
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.
3266 Reviewed by aroben and mitz
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:
3280 2007-10-25 Brady Eidson <beidson@apple.com>
3282 Blind build fix attempt
3286 2007-10-25 Brady Eidson <beidson@apple.com>
3288 Reviewed by Anders and Sam
3290 Bulk rename of platform/sql/SQL* to platform/sql/SQLite*
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.
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:
3383 2007-10-25 Alexey Proskuryakov <ap@webkit.org>
3387 http://bugs.webkit.org/show_bug.cgi?id=15650
3388 XML attribute nodes are not importable
3390 Tests: fast/dom/import-attribute-node.html
3391 fast/dom/import-document-fragment.html
3394 (WebCore::Document::importNode): Implemented for Attribute and DocumentFragment nodes.
3396 2007-10-25 Dan Bernstein <mitz@apple.com>
3398 Reviewed by Dave Hyatt.
3400 - fix http://bugs.webkit.org/show_bug.cgi?id=15362
3401 <rdar://problem/5558715> Safari Crashes when opening a JS TreeGrid widget
3403 Test: fast/dynamic/insert-before-table-part-in-continuation.html
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.
3410 2007-10-25 Alp Toker <alp@atoker.com>
3414 http://bugs.webkit.org/show_bug.cgi?id=15686
3415 GtkLauncher aborts on launch due to uninitialized threading subsystem
3417 Re-enable database support in the GTK+ port, with a fix.
3421 2007-10-25 Jon Honeycutt <jhoneycutt@apple.com>
3425 <rdar://5548217>: [NTS] Java 6 update 3 crashes Safari when loading a
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.
3434 * plugins/win/PluginDatabaseWin.cpp:
3435 (WebCore::safariPluginsPath): Cache return value. Use API functions to
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):
3447 2007-10-25 Alp Toker <alp@atoker.com>
3449 Unreviewed fix to make the GTK+ port run.
3451 http://bugs.webkit.org/show_bug.cgi?id=15686
3452 GtkLauncher aborts on launch due to uninitialized threading subsystem
3454 Disable database support until #15686 is fixed.
3458 2007-10-25 Simon Hausmann <hausmann@kde.org>
3462 Fixed a crash in the Qt 4.4 based text iterators when they're called with a null string.
3464 * platform/qt/TextBreakIteratorQt.cpp:
3465 (WebCore::wordBreakIterator):
3466 (WebCore::characterBreakIterator):
3467 (WebCore::lineBreakIterator):
3468 (WebCore::sentenceBreakIterator):
3470 2007-10-25 Holger Freyther <zecke@selfish.org>
3472 Reviewed by Simon Hausmann <hausmann@kde.org>.
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...
3479 * dom/XMLTokenizer.cpp:
3480 (WebCore::XMLTokenizer::XMLTokenizer):
3481 (WebCore::XMLTokenizer::write):
3482 (WebCore::XMLTokenizer::end):
3483 * dom/XMLTokenizer.h:
3485 2007-10-25 Holger Freyther <zecke@selfish.org>
3487 Reviewed by Simon Hausmann <hausmann@kde.org>.
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.
3493 WARNING: NO TEST CASES ADDED OR CHANGED
3495 * platform/network/qt/ResourceHandleQt.cpp:
3496 (WebCore::WebCoreSynchronousLoader::didFail):
3498 2007-10-25 Holger Freyther <zecke@selfish.org>
3500 Reviewed by Simon Hausmann <hausmann@kde.org>.
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}
3506 * platform/network/qt/ResourceHandleQt.cpp:
3507 (WebCore::ResourceHandle::loadResourceSynchronously):
3509 2007-10-25 Alp Toker <alp@atoker.com>
3511 Reviewed by Mark Rowe.
3513 Add support for list box theme colors and styled menu list buttons.
3515 Remove obsolete FIXMEs.
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:
3531 2007-10-25 Eric Seidel <eric@webkit.org>
3535 * bindings/js/kjs_window.h: fix bogus comment, s/DOMNode/DOMObject/
3537 2007-10-24 Eric Seidel <eric@webkit.org>
3541 Make Window subclass from JSGlobalObject (for a .5% win in Sunspider)
3542 http://bugs.webkit.org/show_bug.cgi?id=15681
3544 No test cases necessary, no functional changes.
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:
3557 * bridge/mac/WebCoreScriptDebugger.mm:
3559 2007-10-24 Adam Roben <aroben@apple.com>
3561 Add font database initialization code to WebCore
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
3578 * platform/win/FontDatabase.h: Added.
3580 2007-10-24 Justin Garcia <justin.garcia@apple.com>
3582 Reviewed by Darin Adler.
3584 Correcting the fix for:
3585 <rdar://problem/5544856>
3586 REGRESSION: After typing 2-byte text, undo only undoes one keystroke at a time
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.
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
3601 (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
3602 (WebCore::TypingCommand::preservesTypingStyle): Handle DeleteSelection.
3603 * editing/TypingCommand.h:
3605 2007-10-24 Sam Weinig <sam@webkit.org>
3609 * WebCore.vcproj/WebCore.vcproj:
3611 2007-10-24 Alice Liu <alice.liu@apple.com>
3615 Fix <rdar://5410959> editing/selection/drag-to-contenteditable-iframe.html fails on Windows
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.
3622 2007-10-24 Brady Eidson <beidson@apple.com>
3626 <rdar://5554130> DatabaseTracker.o has a global initializer
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
3632 * WebCore.vcproj/WebCore.vcproj: Copy WebCore/storage headers for WebKit build
3634 * storage/Database.cpp:
3635 (WebCore::Database::~Database): Remove bogus assertion
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:
3645 2007-10-24 David Hyatt <hyatt@apple.com>
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.
3652 * rendering/RenderBlock.cpp:
3653 (WebCore::RenderBlock::isSelectionRoot):
3654 (WebCore::RenderBlock::fillSelectionGaps):
3655 * rendering/RenderView.cpp:
3656 (WebCore::RenderView::setSelection):
3658 2007-10-24 Eric Seidel <eric@webkit.org>
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.
3663 * ChangeLog-2005-08-23: update email address
3664 * ChangeLog-2006-12-31: fix spelling mistakes
3666 2007-10-24 Dan Bernstein <mitz@apple.com>
3668 Reviewed by Oliver Hunt.
3670 - add "(anonymous)" to the renderName of anonymous table cells, rows and sections
3672 * rendering/RenderTableCell.h:
3673 (WebCore::RenderTableCell::renderName):
3674 * rendering/RenderTableRow.h:
3675 (WebCore::RenderTableRow::renderName):
3676 * rendering/RenderTableSection.h:
3677 (WebCore::RenderTableSection::renderName):
3679 2007-10-24 Timothy Hatcher <timothy@apple.com>
3683 Bug 15476: DOM tree fully expands some elements when arrowing up
3684 http://bugs.webkit.org/show_bug.cgi?id=15476
3686 Add a new expandTreeElementsWhenArrowing option to TreeOutline. This option
3687 is used only for the sidebar and search results.
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.
3693 2007-10-24 Anders Carlsson <andersca@apple.com>
3695 Reviewed by Geoff and Mitz.
3697 <rdar://problem/5493833>
3698 REGRESSION: ~5MB of image data leaked @ cuteoverload.com (often seen while browsing other sites, too)
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.
3705 * bindings/js/kjs_html.cpp:
3706 (WebCore::ImageConstructorImp::construct):
3707 Force the document wrapper to be created.
3709 * html/HTMLImageElement.h:
3710 (WebCore::HTMLImageElement::haveFiredLoadEvent):
3711 New method which calls down to the image loader.
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.
3720 * html/HTMLImageLoader.h:
3721 (WebCore::HTMLImageLoader::haveFiredLoadEvent):
3724 2007-10-23 Adam Roben <aroben@apple.com>
3726 Move Windows safe file creation code into WebCore from WebPreferences
3730 * platform/FileSystem.h:
3731 * platform/win/FileSystemWin.cpp:
3732 (WebCore::safeCreateFile): Moved here from WebKit/win/WebPreferences.cpp.
3734 2007-10-23 Adam Roben <aroben@apple.com>
3736 Add methods to FileSystemWin to get some user profile directories
3738 These directories are used to hold things like preferences, caches,
3743 * platform/FileSystem.h: Added new method declarations for Windows
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
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
3758 2007-10-24 Alp Toker <alp@atoker.com>
3760 Reviewed by Mark Rowe.
3762 http://bugs.webkit.org/show_bug.cgi?id=15659
3763 InlineTextBox does not setStrokeStyle() as needed
3765 GraphicsContextCairo workaround to support a GraphicsContextCG quirk:
3767 Save and restore the StrokeStyle manually.
3769 * platform/graphics/cairo/GraphicsContextCairo.cpp:
3770 (WebCore::GraphicsContext::drawLineForText):
3772 2007-10-24 Julien Chaffraix <julien.chaffraix@gmail.com>
3776 Patch for http://bugs.webkit.org/show_bug.cgi?id=15356
3777 Bug 15356: getResponseHeader and getAllResponseHeaders do not throw exceptions
3779 - getAllResponseHeaders and getResponseHeader throws INVALID_STATE_ERR exception as specified in the specification
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)
3783 - Updated XMLHttpRequest::responseMIMEType() to keep its behaviour
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
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:
3797 2007-10-24 Lars Knoll <lars@trolltech.com>
3801 implement most of DragData.
3803 WARNING: NO TEST CASES ADDED OR CHANGED
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):
3815 2007-10-24 Lars Knoll <lars@trolltech.com>
3819 remove a stupid notImplemented() warning and implement PasteBoad::clear().
3821 WARNING: NO TEST CASES ADDED OR CHANGED
3823 * platform/qt/PasteboardQt.cpp:
3825 2007-10-24 Lars Knoll <lars@trolltech.com>
3829 implement Pasteboard::documentFragment(), and fix a mem leak.
3831 WARNING: NO TEST CASES ADDED OR CHANGED
3833 * platform/qt/PasteboardQt.cpp:
3834 (WebCore::Pasteboard::generalPasteboard):
3835 (WebCore::Pasteboard::documentFragment):
3837 2007-10-24 Lars Knoll <lars@trolltech.com>
3841 Simplify the PlatformKeyEvent constructor. No need to have an extra boolean for isKeyUp in there, as the QKeyEvent has the information.
3843 WARNING: NO TEST CASES ADDED OR CHANGED
3845 * platform/PlatformKeyboardEvent.h:
3846 * platform/qt/PlatformKeyboardEventQt.cpp:
3847 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
3849 2007-10-24 Lars Knoll <lars@trolltech.com>
3853 use the new QTextBoundaryFinder class in Qt.
3855 WARNING: NO TEST CASES ADDED OR CHANGED
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):
3872 2007-10-24 Darin Adler <darin@apple.com>
3876 - http://bugs.webkit.org/show_bug.cgi?id=15657
3877 change static hash tables to use powers of two for speed
3879 * bindings/scripts/CodeGeneratorJS.pm: Updated to generate new format.
3881 2007-10-24 Simon Hausmann <hausmann@kde.org>
3885 Make the implementation of pathByAppendingComponent use QDir.
3887 * platform/qt/FileSystemQt.cpp:
3889 2007-10-24 David Hyatt <hyatt@apple.com>
3891 Make repainting work with transforms.
3893 Reviewed by John Sullivan
3895 * rendering/RenderBox.cpp:
3896 (WebCore::RenderBox::computeAbsoluteRepaintRect):
3898 2007-10-23 Alp Toker <alp@atoker.com>
3902 http://bugs.webkit.org/show_bug.cgi?id=14412
3903 [GDK] Clipboard support
3905 Initial clipboard implementation for the GTK+ port.
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:
3919 2007-10-23 Timothy Hatcher <timothy@apple.com>
3923 Fixes the Network panel so that it refreshes as needed.
3925 * page/inspector/ConsolePanel.js: Call the base class show() and hide() first.
3926 * page/inspector/NetworkPanel.js: Add refreshNeeded and refreshIfNeeded back. Ditto.
3928 2007-10-23 Justin Garcia <justin.garcia@apple.com>
3930 Reviewed by Oliver Hunt.
3932 <rdar://problem/5544856>
3933 REGRESSION: After typing 2-byte text, undo only undoes one keystroke at a time
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.
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.
3946 2007-10-23 Adam Roben <aroben@apple.com>
3948 Fix the behavior of pathByAppendingComponent when path is empty
3950 We now use the Windows Shell API function PathAppendW instead of
3951 rolling our own broken implementation.
3955 * platform/win/FileSystemWin.cpp:
3956 (WebCore::pathByAppendingComponent):
3958 2007-10-23 Adele Peterson <adele@apple.com>
3962 Fix for <rdar://problem/5543228> CrashTracer: [USER] 2 crashes in Safari at com.apple.WebCore: WebCore::HTMLInputElement::defaultEventHandler + 872
3964 Test: fast/forms/textfield-onchange-deletion.html
3966 * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler):
3967 Refetch the renderer since arbitrary JS code run during onchange can do anything, including destroying it.
3969 2007-10-23 Timothy Hatcher <timothy@apple.com>
3971 Reviewed by Sam Weinig.
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.
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:
3992 2007-10-23 Anders Carlsson <andersca@apple.com>
3994 Correct the version #if check.
3996 * platform/sql/SQLDatabase.cpp:
3997 (WebCore::SQLDatabase::authorizerFunction):
3999 2007-10-23 Jon Honeycutt <jhoneycutt@apple.com>
4003 <rdar://5548217>: [NTS] Java 6 update 3 crashes Safari when loading a
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.
4010 * plugins/win/PluginDatabaseWin.cpp:
4011 (WebCore::safariPluginsPath): Return the path to our own Plugins
4013 (WebCore::PluginDatabaseWin::defaultPluginPaths): Use new method
4015 (WebCore::PluginDatabaseWin::pluginForMIMEType): If the plugin's path is
4016 our Plugins path, return this plugin. Otherwise, continue scanning the
4018 (WebCore::PluginDatabaseWin::pluginForExtension): Same
4019 * plugins/win/PluginPackageWin.h:
4020 (WebCore::PluginPackageWin::path): Return this plugin's path
4022 2007-10-23 Jasper Bryant-Greene <m@ni.ac.nz>
4026 http://bugs.webkit.org/show_bug.cgi?id=15058
4027 Precedence fault in KeyEventGdk causes shift, control, alt etc to work incorrectly
4029 Corrected precendence fault which was causing Shift, Alt, Control and
4030 Meta to behave incorrectly on GTK.
4032 Coding style fix by Alp.
4034 * platform/gtk/KeyEventGtk.cpp:
4035 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
4037 2007-10-23 Sam Weinig <sam@webkit.org>
4039 Reviewed by Tim Hatcher.
4041 Add resizing of the DOM view right sidebar. This allows us to actually see the values now.
4043 * page/inspector/ResourcePanel.js:
4044 * page/inspector/inspector.css:
4045 * page/inspector/inspector.js:
4046 * page/inspector/utilities.js:
4048 2007-10-23 David Hyatt <hyatt@apple.com>
4050 Get basic hit testing right for transforms.
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:
4070 2007-10-23 Eric Seidel <eric@webkit.org>
4072 Reviewed by Mark Rowe.
4074 Fix leaks seen on TOT from new font-face code.
4076 * ksvg2/svg/SVGFontFaceElement.cpp:
4077 (WebCore::SVGFontFaceElement::rebuildFontFace): use a stack allocated CSSProperty instead of mallocing
4079 2007-10-23 Eric Seidel <eric@webkit.org>
4081 Build fix only, no review.
4083 Sacrifice three virgin hours upon the altar of the heathen XCode gods
4084 and pray that our build troubles are finally over. :(
4086 * DerivedSources.make: add DOMSVGException.h
4087 * WebCore.xcodeproj/project.pbxproj: Remove DOMSVG*Interal.h files from "Copy Generated Headers" phase. Why? Who knows.
4089 2007-10-22 Steve Falkenburg <sfalken@apple.com>
4093 * plugins/win/PluginViewWin.cpp:
4095 2007-10-22 Eric Seidel <eric@webkit.org>
4097 Build fix only, no review.
4099 * WebCore.xcodeproj/project.pbxproj: re-add all DOMSVG headers to copy-files phase to make sure.
4101 2007-10-22 Eric Seidel <eric@webkit.org>
4103 Build fix only, no review.
4105 * WebCore.xcodeproj/project.pbxproj: make sure DOMSVGAnimateElement.h is copied into headers.
4107 2007-10-22 Eric Seidel <eric@webkit.org>
4111 Fix build by properly exposing SVG font-face dom bindings.
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
4122 2007-10-22 Mark Rowe <mrowe@apple.com>
4128 2007-10-22 Darin Adler <darin@apple.com>
4130 - a first cut at fixing the Qt and GTK builds
4132 * WebCore.pro: Add new .idl and .cpp files.
4133 * DerivedSources.make: Re-sorted.
4135 2007-10-22 Eric Seidel <eric@webkit.org>
4139 Implement <font-face> and friends for SVG.
4140 http://bugs.webkit.org/show_bug.cgi?id=10652
4142 * DerivedSources.make:
4143 * WebCore.xcodeproj/project.pbxproj:
4144 * bindings/js/JSSVGElementWrapperFactory.cpp:
4146 (WebCore::Document::mappedElementSheet):
4147 (WebCore::Document::recalcStyleSelector):
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:
4195 2007-10-22 Jon Honeycutt <jhoneycutt@apple.com>
4199 <rdar://5548217>: [NTS] Java 6 update 3 crashes Safari when loading a
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.
4210 * plugins/win/PluginViewWin.cpp:
4211 (WebCore::PluginViewWin::determineQuirks):
4213 2007-10-22 David Hyatt <hyatt@apple.com>
4215 Fix for bug 15624, make transforms work properly with opacity.
4217 Make sure a unitless 0 is allowed as an angle argument to rotation/skew.
4219 Reviewed by Mitz Pettel
4221 fast/transforms/transforms-with-opacity.html
4222 fast/transforms/skew-with-unitless-zero.html
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):
4234 2007-10-22 Adam Roben <aroben@apple.com>
4238 * WebCore.vcproj/WebCore.vcproj: Copy header files from platform/sql.
4239 * page/Page.cpp: Touched to force the header files to be copied.
4241 2007-10-22 Nikolas Zimmermann <zimmermann@kde.org>
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.
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...
4251 * rendering/SVGCharacterLayoutInfo.cpp:
4252 (WebCore::SVGChar::characterTransform):
4253 * rendering/SVGCharacterLayoutInfo.h:
4254 * rendering/SVGRootInlineBox.cpp:
4255 (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
4256 (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
4258 2007-10-22 Alp Toker <alp@atoker.com>
4260 Reviewed by Nikolas Zimmermann.
4262 Implement more GraphicsContextCairo stubs.
4264 Remove a hack "to work around no current point bug" that was breaking
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):
4281 2007-10-22 Simon Hausmann <hausmann@kde.org>
4283 Reviewed by Nikolas.
4285 Fix compilation from a clean build with the database feature disabled.