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