1 2006-11-28 David Harrison <harrison@apple.com>
5 <rdar://problem/4852804> selection color does not get drawn over the missing image rectangle
8 * editing/selection/select-missing-image.html: Added.
10 * rendering/RenderImage.cpp:
11 (WebCore::RenderImage::paint):
12 Draw the selection tint even if the image itself is not available.
14 2006-11-28 Anders Carlsson <acarlsson@apple.com>
18 Have ResourceRequest hold on to the platform object so we don't
19 have to convert back and forth when nothing in the object changes.
22 * WebCore.xcodeproj/project.pbxproj:
23 * loader/mac/FrameLoaderMac.mm:
24 (WebCore::FrameLoader::continueAfterNavigationPolicy):
26 (WebCore::Chrome::pageRect):
27 * platform/network/ResourceRequest.cpp: Added.
28 (WebCore::ResourceRequest::isEmpty):
29 (WebCore::ResourceRequest::url):
30 (WebCore::ResourceRequest::setURL):
31 (WebCore::ResourceRequest::cachePolicy):
32 (WebCore::ResourceRequest::setCachePolicy):
33 (WebCore::ResourceRequest::timeoutInterval):
34 (WebCore::ResourceRequest::setTimeoutInterval):
35 (WebCore::ResourceRequest::mainDocumentURL):
36 (WebCore::ResourceRequest::setMainDocumentURL):
37 (WebCore::ResourceRequest::httpMethod):
38 (WebCore::ResourceRequest::setHTTPMethod):
39 (WebCore::ResourceRequest::httpHeaderFields):
40 (WebCore::ResourceRequest::httpHeaderField):
41 (WebCore::ResourceRequest::setHTTPHeaderField):
42 (WebCore::ResourceRequest::httpBody):
43 (WebCore::ResourceRequest::setHTTPBody):
44 (WebCore::ResourceRequest::allowHTTPCookies):
45 (WebCore::ResourceRequest::setAllowHTTPCookies):
46 (WebCore::ResourceRequest::updatePlatformRequest):
47 (WebCore::ResourceRequest::updateResourceRequest):
48 (WebCore::ResourceRequest::addHTTPHeaderField):
49 (WebCore::ResourceRequest::addHTTPHeaderFields):
50 * platform/network/ResourceRequest.h:
51 (WebCore::ResourceRequest::ResourceRequest):
52 * platform/network/mac/ResourceHandleMac.mm:
53 (WebCore::ResourceHandle::willSendRequest):
54 * platform/network/mac/ResourceRequestMac.h: Removed.
55 * platform/network/mac/ResourceRequestMac.mm:
56 (WebCore::ResourceRequest::nsURLRequest):
57 (WebCore::ResourceRequest::doUpdateResourceRequest):
58 (WebCore::ResourceRequest::doUpdatePlatformRequest):
60 2006-11-28 Adam Roben <aroben@apple.com>
64 More WebCore context menu work (still not turned on, however).
66 Split ContextMenuItem into its own files and make it a class.
68 * WebCore.exp: Updated symbols.
69 * WebCore.xcodeproj/project.pbxproj: Added new ContextMenuItem files.
70 * platform/ContextMenu.cpp:
71 (WebCore::ContextMenu::populate): Code cleanup.
72 * platform/ContextMenu.h: Split ContextMenuItem into a separate file,
73 removed redundant "Menu" part of platformMenuDescription(),
74 setPlatformMenuDescription().
75 (WebCore::ContextMenu::ContextMenu):
76 (WebCore::ContextMenu::hitTestResult):
77 (WebCore::ContextMenu::platformDescription):
78 * platform/ContextMenuItem.h: Added. Made ContextMenuItem a
81 (WebCore::ContextMenuItem::ContextMenuItem):
82 (WebCore::ContextMenuItem::menu):
83 (WebCore::ContextMenuItem::platformDescription):
84 (WebCore::ContextMenuItem::type):
85 (WebCore::ContextMenuItem::action):
86 (WebCore::ContextMenuItem::title):
87 * platform/mac/ContextMenuItemMac.mm: Added.
88 (WebCore::ContextMenuItem::ContextMenuItem):
89 * platform/mac/ContextMenuMac.mm: Updated for ContextMenuItem changes.
90 (-[MenuTarget forwardContextMenuAction:]):
91 (getNSMenuItem): Handle separator items.
92 (ContextMenu::appendItem):
93 (ContextMenu::itemCount):
94 (ContextMenu::insertItem):
95 (ContextMenu::setPlatformDescription):
96 * page/ContextMenuController.h: Updated declaration, added getter.
97 (WebCore::ContextMenuController::contextMenu):
99 Added some more context menu plumbing.
101 * dom/EventTargetNode.cpp:
102 (WebCore::EventTargetNode::defaultEventHandler): Added code to call the
103 ContextMenuController when a context menu event is received.
104 * page/ContextMenuClient.h: New client method declaration.
105 * page/ContextMenuController.cpp:
106 (WebCore::ContextMenuController::handleContextMenuEvent): Set the event
107 defaultHandled after handling it.
108 (WebCore::ContextMenuController::contextMenuItemSelected): Take a
109 ContextMenuItem instead of a separate action and title.
111 Changed event-handling methods to return bools to signify whether the
112 event was handled or not. This is needed so we can know whether to hand
113 the event off to the OS. Also restructured some code to use early
114 returns instead of nesting ifs.
116 * page/EventHandler.cpp:
117 (WebCore::EventHandler::handleMousePressEventDoubleClick):
118 (WebCore::EventHandler::handleMousePressEventTripleClick):
119 (WebCore::EventHandler::handleMousePressEventSingleClick):
120 (WebCore::EventHandler::handleMousePressEvent):
121 (WebCore::EventHandler::handleMouseMoveEvent):
122 (WebCore::EventHandler::handleMouseReleaseEvent):
123 (WebCore::EventHandler::handleMouseDoubleClickEvent):
124 (WebCore::EventHandler::handleWheelEvent):
125 (WebCore::EventHandler::canMouseDownStartSelect):
126 * page/EventHandler.h:
127 * page/FrameView.cpp:
128 (WebCore::FrameView::handleMouseMoveEvent):
129 (WebCore::FrameView::handleMouseReleaseEvent):
131 * platform/ScrollBar.h: More bool return values.
132 (WebCore::Scrollbar::handleMouseMoveEvent):
133 (WebCore::Scrollbar::handleMouseOutEvent):
134 * platform/Widget.h: Ditto.
135 (WebCore::Widget::handleMouseMoveEvent):
136 (WebCore::Widget::handleMouseReleaseEvent):
138 Reverted the changes made in r17805 so that we can have fewer header
142 (WebCore::Page::Page):
143 * page/Page.h: Ditto.
144 (WebCore::Page::dragCaretController):
145 (WebCore::Page::chrome):
146 (WebCore::Page::contextMenuController):
149 2006-11-28 Alice Liu <alice.liu@apple.com>
151 Reviewed by Justin and Adam.
153 All layout tests pass as they do without this patch
156 Exposed functions in Editor and removed functions in FrameMac due to changes in WebHTMLView.m
158 * WebCore.xcodeproj/project.pbxproj:
159 Added Pasteboard.h, PasteboardMac.mm, WebNSAttributedStringExtras.h&mm, EditorMac.mm
161 * bridge/EditorClient.h:
162 Added smartInsertDeleteEnabled and shouldInsertNode and some mac-specific functions
164 * bridge/mac/FrameMac.h:
165 * bridge/mac/FrameMac.mm:
166 Removed dispatchCPPEvent and [can|try]DHTML[cut|copy|paste] since the Editor's are called now
168 * dom/CharacterData.h:
169 (WebCore::CharacterData::isCharacterDataNode):
171 (WebCore::Node::isCharacterDataNode):
172 Added a type-identifying function to Node and the proper subclass
175 Exposed setAccessPolicy as public
178 * editing/Editor.cpp:
179 Implemented the following
180 (WebCore::Editor::canDHTMLCut):
181 (WebCore::Editor::canDHTMLCopy):
182 (WebCore::Editor::canDHTMLPaste):
183 (WebCore::Editor::canSmartCopyOrDelete):
184 (WebCore::Editor::deleteSelection):
185 (WebCore::Editor::pasteAsPlainTextWithPasteboard):
186 (WebCore::Editor::pasteWithPasteboard):
187 (WebCore::Editor::canSmartReplaceWithPasteboard):
188 (WebCore::Editor::shouldInsertFragment):
189 (WebCore::Editor::replaceSelectionWithFragment):
190 (WebCore::Editor::replaceSelectionWithText):
191 (WebCore::Editor::selectedRange):
192 (WebCore::Editor::shouldDeleteRange):
193 (WebCore::Editor::tryDHTMLCopy):
194 (WebCore::Editor::tryDHTMLCut):
195 (WebCore::Editor::tryDHTMLPaste):
196 (WebCore::Editor::writeSelectionToPasteboard):
197 (WebCore::Editor::dispatchCPPEvent):
198 (WebCore::Editor::cut):
199 (WebCore::Editor::copy):
200 (WebCore::Editor::paste):
202 * platform/mac/ClipboardAccessPolicy.h: Removed.
203 Not removed, but moved to dom/ClipboardAccessPolicy.h
205 * platform/mac/EditorMac.mm: Added.
206 (WebCore::Editor::newGeneralClipboard):
208 * platform/Pasteboard.h: Added.
209 * platform/mac/PasteboardMac.mm: Added.
210 The pasteboard class follows a singleton pattern
211 (Pasteboard::generalPasteboard):
212 (Pasteboard::~Pasteboard):
213 (Pasteboard::Pasteboard):
214 (Pasteboard::clearTypes):
215 (Pasteboard::writeSelection):
216 (Pasteboard::selectionPasteboardTypes):
217 (Pasteboard::canSmartReplace):
218 (Pasteboard::plainText):
219 (Pasteboard::documentFragment):
221 * platform/mac/WebNSAttributedStringExtras.h: Added.
222 * platform/mac/WebNSAttributedStringExtras.mm: Added.
223 Added select portions of this file from WebKit because the pasteboard needed the following function:
224 (-[NSAttributedString _web_attributedStringByStrippingAttachmentCharacters]):
227 2006-11-28 Justin Garcia <justin.garcia@apple.com>
231 <rdar://problem/4397952>
232 Cannot select buttons at the end of a document, preventing copy/paste
234 There were no VisiblePositions before/after buttons because editingIgnoresContent
235 returned false for buttons.
238 (WebCore::Position::upstream): Fixed a comment.
239 (WebCore::Position::downstream): Ditto.
240 * editing/DeleteSelectionCommand.cpp:
241 (WebCore::DeleteSelectionCommand::initializeStartEnd): Ditto.
242 * editing/htmlediting.cpp:
243 (WebCore::editingIgnoresContent): It's unnecessary to prefer renderer
244 checks over tag name checks because it seems that a node of a tag name
245 that we do not ignore content for can't have a renderer of a type that we do.
246 (WebCore::canHaveChildrenForEditing): Added selects, buttons, applets, and embeds.
247 * editing/visible_units.cpp:
248 (WebCore::previousLinePosition): Migrate to enclosingBlock. Fixes a bug where the
249 caret would get stuck moving up/down a line from a caret just before an
251 (WebCore::nextLinePosition): Ditto.
253 2006-11-28 Geoffrey Garen <ggaren@apple.com>
257 Fixed <rdar://problem/4844848> REGRESSION: extra cross-library ref/deref
258 calls cause .5% PLT regression.
260 Changed ref/deref calls to a single 'xxxDestroyed' call. Moved EditorClient
261 from the Frame to the Page, since it's only responsible for
262 Webview-level delegate calls.
264 I don't really love this design, but it fixes the regression and allows
265 a single WebKit object to implement multiple client interfaces.
269 2006-11-27 Anders Carlsson <acarlsson@apple.com>
271 Try fixing the build.
273 * platform/graphics/IntRect.cpp:
274 (WebCore::IntRect::IntRect):
276 2006-11-27 Beth Dakin <bdakin@apple.com>
280 Getting rid of some of the critical FIXMEs in ContextMenu.cpp.
282 * bridge/mac/FrameMac.h: Two new spell checker functions from
283 WebKit. (We will be able to delete the WebKit versions once we
284 switch over to WebCore context menus.)
285 * bridge/mac/FrameMac.mm:
286 (WebCore::FrameMac::isSelectionMisspelled):
287 (WebCore::core): Convert from NSArray of Strings to a Vector of
289 (WebCore::FrameMac::guessesForMisspelledSelection):
290 * loader/FrameLoader.cpp:
291 (WebCore::FrameLoader::canHandleRequest):
292 * loader/FrameLoader.h: Make canHandleRequest available through the
294 * loader/FrameLoaderClient.h: canHandleRequest takes a
295 ResourceRequest instead of an NSURLRequest.
296 * loader/mac/FrameLoaderMac.mm:
297 (WebCore::FrameLoader::continueAfterNavigationPolicy): Same
298 * page/Frame.h: New spell checker functions moved to Frame. These
299 should be moved some place better some day, but FrameMac currently
300 seems to be the place to be for spell checker stuff.
301 * platform/ContextMenu.cpp:
302 (WebCore::ContextMenu::populate): Use new FrameLoader and spell
303 checking functionality to get rid of two if (true) statements. Also
304 add spelling guesses to the editing context menus.
306 2006-11-27 Alexey Proskuryakov <ap@webkit.org>
310 http://bugs.webkit.org/show_bug.cgi?id=11694
311 XSLT output method does not default to HTML when the target document is HTML
313 Test: fast/xsl/default-html.html
315 * xml/XSLTProcessor.cpp:
316 (WebCore::XSLTProcessor::transformToString): Make mimeType an input/output parameter,
317 serving as a hint when the stylesheet doesn't specify the output method.
318 (WebCore::XSLTProcessor::transformToFragment): Set mimeType to text/html if the target
321 2006-11-27 Oliver Hunt <oliver@apple.com>
325 Fixes a crash in SVG caused by an attempt to
326 perform css overflow clipping by preventing
327 the css overflow clip from being set in SVG.
329 <rdar:/problems/4839568>
331 * WebCore.xcodeproj/project.pbxproj:
332 * rendering/RenderForeignObject.cpp:
333 (WebCore::RenderForeignObject::RenderForeignObject):
334 * rendering/RenderForeignObject.h:
335 * rendering/RenderSVGBlock.cpp: Added.
336 (WebCore::RenderSVGBlock::RenderSVGBlock):
337 (WebCore::RenderSVGBlock::setStyle):
338 * rendering/RenderSVGBlock.h: Added.
339 * rendering/RenderSVGText.cpp:
340 (WebCore::RenderSVGText::RenderSVGText):
341 * rendering/RenderSVGText.h:
343 2006-11-27 Anders Carlsson <acarlsson@apple.com>
347 Add an explicit IntRect constructor that takes a FloatRect.
349 * platform/graphics/IntRect.cpp:
350 (WebCore::IntRect::IntRect):
351 * platform/graphics/IntRect.h:
353 2006-11-27 Ada Chan <adachan@apple.com>
357 Moved WebCoreCache up to WebKit.
360 * WebCore.xcodeproj/project.pbxproj:
361 * bridge/mac/WebCoreCache.h: Removed.
362 * bridge/mac/WebCoreCache.mm: Removed.
364 2006-11-27 Anders Carlsson <acarlsson@apple.com>
368 Move addMessageToConsole to Chrome.
370 * bindings/js/kjs_events.cpp:
371 (KJS::JSAbstractEventListener::handleEvent):
372 * bindings/js/kjs_proxy.cpp:
373 (WebCore::KJSProxy::evaluate):
374 * bindings/js/kjs_window.cpp:
375 (KJS::Window::isSafeScript):
376 (KJS::ScheduledAction::execute):
377 * bridge/mac/FrameMac.h:
378 * bridge/mac/FrameMac.mm:
379 * bridge/mac/WebCoreFrameBridge.h:
381 (WebCore::Chrome::addMessageToConsole):
383 * page/ChromeClient.h:
386 2006-11-27 Adele Peterson <adele@apple.com>
390 - Fix for http://bugs.webkit.org/show_bug.cgi?id=8062
391 Caret color in new text field should take background color and foreground color into consideration
393 * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
394 Use the foreground color of the rootEditableElement to determine the caret color. This will work well for text controls in web pages (since the root is always the actual form control)
395 as well as in editable WebViews, like in Mail, which will just pick up the color from the body element.
397 2006-11-26 Simon Hausmann <hausmann@kde.org>
401 http://bugs.webkit.org/show_bug.cgi?id=11693
402 Fix the Qt build, adapt to various enum/class renamings.
404 * kcanvas/device/qt/KRenderingDeviceQt.cpp:
405 (WebCore::KRenderingDeviceQt::createResource):
406 (WebCore::KRenderingDeviceQt::createPaintServer):
407 * kcanvas/device/qt/KRenderingDeviceQt.h:
408 * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
409 (WebCore::SVGPaintServerLinearGradient::setup):
410 * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
411 (WebCore::SVGPaintServer::renderPath):
412 * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
414 * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
415 (WebCore::SVGPaintServerSolid::setup):
417 2006-11-24 Rob Buis <buis@kde.org>
421 http://bugs.webkit.org/show_bug.cgi?id=11666
422 .getScreenCTM() returns wrong values
424 Take into account the local transform matrix too and
425 so fix getScreenCTM/getCTM for <text>.
427 * ksvg2/svg/SVGStyledTransformableElement.cpp:
428 (SVGStyledTransformableElement::getCTM):
429 (SVGStyledTransformableElement::getScreenCTM):
430 * ksvg2/svg/SVGTextElement.cpp:
431 (WebCore::SVGTextElement::getScreenCTM):
432 (WebCore::SVGTextElement::getCTM):
433 * ksvg2/svg/SVGTransformable.cpp:
434 (WebCore::SVGTransformable::getCTM):
435 (WebCore::SVGTransformable::getScreenCTM):
436 * ksvg2/svg/SVGTransformable.h:
438 2006-11-22 Rob Buis <buis@kde.org>
442 http://bugs.webkit.org/show_bug.cgi?id=11661
443 SVG: stroke not sensitive to mouse events (hit testing fails)
445 Use mapAbsolutePointToLocal when hit-testing strokes.
447 * rendering/RenderPath.cpp:
448 (WebCore::RenderPath::fillContains):
449 (WebCore::RenderPath::nodeAtPoint):
451 2006-11-21 Anders Carlsson <acarlsson@apple.com>
455 General SVG cleanup. Change some enums to match the style guidelines, use PLATFORM(CG) instead of PLATFORM(MAC).
456 Remove config.h inluce from AffineTransform.h
458 * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
459 (WebCore::KRenderingDeviceQuartz::createPaintServer):
460 (WebCore::KRenderingDeviceQuartz::createResource):
461 * ksvg2/misc/KCanvasRenderingStyle.cpp:
462 (WebCore::sharedSolidPaintServer):
463 * ksvg2/svg/SVGFilterElement.cpp:
464 (WebCore::SVGFilterElement::canvasResource):
465 * ksvg2/svg/SVGLinearGradientElement.cpp:
466 (WebCore::SVGLinearGradientElement::buildGradient):
467 * ksvg2/svg/SVGLinearGradientElement.h:
468 (WebCore::SVGLinearGradientElement::gradientType):
469 * ksvg2/svg/SVGPatternElement.cpp:
470 (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
471 (WebCore::SVGPatternElement::canvasResource):
472 * ksvg2/svg/SVGRadialGradientElement.cpp:
473 (WebCore::SVGRadialGradientElement::buildGradient):
474 * ksvg2/svg/SVGRadialGradientElement.h:
475 (WebCore::SVGRadialGradientElement::gradientType):
476 * platform/graphics/AffineTransform.h:
477 * platform/graphics/svg/SVGPaintServer.h:
479 * platform/graphics/svg/SVGPaintServerGradient.cpp:
480 (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
481 (WebCore::SVGPaintServerGradient::~SVGPaintServerGradient):
482 * platform/graphics/svg/SVGPaintServerGradient.h:
483 * platform/graphics/svg/SVGPaintServerLinearGradient.h:
484 (WebCore::SVGPaintServerLinearGradient::type):
485 * platform/graphics/svg/SVGPaintServerPattern.h:
486 (WebCore::SVGPaintServerPattern::type):
487 * platform/graphics/svg/SVGPaintServerRadialGradient.h:
488 (WebCore::SVGPaintServerRadialGradient::type):
489 * platform/graphics/svg/SVGPaintServerSolid.h:
490 (WebCore::SVGPaintServerSolid::type):
491 * platform/graphics/svg/SVGResource.h:
493 * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
494 (WebCore::SVGPaintServer::renderPath):
495 * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
496 (WebCore::SVGPaintServerGradient::updateQuartzGradientCache):
497 (WebCore::SVGPaintServerGradient::teardown):
498 (WebCore::SVGPaintServerGradient::renderPath):
499 (WebCore::SVGPaintServerGradient::setup):
500 * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
501 (WebCore::SVGPaintServerPattern::setup):
502 * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
503 (WebCore::SVGPaintServerSolid::setup):
504 * rendering/RenderPath.cpp:
505 (WebCore::RenderPath::paint):
506 * rendering/SVGInlineFlowBox.cpp:
507 (WebCore::paintSVGInlineFlow):
509 2006-11-21 Nikolas Zimmermann <zimmermann@kde.org>
513 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11658
515 Move KRenderingPaintServer* classes to the location
516 of all other resources (platform/graphics/svg).
518 Soon the whole platform/graphics/svg stuff will bemoved
519 into ksvg2/ itself, as discussed with Darin.
522 * WebCore.xcodeproj/project.pbxproj:
523 * kcanvas/device/KRenderingDevice.h:
524 * kcanvas/device/KRenderingPaintServer.h: Removed.
525 * kcanvas/device/KRenderingPaintServerGradient.cpp: Removed.
526 * kcanvas/device/KRenderingPaintServerGradient.h: Removed.
527 * kcanvas/device/KRenderingPaintServerPattern.cpp: Removed.
528 * kcanvas/device/KRenderingPaintServerPattern.h: Removed.
529 * kcanvas/device/KRenderingPaintServerSolid.cpp: Removed.
530 * kcanvas/device/KRenderingPaintServerSolid.h: Removed.
531 * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp: Removed.
532 * kcanvas/device/qt/KRenderingPaintServerGradientQt.h: Removed.
533 * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp: Removed.
534 * kcanvas/device/qt/KRenderingPaintServerPatternQt.h: Removed.
535 * kcanvas/device/qt/KRenderingPaintServerQt.cpp: Removed.
536 * kcanvas/device/qt/KRenderingPaintServerQt.h: Removed.
537 * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp: Removed.
538 * kcanvas/device/qt/KRenderingPaintServerSolidQt.h: Removed.
539 * kcanvas/device/quartz/KCanvasItemQuartz.h: Removed.
540 * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
541 (WebCore::KRenderingDeviceQuartz::createPaintServer):
542 * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
543 * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.cpp: Removed.
544 * kcanvas/device/quartz/KRenderingPaintServerQuartz.cpp: Removed.
545 * kcanvas/device/quartz/KRenderingPaintServerQuartz.h: Removed.
546 * ksvg2/misc/KCanvasRenderingStyle.cpp:
547 (WebCore::sharedSolidPaintServer):
548 (WebCore::KSVGPainterFactory::fillPaintServer):
549 (WebCore::KSVGPainterFactory::strokePaintServer):
550 * ksvg2/misc/KCanvasRenderingStyle.h:
551 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
552 * ksvg2/svg/SVGFEOffsetElement.cpp:
553 * ksvg2/svg/SVGGradientElement.cpp:
554 (WebCore::SVGGradientElement::canvasResource):
555 (WebCore::SVGGradientElement::resourceNotification):
556 (WebCore::SVGGradientElement::rebuildStops):
557 * ksvg2/svg/SVGGradientElement.h:
558 * ksvg2/svg/SVGLinearGradientElement.cpp:
559 (WebCore::SVGLinearGradientElement::buildGradient):
560 * ksvg2/svg/SVGLinearGradientElement.h:
561 (WebCore::SVGLinearGradientElement::gradientType):
562 * ksvg2/svg/SVGPatternElement.cpp:
563 (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
564 (WebCore::SVGPatternElement::canvasResource):
565 * ksvg2/svg/SVGPatternElement.h:
566 * ksvg2/svg/SVGRadialGradientElement.cpp:
567 (WebCore::SVGRadialGradientElement::buildGradient):
568 * ksvg2/svg/SVGRadialGradientElement.h:
569 (WebCore::SVGRadialGradientElement::gradientType):
570 * platform/graphics/svg/SVGPaintServer.cpp: Added.
571 (WebCore::SVGPaintServer::SVGPaintServer):
572 (WebCore::SVGPaintServer::~SVGPaintServer):
573 (WebCore::SVGPaintServer::activeClient):
574 (WebCore::SVGPaintServer::setActiveClient):
575 (WebCore::SVGPaintServer::isPaintingText):
576 (WebCore::SVGPaintServer::setPaintingText):
577 (WebCore::operator<<):
578 (WebCore::getPaintServerById):
579 * platform/graphics/svg/SVGPaintServer.h: Added.
581 (WebCore::SVGPaintServer::isPaintServer):
582 * platform/graphics/svg/SVGPaintServerGradient.cpp: Added.
583 (WebCore::compareStopOffset):
584 (WebCore::operator<<):
585 (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
586 (WebCore::SVGPaintServerGradient::~SVGPaintServerGradient):
587 (WebCore::SVGPaintServerGradient::gradientStops):
588 (WebCore::SVGPaintServerGradient::setGradientStops):
589 (WebCore::SVGPaintServerGradient::spreadMethod):
590 (WebCore::SVGPaintServerGradient::setGradientSpreadMethod):
591 (WebCore::SVGPaintServerGradient::boundingBoxMode):
592 (WebCore::SVGPaintServerGradient::setBoundingBoxMode):
593 (WebCore::SVGPaintServerGradient::gradientTransform):
594 (WebCore::SVGPaintServerGradient::setGradientTransform):
595 (WebCore::SVGPaintServerGradient::listener):
596 (WebCore::SVGPaintServerGradient::setListener):
597 (WebCore::SVGPaintServerGradient::externalRepresentation):
598 * platform/graphics/svg/SVGPaintServerGradient.h: Added.
600 (WebCore::SVGPaintServerGradient::):
601 (WebCore::makeGradientStop):
602 * platform/graphics/svg/SVGPaintServerLinearGradient.cpp: Added.
603 (WebCore::SVGPaintServerLinearGradient::SVGPaintServerLinearGradient):
604 (WebCore::SVGPaintServerLinearGradient::~SVGPaintServerLinearGradient):
605 (WebCore::SVGPaintServerLinearGradient::gradientStart):
606 (WebCore::SVGPaintServerLinearGradient::setGradientStart):
607 (WebCore::SVGPaintServerLinearGradient::gradientEnd):
608 (WebCore::SVGPaintServerLinearGradient::setGradientEnd):
609 (WebCore::SVGPaintServerLinearGradient::externalRepresentation):
610 * platform/graphics/svg/SVGPaintServerLinearGradient.h: Added.
611 (WebCore::SVGPaintServerLinearGradient::type):
612 * platform/graphics/svg/SVGPaintServerPattern.cpp: Added.
613 (WebCore::SVGPaintServerPattern::SVGPaintServerPattern):
614 (WebCore::SVGPaintServerPattern::~SVGPaintServerPattern):
615 (WebCore::SVGPaintServerPattern::bbox):
616 (WebCore::SVGPaintServerPattern::setBbox):
617 (WebCore::SVGPaintServerPattern::boundingBoxMode):
618 (WebCore::SVGPaintServerPattern::setBoundingBoxMode):
619 (WebCore::SVGPaintServerPattern::tile):
620 (WebCore::SVGPaintServerPattern::setTile):
621 (WebCore::SVGPaintServerPattern::patternTransform):
622 (WebCore::SVGPaintServerPattern::setPatternTransform):
623 (WebCore::SVGPaintServerPattern::listener):
624 (WebCore::SVGPaintServerPattern::setListener):
625 (WebCore::SVGPaintServerPattern::externalRepresentation):
626 * platform/graphics/svg/SVGPaintServerPattern.h: Added.
627 (WebCore::SVGPaintServerPattern::type):
628 * platform/graphics/svg/SVGPaintServerRadialGradient.cpp: Added.
629 (WebCore::SVGPaintServerRadialGradient::SVGPaintServerRadialGradient):
630 (WebCore::SVGPaintServerRadialGradient::~SVGPaintServerRadialGradient):
631 (WebCore::SVGPaintServerRadialGradient::gradientCenter):
632 (WebCore::SVGPaintServerRadialGradient::setGradientCenter):
633 (WebCore::SVGPaintServerRadialGradient::gradientFocal):
634 (WebCore::SVGPaintServerRadialGradient::setGradientFocal):
635 (WebCore::SVGPaintServerRadialGradient::gradientRadius):
636 (WebCore::SVGPaintServerRadialGradient::setGradientRadius):
637 (WebCore::SVGPaintServerRadialGradient::externalRepresentation):
638 * platform/graphics/svg/SVGPaintServerRadialGradient.h: Added.
639 (WebCore::SVGPaintServerRadialGradient::type):
640 * platform/graphics/svg/SVGPaintServerSolid.cpp: Added.
641 (WebCore::SVGPaintServerSolid::SVGPaintServerSolid):
642 (WebCore::SVGPaintServerSolid::~SVGPaintServerSolid):
643 (WebCore::SVGPaintServerSolid::color):
644 (WebCore::SVGPaintServerSolid::setColor):
645 (WebCore::SVGPaintServerSolid::externalRepresentation):
646 * platform/graphics/svg/SVGPaintServerSolid.h: Added.
647 (WebCore::SVGPaintServerSolid::type):
648 * platform/graphics/svg/SVGResource.cpp:
649 * platform/graphics/svg/SVGResource.h:
650 * platform/graphics/svg/SVGResourceClipper.cpp:
651 * platform/graphics/svg/SVGResourceMarker.cpp:
652 * platform/graphics/svg/SVGResourceMasker.cpp:
653 * platform/graphics/svg/cg/SVGPaintServerCg.cpp: Added.
654 (WebCore::SVGPaintServer::draw):
655 (WebCore::SVGPaintServer::teardown):
656 (WebCore::SVGPaintServer::renderPath):
657 (WebCore::SVGPaintServer::strokePath):
658 (WebCore::SVGPaintServer::clipToStrokePath):
659 (WebCore::SVGPaintServer::fillPath):
660 (WebCore::SVGPaintServer::clipToFillPath):
661 * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: Added.
662 (WebCore::cgGradientCallback):
663 (WebCore::CGShadingRefForLinearGradient):
664 (WebCore::CGShadingRefForRadialGradient):
665 (WebCore::SVGPaintServerGradient::invalidateCaches):
666 (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
667 (WebCore::SVGPaintServerGradient::updateQuartzGradientCache):
668 (WebCore::SVGPaintServerGradient::teardown):
669 (WebCore::SVGPaintServerGradient::renderPath):
670 (WebCore::SVGPaintServerGradient::setup):
671 (WebCore::SVGPaintServerGradient::invalidate):
672 * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp: Added.
673 (WebCore::patternCallback):
674 (WebCore::SVGPaintServerPattern::setup):
675 (WebCore::SVGPaintServerPattern::teardown):
676 * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp: Added.
677 (WebCore::SVGPaintServerSolid::setup):
678 * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp: Added.
679 (WebCore::SVGPaintServerGradient::fillColorArray):
680 * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp: Added.
681 (WebCore::SVGPaintServerLinearGradient::setup):
682 * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp: Added.
683 (WebCore::SVGPaintServerPattern::setup):
684 * platform/graphics/svg/qt/SVGPaintServerQt.cpp: Added.
685 (WebCore::SVGPaintServer::setPenProperties):
686 (WebCore::SVGPaintServer::draw):
687 (WebCore::SVGPaintServer::teardown):
688 (WebCore::SVGPaintServer::renderPath):
689 * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp: Added.
691 * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp: Added.
692 (WebCore::SVGPaintServerSolid::setup):
693 * rendering/RenderPath.cpp:
694 (WebCore::RenderPath::paint):
695 * rendering/SVGInlineFlowBox.cpp:
696 (WebCore::paintSVGInlineFlow):
697 * rendering/SVGRenderTreeAsText.cpp:
698 (WebCore::writeStyle):
699 (WebCore::writeRenderResources):
701 2006-11-21 Alex Taylor <darwin@techvisual.co.nz>
705 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11587
707 Adds calculations for bottom right radius's position
708 which was being drawn incorrectly.
710 * rendering/RenderObject.cpp:
711 (WebCore::RenderObject::paintBorder):
713 2006-11-20 Rob Buis <buis@kde.org>
717 http://bugs.webkit.org/show_bug.cgi?id=11519
718 REGRESSION: Disabled file upload control doesn't have disabled appearance, failing fast/forms/file-input-disabled.html
720 Transport disabled state from DOM element to the shadow
723 * rendering/RenderFileUploadControl.cpp:
724 (WebCore::RenderFileUploadControl::updateFromElement):
725 * rendering/RenderTheme.h:
727 2006-11-20 Anders Carlsson <acarlsson@apple.com>
731 * loader/TextResourceDecoder.cpp:
732 (WebCore::findXMLEncoding):
733 Use CString instead of DeprecatedCString.
735 * platform/CString.cpp:
736 (WebCore::CString::find):
737 * platform/CString.h:
738 (WebCore::CString::data):
739 Add find method, make data method inline.
741 * platform/TextStream.cpp:
742 * platform/TextStream.h:
743 Remove DeprecatedCString functions.
745 2006-11-20 Anders Carlsson <acarlsson@apple.com>
749 Use CString instead of DeprecatedCString.
751 * html/FormDataList.cpp:
752 (WebCore::FormDataList::appendString):
753 (WebCore::fixLineBreaks):
754 (WebCore::FormDataList::appendFile):
756 2006-11-20 Samuel Weinig <sam@webkit.org>
760 Fix for http://bugs.webkit.org/show_bug.cgi?id=11656
763 * WebCore.vcproj/WebCore/WebCore.vcproj:
764 * bridge/win/ContextMenuClientWin.h:
765 * bridge/win/EditorClientWin.h:
766 * bridge/win/FrameWin.h:
767 * platform/win/TemporaryLinkStubs.cpp:
768 (WebCore::ContextMenu::show):
769 (WebCore::ContextMenuClientWin::copyLinkToClipboard):
770 (WebCore::ContextMenuClientWin::downloadURL):
771 (WebCore::ContextMenuClientWin::copyImageToClipboard):
772 (WebCore::ContextMenuClientWin::lookUpInDictionary):
773 (WebCore::EditorClientWin::shouldInsertText):
774 (WebCore::FrameLoader::reload):
775 (WebCore::FrameWin::ignoreSpelling):
776 (WebCore::FrameWin::learnSpelling):
778 2006-11-20 Alexey Proskuryakov <ap@webkit.org>
782 http://bugs.webkit.org/show_bug.cgi?id=10736
783 XMLHttpRequest.responseXML should be null on error
785 * dom/XMLTokenizer.cpp:
786 (WebCore::XMLTokenizer::wellFormed):
787 * dom/XMLTokenizer.h:
788 (WebCore::Tokenizer::wellFormed):
790 (WebCore::Document::Document):
791 (WebCore::Document::implicitClose):
793 (WebCore::Document::wellFormed):
794 Tell whether XMLTokenizer saw an error. Always true (success) for HTML.
796 * xml/xmlhttprequest.cpp:
797 (WebCore::XMLHttpRequest::getResponseXML): Set the document to null if it's not well-formed.
799 2006-11-20 Alexey Proskuryakov <ap@webkit.org>
801 Reviewed by Sam Weinig.
803 http://bugs.webkit.org/show_bug.cgi?id=11633
804 Implement XMLDocument properties xmlEncoding, xmlVersion, xmlStandalone
807 (WebCore::Document::Document):
808 (WebCore::Document::setXMLVersion):
809 (WebCore::Document::setXMLStandalone):
811 (WebCore::Document::xmlEncoding):
812 (WebCore::Document::xmlVersion):
813 (WebCore::Document::xmlStandalone):
814 (WebCore::Document::setXMLEncoding):
816 * dom/XMLTokenizer.cpp:
817 (WebCore::XMLTokenizer::startDocument):
818 (WebCore::startDocumentHandler):
819 (WebCore::XMLTokenizer::initializeParserContext):
820 Added support for these properties, getting them from an libxml2 context.
822 * html/HTMLDocument.cpp:
823 (WebCore::HTMLDocument::HTMLDocument):
824 HTMLDocument is the only kind of document that doesn't have xmlVersion default to "1.0".
826 * bindings/scripts/CodeGeneratorJS.pm:
827 * bindings/scripts/CodeGeneratorObjC.pm:
828 Added WK_ucfirst to properly uppercase xmlVersion and xmlStandalone.
830 2006-11-20 Nikolas Zimmermann <zimmermann@kde.org>
836 * platform/qt/ContextMenuClientQt.cpp:
837 (WebCore::ContextMenuClientQt::ref):
838 (WebCore::ContextMenuClientQt::deref):
839 (WebCore::ContextMenuClientQt::copyLinkToClipboard):
840 (WebCore::ContextMenuClientQt::downloadURL):
841 (WebCore::ContextMenuClientQt::copyImageToClipboard):
842 (WebCore::ContextMenuClientQt::lookUpInDictionary):
843 * platform/qt/ContextMenuClientQt.h:
844 * platform/qt/ContextMenuQt.cpp:
845 (WebCore::ContextMenu::appendItem):
846 (WebCore::ContextMenu::show):
847 (WebCore::ContextMenu::itemCount):
848 (WebCore::ContextMenu::insertItem):
849 * platform/qt/EditorClientQt.cpp:
850 (WebCore::EditorClientQt::shouldInsertText):
851 * platform/qt/EditorClientQt.h:
852 * platform/qt/FrameQt.cpp:
853 (WebCore::FrameQt::ignoreSpelling):
854 (WebCore::FrameQt::learnSpelling):
855 * platform/qt/FrameQt.h:
856 * platform/qt/TemporaryLinkStubs.cpp:
857 (FrameLoader::reload):
859 2006-11-20 Samuel Weinig <sam@webkit.org>
863 Fix for http://bugs.webkit.org/show_bug.cgi?id=11647
866 * config.h: add #define NOMINMAX for windows build
867 * platform/win/FontCacheWin.cpp:
868 (WebCore::FontCache::createFontPlatformData):
869 * platform/win/TemporaryLinkStubs.cpp: add definitions for
871 (WebCore::aliasCursor):
872 (WebCore::noDropCursor):
873 (WebCore::progressCursor):
875 2006-11-19 Beth Dakin <bdakin@apple.com>
879 Implementation of actions for the new context menus.
882 * WebCore.xcodeproj/project.pbxproj:
883 * bridge/EditorClient.h: Declaration of shouldInsertText.
884 * bridge/mac/FrameMac.h: Two new spelling functions.
885 * bridge/mac/FrameMac.mm:
886 (WebCore::FrameMac::ignoreSpelling):
887 (WebCore::FrameMac::learnSpelling):
888 * editing/Editor.cpp:
889 (WebCore::Editor::shouldInsertText): Call into the client.
891 * editing/EditorInsertAction.h: Added.
892 (WebCore::): The WebCore equivalent of WebViewInsertAction. This is
893 defined in its own header so that we can use it from Editor.h and
894 EditorClient.h without having one of the above include the other.
895 * page/ContextMenuClient.h: A few currently WebKit-implemented
896 function needed for menu actions.
897 * page/ContextMenuController.cpp:
898 (WebCore::makeGoogleSearchURL):
899 (WebCore::ContextMenuController::contextMenuActionSelected): The
901 * page/ContextMenuController.h:
902 * page/Frame.h: New pure-virtual spelling functions.
903 * platform/ContextMenu.cpp:
904 (WebCore::ContextMenu::controller): Get the controller from the
906 * platform/ContextMenu.h:
907 * platform/mac/ContextMenuMac.mm:
909 forwardContextMenuAction:initWithContextMenuController:WebCore::]):
910 Use the controller instead of the menu
911 (-[MenuTarget WebCore::]):
912 (-[MenuTarget setMenuController:WebCore::]):
913 (-[MenuTarget forwardContextMenuAction:]):
918 2006-11-19 Simon Hausmann <hausmann@kde.org>
922 http://bugs.webkit.org/show_bug.cgi?id=11649
923 Fix CMake files for Qt-only build without KDE cmake files.
924 Fix Qt/KDE build for the SVG support.
925 Fix Qt-only build in the resource handler.
928 * platform/graphics/svg/qt/SVGResourceFilterQt.cpp: Added.
929 (WebCore::SVGResourceFilter::SVGResourceFilter):
930 (WebCore::SVGResourceFilter::~SVGResourceFilter):
931 (WebCore::SVGResourceFilter::prepareFilter):
932 (WebCore::SVGResourceFilter::applyFilter):
933 * platform/network/qt/ResourceHandleManager.cpp:
934 (WebCore::ResourceHandleManager::cancel):
935 (WebCore::ResourceHandleManager::slotData):
936 (WebCore::ResourceHandleManager::slotMimetype):
937 (WebCore::ResourceHandleManager::slotResult):
938 (WebCore::ResourceHandleManager::deliverJobData):
939 * platform/network/qt/ResourceHandleManager.h:
940 * platform/network/qt/ResourceHandleQt.cpp:
941 * platform/qt/CursorQt.cpp:
942 (WebCore::noDropCursor):
943 (WebCore::progressCursor):
944 (WebCore::aliasCursor):
946 2006-11-19 Mitz Pettel <mitz@webkit.org>
950 - http://bugs.webkit.org/show_bug.cgi?id=11626
951 Automate test for rdar://problem/4056100
953 * manual-tests/delete-into-nested-block.html: Removed.
955 2006-11-19 Nikolas Zimmermann <zimmermann@kde.org>
959 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11596
961 Split up KCanvasFilters & KCanvasFilterQuartz into several
962 new classes (SVGFEBlend, SVGFEComposite...) and move them
963 into platform/graphics/svg. This is still a temporary location,
964 as discussed with Darin; the whole platform/graphics/svg directory
965 will probably be moved into ksvg2/ in near future.
967 This finally removes the duplicated enumerations in the svg filter
968 classes and within kcanvas. ksvg2/ and platform/graphics/svg share
969 their enums now. As KCanvasFilters is gone now, The kcanvas/ subdirectory
973 * WebCore.xcodeproj/project.pbxproj:
974 * bindings/scripts/CodeGeneratorJS.pm:
975 * kcanvas/KCanvasFilters.cpp: Removed.
976 * kcanvas/KCanvasFilters.h: Removed.
977 * kcanvas/device/KRenderingDevice.h:
978 * kcanvas/device/qt/KRenderingDeviceQt.cpp:
979 (WebCore::KRenderingDeviceQt::createFilterEffect):
980 * kcanvas/device/qt/KRenderingDeviceQt.h:
981 * kcanvas/device/quartz/KCanvasFilterQuartz.h: Removed.
982 * kcanvas/device/quartz/KCanvasFilterQuartz.mm: Removed.
983 * kcanvas/device/quartz/KCanvasItemQuartz.cpp:
984 * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
985 (WebCore::KRenderingDeviceQuartz::createResource):
986 (WebCore::KRenderingDeviceQuartz::createFilterEffect):
987 * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
988 * kcanvas/device/quartz/filters/WKArithmeticFilter.cikernel: Removed.
989 * kcanvas/device/quartz/filters/WKArithmeticFilter.h: Removed.
990 * kcanvas/device/quartz/filters/WKArithmeticFilter.m: Removed.
991 * kcanvas/device/quartz/filters/WKComponentMergeFilter.cikernel: Removed.
992 * kcanvas/device/quartz/filters/WKComponentMergeFilter.h: Removed.
993 * kcanvas/device/quartz/filters/WKComponentMergeFilter.m: Removed.
994 * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.cikernel: Removed.
995 * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.h: Removed.
996 * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.m: Removed.
997 * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.cikernel: Removed.
998 * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.h: Removed.
999 * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.m: Removed.
1000 * kcanvas/device/quartz/filters/WKDisplacementMapFilter.cikernel: Removed.
1001 * kcanvas/device/quartz/filters/WKDisplacementMapFilter.h: Removed.
1002 * kcanvas/device/quartz/filters/WKDisplacementMapFilter.m: Removed.
1003 * kcanvas/device/quartz/filters/WKDistantLightFilter.cikernel: Removed.
1004 * kcanvas/device/quartz/filters/WKDistantLightFilter.h: Removed.
1005 * kcanvas/device/quartz/filters/WKDistantLightFilter.m: Removed.
1006 * kcanvas/device/quartz/filters/WKGammaTransferFilter.cikernel: Removed.
1007 * kcanvas/device/quartz/filters/WKGammaTransferFilter.h: Removed.
1008 * kcanvas/device/quartz/filters/WKGammaTransferFilter.m: Removed.
1009 * kcanvas/device/quartz/filters/WKIdentityTransferFilter.h: Removed.
1010 * kcanvas/device/quartz/filters/WKIdentityTransferFilter.m: Removed.
1011 * kcanvas/device/quartz/filters/WKLinearTransferFilter.cikernel: Removed.
1012 * kcanvas/device/quartz/filters/WKLinearTransferFilter.h: Removed.
1013 * kcanvas/device/quartz/filters/WKLinearTransferFilter.m: Removed.
1014 * kcanvas/device/quartz/filters/WKNormalMapFilter.cikernel: Removed.
1015 * kcanvas/device/quartz/filters/WKNormalMapFilter.h: Removed.
1016 * kcanvas/device/quartz/filters/WKNormalMapFilter.m: Removed.
1017 * kcanvas/device/quartz/filters/WKPointLightFilter.cikernel: Removed.
1018 * kcanvas/device/quartz/filters/WKPointLightFilter.h: Removed.
1019 * kcanvas/device/quartz/filters/WKPointLightFilter.m: Removed.
1020 * kcanvas/device/quartz/filters/WKSpecularLightingFilter.cikernel: Removed.
1021 * kcanvas/device/quartz/filters/WKSpecularLightingFilter.h: Removed.
1022 * kcanvas/device/quartz/filters/WKSpecularLightingFilter.m: Removed.
1023 * kcanvas/device/quartz/filters/WKSpotLightFilter.cikernel: Removed.
1024 * kcanvas/device/quartz/filters/WKSpotLightFilter.h: Removed.
1025 * kcanvas/device/quartz/filters/WKSpotLightFilter.m: Removed.
1026 * kcanvas/device/quartz/filters/WKTableTransferFilter.cikernel: Removed.
1027 * kcanvas/device/quartz/filters/WKTableTransferFilter.h: Removed.
1028 * kcanvas/device/quartz/filters/WKTableTransferFilter.m: Removed.
1029 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1030 (WebCore::SVGComponentTransferFunctionElement::transferFunction):
1031 * ksvg2/svg/SVGComponentTransferFunctionElement.h:
1032 * ksvg2/svg/SVGFEBlendElement.cpp:
1033 (WebCore::SVGFEBlendElement::filterEffect):
1034 * ksvg2/svg/SVGFEBlendElement.h:
1035 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1036 (WebCore::SVGFEColorMatrixElement::filterEffect):
1037 * ksvg2/svg/SVGFEColorMatrixElement.h:
1038 * ksvg2/svg/SVGFEComponentTransferElement.cpp:
1039 (WebCore::SVGFEComponentTransferElement::filterEffect):
1040 * ksvg2/svg/SVGFEComponentTransferElement.h:
1041 * ksvg2/svg/SVGFECompositeElement.cpp:
1042 (WebCore::SVGFECompositeElement::filterEffect):
1043 * ksvg2/svg/SVGFECompositeElement.h:
1044 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1045 (WebCore::SVGFEDiffuseLightingElement::filterEffect):
1046 (WebCore::SVGFEDiffuseLightingElement::updateLights):
1047 * ksvg2/svg/SVGFEDiffuseLightingElement.h:
1048 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
1049 (WebCore::SVGFEDisplacementMapElement::stringToChannel):
1050 (WebCore::SVGFEDisplacementMapElement::filterEffect):
1051 * ksvg2/svg/SVGFEDisplacementMapElement.h:
1052 * ksvg2/svg/SVGFEDistantLightElement.cpp:
1053 (WebCore::SVGFEDistantLightElement::lightSource):
1054 * ksvg2/svg/SVGFEDistantLightElement.h:
1055 * ksvg2/svg/SVGFEFloodElement.cpp:
1056 (WebCore::SVGFEFloodElement::filterEffect):
1057 * ksvg2/svg/SVGFEFloodElement.h:
1058 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1059 (WebCore::SVGFEGaussianBlurElement::filterEffect):
1060 * ksvg2/svg/SVGFEGaussianBlurElement.h:
1061 * ksvg2/svg/SVGFEImageElement.cpp:
1062 (WebCore::SVGFEImageElement::filterEffect):
1063 * ksvg2/svg/SVGFEImageElement.h:
1064 * ksvg2/svg/SVGFELightElement.h:
1065 * ksvg2/svg/SVGFEMergeElement.cpp:
1066 (WebCore::SVGFEMergeElement::filterEffect):
1067 * ksvg2/svg/SVGFEMergeElement.h:
1068 * ksvg2/svg/SVGFEOffsetElement.cpp:
1069 (WebCore::SVGFEOffsetElement::filterEffect):
1070 * ksvg2/svg/SVGFEOffsetElement.h:
1071 * ksvg2/svg/SVGFEPointLightElement.cpp:
1072 (WebCore::SVGFEPointLightElement::lightSource):
1073 * ksvg2/svg/SVGFEPointLightElement.h:
1074 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1075 (WebCore::SVGFESpecularLightingElement::filterEffect):
1076 (WebCore::SVGFESpecularLightingElement::updateLights):
1077 * ksvg2/svg/SVGFESpecularLightingElement.h:
1078 * ksvg2/svg/SVGFESpotLightElement.cpp:
1079 (WebCore::SVGFESpotLightElement::lightSource):
1080 * ksvg2/svg/SVGFESpotLightElement.h:
1081 * ksvg2/svg/SVGFETileElement.cpp:
1082 (WebCore::SVGFETileElement::filterEffect):
1083 * ksvg2/svg/SVGFETileElement.h:
1084 * ksvg2/svg/SVGFETurbulenceElement.cpp:
1085 (WebCore::SVGFETurbulenceElement::filterEffect):
1086 * ksvg2/svg/SVGFETurbulenceElement.h:
1088 * ksvg2/svg/SVGFilterElement.cpp:
1089 (WebCore::SVGFilterElement::canvasResource):
1090 * ksvg2/svg/SVGFilterElement.h:
1091 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
1092 (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
1093 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
1094 * platform/graphics/FloatPoint3D.cpp: Added.
1095 (WebCore::FloatPoint3D::FloatPoint3D):
1096 (WebCore::FloatPoint3D::x):
1097 (WebCore::FloatPoint3D::setX):
1098 (WebCore::FloatPoint3D::y):
1099 (WebCore::FloatPoint3D::setY):
1100 (WebCore::FloatPoint3D::z):
1101 (WebCore::FloatPoint3D::setZ):
1102 (WebCore::FloatPoint3D::normalize):
1103 * platform/graphics/FloatPoint3D.h: Added.
1104 * platform/graphics/svg/SVGResourceFilter.cpp: Added.
1105 (WebCore::SVGResourceFilter::clearEffects):
1106 (WebCore::SVGResourceFilter::addFilterEffect):
1107 (WebCore::SVGResourceFilter::filterBBoxForItemBBox):
1108 (WebCore::SVGResourceFilter::externalRepresentation):
1109 (WebCore::getFilterById):
1110 * platform/graphics/svg/SVGResourceFilter.h: Added.
1111 (WebCore::SVGResourceFilter::isFilter):
1112 (WebCore::SVGResourceFilter::filterBoundingBoxMode):
1113 (WebCore::SVGResourceFilter::setFilterBoundingBoxMode):
1114 (WebCore::SVGResourceFilter::effectBoundingBoxMode):
1115 (WebCore::SVGResourceFilter::setEffectBoundingBoxMode):
1116 (WebCore::SVGResourceFilter::filterRect):
1117 (WebCore::SVGResourceFilter::setFilterRect):
1118 * platform/graphics/svg/SVGResourceImage.h:
1119 * platform/graphics/svg/SVGResourceListener.h:
1120 (SVGResourceListener::SVGResourceListener):
1121 (SVGResourceListener::~SVGResourceListener):
1122 * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
1123 * platform/graphics/svg/cg/SVGResourceFilterCg.mm: Added.
1124 (WebCore::SVGResourceFilter::SVGResourceFilter):
1125 (WebCore::SVGResourceFilter::~SVGResourceFilter):
1126 (WebCore::SVGResourceFilter::prepareFilter):
1127 (WebCore::SVGResourceFilter::applyFilter):
1128 (WebCore::SVGResourceFilter::getCIFilterStack):
1129 (WebCore::SVGResourceFilter::imageForName):
1130 (WebCore::SVGResourceFilter::setImageForName):
1131 (WebCore::SVGResourceFilter::setOutputImage):
1132 (WebCore::alphaImageForImage):
1133 (WebCore::SVGResourceFilter::inputImage):
1134 * platform/graphics/svg/cg/SVGResourceMaskerCg.h: Removed.
1135 * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
1136 * platform/graphics/svg/filters/SVGDistantLightSource.h: Added.
1137 (WebCore::SVGDistantLightSource::SVGDistantLightSource):
1138 (WebCore::SVGDistantLightSource::azimuth):
1139 (WebCore::SVGDistantLightSource::elevation):
1140 * platform/graphics/svg/filters/SVGFEBlend.cpp: Added.
1141 (WebCore::SVGFEBlend::in2):
1142 (WebCore::SVGFEBlend::setIn2):
1143 (WebCore::SVGFEBlend::blendMode):
1144 (WebCore::SVGFEBlend::setBlendMode):
1145 (WebCore::operator<<):
1146 (WebCore::SVGFEBlend::externalRepresentation):
1147 * platform/graphics/svg/filters/SVGFEBlend.h: Added.
1149 * platform/graphics/svg/filters/SVGFEColorMatrix.cpp: Added.
1150 (WebCore::SVGFEColorMatrix::type):
1151 (WebCore::SVGFEColorMatrix::setType):
1152 (WebCore::SVGFEColorMatrix::values):
1153 (WebCore::SVGFEColorMatrix::setValues):
1154 (WebCore::operator<<):
1155 (WebCore::SVGFEColorMatrix::externalRepresentation):
1156 * platform/graphics/svg/filters/SVGFEColorMatrix.h: Added.
1158 * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp: Added.
1159 (WebCore::SVGFEComponentTransfer::redFunction):
1160 (WebCore::SVGFEComponentTransfer::setRedFunction):
1161 (WebCore::SVGFEComponentTransfer::greenFunction):
1162 (WebCore::SVGFEComponentTransfer::setGreenFunction):
1163 (WebCore::SVGFEComponentTransfer::blueFunction):
1164 (WebCore::SVGFEComponentTransfer::setBlueFunction):
1165 (WebCore::SVGFEComponentTransfer::alphaFunction):
1166 (WebCore::SVGFEComponentTransfer::setAlphaFunction):
1167 (WebCore::operator<<):
1168 (WebCore::SVGFEComponentTransfer::externalRepresentation):
1169 * platform/graphics/svg/filters/SVGFEComponentTransfer.h: Added.
1171 (WebCore::SVGComponentTransferFunction::SVGComponentTransferFunction):
1172 * platform/graphics/svg/filters/SVGFEComposite.cpp: Added.
1173 (WebCore::SVGFEComposite::in2):
1174 (WebCore::SVGFEComposite::setIn2):
1175 (WebCore::SVGFEComposite::operation):
1176 (WebCore::SVGFEComposite::setOperation):
1177 (WebCore::SVGFEComposite::k1):
1178 (WebCore::SVGFEComposite::setK1):
1179 (WebCore::SVGFEComposite::k2):
1180 (WebCore::SVGFEComposite::setK2):
1181 (WebCore::SVGFEComposite::k3):
1182 (WebCore::SVGFEComposite::setK3):
1183 (WebCore::SVGFEComposite::k4):
1184 (WebCore::SVGFEComposite::setK4):
1185 (WebCore::SVGFEComposite::externalRepresentation):
1186 * platform/graphics/svg/filters/SVGFEComposite.h: Added.
1188 * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp: Added.
1189 (WebCore::SVGFEConvolveMatrix::kernelSize):
1190 (WebCore::SVGFEConvolveMatrix::setKernelSize):
1191 (WebCore::SVGFEConvolveMatrix::kernel):
1192 (WebCore::SVGFEConvolveMatrix::setKernel):
1193 (WebCore::SVGFEConvolveMatrix::divisor):
1194 (WebCore::SVGFEConvolveMatrix::setDivisor):
1195 (WebCore::SVGFEConvolveMatrix::bias):
1196 (WebCore::SVGFEConvolveMatrix::setBias):
1197 (WebCore::SVGFEConvolveMatrix::targetOffset):
1198 (WebCore::SVGFEConvolveMatrix::setTargetOffset):
1199 (WebCore::SVGFEConvolveMatrix::edgeMode):
1200 (WebCore::SVGFEConvolveMatrix::setEdgeMode):
1201 (WebCore::SVGFEConvolveMatrix::kernelUnitLength):
1202 (WebCore::SVGFEConvolveMatrix::setKernelUnitLength):
1203 (WebCore::SVGFEConvolveMatrix::preserveAlpha):
1204 (WebCore::SVGFEConvolveMatrix::setPreserveAlpha):
1205 (WebCore::operator<<):
1206 (WebCore::SVGFEConvolveMatrix::externalRepresentation):
1207 * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: Added.
1209 * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp: Added.
1210 (WebCore::SVGFEDiffuseLighting::SVGFEDiffuseLighting):
1211 (WebCore::SVGFEDiffuseLighting::~SVGFEDiffuseLighting):
1212 (WebCore::SVGFEDiffuseLighting::lightingColor):
1213 (WebCore::SVGFEDiffuseLighting::setLightingColor):
1214 (WebCore::SVGFEDiffuseLighting::surfaceScale):
1215 (WebCore::SVGFEDiffuseLighting::setSurfaceScale):
1216 (WebCore::SVGFEDiffuseLighting::diffuseConstant):
1217 (WebCore::SVGFEDiffuseLighting::setDiffuseConstant):
1218 (WebCore::SVGFEDiffuseLighting::kernelUnitLengthX):
1219 (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthX):
1220 (WebCore::SVGFEDiffuseLighting::kernelUnitLengthY):
1221 (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthY):
1222 (WebCore::SVGFEDiffuseLighting::lightSource):
1223 (WebCore::SVGFEDiffuseLighting::setLightSource):
1224 (WebCore::SVGFEDiffuseLighting::externalRepresentation):
1225 * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: Added.
1226 * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp: Added.
1227 (WebCore::SVGFEDisplacementMap::SVGFEDisplacementMap):
1228 (WebCore::SVGFEDisplacementMap::in2):
1229 (WebCore::SVGFEDisplacementMap::setIn2):
1230 (WebCore::SVGFEDisplacementMap::xChannelSelector):
1231 (WebCore::SVGFEDisplacementMap::setXChannelSelector):
1232 (WebCore::SVGFEDisplacementMap::yChannelSelector):
1233 (WebCore::SVGFEDisplacementMap::setYChannelSelector):
1234 (WebCore::SVGFEDisplacementMap::scale):
1235 (WebCore::SVGFEDisplacementMap::setScale):
1236 (WebCore::operator<<):
1237 (WebCore::SVGFEDisplacementMap::externalRepresentation):
1238 * platform/graphics/svg/filters/SVGFEDisplacementMap.h: Added.
1240 * platform/graphics/svg/filters/SVGFEFlood.cpp: Added.
1241 (WebCore::SVGFEFlood::floodColor):
1242 (WebCore::SVGFEFlood::setFloodColor):
1243 (WebCore::SVGFEFlood::floodOpacity):
1244 (WebCore::SVGFEFlood::setFloodOpacity):
1245 (WebCore::SVGFEFlood::externalRepresentation):
1246 * platform/graphics/svg/filters/SVGFEFlood.h: Added.
1247 * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp: Added.
1248 (WebCore::SVGFEGaussianBlur::stdDeviationX):
1249 (WebCore::SVGFEGaussianBlur::setStdDeviationX):
1250 (WebCore::SVGFEGaussianBlur::stdDeviationY):
1251 (WebCore::SVGFEGaussianBlur::setStdDeviationY):
1252 (WebCore::SVGFEGaussianBlur::externalRepresentation):
1253 * platform/graphics/svg/filters/SVGFEGaussianBlur.h: Added.
1254 * platform/graphics/svg/filters/SVGFEImage.cpp: Added.
1255 (WebCore::SVGFEImage::SVGFEImage):
1256 (WebCore::SVGFEImage::~SVGFEImage):
1257 (WebCore::SVGFEImage::cachedImage):
1258 (WebCore::SVGFEImage::setCachedImage):
1259 (WebCore::SVGFEImage::externalRepresentation):
1260 * platform/graphics/svg/filters/SVGFEImage.h: Added.
1261 * platform/graphics/svg/filters/SVGFEMerge.cpp: Added.
1262 (WebCore::SVGFEMerge::mergeInputs):
1263 (WebCore::SVGFEMerge::setMergeInputs):
1264 (WebCore::SVGFEMerge::externalRepresentation):
1265 * platform/graphics/svg/filters/SVGFEMerge.h: Added.
1266 * platform/graphics/svg/filters/SVGFEMorphology.cpp: Added.
1267 (WebCore::SVGFEMorphology::morphologyOperator):
1268 (WebCore::SVGFEMorphology::setMorphologyOperator):
1269 (WebCore::SVGFEMorphology::radiusX):
1270 (WebCore::SVGFEMorphology::setRadiusX):
1271 (WebCore::SVGFEMorphology::radiusY):
1272 (WebCore::SVGFEMorphology::setRadiusY):
1273 (WebCore::operator<<):
1274 (WebCore::SVGFEMorphology::externalRepresentation):
1275 * platform/graphics/svg/filters/SVGFEMorphology.h: Added.
1277 * platform/graphics/svg/filters/SVGFEOffset.cpp: Added.
1278 (WebCore::SVGFEOffset::dx):
1279 (WebCore::SVGFEOffset::setDx):
1280 (WebCore::SVGFEOffset::dy):
1281 (WebCore::SVGFEOffset::setDy):
1282 (WebCore::SVGFEOffset::externalRepresentation):
1283 * platform/graphics/svg/filters/SVGFEOffset.h: Added.
1284 * platform/graphics/svg/filters/SVGFESpecularLighting.cpp: Added.
1285 (WebCore::SVGFESpecularLighting::SVGFESpecularLighting):
1286 (WebCore::SVGFESpecularLighting::~SVGFESpecularLighting):
1287 (WebCore::SVGFESpecularLighting::lightingColor):
1288 (WebCore::SVGFESpecularLighting::setLightingColor):
1289 (WebCore::SVGFESpecularLighting::surfaceScale):
1290 (WebCore::SVGFESpecularLighting::setSurfaceScale):
1291 (WebCore::SVGFESpecularLighting::specularConstant):
1292 (WebCore::SVGFESpecularLighting::setSpecularConstant):
1293 (WebCore::SVGFESpecularLighting::specularExponent):
1294 (WebCore::SVGFESpecularLighting::setSpecularExponent):
1295 (WebCore::SVGFESpecularLighting::kernelUnitLengthX):
1296 (WebCore::SVGFESpecularLighting::setKernelUnitLengthX):
1297 (WebCore::SVGFESpecularLighting::kernelUnitLengthY):
1298 (WebCore::SVGFESpecularLighting::setKernelUnitLengthY):
1299 (WebCore::SVGFESpecularLighting::lightSource):
1300 (WebCore::SVGFESpecularLighting::setLightSource):
1301 (WebCore::SVGFESpecularLighting::externalRepresentation):
1302 * platform/graphics/svg/filters/SVGFESpecularLighting.h: Added.
1303 * platform/graphics/svg/filters/SVGFETile.h: Added.
1304 * platform/graphics/svg/filters/SVGFETurbulence.cpp: Added.
1305 (WebCore::SVGFETurbulence::type):
1306 (WebCore::SVGFETurbulence::setType):
1307 (WebCore::SVGFETurbulence::baseFrequencyY):
1308 (WebCore::SVGFETurbulence::setBaseFrequencyY):
1309 (WebCore::SVGFETurbulence::baseFrequencyX):
1310 (WebCore::SVGFETurbulence::setBaseFrequencyX):
1311 (WebCore::SVGFETurbulence::seed):
1312 (WebCore::SVGFETurbulence::setSeed):
1313 (WebCore::SVGFETurbulence::numOctaves):
1314 (WebCore::SVGFETurbulence::setNumOctaves):
1315 (WebCore::SVGFETurbulence::stitchTiles):
1316 (WebCore::SVGFETurbulence::setStitchTiles):
1317 (WebCore::operator<<):
1318 (WebCore::SVGFETurbulence::externalRepresentation):
1319 * platform/graphics/svg/filters/SVGFETurbulence.h: Added.
1321 * platform/graphics/svg/filters/SVGFilterEffect.cpp: Added.
1322 (WebCore::SVGFilterEffect::subRegion):
1323 (WebCore::SVGFilterEffect::setSubRegion):
1324 (WebCore::SVGFilterEffect::in):
1325 (WebCore::SVGFilterEffect::setIn):
1326 (WebCore::SVGFilterEffect::result):
1327 (WebCore::SVGFilterEffect::setResult):
1328 (WebCore::SVGFilterEffect::externalRepresentation):
1329 (WebCore::operator<<):
1330 * platform/graphics/svg/filters/SVGFilterEffect.h: Added.
1332 (WebCore::SVGFilterEffect::SVGFilterEffect):
1333 (WebCore::SVGFilterEffect::~SVGFilterEffect):
1334 (WebCore::SVGFilterEffect::effectType):
1335 * platform/graphics/svg/filters/SVGLightSource.cpp: Added.
1336 (WebCore::operator<<):
1337 (WebCore::SVGPointLightSource::externalRepresentation):
1338 (WebCore::SVGSpotLightSource::externalRepresentation):
1339 (WebCore::SVGDistantLightSource::externalRepresentation):
1340 * platform/graphics/svg/filters/SVGLightSource.h: Added.
1342 (WebCore::SVGLightSource::SVGLightSource):
1343 (WebCore::SVGLightSource::~SVGLightSource):
1344 (WebCore::SVGLightSource::type):
1345 * platform/graphics/svg/filters/SVGPointLightSource.h: Added.
1346 (WebCore::SVGPointLightSource::SVGPointLightSource):
1347 (WebCore::SVGPointLightSource::position):
1348 * platform/graphics/svg/filters/SVGSpotLightSource.h: Added.
1349 (WebCore::SVGSpotLightSource::SVGSpotLightSource):
1350 (WebCore::SVGSpotLightSource::position):
1351 (WebCore::SVGSpotLightSource::direction):
1352 (WebCore::SVGSpotLightSource::specularExponent):
1353 (WebCore::SVGSpotLightSource::limitingConeAngle):
1354 * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm: Added.
1355 (WebCore::SVGFEBlend::getCIFilter):
1356 * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm: Added.
1357 (WebCore::SVGFEColorMatrix::getCIFilter):
1358 * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm: Added.
1359 (WebCore::genImageFromTable):
1360 (WebCore::setParametersForComponentFunc):
1361 (WebCore::filterForComponentFunc):
1362 (WebCore::getFilterForFunc):
1363 (WebCore::SVGFEComponentTransfer::getFunctionFilter):
1364 (WebCore::SVGFEComponentTransfer::getCIFilter):
1365 * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm: Added.
1366 (WebCore::SVGFEComposite::getCIFilter):
1367 * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm: Added.
1368 (WebCore::SVGFEDiffuseLighting::getCIFilter):
1369 * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm: Added.
1370 (WebCore::SVGFEDisplacementMap::getCIFilter):
1371 * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm: Added.
1372 (WebCore::SVGFEFlood::getCIFilter):
1373 * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm: Added.
1374 (WebCore::SVGFEGaussianBlur::getCIFilter):
1375 * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: Added.
1376 * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm: Added.
1377 (WebCore::getVectorForChannel):
1379 (WebCore::getPointLightVectors):
1380 (WebCore::getLightVectors):
1381 (WebCore::getNormalMap):
1382 * platform/graphics/svg/filters/cg/SVGFEImageCg.mm: Added.
1383 (WebCore::SVGFEImage::getCIFilter):
1384 * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm: Added.
1385 (WebCore::SVGFEMerge::getCIFilter):
1386 * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm: Added.
1387 (WebCore::SVGFEOffset::getCIFilter):
1388 * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm: Added.
1389 (WebCore::SVGFESpecularLighting::getCIFilter):
1390 * platform/graphics/svg/filters/cg/SVGFETileCg.mm: Added.
1391 (WebCore::SVGFETile::getCIFilter):
1392 * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm: Added.
1393 (WebCore::SVGFilterEffect::getCIFilter):
1394 * rendering/RenderPath.cpp:
1395 (WebCore::RenderPath::getAbsoluteRepaintRect):
1396 (WebCore::RenderPath::paint):
1397 * rendering/RenderSVGContainer.cpp:
1398 (WebCore::RenderSVGContainer::paint):
1399 (WebCore::RenderSVGContainer::getAbsoluteRepaintRect):
1400 * rendering/RenderSVGImage.cpp:
1401 (WebCore::RenderSVGImage::paint):
1402 (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
1403 * rendering/SVGInlineFlowBox.cpp:
1404 (WebCore::paintSVGInlineFlow):
1406 2006-11-18 Rob Buis <buis@kde.org>
1410 http://bugs.webkit.org/show_bug.cgi?id=11321
1411 Element with :target pseudo-class still matched after fragment identifier change
1413 Make sure the page does a style recalculation and possible rendering
1414 when navigating back from a page with an anchor to a page without
1417 * loader/FrameLoader.cpp:
1418 (WebCore::FrameLoader::gotoAnchor):
1420 2006-11-18 Don Gibson <dgibson77@gmail.com>
1422 Reviewed by Sam Weinig.
1424 http://bugs.webkit.org/show_bug.cgi?id=11634:
1425 Fix segfault on startup for Windows build. Also fix segfault when
1427 Clean up some of the style of the patch that landed in r17816.
1429 * WebCore.vcproj/WebCore/WebCore.vcproj:
1430 * bridge/win/ChromeClientWin.h:
1431 (WebCore::ChromeClientWin::~ChromeClientWin):
1432 (WebCore::ChromeClientWin::ref):
1433 (WebCore::ChromeClientWin::deref):
1434 * bridge/win/ContextMenuClientWin.h:
1435 (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
1436 (WebCore::ContextMenuClientWin::ref):
1437 (WebCore::ContextMenuClientWin::deref):
1438 * bridge/win/EditorClientWin.h:
1439 (WebCore::EditorClientWin::~EditorClientWin):
1440 (WebCore::EditorClientWin::ref):
1441 (WebCore::EditorClientWin::deref):
1442 * bridge/win/FrameWin.cpp:
1443 (WebCore::FrameWin::FrameWin):
1444 * bridge/win/FrameWin.h:
1446 * loader/win/FrameLoaderClientWin.h: Added.
1447 (WebCore::FrameLoaderClientWin::~FrameLoaderClientWin):
1448 (WebCore::FrameLoaderClientWin::ref):
1449 (WebCore::FrameLoaderClientWin::deref):
1450 * platform/win/TemporaryLinkStubs.cpp:
1451 (WebCore::ChromeClientWin::createWindow):
1452 (WebCore::ChromeClientWin::createModalDialog):
1453 (WebCore::EditorClientWin::selectWordBeforeMenuEvent):
1454 (WebCore::EditorClientWin::isEditable):
1455 (WebCore::EditorClientWin::shouldBeginEditing):
1456 (WebCore::EditorClientWin::shouldEndEditing):
1457 (WebCore::EditorClientWin::shouldApplyStyle):
1458 (WebCore::EditorClientWin::didBeginEditing):
1459 (WebCore::EditorClientWin::respondToChangedContents):
1460 (WebCore::EditorClientWin::didEndEditing):
1461 (WebCore::EditorClientWin::registerCommandForUndo):
1462 (WebCore::EditorClientWin::registerCommandForRedo):
1463 (WebCore::EditorClientWin::clearUndoRedoOperations):
1464 (WebCore::EditorClientWin::canUndo):
1465 (WebCore::EditorClientWin::canRedo):
1466 (WebCore::EditorClientWin::undo):
1467 (WebCore::EditorClientWin::redo):
1468 (WebCore::FrameLoader::createFrame):
1469 (WebCore::FrameLoader::createPlugin):
1470 (WebCore::FrameLoaderClientWin::hasWebView):
1471 (WebCore::FrameLoaderClientWin::hasFrameView):
1472 (WebCore::FrameLoaderClientWin::hasBackForwardList):
1473 (WebCore::FrameLoaderClientWin::resetBackForwardList):
1474 (WebCore::FrameLoaderClientWin::provisionalItemIsTarget):
1475 (WebCore::FrameLoaderClientWin::loadProvisionalItemFromPageCache):
1476 (WebCore::FrameLoaderClientWin::invalidateCurrentItemPageCache):
1477 (WebCore::FrameLoaderClientWin::privateBrowsingEnabled):
1478 (WebCore::FrameLoaderClientWin::makeDocumentView):
1479 (WebCore::FrameLoaderClientWin::makeRepresentation):
1480 (WebCore::FrameLoaderClientWin::forceLayout):
1481 (WebCore::FrameLoaderClientWin::forceLayoutForNonHTML):
1482 (WebCore::FrameLoaderClientWin::updateHistoryForCommit):
1483 (WebCore::FrameLoaderClientWin::updateHistoryForBackForwardNavigation):
1484 (WebCore::FrameLoaderClientWin::updateHistoryForReload):
1485 (WebCore::FrameLoaderClientWin::updateHistoryForStandardLoad):
1486 (WebCore::FrameLoaderClientWin::updateHistoryForInternalLoad):
1487 (WebCore::FrameLoaderClientWin::updateHistoryAfterClientRedirect):
1488 (WebCore::FrameLoaderClientWin::setCopiesOnScroll):
1489 (WebCore::FrameLoaderClientWin::tokenForLoadErrorReset):
1490 (WebCore::FrameLoaderClientWin::resetAfterLoadError):
1491 (WebCore::FrameLoaderClientWin::doNotResetAfterLoadError):
1492 (WebCore::FrameLoaderClientWin::willCloseDocument):
1493 (WebCore::FrameLoaderClientWin::detachedFromParent1):
1494 (WebCore::FrameLoaderClientWin::detachedFromParent2):
1495 (WebCore::FrameLoaderClientWin::detachedFromParent3):
1496 (WebCore::FrameLoaderClientWin::detachedFromParent4):
1497 (WebCore::FrameLoaderClientWin::loadedFromPageCache):
1498 (WebCore::FrameLoaderClientWin::dispatchDidHandleOnloadEvents):
1499 (WebCore::FrameLoaderClientWin::dispatchDidReceiveServerRedirectForProvisionalLoad):
1500 (WebCore::FrameLoaderClientWin::dispatchDidCancelClientRedirect):
1501 (WebCore::FrameLoaderClientWin::dispatchWillPerformClientRedirect):
1502 (WebCore::FrameLoaderClientWin::dispatchDidChangeLocationWithinPage):
1503 (WebCore::FrameLoaderClientWin::dispatchWillClose):
1504 (WebCore::FrameLoaderClientWin::dispatchDidReceiveIcon):
1505 (WebCore::FrameLoaderClientWin::dispatchDidStartProvisionalLoad):
1506 (WebCore::FrameLoaderClientWin::dispatchDidReceiveTitle):
1507 (WebCore::FrameLoaderClientWin::dispatchDidCommitLoad):
1508 (WebCore::FrameLoaderClientWin::dispatchDidFinishLoad):
1509 (WebCore::FrameLoaderClientWin::dispatchDidFirstLayout):
1510 (WebCore::FrameLoaderClientWin::dispatchShow):
1511 (WebCore::FrameLoaderClientWin::cancelPolicyCheck):
1512 (WebCore::FrameLoaderClientWin::dispatchWillSubmitForm):
1513 (WebCore::FrameLoaderClientWin::dispatchDidLoadMainResource):
1514 (WebCore::FrameLoaderClientWin::clearLoadingFromPageCache):
1515 (WebCore::FrameLoaderClientWin::isLoadingFromPageCache):
1516 (WebCore::FrameLoaderClientWin::revertToProvisionalState):
1517 (WebCore::FrameLoaderClientWin::clearUnarchivingState):
1518 (WebCore::FrameLoaderClientWin::progressStarted):
1519 (WebCore::FrameLoaderClientWin::progressCompleted):
1520 (WebCore::FrameLoaderClientWin::setMainFrameDocumentReady):
1521 (WebCore::FrameLoaderClientWin::willChangeTitle):
1522 (WebCore::FrameLoaderClientWin::didChangeTitle):
1523 (WebCore::FrameLoaderClientWin::finishedLoading):
1524 (WebCore::FrameLoaderClientWin::finalSetupForReplace):
1525 (WebCore::FrameLoaderClientWin::setDefersLoading):
1526 (WebCore::FrameLoaderClientWin::isArchiveLoadPending):
1527 (WebCore::FrameLoaderClientWin::cancelPendingArchiveLoad):
1528 (WebCore::FrameLoaderClientWin::clearArchivedResources):
1529 (WebCore::FrameLoaderClientWin::canShowMIMEType):
1530 (WebCore::FrameLoaderClientWin::representationExistsForURLScheme):
1531 (WebCore::FrameLoaderClientWin::generatedMIMETypeForURLScheme):
1532 (WebCore::FrameLoaderClientWin::frameLoadCompleted):
1533 (WebCore::FrameLoaderClientWin::restoreScrollPositionAndViewState):
1534 (WebCore::FrameLoaderClientWin::provisionalLoadStarted):
1535 (WebCore::FrameLoaderClientWin::shouldTreatURLAsSameAsCurrent):
1536 (WebCore::FrameLoaderClientWin::addHistoryItemForFragmentScroll):
1537 (WebCore::FrameLoaderClientWin::didFinishLoad):
1538 (WebCore::FrameLoaderClientWin::prepareForDataSourceReplacement):
1539 (WebCore::FrameLoaderClientWin::setTitle):
1540 (WebCore::FrameLoaderClientWin::userAgent):
1542 2006-11-18 Alexey Proskuryakov <ap@webkit.org>
1544 Reviewed by Rob (yay!).
1546 http://bugs.webkit.org/show_bug.cgi?id=11640
1547 XMLHttpRequest produces undefined:undefined HTTP authentication
1549 * bindings/js/JSXMLHttpRequest.cpp:
1550 (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
1551 Treat undefined credentials as missing ones.
1553 2006-11-17 Lars Naesbye Christensen <larsnaesbye@stud.ku.dk>
1557 http://bugs.webkit.org/show_bug.cgi?id=11638
1558 [CSS 2.1+3] add support for alias, progress, no-drop and not-allowed cursor styles
1560 * Resources/aliasCursor.png: Added.
1561 * Resources/noDropCursor.png: Added.
1562 * Resources/progressCursor.png: Added.
1563 * WebCore.xcodeproj/project.pbxproj:
1564 * css/CSSComputedStyleDeclaration.cpp:
1565 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1566 * css/CSSValueKeywords.in:
1567 * manual-tests/cursor.html:
1568 * page/EventHandler.cpp:
1569 (WebCore::selectCursor):
1570 * platform/Cursor.h:
1571 * platform/mac/CursorMac.mm:
1572 (WebCore::handCursor):
1573 (WebCore::aliasCursor):
1574 (WebCore::progressCursor):
1575 (WebCore::noDropCursor):
1576 * rendering/RenderStyle.h:
1579 2006-11-18 Steve Falkenburg <sfalken@apple.com>
1583 Properly adjust CFAbsoluteTime to time_t to fix date calculations.
1585 Compare lastModified w/ MAX_TIME_T when setting last modified date
1586 instead of comparing expiration against MAX_TIME_T.
1588 * platform/network/cf/ResourceResponseCFNet.cpp:
1589 (WebCore::getResourceResponse): Add kCFAbsoluteTimeIntervalSince1970 in assignment
1591 2006-11-17 Anders Carlsson <acarlsson@apple.com>
1595 More conversions from DeprecatedValueList to Vector and HashSet.
1597 * css/CSSValueList.cpp:
1598 (WebCore::CSSValueList::~CSSValueList):
1599 (WebCore::CSSValueList::append):
1600 (WebCore::CSSValueList::cssText):
1601 * css/CSSValueList.h:
1602 (WebCore::CSSValueList::length):
1603 (WebCore::CSSValueList::item):
1605 (WebCore::Document::attachNodeIterator):
1606 (WebCore::Document::notifyBeforeNodeRemoval):
1608 * ksvg2/svg/SVGGradientElement.cpp:
1609 (WebCore::SVGGradientElement::notifyAttributeChange):
1610 * ksvg2/svg/SVGPatternElement.cpp:
1611 (WebCore::SVGPatternElement::notifyClientsToRepaint):
1612 * platform/graphics/svg/SVGResource.cpp:
1613 (WebCore::SVGResource::invalidate):
1614 (WebCore::SVGResource::addClient):
1615 * platform/graphics/svg/SVGResource.h:
1616 * rendering/RenderBlock.h:
1618 === Safari-521.31 ===
1620 2006-11-17 Timothy Hatcher <timothy@apple.com>
1622 Reviewed by Harrison.
1624 <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
1626 Disable the delete button controller when cloning nodes, Mail does this before saving a draft.
1628 * dom/ContainerNode.cpp:
1629 (WebCore::ContainerNode::cloneChildNodes):
1630 * editing/markup.cpp:
1631 (WebCore::createFragmentFromNodes):
1633 2006-11-17 Justin Garcia <justin.garcia@apple.com>
1635 Reviewed by harrison
1637 <rdar://problem/4237467> REGRESSION: Pasting word from quoted text quotes the destination
1638 <rdar://problem/4017358> quoted text is wrong color, when pasted as quotation
1640 * editing/ReplaceSelectionCommand.cpp:
1641 (WebCore::isMailPasteAsQuotationNode): Added. Checks for the node
1642 that Mail wraps around an incoming fragment when it wants it to be pasted
1643 with quoting (no merging should be done).
1644 (WebCore::ReplaceSelectionCommand::removeNodePreservingChildren): Added
1645 this virtual method in order to adjust the nodes that ReplaceSelectionCommand
1647 (WebCore::ReplaceSelectionCommand::shouldMerge): Don't merge from content
1648 inside a Mail Paste as Quotation node. Allow merging from Mail blockquotes.
1649 (WebCore::ReplaceSelectionCommand::removeRedundantStyles): When pasting into
1650 a Mail blockquote, we ignore the parts of the source document's default style
1651 that are overriden by styles from the Mail blockquote. This is necessary in order
1652 for text that's black (because black is the source document's default font color)
1653 to appear blue/green/whatever when it's pasted into a Mail blockquote.
1654 (WebCore::ReplaceSelectionCommand::handlePasteAsQuotationNode): Turn an inserted
1655 Mail Paste as Quotation node into a normal Mail blockquote. This will prevent
1656 a copied blockquote that was inserted into the document using Paste as Quotation
1657 from triggering Paste as Quotation behavior when it's pasted.
1658 (WebCore::ReplaceSelectionCommand::doApply): Call the new/altered methods.
1659 * editing/ReplaceSelectionCommand.h:
1660 * editing/markup.cpp:
1661 (WebCore::styleFromMatchedRulesForElement): Put this code into a subroutine.
1662 (WebCore::removeEnclosingMailBlockquoteStyle): Added.
1663 (WebCore::startMarkup): When wrapping text nodes in style spans, leave out
1664 styles that Mail blockquotes contribute, so that Mail blockquote styles can
1665 be differentiated from styles that the user has applied. When creating markup
1666 for elements, do the same thing.
1667 (WebCore::createMarkup): Call the new subroutine.
1669 2006-11-17 Rob Buis <buis@kde.org>
1673 http://bugs.webkit.org/show_bug.cgi?id=11635
1674 Bug 11635: Fix potential issue with non-xslt build
1676 Fix the issue and do style guideline corrections.
1678 * dom/ProcessingInstruction.cpp:
1679 (WebCore::ProcessingInstruction::checkStyleSheet):
1680 (WebCore::ProcessingInstruction::sheetLoaded):
1681 (WebCore::ProcessingInstruction::setCSSStyleSheet):
1682 (WebCore::ProcessingInstruction::setXSLStyleSheet):
1683 (WebCore::ProcessingInstruction::parseStyleSheet):
1685 2006-11-17 Timothy Hatcher <timothy@apple.com>
1687 Reviewed by Harrison.
1689 <rdar://problem/4843131> text entry is slow inside element that has the deletion rectangle around it
1691 Only disable/enable the delete button inside applyCommand() to prevent slowing down typing.
1692 This reintroduces <rdar://problem/4796657> table deletion outline does not always follow the table size as editing occurs inside
1694 * editing/EditCommand.cpp:
1695 (WebCore::EditCommand::apply):
1696 (WebCore::EditCommand::unapply):
1697 (WebCore::EditCommand::reapply):
1698 (WebCore::applyCommand):
1699 * editing/EditCommand.h:
1701 2006-11-17 Zack Rusin <zack@kde.org>
1703 Reviewed by Mitz. Landed by Niko.
1705 Making platform Qt/KDE compile and work after
1706 the latest api changes. Reported as
1707 http://bugs.webkit.org/show_bug.cgi?id=11617
1710 * page/qt/EventHandlerQt.cpp: Added.
1711 (WebCore::isKeyboardOptionTab):
1712 (WebCore::EventHandler::tabsToLinks):
1713 (WebCore::EventHandler::tabsToAllControls):
1714 (WebCore::EventHandler::freeClipboard):
1715 (WebCore::EventHandler::focusDocumentView):
1716 (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
1717 (WebCore::EventHandler::passMouseDownEventToWidget):
1718 (WebCore::EventHandler::lastEventIsMouseUp):
1719 (WebCore::EventHandler::dragHysteresisExceeded):
1720 (WebCore::EventHandler::handleDrag):
1721 (WebCore::EventHandler::handleMouseUp):
1722 (WebCore::EventHandler::passSubframeEventToSubframe):
1723 (WebCore::EventHandler::passWheelEventToWidget):
1724 (WebCore::EventHandler::shouldDragAutoNode):
1725 (WebCore::EventHandler::dispatchDragSrcEvent):
1726 (WebCore::EventHandler::passMousePressEventToSubframe):
1727 (WebCore::EventHandler::passMouseMoveEventToSubframe):
1728 (WebCore::EventHandler::passMouseReleaseEventToSubframe):
1729 (WebCore::EventHandler::passWheelEventToSubframe):
1730 (WebCore::EventHandler::passMousePressEventToScrollbar):
1731 * platform/ContextMenu.h:
1732 * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
1733 (WebCore::SVGResourceClipper::applyClip):
1734 * platform/qt/ContextMenuClientQt.cpp: Added.
1735 (WebCore::ContextMenuClientQt::addCustomContextMenuItems):
1736 (WebCore::ContextMenuClientQt::ref):
1737 (WebCore::ContextMenuClientQt::deref):
1738 * platform/qt/ContextMenuClientQt.h: Added.
1739 * platform/qt/ContextMenuQt.cpp: Added.
1740 (WebCore::ContextMenu::appendItem):
1741 (WebCore::ContextMenu::itemCount):
1742 (WebCore::ContextMenu::insertItem):
1743 (WebCore::ContextMenu::setPlatformMenuDescription):
1744 * platform/qt/EditorClientQt.cpp:
1745 (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
1746 (WebCore::EditorClientQt::isEditable):
1747 (WebCore::EditorClientQt::registerCommandForUndo):
1748 (WebCore::EditorClientQt::registerCommandForRedo):
1749 (WebCore::EditorClientQt::clearUndoRedoOperations):
1750 (WebCore::EditorClientQt::canUndo):
1751 (WebCore::EditorClientQt::canRedo):
1752 (WebCore::EditorClientQt::undo):
1753 (WebCore::EditorClientQt::redo):
1754 * platform/qt/EditorClientQt.h:
1755 * platform/qt/ScrollViewCanvasQt.cpp:
1756 (WebCore::ScrollViewCanvasQt::mousePressEvent):
1757 * platform/qt/TemporaryLinkStubs.cpp:
1758 (FrameView::updateBorder):
1760 2006-11-17 David Harrison <harrison@apple.com>
1764 <rdar://problem/4799899> Frame::revealSelection() only scrolls the startContainer's layer
1766 Replace an assert with a fixme that refers to this bug.
1769 (WebCore::Frame::revealSelection):
1771 2006-11-16 Rob Buis <buis@kde.org>
1773 Reviewed and landed by Brady
1775 Fixes http://bugs.webkit.org/show_bug.cgi?id=11590 -
1776 REGRESSION (r17726-r17742): Wikipedia page intermittently loads but doesn't render
1777 Fix the regression by setting m_loadCompleted correctly.
1779 * css/CSSStyleSheet.cpp:
1780 (WebCore::CSSStyleSheet::checkLoaded):
1782 (WebCore::Node::sheetLoaded):
1783 * dom/ProcessingInstruction.cpp:
1784 (WebCore::ProcessingInstruction::sheetLoaded):
1785 * dom/ProcessingInstruction.h:
1786 * html/HTMLLinkElement.cpp:
1787 (WebCore::HTMLLinkElement::sheetLoaded):
1788 * html/HTMLLinkElement.h:
1789 * html/HTMLStyleElement.cpp:
1790 (WebCore::HTMLStyleElement::sheetLoaded):
1791 * html/HTMLStyleElement.h:
1793 2006-11-16 David Harrison <harrison@apple.com>
1797 <rdar://problem/4056100> REGRESSION (Tiger): Deleting top part of reply email leaves fails to clear text at end of message
1799 The problem was triggered by the fact that the parent div was changing both
1800 in position and in height. The renderer normally bifurcates its logic for
1801 x-position changes vs height changes.
1803 Call repaintDuringLayoutIfMoved() with old rect (incl. width and height) instead of just the old position.
1806 * manual-tests/delete-into-nested-block.html
1808 * rendering/RenderBlock.cpp:
1809 (WebCore::RenderBlock::layoutBlockChildren):
1810 (WebCore::RenderBlock::positionNewFloats):
1811 * rendering/RenderBox.cpp:
1812 (WebCore::RenderBox::repaintDuringLayoutIfMoved):
1813 * rendering/RenderBox.h:
1814 * rendering/RenderFlexibleBox.cpp:
1815 (WebCore::RenderFlexibleBox::placeChild):
1816 * rendering/RenderObject.cpp:
1817 (WebCore::RenderObject::repaintDuringLayoutIfMoved):
1818 * rendering/RenderObject.h:
1819 * rendering/RenderTableSection.cpp:
1820 (WebCore::RenderTableSection::layoutRows):
1822 2006-11-16 Adele Peterson <adele@apple.com>
1826 Slider cleanup. Let the theme set the size of the slider thumb.
1828 * rendering/RenderSlider.cpp:
1829 (WebCore::RenderSlider::setStyle): Moving the thumb's appearance adjustment to createThumbStyle.
1830 (WebCore::RenderSlider::createThumbStyle):
1831 (WebCore::RenderSlider::layout): Let the theme set the size of the thumb.
1832 * rendering/RenderTheme.cpp: (WebCore::RenderTheme::adjustSliderThumbSize): Added.
1833 * rendering/RenderTheme.h: ditto.
1834 * rendering/RenderThemeMac.h: ditto.
1835 * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::adjustSliderThumbSize): ditto.
1837 2006-11-15 Anders Carlsson <acarlsson@apple.com>
1841 Use Vector instead of DeprecatedValueList in a few places.
1843 * bindings/js/kjs_dom.cpp:
1844 (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
1845 (KJS::DOMNamedNodesCollection::lengthGetter):
1846 (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
1847 * bindings/js/kjs_dom.h:
1848 * bindings/js/kjs_html.cpp:
1849 (KJS::JSHTMLDocument::namedItemGetter):
1850 (KJS::JSHTMLElement::classInfo):
1851 (KJS::JSHTMLElement::accessors):
1852 (KJS::JSHTMLCollection::getNamedItems):
1853 * bindings/objc/DOM.mm:
1854 * bridge/mac/FrameMac.mm:
1855 (WebCore::FrameMac::dashboardRegionsDictionary):
1856 * css/CSSStyleDeclaration.cpp:
1857 (WebCore::CSSStyleDeclaration::diff):
1858 * html/HTMLCollection.cpp:
1859 (WebCore::HTMLCollection::namedItems):
1860 * html/HTMLCollection.h:
1861 * kcanvas/KCanvasFilters.cpp:
1862 (WebCore::KCanvasFilter::externalRepresentation):
1863 * kcanvas/KCanvasFilters.h:
1864 (WebCore::KCanvasFEColorMatrix::values):
1865 (WebCore::KCanvasFEColorMatrix::setValues):
1866 (WebCore::KCanvasFEConvolveMatrix::kernel):
1867 (WebCore::KCanvasFEConvolveMatrix::setKernel):
1868 * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
1869 (WebCore::KCanvasFilterQuartz::getCIFilterStack):
1870 (WebCore::KCanvasFEColorMatrixQuartz::getCIFilter):
1871 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1872 (WebCore::SVGFEColorMatrixElement::filterEffect):
1873 * platform/graphics/svg/SVGResourceClipper.h:
1874 * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
1875 (WebCore::SVGResourceClipper::applyClip):
1876 * platform/network/FormData.h:
1877 * rendering/RenderPath.h:
1878 * rendering/SVGRenderTreeAsText.h:
1879 (WebCore::operator<<):
1881 2006-11-16 Anders Carlsson <acarlsson@apple.com>
1885 * editing/markup.cpp:
1886 (WebCore::createMarkup):
1887 Add null-checks for the frame, it might not exist for all documents.
1889 2006-11-16 Don Gibson <dgibson77@gmail.com>
1891 Reviewed and landed by ap.
1893 http://bugs.webkit.org/show_bug.cgi?id=11509:
1894 Windows build bustage.
1896 Also reorganizes WebCore.vcproj to add files whose absence wasn't
1897 causing compile errors, but which should have been there, and to
1898 make the include directory ordering (and contents) sane.
1899 Also reorganizes TemporaryLinkStubs.cpp to put headers and
1900 function groups in alphabetical order, and ensure that all functions
1901 in the file call notImplemented().
1903 * WebCore.vcproj/WebCore/WebCore.vcproj:
1904 * bridge/win/ChromeClientWin.h:
1905 (WebCore::ChromeClientWin::ref):
1906 (WebCore::ChromeClientWin::deref):
1907 * bridge/win/ContextMenuClientWin.h: Added.
1908 (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
1909 (WebCore::ContextMenuClientWin::ref):
1910 (WebCore::ContextMenuClientWin::deref):
1911 * bridge/win/EditorClientWin.h:
1912 * bridge/win/FrameWin.cpp:
1913 (WebCore::FrameWin::~FrameWin):
1914 (WebCore::FrameWin::keyPress):
1915 * bridge/win/FrameWin.h:
1916 * bridge/win/PageWin.cpp: Removed.
1917 * editing/EditCommand.h:
1918 * loader/FormState.h:
1919 * loader/FrameLoader.h:
1920 * page/EventHandler.cpp:
1921 * platform/MimeTypeRegistry.cpp:
1922 (WebCore::initialiseSupportedImageMIMETypes):
1923 * platform/graphics/win/ImageWin.cpp:
1924 * platform/network/ResourceError.cpp:
1925 * platform/network/ResourceHandleInternal.h:
1926 * platform/network/win/ResourceHandleWin.cpp:
1927 (WebCore::ResourceHandle::onHandleCreated):
1928 (WebCore::ResourceHandle::onRequestRedirected):
1929 (WebCore::ResourceHandle::start):
1930 (WebCore::ResourceHandle::cancel):
1931 * platform/win/ScreenWin.cpp:
1932 (WebCore::monitorInfo):
1933 (WebCore::screenRect):
1934 (WebCore::screenAvailableRect):
1935 (WebCore::screenDepth):
1936 * platform/win/SoundWin.cpp: Added.
1937 (WebCore::systemBeep):
1938 * platform/win/TemporaryLinkStubs.cpp:
1939 (WebCore::CacheObjectExpiresTime):
1940 (WebCore::CheckCacheObjectStatus):
1941 (WebCore::CheckIfReloading):
1942 (WebCore::defaultLanguage):
1943 (WebCore::fileButtonChooseFileLabel):
1944 (WebCore::fileButtonNoFileSelectedLabel):
1945 (WebCore::findNextSentenceFromIndex):
1946 (WebCore::findNextWordFromIndex):
1947 (WebCore::findSentenceBoundary):
1948 (WebCore::findWordBoundary):
1949 (WebCore::focusRingColor):
1950 (WebCore::historyContains):
1951 (WebCore::inputElementAltText):
1952 (WebCore::IsResponseURLEqualToURL):
1953 (WebCore::cellCursor):
1954 (WebCore::contextMenuCursor):
1955 (WebCore::moveCursor):
1956 (WebCore::verticalTextCursor):
1957 (WebCore::refreshPlugins):
1958 (WebCore::resetButtonDefaultLabel):
1959 (WebCore::ResponseIsMultipart):
1960 (WebCore::ResponseMIMEType):
1961 (WebCore::ResponseURL):
1962 (WebCore::screenDepthPerComponent):
1963 (WebCore::screenIsMonochrome):
1964 (WebCore::searchableIndexIntroduction):
1965 (WebCore::ServeSynchronousRequest):
1966 (WebCore::setFocusRingColorChangeFunction):
1967 (WebCore::submitButtonDefaultLabel):
1968 (WebCore::CachedResource::setPlatformResponse):
1969 (WebCore::CachedResource::setAllData):
1970 (WebCore::ChromeClientWin::setWindowRect):
1971 (WebCore::ChromeClientWin::windowRect):
1972 (WebCore::ChromeClientWin::pageRect):
1973 (WebCore::ChromeClientWin::scaleFactor):
1974 (WebCore::ChromeClientWin::focus):
1975 (WebCore::ChromeClientWin::unfocus):
1976 (WebCore::ChromeClientWin::createWindow):
1977 (WebCore::ChromeClientWin::createModalDialog):
1978 (WebCore::ChromeClientWin::show):
1979 (WebCore::ChromeClientWin::canRunModal):
1980 (WebCore::ChromeClientWin::runModal):
1981 (WebCore::ChromeClientWin::setToolbarsVisible):
1982 (WebCore::ChromeClientWin::toolbarsVisible):
1983 (WebCore::ChromeClientWin::setStatusbarVisible):
1984 (WebCore::ChromeClientWin::statusbarVisible):
1985 (WebCore::ChromeClientWin::setScrollbarsVisible):
1986 (WebCore::ChromeClientWin::scrollbarsVisible):
1987 (WebCore::ChromeClientWin::setMenubarVisible):
1988 (WebCore::ChromeClientWin::menubarVisible):
1989 (WebCore::ChromeClientWin::setResizable):
1990 (WebCore::ContextMenu::appendItem):
1991 (WebCore::ContextMenuClientWin::addCustomContextMenuItems):
1992 (WebCore::DocumentLoader::setFrame):
1993 (WebCore::DocumentLoader::frameLoader):
1994 (WebCore::DocumentLoader::URL):
1995 (WebCore::DocumentLoader::isStopping):
1996 (WebCore::DocumentLoader::stopLoading):
1997 (WebCore::DocumentLoader::setLoading):
1998 (WebCore::DocumentLoader::updateLoading):
1999 (WebCore::DocumentLoader::setupForReplaceByMIMEType):
2000 (WebCore::DocumentLoader::isLoadingInAPISense):
2001 (WebCore::DocumentLoader::stopRecordingResponses):
2002 (WebCore::EditorClientWin::shouldDeleteRange):
2003 (WebCore::EditorClientWin::shouldShowDeleteInterface):
2004 (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
2005 (WebCore::EditorClientWin::isGrammarCheckingEnabled):
2006 (WebCore::EditorClientWin::spellCheckerDocumentTag):
2007 (WebCore::EventHandler::focusDocumentView):
2008 (WebCore::EventHandler::handleDrag):
2009 (WebCore::EventHandler::handleMouseUp):
2010 (WebCore::EventHandler::lastEventIsMouseUp):
2011 (WebCore::EventHandler::passMousePressEventToSubframe):
2012 (WebCore::EventHandler::passMouseMoveEventToSubframe):
2013 (WebCore::EventHandler::passMouseReleaseEventToSubframe):
2014 (WebCore::EventHandler::passWheelEventToSubframe):
2015 (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
2016 (WebCore::EventHandler::passMousePressEventToScrollbar):
2017 (WebCore::EventHandler::shouldDragAutoNode):
2018 (WebCore::EventHandler::tabsToAllControls):
2019 (WebCore::EventHandler::tabsToLinks):
2020 (WebCore::Frame::setNeedsReapplyStyles):
2021 (WebCore::FrameLoader::didFirstLayout):
2022 (WebCore::FrameLoader::overrideMediaType):
2023 (WebCore::FrameLoader::createJavaAppletWidget):
2024 (WebCore::FrameLoader::redirectDataToPlugin):
2025 (WebCore::FrameLoader::getHistoryLength):
2026 (WebCore::FrameLoader::setTitle):
2027 (WebCore::FrameLoader::referrer):
2028 (WebCore::FrameLoader::saveDocumentState):
2029 (WebCore::FrameLoader::restoreDocumentState):
2030 (WebCore::FrameLoader::goBackOrForward):
2031 (WebCore::FrameLoader::historyURL):
2032 (WebCore::FrameLoader::urlSelected):
2033 (WebCore::FrameLoader::createFrame):
2034 (WebCore::FrameLoader::submitForm):
2035 (WebCore::FrameLoader::partClearedInBegin):
2036 (WebCore::FrameLoader::originalRequestURL):
2037 (WebCore::FrameLoader::canGoBackOrForward):
2038 (WebCore::FrameLoader::objectContentType):
2039 (WebCore::FrameLoader::createPlugin):
2040 (WebCore::FrameLoader::detachFromParent):
2041 (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
2042 (WebCore::FrameView::updateBorder):
2043 (WebCore::FrameWin::bindingRootObject):
2044 (WebCore::FrameWin::canPaste):
2045 (WebCore::FrameWin::issuePasteAndMatchStyleCommand):
2046 (WebCore::FrameWin::markedTextRange):
2047 (WebCore::FrameWin::passSubframeEventToSubframe):
2048 (WebCore::FrameWin::lastEventIsMouseUp):
2049 (WebCore::FrameWin::addMessageToConsole):
2050 (WebCore::FrameWin::shouldChangeSelection):
2051 (WebCore::FrameWin::respondToChangedSelection):
2052 (WebCore::FrameWin::clearUndoRedoOperations):
2053 (WebCore::FrameWin::markMisspellingsInAdjacentWords):
2054 (WebCore::FrameWin::respondToChangedContents):
2055 (WebCore::GraphicsContext::addRoundedRectClip):
2056 (WebCore::GraphicsContext::setShadow):
2057 (WebCore::GraphicsContext::clearShadow):
2058 (WebCore::GraphicsContext::beginTransparencyLayer):
2059 (WebCore::GraphicsContext::endTransparencyLayer):
2060 (WebCore::GraphicsContext::clearRect):
2061 (WebCore::GraphicsContext::strokeRect):
2062 (WebCore::GraphicsContext::setLineWidth):
2063 (WebCore::GraphicsContext::setLineCap):
2064 (WebCore::GraphicsContext::setLineJoin):
2065 (WebCore::GraphicsContext::setMiterLimit):
2066 (WebCore::GraphicsContext::setAlpha):
2067 (WebCore::GraphicsContext::setCompositeOperation):
2068 (WebCore::GraphicsContext::clip):
2069 (WebCore::GraphicsContext::rotate):
2070 (WebCore::GraphicsContext::scale):
2071 (WebCore::Icon::Icon):
2072 (WebCore::Icon::~Icon):
2073 (WebCore::Icon::newIconForFile):
2074 (WebCore::Icon::paint):
2075 (WebCore::IconDatabase::isIconExpiredForIconURL):
2076 (WebCore::IconDatabase::hasEntryForIconURL):
2077 (WebCore::IconDatabase::sharedIconDatabase):
2078 (WebCore::IconDatabase::setIconURLForPageURL):
2079 (WebCore::IconDatabase::setIconDataForIconURL):
2080 (WebCore::Image::drawTiled):
2081 (WebCore::Image::getHBITMAP):
2082 (WebCore::Path::Path):
2083 (WebCore::Path::~Path):
2084 (WebCore::Path::contains):
2085 (WebCore::Path::translate):
2086 (WebCore::Path::boundingRect):
2087 (WebCore::Path::operator=):
2088 (WebCore::Path::clear):
2089 (WebCore::Path::moveTo):
2090 (WebCore::Path::addLineTo):
2091 (WebCore::Path::addQuadCurveTo):
2092 (WebCore::Path::addBezierCurveTo):
2093 (WebCore::Path::addArcTo):
2094 (WebCore::Path::closeSubpath):
2095 (WebCore::Path::addArc):
2096 (WebCore::Path::addRect):
2097 (WebCore::Path::addEllipse):
2098 (WebCore::Path::transform):
2099 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2100 (WebCore::PlatformScrollbar::PlatformScrollbar):
2101 (WebCore::PlatformScrollbar::~PlatformScrollbar):
2102 (WebCore::PlatformScrollbar::width):
2103 (WebCore::PlatformScrollbar::height):
2104 (WebCore::PlatformScrollbar::setEnabled):
2105 (WebCore::PlatformScrollbar::paint):
2106 (WebCore::PlatformScrollbar::updateThumbPosition):
2107 (WebCore::PlatformScrollbar::updateThumbProportion):
2108 (WebCore::PlatformScrollbar::setRect):
2109 (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
2110 (WebCore::PlugInInfoStore::pluginCount):
2111 (WebCore::PlugInInfoStore::supportsMIMEType):
2112 (WebCore::PolicyCheck::PolicyCheck):
2113 (WebCore::PolicyCheck::clear):
2114 (WebCore::PolicyCheck::clearRequest):
2115 (WebCore::PolicyCheck::call):
2116 (WebCore::RenderThemeWin::systemFont):
2117 (WebCore::RenderThemeWin::paintMenuList):
2118 (WebCore::RenderThemeWin::adjustMenuListStyle):
2119 (WebCore::ResourceLoader::cancel):
2120 (WebCore::ScrollView::addChild):
2121 (WebCore::ScrollView::removeChild):
2122 (WebCore::ScrollView::scrollPointRecursively):
2123 (WebCore::ScrollView::inWindow):
2124 (WebCore::ScrollView::paint):
2125 (WebCore::ScrollView::wheelEvent):
2126 (WebCore::ScrollView::themeChanged):
2127 (WebCore::ScrollView::convertChildToSelf):
2128 (WebCore::ScrollView::convertSelfToChild):
2129 (WebCore::ScrollView::geometryChanged):
2130 (WebCore::ScrollView::scrollbarUnderMouse):
2131 (WebCore::ScrollView::setFrameGeometry):
2132 (WebCore::ScrollView::windowResizerRect):
2133 (WebCore::ScrollView::resizerOverlapsContent):
2134 (WebCore::TextField::selectAll):
2135 (WebCore::TextField::addSearchResult):
2136 (WebCore::TextField::selectionStart):
2137 (WebCore::TextField::hasSelectedText):
2138 (WebCore::TextField::selectedText):
2139 (WebCore::TextField::setAutoSaveName):
2140 (WebCore::TextField::checksDescendantsForFocus):
2141 (WebCore::TextField::setSelection):
2142 (WebCore::TextField::setMaxResults):
2143 (WebCore::TextField::edited):
2144 (WebCore::TextField::focusPolicy):
2145 (WebCore::TextField::TextField):
2146 (WebCore::TextField::~TextField):
2147 (WebCore::TextField::setFont):
2148 (WebCore::TextField::setAlignment):
2149 (WebCore::TextField::setWritingDirection):
2150 (WebCore::TextField::maxLength):
2151 (WebCore::TextField::setMaxLength):
2152 (WebCore::TextField::text):
2153 (WebCore::TextField::setText):
2154 (WebCore::TextField::cursorPosition):
2155 (WebCore::TextField::setCursorPosition):
2156 (WebCore::TextField::setEdited):
2157 (WebCore::TextField::setReadOnly):
2158 (WebCore::TextField::setPlaceholderString):
2159 (WebCore::TextField::setColors):
2160 (WebCore::TextField::sizeForCharacterWidth):
2161 (WebCore::TextField::baselinePosition):
2162 (WebCore::TextField::setLiveSearch):
2163 (WebCore::Widget::enableFlushDrawing):
2164 (WebCore::Widget::isEnabled):
2165 (WebCore::Widget::focusPolicy):
2166 (WebCore::Widget::disableFlushDrawing):
2167 (WebCore::Widget::removeFromParent):
2168 (WebCore::Widget::lockDrawingFocus):
2169 (WebCore::Widget::unlockDrawingFocus):
2170 (WebCore::Widget::capturingMouse):
2171 (WebCore::Widget::setCapturingMouse):
2172 (WebCore::Widget::capturingTarget):
2173 (WebCore::Widget::capturingChild):
2174 (WebCore::Widget::setCapturingChild):
2175 (WebCore::Widget::convertChildToSelf):
2176 (WebCore::Widget::convertSelfToChild):
2177 (WebCore::Widget::setParent):
2178 (WebCore::Widget::parent):
2179 (WebCore::Widget::setEnabled):
2180 (WebCore::Widget::paint):
2181 (WebCore::Widget::setIsSelected):
2182 (WebCore::Widget::invalidate):
2183 (WebCore::Widget::invalidateRect):
2184 * platform/win/WidgetWin.cpp:
2185 (WebCore::Widget::clearFocus):
2187 2006-11-16 Timothy Hatcher <timothy@apple.com>
2191 <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
2193 * editing/markup.cpp:
2194 (WebCore::createMarkup): disable the delete button so it's elements are not serialized into the markup
2196 2006-11-16 George Staikos <staikos@kde.org>
2198 Rubberstamped by Maciej.
2200 Making the code valgrind clean.
2202 * rendering/RenderTableCell.cpp: initialize variable m_widthChanged
2203 (WebCore::RenderTableCell::RenderTableCell):
2204 * rendering/RenderTableCell.h: remove unused variable nWrap
2206 2006-11-16 David Harrison <harrison@apple.com>
2208 Reviewed by Darin and Tim.
2210 <rdar://problem/4799949> REGRESSION: Crash in FrameMac::eventMayStartDrag() by clicking on a page
2212 * page/mac/EventHandlerMac.mm:
2213 (WebCore::EventHandler::eventMayStartDrag):
2214 Add nil check of hitTest's result.innerNode().
2216 2006-11-16 Timothy Hatcher <timothy@apple.com>
2220 <rdar://problem/4836897> Deletion rectangle disappears when multiple list items are selected
2222 Consider the container of the selection range for deletion before asking enclosingNodeOfType().
2224 * editing/DeleteButtonController.cpp:
2225 (WebCore::enclosingDeletableElement):
2227 2006-11-16 Rob Buis <buis@kde.org>
2231 Removal of unused m_styleElement.
2234 (WebCore::Node::Node):
2235 (WebCore::Node::dump):
2237 (WebCore::Node::isLink): should be styleElement, a bug?
2239 2006-11-15 Adam Roben <aroben@apple.com>
2243 Rename the items in the ContextMenuAction enum so that they don't
2244 conflict with WebKit names.
2246 * WebCore.xcodeproj/project.pbxproj:
2247 * platform/ContextMenu.cpp:
2248 (WebCore::ContextMenu::populate):
2249 * platform/ContextMenu.h:
2251 (WebCore::ContextMenuItem::ContextMenuItem):
2253 2006-11-15 Adam Roben <aroben@apple.com>
2257 Change m_contextMenu to an OwnPtr.
2259 * WebCore.xcodeproj/project.pbxproj:
2260 * page/ContextMenuController.cpp:
2261 (WebCore::ContextMenuController::handleContextMenuEvent):
2262 * page/ContextMenuController.h:
2264 2006-11-15 Adam Roben <aroben@apple.com>
2268 Add new ContextMenuController and ContextMenuClient classes, and move
2269 context menu responsibilities from Chrome and ChromeClient to them.
2272 * WebCore.xcodeproj/project.pbxproj: Add new files to project, and
2273 alphabetize some others.
2274 * page/Chrome.cpp: Remove context menu-related code.
2275 * page/Chrome.h: Ditto.
2276 * page/ChromeClient.h:
2277 * page/ContextMenuClient.h: Added.
2278 * page/ContextMenuController.cpp: Added.
2279 (WebCore::ContextMenuController::ContextMenuController):
2280 (WebCore::ContextMenuController::~ContextMenuController):
2281 (WebCore::ContextMenuController::handleContextMenuEvent):
2282 (WebCore::ContextMenuController::contextMenuActionSelected):
2283 * page/ContextMenuController.h: Added.
2284 (WebCore::ContextMenuController::client):
2285 * page/Page.cpp: Every Page now has a ContextMenuController.
2286 (WebCore::Page::Page):
2287 * page/Page.h: Made m_dragCaretController and m_chrome objects instead
2288 of pointers to objects.
2289 (WebCore::Page::contextMenuController):
2290 * platform/ContextMenu.cpp:
2291 (WebCore::ContextMenu::populate): Removed the call to Chrome to ask the
2292 delegate to add its menu items, and moved the code from the static
2293 addDefaultItems function into this method.
2294 * platform/ContextMenu.h:
2295 (WebCore::ContextMenu::show): Added an empty method body since this
2296 method is now called from ContextMenuController (although no one calls
2297 into ContextMenuController yet, so it's OK for this to be empty).
2298 (WebCore::ContextMenu::hide): Ditto.
2300 2006-11-15 Anders Carlsson <acarlsson@apple.com>
2304 Add null checks on the node filter, they can be null if no filter was passed to the respective
2307 * bindings/js/JSNodeIteratorCustom.cpp:
2308 (WebCore::JSNodeIterator::mark):
2309 * bindings/js/JSTreeWalkerCustom.cpp:
2310 (WebCore::JSTreeWalker::mark):
2312 2006-11-15 Oliver Hunt <oliver@apple.com>
2316 Allow <embed> and <object> tags to include non-plugin
2317 content when plugins are disabled
2319 Fixes <rdar://problems/4839488>
2321 * html/HTMLEmbedElement.cpp:
2322 (WebCore::HTMLEmbedElement::rendererIsNeeded):
2323 * html/HTMLObjectElement.cpp:
2324 (WebCore::HTMLObjectElement::rendererIsNeeded):
2325 * loader/FrameLoader.cpp:
2326 (WebCore::FrameLoader::requestObject):
2328 2006-11-15 Adele Peterson <adele@apple.com>
2330 Build fix. Another type problem that I don't see locally.
2332 * rendering/RenderSlider.cpp: (WebCore::RenderSlider::setPositionFromValue):
2334 2006-11-15 Adele Peterson <adele@apple.com>
2338 Adding MathExtras header.
2340 * rendering/RenderSlider.cpp:
2342 2006-11-15 Timothy Hatcher <timothy@apple.com>
2344 Reviewed by Harrison.
2346 <rdar://problem/4832894> Crash deleting an element inside a list while deletion rectangle is visible (compareBoundaryPoints)
2348 * Disable and hide the deletion UI for each editing command. This prevents editing commands from being affected
2349 by the deletion UI elements we insert. The deletion UI is then shown after the editing commands are completely done.
2351 * Multiple calls to DeleteButtonController's disable() needed to be paired with the same number of enable() calls before
2352 the deletion UI is enabled again. This allows for nested editing commands to be called without thrashing the deletion UI.
2354 * Make sure the the renderers are currently reflecting the latest style changes, so call updateLayoutIgnorePendingStylesheets().
2356 * editing/DeleteButtonController.cpp:
2357 (WebCore::DeleteButtonController::DeleteButtonController):
2358 (WebCore::isDeletableElement):
2359 (WebCore::DeleteButtonController::respondToChangedSelection): check the enabled state
2360 (WebCore::DeleteButtonController::respondToChangedContents): check the enabled state
2361 (WebCore::DeleteButtonController::show): call isDeletableElement() to make sure the element is allowed
2362 (WebCore::DeleteButtonController::deleteTarget): check the enabled state
2363 * editing/DeleteButtonController.h:
2364 (WebCore::DeleteButtonController::disable):
2365 (WebCore::DeleteButtonController::enable):
2366 (WebCore::DeleteButtonController::enabled):
2367 * editing/EditCommand.cpp:
2368 (WebCore::EditCommand::apply): hide and disable the deletion UI, then show at the end
2369 (WebCore::EditCommand::unapply): ditto
2370 (WebCore::EditCommand::reapply): ditto
2372 2006-11-15 Adele Peterson <adele@apple.com>
2376 New implementation of slider control.
2378 * WebCore.xcodeproj/project.pbxproj: Removed DeprecatedSlider and Slider classes, added RenderSlider class.
2379 * rendering/DeprecatedSlider.cpp: Removed.
2380 * rendering/DeprecatedSlider.h: Removed.
2381 * platform/Slider.h: Removed.
2382 * platform/mac/SliderMac.mm: Removed.
2383 * platform/win/TemporaryLinkStubs.cpp:
2385 * css/CSSSelector.h: (WebCore::CSSSelector::): Added PseudoElement for thumb, PseudoSliderThumb.
2386 * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType): Added code for "-webkit-slider-thumb".
2387 * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::checkOneSelector):
2388 * rendering/RenderStyle.cpp:
2390 (WebCore::pseudoBit):
2391 * rendering/RenderStyle.h: (WebCore::RenderStyle::):
2393 * css/html4.css: Added style for input[type="range"] and input[type="range"]::-webkit-slider-thumb
2395 * html/HTMLInputElement.cpp:
2396 (WebCore::HTMLInputElement::createRenderer): Create RenderSlider for input type="range" elements.
2397 (WebCore::HTMLInputElement::defaultEventHandler): Allow the renderer to forward events, and set thumb position when click occurs on the track.
2399 * page/EventHandler.cpp: Added concept of a node that will capture all mouse events. This will be used by the slider thumb, so it can
2400 continue to capture mouse move events during the drag, even though those events aren't directly over the slider.
2401 (WebCore::EventHandler::EventHandler):
2402 (WebCore::EventHandler::setCapturingMouseEventsNode):
2403 (WebCore::EventHandler::dispatchMouseEvent): If the capturingMouseEventsNode is set, then dispatch all mouse events to that node.
2404 * page/EventHandler.h:
2406 * rendering/RenderSlider.cpp: Added.
2407 (WebCore::HTMLSliderThumbElement::isShadowNode):
2408 (WebCore::HTMLSliderThumbElement::shadowParentNode):
2409 (WebCore::HTMLSliderThumbElement::inDragMode): Keeps track of whether or not the thumb is in drag mode.
2410 (WebCore::HTMLSliderThumbElement::HTMLSliderThumbElement):
2411 (WebCore::HTMLSliderThumbElement::defaultEventHandler): Handles positioning of slider thumb during drag.
2412 (WebCore::RenderSlider::RenderSlider):
2413 (WebCore::RenderSlider::~RenderSlider):
2414 (WebCore::RenderSlider::baselinePosition):
2415 (WebCore::RenderSlider::calcMinMaxWidth):
2416 (WebCore::RenderSlider::setStyle):
2417 (WebCore::RenderSlider::createThumbStyle):
2418 (WebCore::RenderSlider::layout): Positions the thumb to be centered on the track.
2419 (WebCore::RenderSlider::updateFromElement):
2420 (WebCore::RenderSlider::mouseEventIsInThumb):
2421 (WebCore::RenderSlider::setValueForPosition):
2422 (WebCore::RenderSlider::setPositionFromValue):
2423 (WebCore::RenderSlider::positionForOffset):
2424 (WebCore::RenderSlider::valueChanged):
2425 (WebCore::RenderSlider::currentPosition):
2426 (WebCore::RenderSlider::setCurrentPosition):
2427 (WebCore::RenderSlider::trackSize):
2428 (WebCore::RenderSlider::forwardEvent):
2429 (WebCore::RenderSlider::inDragMode):
2430 * rendering/RenderSlider.h: Added.
2431 (WebCore::RenderSlider::renderName):
2433 * rendering/RenderTheme.cpp: Added drawing code for slider track and thumb.
2434 (WebCore::RenderTheme::adjustStyle):
2435 (WebCore::RenderTheme::paint):
2436 (WebCore::RenderTheme::paintBorderOnly):
2437 (WebCore::RenderTheme::paintDecorations):
2438 (WebCore::RenderTheme::adjustSliderTrackStyle):
2439 (WebCore::RenderTheme::adjustSliderThumbStyle):
2440 * rendering/RenderTheme.h:
2441 (WebCore::RenderTheme::paintSliderTrack):
2442 (WebCore::RenderTheme::paintSliderThumb):
2443 * rendering/RenderThemeMac.h:
2444 * rendering/RenderThemeMac.mm:
2445 (WebCore::RenderThemeMac::RenderThemeMac):
2446 (WebCore::TrackGradientInterpolate):
2447 (WebCore::RenderThemeMac::paintSliderTrack):
2448 (WebCore::RenderThemeMac::paintSliderThumb):
2449 (WebCore::RenderThemeMac::adjustSliderTrackStyle):
2450 (WebCore::RenderThemeMac::adjustSliderThumbStyle):
2452 2006-11-15 Beth Dakin <bdakin@apple.com>
2456 Oops! Forgot to add this!
2458 * platform/mac/ContextMenuMac.mm: Added.
2459 (-[MenuTarget forwardContextMenuAction:initWithContextMenu:WebCore::]):
2460 (-[MenuTarget WebCore::]):
2461 (-[MenuTarget setMenu:WebCore::]):
2462 (-[MenuTarget forwardContextMenuAction:]):
2464 (ContextMenu::appendItem):
2465 (ContextMenu::itemCount):
2466 (ContextMenu::insertItem):
2467 (ContextMenu::setPlatformMenuDescription):
2469 2006-11-15 Beth Dakin <bdakin@apple.com>
2470 & Adam Roben <aroben@apple.com>
2472 Reviewed by Adam and Beth.
2474 Initial cut at pushing Context Menus into WebCore. Nobody actually
2475 calls this code just yet.
2478 * WebCore.xcodeproj/project.pbxproj:
2480 (WebCore::Chrome::addCustomContextMenuItems): Use the chrome to
2481 call into addContextMenuItems on the UIDelegate.
2483 * page/ChromeClient.h:
2484 * platform/ContextMenu.cpp: Added.
2485 (WebCore::addDefaultItems):
2486 (WebCore::ContextMenu::populate):
2487 * platform/ContextMenu.h: Added.
2489 (WebCore::ContextMenuItem::ContextMenuItem):
2490 (WebCore::ContextMenu::ContextMenu):
2491 (WebCore::ContextMenu::hitTestResult):
2492 (WebCore::ContextMenu::platformMenuDescription):
2494 2006-11-15 Adele Peterson <adele@apple.com>
2498 - Fix for <rdar://problem/4780306> REGRESSION: clicking in textarea does not set selection at PunBB.org
2500 * css/html4.css: Removed "-webkit-user-select: ignore" for labels.
2502 2006-11-15 David Harrison <harrison@apple.com>
2506 <rdar://problem/4836034> REGRESSION: Hang while spell-checking (advanceToNextMisspelling)
2509 * manual-tests/keep_spelling_markers.html:
2510 Updated to include checking for this bug.
2512 * bridge/mac/FrameMac.mm:
2513 (WebCore::FrameMac::advanceToNextMisspelling):
2514 it.advance() even when current string is a single space.
2516 2006-11-15 Brady Eidson <beidson@apple.com>
2520 Backing out macro expansion
2522 * WebCore.xcodeproj/project.pbxproj:
2523 * html/HTMLElement.cpp:
2524 (WebCore::HTMLElement::isRecognizedTagName):
2525 * ksvg2/scripts/make_names.pl:
2527 2006-11-15 David Harrison <harrison@apple.com>
2531 <rdar://problem/4770453> VO not honoring secure edit fields in web pages
2533 The remaining problem was the password fields would return their contents
2534 even though they did not advertise that they could. Apparently, VoiceOver
2535 does not read the ads.
2537 * bridge/mac/WebCoreAXObject.mm:
2538 (isPasswordFieldElement):
2539 (-[WebCoreAXObject isPasswordField]):
2540 (-[WebCoreAXObject textMarkerForVisiblePosition:]):
2541 (-[WebCoreAXObject accessibilityAttributeValue:]):
2542 (-[WebCoreAXObject doAXStringForRange:]):
2544 2006-11-13 Lou Amadio <lamadio@apple.com>
2546 Reviewed by Darin Adler, Maciej Stachowiak
2548 Cleanup: Expanded macros in generated files
2550 * html/HTMLElement.cpp:
2551 (WebCore::HTMLElement::isRecognizedTagName):
2552 * ksvg2/scripts/make_names.pl:
2554 2006-11-16 Anders Carlsson <acarlsson@apple.com>
2558 Use Vector instead of DeprecatedPtrList.
2560 * editing/ApplyStyleCommand.cpp:
2561 (WebCore::ApplyStyleCommand::applyBlockStyle):
2562 * editing/BreakBlockquoteCommand.cpp:
2563 * rendering/RenderFlow.cpp:
2564 (WebCore::RenderFlow::paintOutline):
2566 2006-11-15 Adam Roben <aroben@apple.com>
2570 * page/EventHandler.h:
2572 2006-11-14 Beth Dakin <bdakin@apple.com>
2576 Move things off the bridge, and move sendContextMenuEvent() from
2577 EventHandlerMac to EventHandler.
2580 * WebCore.xcodeproj/project.pbxproj:
2581 * bridge/EditorClient.h:
2582 * bridge/mac/WebCoreFrameBridge.h:
2583 * editing/Editor.cpp:
2584 (WebCore::Editor::selectWordBeforeMenuEvent):
2585 (WebCore::Editor::clientIsEditable):
2587 * page/EventHandler.cpp:
2588 (WebCore::EventHandler::sendContextMenuEvent):
2589 * page/EventHandler.h:
2590 * page/mac/EventHandlerMac.mm:
2592 2006-11-14 Timothy Hatcher <timothy@apple.com>
2594 Reviewed by Harrison.
2596 <rdar://problem/4766635> Safari should never follow links in editable areas (add a WebKitEditableLinkNeverLive option)
2598 Adds an EditableLinkNeverLive setting that will make links in editable areas always dead.
2600 * bridge/mac/WebCoreSettings.mm:
2601 (-[WebCoreSettings setEditableLinkBehavior:]):
2602 * html/HTMLAnchorElement.cpp:
2603 (WebCore::HTMLAnchorElement::defaultEventHandler):
2604 (WebCore::HTMLAnchorElement::setActive):
2605 (WebCore::HTMLAnchorElement::isLiveLink):
2606 * page/FrameView.cpp:
2607 (WebCore::selectCursor):
2609 (WebCore::Settings::):
2611 2006-11-14 Mark Rowe <bdash@webkit.org>
2617 * bindings/scripts/CodeGenerator.pm:
2619 2006-11-14 Anders Carlsson <acarlsson@apple.com>
2621 Turns out I wasn't forcing DWARF on the world at all,
2622 it's now the default!
2624 * WebCore.xcodeproj/project.pbxproj:
2626 2006-11-14 Anders Carlsson <acarlsson@apple.com>
2628 I must stop trying to force DWARF on the world.
2630 * WebCore.xcodeproj/project.pbxproj:
2632 2006-11-13 Justin Garcia <justin.garcia@apple.com>
2634 Reviewed by harrison
2636 <rdar://problem/4806874>
2637 Missing background image after paste
2639 * editing/markup.cpp:
2640 (WebCore::createMarkup): If the body is fully selected, add a
2641 div with its CSS properties to the markup. Migrated a use of
2642 enclosingBlockFlowElement to enclosingBlock to fix an infinite
2643 loop when pasting <div><input></div>.
2645 2006-11-14 Anders Carlsson <acarlsson@apple.com>
2649 Add Undo/Redo to execCommand.
2651 * editing/Editor.cpp:
2652 (WebCore::execRedo):
2653 (WebCore::execUndo):
2656 (WebCore::CommandEntry::):
2658 2006-11-14 Darin Adler <darin@apple.com>
2662 - created EventHandler class, moved event handling code from both
2663 Frame and FrameView in there
2665 - added ScrollTypes.h header so you can include the scroller-related
2666 enums without all of Scrollbar.h
2668 * page/EventHandler.cpp: Added.
2669 * page/EventHandler.h: Added.
2670 * page/mac/EventHandlerMac.mm: Added.
2672 * platform/ScrollBarMode.h: Removed.
2673 * platform/ScrollTypes.h: Added.
2676 * WebCore.xcodeproj/project.pbxproj:
2677 * bridge/mac/FrameMac.h:
2678 * bridge/mac/FrameMac.mm:
2679 (WebCore::FrameMac::FrameMac):
2680 (WebCore::FrameMac::~FrameMac):
2681 (WebCore::FrameMac::bridgeForWidget):
2682 (WebCore::FrameMac::imageFromRect):
2683 * bridge/mac/FrameViewMac.mm:
2684 * bridge/mac/WebCoreFrameBridge.mm:
2685 (-[WebCoreFrameBridge scrollOverflowInDirection:granularity:]):
2686 (-[WebCoreFrameBridge nextKeyView]):
2687 (-[WebCoreFrameBridge previousKeyView]):
2688 (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]):
2689 (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):
2690 (-[WebCoreFrameBridge _visiblePositionForPoint:]):
2691 (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
2692 (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
2693 (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
2694 (-[WebCoreFrameBridge dragSourceMovedTo:]):
2695 (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
2697 (WebCore::Document::hoveredNodeDetached):
2699 * dom/EventTargetNode.cpp:
2700 (WebCore::EventTargetNode::defaultEventHandler):
2701 * editing/SelectionController.cpp:
2702 (WebCore::SelectionController::SelectionController):
2703 * editing/SelectionController.h:
2704 (WebCore::SelectionController::setCaretBlinkingSuspended):
2705 (WebCore::SelectionController::isCaretBlinkingSuspended):
2706 * html/HTMLAnchorElement.cpp:
2707 (WebCore::HTMLAnchorElement::isKeyboardFocusable):
2708 * html/HTMLFrameElementBase.cpp:
2709 (WebCore::HTMLFrameElementBase::setFocus):
2710 * html/HTMLFrameElementBase.h:
2711 * html/HTMLGenericFormElement.cpp:
2712 (WebCore::HTMLGenericFormElement::isKeyboardFocusable):
2713 * html/HTMLInputElement.cpp:
2714 (WebCore::HTMLInputElement::defaultEventHandler):
2715 * html/HTMLSelectElement.cpp:
2716 (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
2717 * loader/FrameLoader.cpp:
2718 (WebCore::FrameLoader::clear):
2719 (WebCore::FrameLoader::open):
2722 (WebCore::Frame::caretBlinkTimerFired):
2723 (WebCore::Frame::frameForWidget):
2724 (WebCore::Frame::eventHandler):
2725 (WebCore::Frame::setProhibitsScrolling):
2726 (WebCore::FramePrivate::FramePrivate):
2728 * page/FramePrivate.h:
2729 * page/FrameView.cpp:
2730 (WebCore::FrameViewPrivate::FrameViewPrivate):
2731 (WebCore::FrameViewPrivate::reset):
2732 (WebCore::FrameView::FrameView):
2733 (WebCore::FrameView::~FrameView):
2734 (WebCore::FrameView::clear):
2735 (WebCore::FrameView::adjustViewSize):
2736 (WebCore::FrameView::addRepaintInfo):
2737 (WebCore::FrameView::layout):
2738 (WebCore::FrameView::scrollPointRecursively):
2739 (WebCore::FrameView::setContentsPos):
2740 (WebCore::FrameView::scheduleRelayoutOfSubtree):
2741 (WebCore::FrameView::scheduleEvent):
2742 (WebCore::FrameView::updateOverflowStatus):
2743 (WebCore::FrameView::dispatchScheduledEvents):
2744 (WebCore::FrameView::windowClipRectForLayer):
2745 (WebCore::FrameView::handleMouseMoveEvent):
2746 (WebCore::FrameView::handleMouseReleaseEvent):
2748 * page/PageState.cpp:
2749 (WebCore::PageState::PageState):
2750 (WebCore::PageState::restore):
2752 * platform/ScrollBar.h:
2753 * platform/ScrollView.h:
2754 * platform/mac/ClipboardMac.mm:
2755 * platform/mac/PopupMenuMac.mm:
2756 (WebCore::PopupMenu::show):
2757 * platform/mac/SliderMac.mm:
2758 (-[WebCoreSlider becomeFirstResponder]):
2759 (-[WebCoreSlider nextKeyView]):
2760 (-[WebCoreSlider previousKeyView]):
2761 (-[WebCoreSlider canBecomeKeyView]):
2762 (Slider::focusPolicy):
2763 * platform/mac/WebCoreTextField.mm:
2764 (-[WebCoreTextFieldController textView:shouldHandleEvent:]):
2765 (-[WebCoreTextFieldController setHasFocus:]):
2766 (-[WebCoreSearchField nextKeyView]):
2767 (-[WebCoreSearchField previousKeyView]):
2768 (-[WebCoreSearchFieldCell _addStringToRecentSearches:]):
2769 * platform/mac/WidgetMac.mm:
2770 (WebCore::Widget::hasFocus):
2771 (WebCore::Widget::clearFocus):
2772 * rendering/RenderFrameSet.cpp:
2773 (WebCore::RenderFrameSet::setResizing):
2774 * rendering/RenderLayer.cpp:
2775 (WebCore::RenderLayer::autoscroll):
2776 (WebCore::RenderLayer::resize):
2777 (WebCore::RenderLayer::updateOverflowStatus):
2778 * rendering/RenderLayer.h:
2779 * rendering/RenderListBox.cpp:
2780 (WebCore::RenderListBox::autoscroll):
2781 * rendering/RenderObject.cpp:
2782 (WebCore::RenderObject::draggableNode):
2783 (WebCore::RenderObject::destroy):
2784 * rendering/RenderObject.h:
2785 (WebCore::RenderObject::RepaintInfo::RepaintInfo):
2786 * rendering/RenderPartObject.cpp:
2787 (WebCore::RenderPartObject::viewCleared):
2789 2006-11-14 Anders Carlsson <acarlsson@apple.com>
2793 Let the editor client handle undo/redo.
2796 * WebCore.xcodeproj/project.pbxproj:
2797 * bridge/EditorClient.h:
2798 * bridge/mac/FrameMac.h:
2799 * bridge/mac/FrameMac.mm:
2800 (WebCore::FrameMac::canUndo):
2801 (WebCore::FrameMac::canRedo):
2802 * bridge/mac/WebCoreEditCommand.h: Removed.
2803 * bridge/mac/WebCoreEditCommand.mm: Removed.
2804 * bridge/mac/WebCoreFrameBridge.h:
2805 * bridge/mac/WebCoreFrameBridge.mm:
2806 * editing/Editor.cpp:
2807 (WebCore::Editor::appliedEditing):
2808 (WebCore::Editor::unappliedEditing):
2809 (WebCore::Editor::reappliedEditing):
2810 * editing/JSEditor.cpp:
2811 * loader/FrameLoader.cpp:
2812 (WebCore::FrameLoader::closeURL):
2815 * rendering/RenderTextControl.cpp:
2816 (WebCore::RenderTextControl::updateFromElement):
2818 2006-11-14 Nikolas Zimmermann <zimmermann@kde.org>
2820 Reviewed and landed by Brady
2825 * loader/qt/FrameLoaderQt.cpp:
2826 (WebCore::FrameLoader::submitForm):
2827 * platform/network/qt/ResourceHandleManager.cpp:
2828 (WebCore::ResourceHandleManager::add):
2829 * platform/qt/FrameQtClient.cpp:
2830 (WebCore::FrameQtClientDefault::submitForm):
2831 * platform/qt/FrameQtClient.h:
2833 2006-11-14 Brady Eidson <beidson@apple.com>
2837 Cleanup of my patch last night and merging with aroben-style changes from this morning
2838 (More ref-counted FormData stuff)
2840 * html/HTMLFormElement.cpp:
2841 (WebCore::HTMLFormElement::submit):
2842 * loader/FrameLoader.cpp:
2843 (WebCore::FrameLoader::submitForm):
2844 * platform/network/ResourceHandle.cpp:
2845 (WebCore::ResourceHandle::postData):
2846 * platform/network/ResourceHandle.h:
2847 * platform/network/cf/FormDataStreamCFNet.cpp:
2848 (WebCore::setHTTPBody):
2849 * platform/network/mac/FormDataStreamMac.h:
2850 * platform/network/mac/FormDataStreamMac.mm:
2851 (WebCore::getStreamFormDatas):
2852 (WebCore::formCreate):
2853 (WebCore::formFinalize):
2854 (WebCore::setHTTPBody):
2855 (WebCore::httpBodyFromStream):
2856 * platform/network/mac/ResourceRequestMac.mm:
2857 (WebCore::getResourceRequest):
2859 2006-11-14 Rob Buis <buis@kde.org>
2863 http://bugs.webkit.org/show_bug.cgi?id=11575
2864 Bug 11575: REGRESSION: WebCore crash in CSSParser/HTMLTokenizer
2866 Test: fast/css/css-imports.html
2868 * css/CSSImportRule.cpp:
2869 (WebCore::CSSImportRule::insertedIntoParent):
2870 Fix the crash by testing for null pointer.
2872 2006-11-14 Alexey Proskuryakov <ap@webkit.org>
2876 Test for http://bugs.webkit.org/show_bug.cgi?id=3387
2877 Redundant keydown, keypress, keyup events sent for arrow keys
2879 * manual-tests/arrow-key-events.html: Added.
2881 2006-11-14 Darin Adler <darin@apple.com>
2885 Fix up usages of FormData within CFNet loader code.
2887 * platform/network/ResourceRequest.h:
2888 (WebCore::ResourceRequest::httpBody):
2889 * platform/network/cf/FormDataStreamCFNet.cpp:
2890 (WebCore::getStreamFormDatas): Store RefPtr<FormData>s in the
2891 streamFormDatas HashMap.
2892 (WebCore::formCreate):
2893 (WebCore::formFinalize): Removed delete because the remove() will deref
2894 and delete if necessary.
2895 (WebCore::setHTTPBody): Changed parameter to PassRefPtr.
2896 (WebCore::httpBodyFromStream):
2897 * platform/network/cf/FormDataStreamCFNet.h: Fix declarations.
2898 * platform/network/cf/ResourceRequestCFNet.cpp:
2899 (WebCore::getResourceRequest):
2901 2006-11-14 Greg Jackson <gjspanner@gmail.com>
2905 Preserves any pre-existing value for WEBCORE_NAVIGATOR_PLATFORM
2906 rather than overriding it based on platform detection.
2908 * bindings/js/kjs_navigator.cpp:
2910 2006-11-13 Brady Eidson <beidson@apple.com>
2914 Made FormData Shared, and pass it around as such.
2916 * WebCore.xcodeproj/project.pbxproj: Reordered some items
2917 * html/HTMLFormElement.cpp:
2918 (WebCore::HTMLFormElement::formData):
2919 (WebCore::HTMLFormElement::submit):
2920 * html/HTMLFormElement.h:
2921 * loader/FrameLoader.cpp:
2922 (WebCore::FormSubmission::FormSubmission):
2923 (WebCore::FrameLoader::submitForm):
2924 * loader/FrameLoader.h:
2925 * loader/mac/FrameLoaderMac.mm:
2926 (WebCore::FrameLoader::post):
2927 (WebCore::FrameLoader::loadResourceSynchronously):
2928 * loader/mac/SubresourceLoaderMac.mm:
2929 (WebCore::SubresourceLoader::create):
2930 * platform/network/FormData.h: Made FormData shared
2931 * platform/network/ResourceHandle.h:
2932 * platform/network/ResourceHandle.cpp:
2933 (WebCore::ResourceHandle::postData):
2934 * platform/network/ResourceRequest.h:
2935 (WebCore::ResourceRequest::httpBody):
2936 (WebCore::ResourceRequest::setHTTPBody):
2937 * platform/network/mac/ResourceRequestMac.mm:
2938 (WebCore::getResourceRequest):
2939 (WebCore::nsURLRequest):
2941 * platform/network/mac/FormDataStreamMac.h:
2942 * platform/network/mac/FormDataStreamMac.mm:
2943 (WebCore::getStreamFormDatas): Hash Streams to RefPtr<FormData>s
2944 (WebCore::formCreate):
2945 (WebCore::formFinalize):
2946 (WebCore::setHTTPBody):
2947 (WebCore::httpBodyFromStream):
2949 * xml/xmlhttprequest.cpp:
2950 (WebCore::XMLHttpRequest::send):
2952 2006-11-13 Justin Garcia <justin.garcia@apple.com>
2954 Reviewed by harrison
2956 <rdar://problem/4828264>
2957 In Mail, a crash occurs at WebCore::Selection::toRange() when selecting this web content (http://www.cnet.com/)
2959 The start of the selection is in an editable area, and the end is in an
2960 input field inside that editable area. The code that should pull the end
2961 of such a selection outside the input field didn't escape shadow nodes,
2962 it would leave a dangling end, causing the crash in toRange.
2964 * editing/Selection.cpp:
2965 (WebCore::Selection::adjustForEditableContent): Added an ASSERT and a fixup
2966 to prevent crashes like this in future Release builds.
2967 * editing/htmlediting.cpp:
2968 (WebCore::firstEditablePositionAfterPositionInRoot): Let this function
2969 escape shadow nodes. We might eventually push this code down into
2970 next/previous{VisuallyDistinct}Canditate.
2971 (WebCore::lastEditablePositionBeforePositionInRoot): Ditto.
2973 2006-11-13 Justin Garcia <justin.garcia@apple.com>
2977 * editing/DeleteSelectionCommand.cpp:
2978 (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor):
2979 * editing/Editor.cpp:
2980 (WebCore::Editor::appliedEditing):
2982 (WebCore::Editor::setRemovedAnchor): Pass a PassRefPtr.
2984 2006-11-10 Justin Garcia <justin.garcia@apple.com>
2988 <rdar://problem/4820026>
2989 copy/paste of news.google.com yields text from hidden select element options
2991 We were adding descendants of unrendered select elements.
2993 * editing/markup.cpp:
2994 (WebCore::createMarkup): Don't traverse into nodes without renderers, unless
2995 they are grandfathered in by a rendered select element.
2997 2006-11-12 Simon Hausmann <hausmann@kde.org>
2999 Reviewed by Sam Weinig.
3001 Fix Qt build. Missing AbstractShared implementation.
3002 http://bugs.webkit.org/show_bug.cgi?id=11581
3004 * loader/qt/FrameLoaderClientQt.cpp:
3005 (WebCore::FrameLoaderClientQt::ref):
3006 (WebCore::FrameLoaderClientQt::deref):
3007 * loader/qt/FrameLoaderClientQt.h:
3008 * platform/qt/ChromeClientQt.cpp:
3009 (WebCore::ChromeClientQt::ref):
3010 (WebCore::ChromeClientQt::deref):
3011 * platform/qt/ChromeClientQt.h:
3012 * platform/qt/EditorClientQt.cpp:
3013 (WebCore::EditorClientQt::ref):
3014 (WebCore::EditorClientQt::deref):
3015 * platform/qt/EditorClientQt.h:
3017 2006-11-13 Mark Rowe <bdash@webkit.org>
3021 Fix some Linux/Gdk build issues noted by Alp Toker.
3023 * Projects/gdk/webcore-gdk.bkl:
3024 * WebCoreSources.bkl:
3025 * platform/graphics/gdk/ImageGdk.cpp:
3026 (WebCore::Image::loadPlatformResource):
3028 2006-11-12 Brady Eidson <beidson@apple.com>
3032 Logging channel plumbing for future work
3034 * platform/Logging.cpp:
3036 * platform/Logging.h:
3037 * platform/mac/LoggingMac.mm:
3038 (WebCore::InitializeLoggingChannelsIfNecessary):
3040 2006-11-12 Mark Rowe <bdash@webkit.org>
3044 Linux/Gdk compilation fixes, and bakefile cleanups. Based on patches by
3047 * Projects/gdk/webcore-gdk.bkl:
3048 * WebCoreSources.bkl:
3049 * page/PageState.cpp:
3050 * platform/gdk/ChromeClientGdk.h:
3051 (WebCore::ChromeClientGdk::ref):
3052 (WebCore::ChromeClientGdk::deref):
3053 * platform/gdk/FrameGdk.cpp:
3054 (WebCore::FrameGdkClientDefault::openURL):
3055 (WebCore::FrameGdkClientDefault::didReceiveData):
3056 (WebCore::FrameGdkClientDefault::receivedAllData):
3057 (WebCore::FrameGdk::FrameGdk):
3058 (WebCore::FrameGdk::~FrameGdk):
3059 * platform/gdk/FrameGdk.h:
3060 * platform/gdk/KeyEventGdk.cpp:
3061 (WebCore::keyIdentifierForGdkKeyCode):
3062 * platform/gdk/ScreenClientGdk.h: Removed.
3063 * platform/gdk/TemporaryLinkStubs.cpp:
3064 (FrameGdk::canPaste):
3065 (FrameGdk::originalRequestURL):
3066 (TextField::TextField):
3067 * platform/network/gdk/ResourceHandleManager.cpp:
3068 (WebCore::ResourceHandleManager::downloadTimerCallback):
3069 (WebCore::ResourceHandleManager::add):
3070 (WebCore::ResourceHandleManager::cancel):
3073 2006-11-11 Geoffrey Garen <ggaren@apple.com>
3075 Reviewed by Maciej Stachowiak.
3077 - Fixed loader crash by clarifying ownership of WebKit client objects.
3078 WebCore objects own their WebKit clients, and ref and deref through
3079 virtual methods, leaving WebKit free to use whatever client / reference-counting
3080 implementation it likes.
3083 * WebCore.xcodeproj/project.pbxproj:
3084 * bridge/EditorClient.h: Fixed up function prototypes for style.
3085 * loader/FrameLoader.cpp: Removed detachFrameLoader, since its real purpose
3086 was to implement an alternative ownership model.
3087 (WebCore::FrameLoader::~FrameLoader): Removed empty destructor.
3088 (WebCore::FrameLoader::setClient): This function now takes ownership
3089 (WebCore::FrameLoader::client):
3090 * loader/FrameLoader.h:
3091 * loader/FrameLoaderClient.h:
3092 * page/ChromeClient.h:
3093 * platform/AbstractShared.h: Added. This is the virtual function-based refcounting
3094 complement to Shared.
3095 (WebCore::AbstractShared::~AbstractShared):
3097 2006-11-11 George Staikos <staikos@kde.org>
3101 Fix uninitialized variable.
3103 * rendering/RenderStyle.h:
3105 2006-11-11 Nikolas Zimmermann <zimmermann@kde.org>
3107 Reviewed/landed by Adam.
3109 Complete cleanup of the CMakeLists.txt.
3110 Now all files to be built are sorted in alphabetic order.
3112 General style cleanup, remove all tabs etc.
3116 2006-11-11 Geoffrey Garen <ggaren@apple.com>
3118 Reviewed by Maciej Stachowiak.
3120 Added missing initializer to ResourceRequest -- fixes some loader crashes
3121 due to assuming a request always has a non-null httpMethod.
3123 * platform/network/ResourceRequest.h:
3124 (WebCore::ResourceRequest::ResourceRequest):
3126 2006-11-11 Brady Eidson <beidson@apple.com>
3132 * loader/FrameLoaderClient.h:
3134 2006-11-11 Darin Adler <darin@apple.com>
3136 - attempt to fix Qt build
3138 * platform/qt/CursorQt.cpp:
3139 (WebCore::verticalTextCursor): Added. Just returns pointer cursor.
3140 (WebCore::cellCursor): Ditto.
3141 (WebCore::contextMenuCursor): Ditto.
3143 2006-11-11 Rob Buis <buis@kde.org>
3147 http://bugs.webkit.org/show_bug.cgi?id=10893
3148 InsertRule can not handle @import statements
3150 Allow @import as part of a css rule.
3153 * css/CSSImportRule.cpp:
3154 (WebCore::CSSImportRule::insertedIntoParent):
3155 * css/CSSStyleSheet.cpp:
3156 (WebCore::CSSStyleSheet::CSSStyleSheet):
3157 (WebCore::CSSStyleSheet::checkLoaded):
3158 * css/CSSStyleSheet.h:
3159 (WebCore::CSSStyleSheet::loadCompleted):
3161 2006-11-11 Alexey Proskuryakov <ap@webkit.org>
3163 Attempt to fix Qt build.
3165 * CMakeLists.txt: PathQt.cpp is in graphics/qt now.
3167 2006-11-11 Lars Naesbye Christensen <larsnaesbye@stud.ku.dk>
3169 Tortured by Sam Weinig, Tim H., Maciej, Mitz and Alexey :-)
3171 [CSS 3] support for vertical-text, cell and context-menu cursors
3172 http://bugs.webkit.org/show_bug.cgi?id=11494
3174 * Resources/cellCursor.png: Added.
3175 * Resources/contextMenuCursor.png: Added.
3176 * Resources/verticalTextCursor.png: Added.
3177 * WebCore.xcodeproj/project.pbxproj:
3178 * css/CSSComputedStyleDeclaration.cpp:
3179 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3180 * css/CSSValueKeywords.in:
3181 * manual-tests/cursor.html:
3182 * page/FrameView.cpp:
3183 (WebCore::selectCursor):
3184 * platform/Cursor.h:
3185 * platform/mac/CursorMac.mm:
3186 (WebCore::verticalTextCursor):
3187 (WebCore::cellCursor):
3188 (WebCore::contextMenuCursor):
3189 * rendering/RenderStyle.h:
3192 2006-11-11 Nikolas Zimmermann <zimmermann@kde.org>
3194 Reviewed by aroben and ap, landed by ap.
3196 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11468
3198 Group graphics related files in platform/graphics.
3199 Move certain files from certain subdirectories
3200 into platform/graphics/{win,mac,cg,gdk,qt}
3203 * WebCore.xcodeproj/project.pbxproj:
3204 * platform/AffineTransform.cpp: Removed.
3205 * platform/AffineTransform.h: Removed.
3206 * platform/Color.cpp: Removed.
3207 * platform/Color.h: Removed.
3208 * platform/FloatPoint.cpp: Removed.
3209 * platform/FloatPoint.h: Removed.
3210 * platform/FloatRect.cpp: Removed.
3211 * platform/FloatRect.h: Removed.
3212 * platform/FloatSize.cpp: Removed.
3213 * platform/FloatSize.h: Removed.
3214 * platform/Icon.h: Removed.
3215 * platform/Image.cpp: Removed.
3216 * platform/Image.h: Removed.
3217 * platform/ImageSource.h: Removed.
3218 * platform/IntPoint.h: Removed.
3219 * platform/IntRect.cpp: Removed.
3220 * platform/IntRect.h: Removed.
3221 * platform/IntSize.h: Removed.
3222 * platform/IntSizeHash.h: Removed.
3223 * platform/Path.cpp: Removed.
3224 * platform/Path.h: Removed.
3225 * platform/Pen.cpp: Removed.
3226 * platform/Pen.h: Removed.
3227 * platform/cairo/AffineTransformCairo.cpp: Removed.
3228 * platform/cairo/GraphicsContextCairo.cpp: Removed.
3229 * platform/cairo/ImageCairo.cpp: Removed.
3230 * platform/cairo/ImageSourceCairo.cpp: Removed.
3231 * platform/cairo/cairo/AUTHORS: Removed.
3232 * platform/cairo/cairo/COPYING: Removed.
3233 * platform/cairo/cairo/COPYING-LGPL-2.1: Removed.
3234 * platform/cairo/cairo/COPYING-MPL-1.1: Removed.
3235 * platform/cairo/cairo/INSTALL: Removed.
3236 * platform/cairo/cairo/NEWS: Removed.
3237 * platform/cairo/cairo/README: Removed.
3238 * platform/cairo/cairo/TODO: Removed.
3239 * platform/cairo/cairo/src/Makefile.in: Removed.
3240 * platform/cairo/cairo/src/cairo-arc-private.h: Removed.
3241 * platform/cairo/cairo/src/cairo-arc.c: Removed.
3242 * platform/cairo/cairo/src/cairo-array.c: Removed.
3243 * platform/cairo/cairo/src/cairo-atsui-font.c: Removed.
3244 * platform/cairo/cairo/src/cairo-atsui.h: Removed.
3245 * platform/cairo/cairo/src/cairo-beos-surface.cpp: Removed.
3246 * platform/cairo/cairo/src/cairo-beos.h: Removed.
3247 * platform/cairo/cairo/src/cairo-cache-private.h: Removed.
3248 * platform/cairo/cairo/src/cairo-cache.c: Removed.
3249 * platform/cairo/cairo/src/cairo-clip-private.h: Removed.
3250 * platform/cairo/cairo/src/cairo-clip.c: Removed.
3251 * platform/cairo/cairo/src/cairo-color.c: Removed.
3252 * platform/cairo/cairo/src/cairo-debug.c: Removed.
3253 * platform/cairo/cairo/src/cairo-debug.h: Removed.
3254 * platform/cairo/cairo/src/cairo-directfb-surface.c: Removed.
3255 * platform/cairo/cairo/src/cairo-directfb.h: Removed.
3256 * platform/cairo/cairo/src/cairo-features.h: Removed.
3257 * platform/cairo/cairo/src/cairo-features.h.in: Removed.
3258 * platform/cairo/cairo/src/cairo-fixed.c: Removed.
3259 * platform/cairo/cairo/src/cairo-font-options.c: Removed.
3260 * platform/cairo/cairo/src/cairo-font-subset-private.h: Removed.
3261 * platform/cairo/cairo/src/cairo-font-subset.c: Removed.
3262 * platform/cairo/cairo/src/cairo-font.c: Removed.
3263 * platform/cairo/cairo/src/cairo-ft-font.c: Removed.
3264 * platform/cairo/cairo/src/cairo-ft-private.h: Removed.
3265 * platform/cairo/cairo/src/cairo-ft.h: Removed.
3266 * platform/cairo/cairo/src/cairo-glitz-surface.c: Removed.
3267 * platform/cairo/cairo/src/cairo-glitz.h: Removed.
3268 * platform/cairo/cairo/src/cairo-gstate-private.h: Removed.
3269 * platform/cairo/cairo/src/cairo-gstate.c: Removed.
3270 * platform/cairo/cairo/src/cairo-hash-private.h: Removed.
3271 * platform/cairo/cairo/src/cairo-hash.c: Removed.
3272 * platform/cairo/cairo/src/cairo-hull.c: Removed.
3273 * platform/cairo/cairo/src/cairo-image-surface.c: Removed.
3274 * platform/cairo/cairo/src/cairo-matrix.c: Removed.
3275 * platform/cairo/cairo/src/cairo-meta-surface-private.h: Removed.
3276 * platform/cairo/cairo/src/cairo-meta-surface.c: Removed.
3277 * platform/cairo/cairo/src/cairo-output-stream.c: Removed.
3278 * platform/cairo/cairo/src/cairo-paginated-surface-private.h: Removed.
3279 * platform/cairo/cairo/src/cairo-paginated-surface.c: Removed.
3280 * platform/cairo/cairo/src/cairo-path-bounds.c: Removed.
3281 * platform/cairo/cairo/src/cairo-path-data-private.h: Removed.
3282 * platform/cairo/cairo/src/cairo-path-data.c: Removed.
3283 * platform/cairo/cairo/src/cairo-path-fill.c: Removed.
3284 * platform/cairo/cairo/src/cairo-path-fixed-private.h: Removed.
3285 * platform/cairo/cairo/src/cairo-path-stroke.c: Removed.
3286 * platform/cairo/cairo/src/cairo-path.c: Removed.
3287 * platform/cairo/cairo/src/cairo-pattern.c: Removed.
3288 * platform/cairo/cairo/src/cairo-pdf-surface.c: Removed.
3289 * platform/cairo/cairo/src/cairo-pdf.h: Removed.
3290 * platform/cairo/cairo/src/cairo-pen.c: Removed.
3291 * platform/cairo/cairo/src/cairo-platform.h: Removed.
3292 * platform/cairo/cairo/src/cairo-png.c: Removed.
3293 * platform/cairo/cairo/src/cairo-polygon.c: Removed.
3294 * platform/cairo/cairo/src/cairo-private.h: Removed.
3295 * platform/cairo/cairo/src/cairo-ps-surface.c: Removed.
3296 * platform/cairo/cairo/src/cairo-ps.h: Removed.
3297 * platform/cairo/cairo/src/cairo-quartz-private.h: Removed.
3298 * platform/cairo/cairo/src/cairo-quartz-surface.c: Removed.
3299 * platform/cairo/cairo/src/cairo-quartz.h: Removed.
3300 * platform/cairo/cairo/src/cairo-quartz2-surface.c: Removed.
3301 * platform/cairo/cairo/src/cairo-quartz2.h: Removed.
3302 * platform/cairo/cairo/src/cairo-region.c: Removed.
3303 * platform/cairo/cairo/src/cairo-scaled-font.c: Removed.
3304 * platform/cairo/cairo/src/cairo-slope.c: Removed.
3305 * platform/cairo/cairo/src/cairo-spline.c: Removed.
3306 * platform/cairo/cairo/src/cairo-stroke-style.c: Removed.
3307 * platform/cairo/cairo/src/cairo-surface-fallback-private.h: Removed.
3308 * platform/cairo/cairo/src/cairo-surface-fallback.c: Removed.
3309 * platform/cairo/cairo/src/cairo-surface.c: Removed.
3310 * platform/cairo/cairo/src/cairo-svg-surface.c: Removed.
3311 * platform/cairo/cairo/src/cairo-svg.h: Removed.
3312 * platform/cairo/cairo/src/cairo-traps.c: Removed.
3313 * platform/cairo/cairo/src/cairo-unicode.c: Removed.
3314 * platform/cairo/cairo/src/cairo-wideint.c: Removed.
3315 * platform/cairo/cairo/src/cairo-wideint.h: Removed.
3316 * platform/cairo/cairo/src/cairo-win32-font.c: Removed.
3317 * platform/cairo/cairo/src/cairo-win32-private.h: Removed.
3318 * platform/cairo/cairo/src/cairo-win32-surface.c: Removed.
3319 * platform/cairo/cairo/src/cairo-win32.h: Removed.
3320 * platform/cairo/cairo/src/cairo-xcb-surface.c: Removed.
3321 * platform/cairo/cairo/src/cairo-xcb-xrender.h: Removed.
3322 * platform/cairo/cairo/src/cairo-xcb.h: Removed.
3323 * platform/cairo/cairo/src/cairo-xlib-private.h: Removed.
3324 * platform/cairo/cairo/src/cairo-xlib-screen.c: Removed.
3325 * platform/cairo/cairo/src/cairo-xlib-surface.c: Removed.
3326 * platform/cairo/cairo/src/cairo-xlib-test.h: Removed.
3327 * platform/cairo/cairo/src/cairo-xlib-xrender.h: Removed.
3328 * platform/cairo/cairo/src/cairo-xlib.h: Removed.
3329 * platform/cairo/cairo/src/cairo.c: Removed.
3330 * platform/cairo/cairo/src/cairo.h: Removed.
3331 * platform/cairo/cairo/src/cairoint.h: Removed.
3332 * platform/cairo/cairo/src/test-fallback-surface.c: Removed.
3333 * platform/cairo/cairo/src/test-fallback-surface.h: Removed.
3334 * platform/cairo/cairo/src/test-meta-surface.c: Removed.
3335 * platform/cairo/cairo/src/test-meta-surface.h: Removed.
3336 * platform/cairo/cairo/src/test-paginated-surface.c: Removed.
3337 * platform/cairo/cairo/src/test-paginated-surface.h: Removed.
3338 * platform/cairo/pixman/AUTHORS: Removed.
3339 * platform/cairo/pixman/COPYING: Removed.
3340 * platform/cairo/pixman/README: Removed.
3341 * platform/cairo/pixman/src/Makefile.in: Removed.
3342 * platform/cairo/pixman/src/fbcompose.c: Removed.
3343 * platform/cairo/pixman/src/fbedge.c: Removed.
3344 * platform/cairo/pixman/src/fbedgeimp.h: Removed.
3345 * platform/cairo/pixman/src/fbmmx.c: Removed.
3346 * platform/cairo/pixman/src/fbmmx.h: Removed.
3347 * platform/cairo/pixman/src/fbpict.c: Removed.
3348 * platform/cairo/pixman/src/fbpict.h: Removed.
3349 * platform/cairo/pixman/src/fbtrap.c: Removed.
3350 * platform/cairo/pixman/src/icblt.c: Removed.
3351 * platform/cairo/pixman/src/icbltone.c: Removed.
3352 * platform/cairo/pixman/src/iccolor.c: Removed.
3353 * platform/cairo/pixman/src/icformat.c: Removed.
3354 * platform/cairo/pixman/src/icimage.c: Removed.
3355 * platform/cairo/pixman/src/icimage.h: Removed.
3356 * platform/cairo/pixman/src/icint.h: Removed.
3357 * platform/cairo/pixman/src/icpixels.c: Removed.
3358 * platform/cairo/pixman/src/icrect.c: Removed.
3359 * platform/cairo/pixman/src/icrop.h: Removed.
3360 * platform/cairo/pixman/src/icstipple.c: Removed.
3361 * platform/cairo/pixman/src/ictransform.c: Removed.
3362 * platform/cairo/pixman/src/ictrap.c: Removed.
3363 * platform/cairo/pixman/src/ictri.c: Removed.
3364 * platform/cairo/pixman/src/icutil.c: Removed.
3365 * platform/cairo/pixman/src/pixman-remap.h: Removed.
3366 * platform/cairo/pixman/src/pixman-xserver-compat.h: Removed.
3367 * platform/cairo/pixman/src/pixman.h: Removed.
3368 * platform/cairo/pixman/src/pixregion.c: Removed.
3369 * platform/cairo/pixman/src/pixregionint.h: Removed.
3370 * platform/cairo/pixman/src/renderedge.c: Removed.
3371 * platform/cairo/pixman/src/renderedge.h: Removed.
3372 * platform/cairo/pixman/src/slim_internal.h: Removed.
3373 * platform/cairo/rgb24-hacks.txt: Removed.
3374 * platform/cairo/scale-removal.txt: Removed.
3375 * platform/cg/AffineTransformCG.cpp: Removed.
3376 * platform/cg/FloatPointCG.cpp: Removed.
3377 * platform/cg/FloatRectCG.cpp: Removed.
3378 * platform/cg/FloatSizeCG.cpp: Removed.
3379 * platform/cg/GraphicsContextCG.cpp: Removed.
3380 * platform/cg/GraphicsContextPlatformPrivate.h: Removed.
3381 * platform/cg/ImageCG.cpp: Removed.
3382 * platform/cg/ImageSourceCG.cpp: Removed.
3383 * platform/cg/IntPointCG.cpp: Removed.
3384 * platform/cg/IntRectCG.cpp: Removed.
3385 * platform/cg/IntSizeCG.cpp: Removed.
3386 * platform/cg/PDFDocumentImage.cpp: Removed.
3387 * platform/cg/PDFDocumentImage.h: Removed.
3388 * platform/cg/PathCG.cpp: Removed.
3389 * platform/gdk/ImageGdk.cpp: Removed.
3390 * platform/mac/ColorMac.mm: Removed.
3391 * platform/mac/FloatPointMac.mm: Removed.
3392 * platform/mac/FloatRectMac.mm: Removed.
3393 * platform/mac/FloatSizeMac.mm: Removed.
3394 * platform/mac/GraphicsContextMac.mm:
3395 * platform/mac/IconMac.mm: Removed.
3396 * platform/mac/ImageMac.mm: Removed.
3397 * platform/mac/IntPointMac.mm: Removed.
3398 * platform/mac/IntRectMac.mm: Removed.
3399 * platform/mac/IntSizeMac.mm: Removed.
3400 * platform/qt/AffineTransformQt.cpp: Removed.
3401 * platform/qt/ColorQt.cpp: Removed.
3402 * platform/qt/FloatPointQt.cpp: Removed.
3403 * platform/qt/FloatRectQt.cpp: Removed.
3404 * platform/qt/IconQt.cpp: Removed.
3405 * platform/qt/ImageQt.cpp: Removed.
3406 * platform/qt/ImageSourceQt.cpp: Removed.
3407 * platform/qt/IntPointQt.cpp: Removed.
3408 * platform/qt/IntRectQt.cpp: Removed.
3409 * platform/qt/IntSizeQt.cpp: Removed.
3410 * platform/qt/PathQt.cpp: Removed.
3411 * platform/win/ImageWin.cpp: Removed.
3412 * platform/win/IntPointWin.cpp: Removed.
3413 * platform/win/IntRectWin.cpp: Removed.
3414 * platform/win/IntSizeWin.cpp: Removed.
3416 2006-11-11 Graham Dennis <graham.dennis@gmail.com>
3420 A layout test was added when this bug was fixed, so none needed now.
3423 REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
3424 http://bugs.webkit.org/show_bug.cgi?id=11570
3426 * rendering/RenderStyle.h:
3427 (WebCore::RenderStyle::isSpace): Removed.
3428 * rendering/RenderText.cpp:
3429 (WebCore::isSpace): Added.
3430 (WebCore::RenderText::calcMinMaxWidth): Use inline function instead of polluting RenderStyle.
3432 2006-11-11 Graham Dennis <graham.dennis@gmail.com>
3436 REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
3437 http://bugs.webkit.org/show_bug.cgi?id=11570
3439 * rendering/RenderStyle.h:
3440 (WebCore::RenderStyle::isSpace): Added.
3441 * rendering/RenderText.cpp:
3442 (WebCore::RenderText::calcMinMaxWidth): For the purposes of calculating the line widths,
3443 treat non-breaking spaces the same as normal spaces if -webkit-nbsp-mode is 'space'
3445 2006-11-10 Zalan Bujtas <zalan.bujtas@nokia.com>
3449 Added basic types for symbian platform.
3450 http://bugs.webkit.org/show_bug.cgi?id=11540
3453 * platform/AtomicString.h:
3454 (WebCore::AtomicString::AtomicString):
3455 (WebCore::AtomicString::operator TPtrC):
3456 * platform/DeprecatedString.cpp:
3457 (WebCore::initializeHandleNodeBlock):
3458 * platform/DeprecatedString.h: char _internalBuffer has to be in front of
3459 the bitfields as Codewarrior (3.2.5 build 461) compiler cannot cope with
3460 bitfields and breaks byte aligment
3461 * platform/FloatPoint.h:
3462 * platform/FloatRect.h:
3463 * platform/IntPoint.h:
3464 * platform/IntRect.h:
3465 * platform/IntSize.h:
3466 * platform/PlatformString.h:
3467 (WebCore::String::operator TPtrC):
3468 (WebCore::String::des):
3469 * platform/StringImpl.h:
3470 * platform/symbian/DeprecatedStringSymbian.cpp: Added.
3471 (WebCore::DeprecatedString::setBufferFromDes):
3472 (WebCore::DeprecatedString::fromDes):
3473 (WebCore::DeprecatedString::des):
3474 (WebCore::DeprecatedString::des8):
3475 * platform/symbian/FloatPointSymbian.cpp: Added.
3476 (WebCore::FloatPoint::FloatPoint):
3477 (WebCore::FloatPoint::operator TPoint):
3478 * platform/symbian/FloatRectSymbian.cpp: Added.
3479 (WebCore::FloatRect::FloatRect):
3480 (WebCore::FloatRect::operator TRect):
3481 (WebCore::FloatRect::rect):
3482 * platform/symbian/IntPointSymbian.cpp: Added.
3483 (WebCore::IntPoint::IntPoint):
3484 (WebCore::IntPoint::operator TPoint):
3485 * platform/symbian/IntRectSymbian.cpp: Added.
3486 (WebCore::IntRect::IntRect):
3487 (WebCore::IntRect::operator TRect):
3488 (WebCore::IntRect::Rect):
3489 * platform/symbian/IntSizeSymbian.cpp: Added.
3490 (WebCore::IntSize::IntSize):
3491 (WebCore::IntSize::operator TSize):
3492 * platform/symbian/StringImplSymbian.cpp: Added.
3493 (WebCore::StringImpl::StringImpl):
3494 (WebCore::StringImpl::des):
3495 * platform/symbian/StringSymbian.cpp: Added.
3496 (WebCore::String::String):
3498 2006-11-10 Zack Rusin <zack@kde.org>
3502 Adjust to the changes Brady made in the Qt code.
3504 * loader/qt/FrameLoaderClientQt.cpp:
3505 (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
3506 * loader/qt/FrameLoaderClientQt.h:
3508 2006-11-10 Justin Garcia <justin.garcia@apple.com>
3510 Reviewed by harrison
3512 <rdar://problem/4069359>
3513 Deleting hyperlink text, then typing uses link typing style but loses the link itself
3515 The removed anchor element needs to stick around temporarily, in the same way
3516 that the typing style hangs off the caret until the user moves it. Also text
3517 insertion around anchors didn't match TextEdit.
3519 * editing/DeleteSelectionCommand.cpp:
3520 (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor): Added.
3521 (WebCore::DeleteSelectionCommand::doApply): Call saveFullySelectedAnchor.
3522 * editing/DeleteSelectionCommand.h:
3523 * editing/EditCommand.cpp:
3524 (WebCore::EditCommand::apply): Clear the removed anchor after any top level
3525 editing command that doesn't preserve the typing style (matches TextEdit).
3526 * editing/Editor.cpp:
3527 (WebCore::Editor::appliedEditing): Added a fixme: we shouldn't call
3528 setSelection with a message telling it to clear the typing style
3529 (and the saved anchor) here. Save/restore the saved anchor because of this.
3531 (WebCore::Editor::removedAnchor): Getter.
3532 (WebCore::Editor::setRemovedAnchor): Setter.
3533 * editing/InsertTextCommand.cpp:
3534 (WebCore::InsertTextCommand::prepareForTextInsertion): Insert the saved anchor
3536 * editing/SelectionController.cpp:
3537 (WebCore::SelectionController::setSelection): Clear the removed anchor whenever
3538 we make a selection change that clears the typing style.
3539 (WebCore::SelectionController::nodeWillBeRemoved): Removed an old outdated FIXME.
3540 * editing/htmlediting.cpp:
3541 (WebCore::positionAvoidingSpecialElementBoundary): Cleaned up and
3542 made some changes to match TextEdit's behavior. First, insert content
3543 inside the anchor when the caret is after it, unless the caret is at the
3544 end of the document, or if the caret is before it and at the start of a
3547 === Safari-521.30 ===
3549 2006-11-10 Timothy Hatcher <timothy@apple.com>
3553 Check for BHIDDEN in isVisible() also.
3555 * rendering/RenderStyle.h:
3556 (WebCore::BorderValue::isVisible):
3558 2006-11-10 Timothy Hatcher <timothy@apple.com>
3562 <rdar://problem/4821423> element deletion UI appears for Mail blockquote and others with less than three visible borders
3564 Added a new function to BorderValue called isVisible(). This checks nonZero() and !isTransparent().
3566 * editing/DeleteButtonController.cpp:
3567 (WebCore::isDeletableElement):
3568 * rendering/RenderStyle.h:
3569 (WebCore::BorderValue::isVisible):
3571 2006-11-10 Adam Roben <aroben@apple.com>
3573 Rubberstamped by Anders.
3575 Back out some accidentally-committed changes from r17711.
3578 (WebCore::Frame::command):
3579 (WebCore::FramePrivate::FramePrivate):
3581 * page/FramePrivate.h:
3583 2006-11-10 Anders Carlsson <acarlsson@apple.com>
3587 Add more commands, make toggleBold and toggleItalic executable commands.
3590 * editing/Editor.cpp:
3591 (WebCore::execCopy):
3593 (WebCore::execDelete):
3594 (WebCore::execForwardDelete):
3595 (WebCore::execPaste):
3596 (WebCore::execSelectAll):
3597 (WebCore::execToggleBold):
3598 (WebCore::execToggleItalic):
3600 (WebCore::canPaste):
3601 (WebCore::hasEditableSelection):
3602 (WebCore::hasEditableRangeSelection):
3603 (WebCore::hasRangeSelection):
3604 (WebCore::hasRichlyEditableSelection):
3605 (WebCore::CommandEntry::):
3608 2006-11-10 Anders Carlsson <acarlsson@apple.com>
3610 Reviewed by Maciej, Geoff.
3612 Added an execCommand method to Editor. The idea is that this should replace the CommandByName object. Get rid of
3613 the alterCurrentSelection method in the bridge. WebKit can just call execCommand directly.
3616 * bridge/mac/WebCoreFrameBridge.h:
3617 * bridge/mac/WebCoreFrameBridge.mm:
3618 * editing/Editor.cpp:
3619 (WebCore::execMoveBackward):
3620 (WebCore::execMoveBackwardAndModifySelection):
3621 (WebCore::execMoveDown):
3622 (WebCore::execMoveDownAndModifySelection):
3623 (WebCore::execMoveForward):
3624 (WebCore::execMoveForwardAndModifySelection):
3625 (WebCore::execMoveLeft):
3626 (WebCore::execMoveLeftAndModifySelection):
3627 (WebCore::execMoveRight):
3628 (WebCore::execMoveRightAndModifySelection):
3629 (WebCore::execMoveToBeginningOfDocument):
3630 (WebCore::execMoveToBeginningOfDocumentAndModifySelection):
3631 (WebCore::execMoveToBeginningOfSentence):
3632 (WebCore::execMoveToBeginningOfSentenceAndModifySelection):
3633 (WebCore::execMoveToBeginningOfLine):
3634 (WebCore::execMoveToBeginningOfLineAndModifySelection):
3635 (WebCore::execMoveToBeginningOfParagraph):
3636 (WebCore::execMoveToBeginningOfParagraphAndModifySelection):
3637 (WebCore::execMoveToEndOfDocument):
3638 (WebCore::execMoveToEndOfDocumentAndModifySelection):
3639 (WebCore::execMoveToEndOfSentence):
3640 (WebCore::execMoveToEndOfSentenceAndModifySelection):
3641 (WebCore::execMoveToEndOfLine):
3642 (WebCore::execMoveToEndOfLineAndModifySelection):
3643 (WebCore::execMoveToEndOfParagraph):
3644 (WebCore::execMoveToEndOfParagraphAndModifySelection):
3645 (WebCore::execMoveParagraphBackwardAndModifySelection):
3646 (WebCore::execMoveParagraphForwardAndModifySelection):
3647 (WebCore::execMoveUp):
3648 (WebCore::execMoveUpAndModifySelection):
3649 (WebCore::execMoveWordBackward):
3650 (WebCore::execMoveWordBackwardAndModifySelection):
3651 (WebCore::execMoveWordForward):
3652 (WebCore::execMoveWordForwardAndModifySelection):
3653 (WebCore::execMoveWordLeft):
3654 (WebCore::execMoveWordLeftAndModifySelection):
3655 (WebCore::execMoveWordRight):
3656 (WebCore::execMoveWordRightAndModifySelection):
3657 (WebCore::enabledAnySelection):
3658 (WebCore::createCommandMap):
3659 (WebCore::CommandEntry::):
3660 (WebCore::Editor::execCommand):
3663 2006-11-10 Brady Eidson <beidson@apple.com>
3667 Took out WebIconDatabaseBridge and made WebKit call IconDatabase directly
3670 * WebCore.xcodeproj/project.pbxproj:
3671 * bridge/mac/WebCoreIconDatabaseBridge.h: Removed.
3672 * bridge/mac/WebCoreIconDatabaseBridge.mm: Removed.
3673 * loader/FrameLoaderClient.h:
3674 * loader/icon/IconDatabase.cpp:
3675 (WebCore::IconDatabase::sharedIconDatabase):
3676 (WebCore::IconDatabase::~IconDatabase):
3677 * loader/icon/IconDatabase.h:
3678 (WebCore::IconDatabase::isPrivateBrowsingEnabled):
3679 (WebCore::IconDatabase::enabled):
3680 * loader/icon/IconLoader.cpp:
3681 (WebCore::IconLoader::finishLoading):
3682 * loader/mac/FrameLoaderMac.mm:
3684 2006-11-10 Zack Rusin <zack@kde.org>
3686 Reviewed and landed by Anders.
3688 Adjust platform Qt/KDE code to the recent loader
3692 * loader/DocumentLoader.h:
3693 * loader/FrameLoader.cpp:
3694 (WebCore::FrameLoader::createEmptyDocument):
3695 * loader/FrameLoader.h:
3696 * loader/FrameLoaderClient.h:
3697 * loader/qt/DocumentLoaderQt.cpp: Added.
3698 (WebCore::canonicalizedTitle):
3699 (WebCore::DocumentLoader::DocumentLoader):
3700 (WebCore::DocumentLoader::frameLoader):
3701 (WebCore::DocumentLoader::~DocumentLoader):
3702 (WebCore::DocumentLoader::URL):
3703 (WebCore::DocumentLoader::unreachableURL):
3704 (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
3705 (WebCore::DocumentLoader::isStopping):
3706 (WebCore::DocumentLoader::clearErrors):
3707 (WebCore::DocumentLoader::stopLoading):
3708 (WebCore::DocumentLoader::setupForReplace):
3709 (WebCore::DocumentLoader::commitIfReady):
3710 (WebCore::DocumentLoader::finishedLoading):
3711 (WebCore::DocumentLoader::setCommitted):
3712 (WebCore::DocumentLoader::isCommitted):
3713 (WebCore::DocumentLoader::setLoading):
3714 (WebCore::DocumentLoader::isLoading):
3715 (WebCore::DocumentLoader::doesProgressiveLoad):
3716 (WebCore::DocumentLoader::setupForReplaceByMIMEType):
3717 (WebCore::DocumentLoader::updateLoading):
3718 (WebCore::DocumentLoader::setFrame):
3719 (WebCore::DocumentLoader::attachToFrame):
3720 (WebCore::DocumentLoader::detachFromFrame):
3721 (WebCore::DocumentLoader::prepareForLoadStart):
3722 (WebCore::DocumentLoader::loadingStartedTime):
3723 (WebCore::DocumentLoader::setIsClientRedirect):
3724 (WebCore::DocumentLoader::isClientRedirect):
3725 (WebCore::DocumentLoader::setPrimaryLoadComplete):
3726 (WebCore::DocumentLoader::isLoadingInAPISense):
3727 (WebCore::DocumentLoader::stopRecordingResponses):
3728 (WebCore::DocumentLoader::title):
3729 (WebCore::DocumentLoader::triggeringAction):
3730 (WebCore::DocumentLoader::setTriggeringAction):
3731 (WebCore::DocumentLoader::setOverrideEncoding):
3732 (WebCore::DocumentLoader::overrideEncoding):
3733 (WebCore::DocumentLoader::setTitle):
3734 (WebCore::DocumentLoader::URLForHistory):
3735 * loader/qt/FrameLoaderClientQt.cpp: Added.
3736 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3737 (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
3738 (WebCore::FrameLoaderClientQt::detachFrameLoader):
3739 (WebCore::FrameLoaderClientQt::hasWebView):
3740 (WebCore::FrameLoaderClientQt::hasFrameView):
3741 (WebCore::FrameLoaderClientQt::hasBackForwardList):
3742 (WebCore::FrameLoaderClientQt::resetBackForwardList):
3743 (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
3744 (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
3745 (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
3746 (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
3747 (WebCore::FrameLoaderClientQt::makeDocumentView):
3748 (WebCore::FrameLoaderClientQt::makeRepresentation):
3749 (WebCore::FrameLoaderClientQt::forceLayout):
3750 (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
3751 (WebCore::FrameLoaderClientQt::updateHistoryForCommit):
3752 (WebCore::FrameLoaderClientQt::updateHistoryForBackForwardNavigation):
3753 (WebCore::FrameLoaderClientQt::updateHistoryForReload):
3754 (WebCore::FrameLoaderClientQt::updateHistoryForStandardLoad):
3755 (WebCore::FrameLoaderClientQt::updateHistoryForInternalLoad):
3756 (WebCore::FrameLoaderClientQt::updateHistoryAfterClientRedirect):
3757 (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
3758 (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
3759 (WebCore::FrameLoaderClientQt::resetAfterLoadError):
3760 (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
3761 (WebCore::FrameLoaderClientQt::willCloseDocument):
3762 (WebCore::FrameLoaderClientQt::detachedFromParent1):
3763 (WebCore::FrameLoaderClientQt::detachedFromParent2):
3764 (WebCore::FrameLoaderClientQt::detachedFromParent3):
3765 (WebCore::FrameLoaderClientQt::detachedFromParent4):
3766 (WebCore::FrameLoaderClientQt::loadedFromPageCache):
3767 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
3768 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
3769 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
3770 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
3771 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
3772 (WebCore::FrameLoaderClientQt::dispatchWillClose):
3773 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
3774 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
3775 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
3776 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3777 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
3778 (WebCore::FrameLoaderClientQt::dispatchShow):
3779 (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
3780 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
3781 (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
3782 (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
3783 (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
3784 (WebCore::FrameLoaderClientQt::revertToProvisionalState):
3785 (WebCore::FrameLoaderClientQt::clearUnarchivingState):
3786 (WebCore::FrameLoaderClientQt::progressStarted):
3787 (WebCore::FrameLoaderClientQt::progressCompleted):
3788 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
3789 (WebCore::FrameLoaderClientQt::willChangeTitle):
3790 (WebCore::FrameLoaderClientQt::didChangeTitle):
3791 (WebCore::FrameLoaderClientQt::finishedLoading):
3792 (WebCore::FrameLoaderClientQt::finalSetupForReplace):
3793 (WebCore::FrameLoaderClientQt::setDefersLoading):
3794 (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
3795 (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
3796 (WebCore::FrameLoaderClientQt::clearArchivedResources):
3797 (WebCore::FrameLoaderClientQt::canShowMIMEType):
3798 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
3799 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
3800 (WebCore::FrameLoaderClientQt::frameLoadCompleted):
3801 (WebCore::FrameLoaderClientQt::restoreScrollPositionAndViewState):
3802 (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
3803 (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
3804 (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
3805 (WebCore::FrameLoaderClientQt::didFinishLoad):
3806 (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
3807 (WebCore::FrameLoaderClientQt::setTitle):
3808 (WebCore::FrameLoaderClientQt::userAgent):
3809 * loader/qt/FrameLoaderClientQt.h: Added.
3810 * loader/qt/FrameLoaderQt.cpp:
3811 (WebCore::FrameLoader::submitForm):
3812 (WebCore::FrameLoader::overrideMediaType):
3813 (WebCore::FrameLoader::getHistoryLength):
3814 (WebCore::FrameLoader::referrer):
3815 (WebCore::FrameLoader::detachFromParent):
3816 (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
3817 (WebCore::FrameLoader::goBackOrForward):
3818 (WebCore::FrameLoader::historyURL):
3819 (WebCore::FrameLoader::didFirstLayout):
3820 (WebCore::FrameLoader::canGoBackOrForward):
3821 (WebCore::FrameLoader::partClearedInBegin):
3822 (WebCore::FrameLoader::saveDocumentState):
3823 (WebCore::FrameLoader::restoreDocumentState):
3824 (WebCore::FrameLoader::didChangeTitle):
3825 (WebCore::FrameLoader::redirectDataToPlugin):
3826 (WebCore::PolicyCheck::PolicyCheck):
3827 (WebCore::PolicyCheck::clear):
3828 (WebCore::PolicyCheck::set):
3829 (WebCore::PolicyCheck::call):
3830 (WebCore::PolicyCheck::clearRequest):
3831 * loader/qt/NavigationActionQt.cpp: Added.
3832 (WebCore::navigationType):
3833 (WebCore::NavigationAction::NavigationAction):
3834 * loader/qt/ResourceLoaderQt.cpp: Added.
3835 (WebCore::ResourceLoader::ResourceLoader):
3836 (WebCore::ResourceLoader::~ResourceLoader):
3837 (WebCore::ResourceLoader::setDefersLoading):
3838 (WebCore::ResourceLoader::cancel):
3839 (WebCore::ResourceLoader::loadsBlocked):
3840 * platform/MimeTypeRegistry.cpp:
3841 (WebCore::initialiseSupportedImageMIMETypes):
3842 * platform/network/qt/ResourceHandleManager.cpp:
3843 (WebCore::ResourceHandleManager::slotResult):
3844 (WebCore::ResourceHandleManager::cancel):
3845 * platform/qt/ChromeClientQt.cpp: Added.
3846 (WebCore::rootWindowForFrame):
3847 (WebCore::ChromeClientQt::ChromeClientQt):
3848 (WebCore::ChromeClientQt::~ChromeClientQt):
3849 (WebCore::ChromeClientQt::setWindowRect):
3850 (WebCore::ChromeClientQt::windowRect):
3851 (WebCore::ChromeClientQt::pageRect):
3852 (WebCore::ChromeClientQt::scaleFactor):
3853 (WebCore::ChromeClientQt::focus):
3854 (WebCore::ChromeClientQt::unfocus):
3855 (WebCore::ChromeClientQt::createWindow):
3856 (WebCore::ChromeClientQt::createModalDialog):
3857 (WebCore::ChromeClientQt::show):
3858 (WebCore::ChromeClientQt::canRunModal):
3859 (WebCore::ChromeClientQt::runModal):
3860 (WebCore::ChromeClientQt::setToolbarsVisible):
3861 (WebCore::ChromeClientQt::toolbarsVisible):
3862 (WebCore::ChromeClientQt::setStatusbarVisible):
3863 (WebCore::ChromeClientQt::statusbarVisible):
3864 (WebCore::ChromeClientQt::setScrollbarsVisible):
3865 (WebCore::ChromeClientQt::scrollbarsVisible):
3866 (WebCore::ChromeClientQt::setMenubarVisible):
3867 (WebCore::ChromeClientQt::menubarVisible):
3868 (WebCore::ChromeClientQt::setResizable):
3869 * platform/qt/ChromeClientQt.h: Added.
3870 * platform/qt/EditorClientQt.cpp:
3871 (WebCore::EditorClientQt::shouldBeginEditing):
3872 (WebCore::EditorClientQt::shouldEndEditing):
3873 (WebCore::EditorClientQt::shouldApplyStyle):
3874 (WebCore::EditorClientQt::didBeginEditing):
3875 (WebCore::EditorClientQt::respondToChangedContents):
3876 (WebCore::EditorClientQt::didEndEditing):
3877 * platform/qt/EditorClientQt.h:
3878 * platform/qt/FrameQt.cpp:
3879 (WebCore::FrameQt::FrameQt):
3880 (WebCore::FrameQt::~FrameQt):
3881 (WebCore::FrameQt::keyEvent):
3882 * platform/qt/FrameQt.h:
3883 * platform/qt/FrameQtClient.cpp:
3884 (WebCore::FrameQtClientDefault::openURL):
3885 (WebCore::FrameQtClientDefault::didReceiveData):
3886 (WebCore::FrameQtClientDefault::receivedAllData):
3887 * platform/qt/ImageQt.cpp:
3888 * platform/qt/MimeTypeRegistryQt.cpp: Added.
3889 (WebCore::getMIMETypeForUTI):
3890 (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
3891 * platform/qt/PageQt.cpp:
3892 * platform/qt/PlatformKeyboardEventQt.cpp:
3893 (WebCore::keyIdentifierForQtKeyCode):
3894 * platform/qt/ScreenQt.cpp:
3895 * platform/qt/TemporaryLinkStubs.cpp:
3896 (WebCore::TextField::TextField):
3897 (WebCore::screenDepth):
3898 (WebCore::screenDepthPerComponent):
3899 (WebCore::screenIsMonochrome):
3900 (WebCore::screenRect):
3901 (WebCore::screenAvailableRect):
3903 2006-11-10 Brady Eidson <beidson@apple.com>
3907 http://bugs.webkit.org/show_bug.cgi?id=11554
3908 Fix the above bug (in didFinishLoading) and also another potential bug in didFailWithError
3909 in case the icon load fails after some data has been received.
3911 * loader/icon/IconLoader.cpp:
3912 (WebCore::IconLoader::didFailWithError): Clear the buffer so half-an-image isn't commited to the DB
3913 on error. Also, as a loader re-factoring sanity check, added an assertion
3914 (WebCore::IconLoader::didFinishLoading): If an icon loader resulted in an error-response, the icon
3915 is already committed to the DB. Skip doing that step twice.
3917 2006-11-09 Oliver Hunt <oliver@apple.com>
3921 Pulled MIME type handling out of WebFrameBridge and added
3922 a general C++ class to store/query MIME info
3923 Added an Obj-C bridge to provide WebKit with access to the
3924 MimeTypeRegistry for non-Obj-C++ classes.
3927 * WebCore.xcodeproj/project.pbxproj:
3928 * bridge/mac/WebCoreFrameBridge.h:
3929 * bridge/mac/WebCoreFrameBridge.mm:
3930 * bridge/mac/WebMimeTypeRegistryBridge.h: Added.
3931 * bridge/mac/WebMimeTypeRegistryBridge.mm: Added.
3932 (+[WebMimeTypeRegistryBridge supportsImageWithMIMEType:]):
3933 (+[WebMimeTypeRegistryBridge supportsNonImageWithMIMEType:]):
3934 (+[WebMimeTypeRegistryBridge supportedNonImageMIMETypes]):
3935 (+[WebMimeTypeRegistryBridge supportedImageMIMETypes]):
3936 (+[WebMimeTypeRegistryBridge supportedImageResourceMIMETypes]):
3937 * platform/Image.cpp:
3938 (WebCore::Image::supportsType):
3940 * platform/MimeTypeRegistry.cpp: Added.
3941 (WebCore::initialiseSupportedImageMIMETypes):
3942 (WebCore::initialiseSupportedNonImageMimeTypes):
3943 (WebCore::initialiseMimeTypeRegistry):
3944 (WebCore::MimeTypeRegistry::isSupportedImageMIMEType):
3945 (WebCore::MimeTypeRegistry::isSupportedImageResourceMIMEType):
3946 (WebCore::MimeTypeRegistry::isSupportedNonImageMIMEType):
3947 (WebCore::MimeTypeRegistry::getSupportedImageMIMETypes):
3948 (WebCore::MimeTypeRegistry::getSupportedImageResourceMIMETypes):
3949 (WebCore::MimeTypeRegistry::getSupportedNonImageMIMETypes):
3950 * platform/MimeTypeRegistry.h: Added.
3951 * platform/mac/ImageMac.mm:
3952 * platform/mac/MimeTypeRegistryMac.mm: Added.
3953 (WebCore::getMIMETypeForUTI):
3954 (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
3956 2006-11-09 Maciej Stachowiak <mjs@apple.com>
3960 - rename String::sprintf and DeprecatedString::sprintf to ...::format to avoid needlessly tweaking a search
3961 for insecure functions. Neither of these has risk of buffer overruns since they calculate the buffer size
3962 for you and use vsnprintf.
3964 * bindings/js/kjs_window.cpp:
3965 (KJS::Window::isSafeScript):
3966 * css/cssparser.cpp:
3967 (WebCore::CSSParser::parseColorFromValue):
3968 * dom/StyledElement.cpp:
3969 (WebCore::StyledElement::addCSSColor):
3970 * dom/XMLTokenizer.cpp:
3971 (WebCore::XMLTokenizer::handleError):
3972 * ksvg2/css/SVGCSSParser.cpp:
3973 (WebCore::CSSParser::parseSVGPaint):
3974 (WebCore::CSSParser::parseSVGColor):
3975 * ksvg2/svg/SVGPathSegArc.h:
3976 (WebCore::SVGPathSegArcAbs::toString):
3977 (WebCore::SVGPathSegArcRel::toString):
3978 * ksvg2/svg/SVGPathSegCurvetoCubic.h:
3979 (WebCore::SVGPathSegCurvetoCubicAbs::toString):
3980 (WebCore::SVGPathSegCurvetoCubicRel::toString):
3981 * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
3982 (WebCore::SVGPathSegCurvetoCubicSmoothAbs::toString):
3983 (WebCore::SVGPathSegCurvetoCubicSmoothRel::toString):
3984 * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
3985 (WebCore::SVGPathSegCurvetoQuadraticAbs::toString):
3986 (WebCore::SVGPathSegCurvetoQuadraticRel::toString):
3987 * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
3988 (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::toString):
3989 (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::toString):
3990 * ksvg2/svg/SVGPathSegLineto.h:
3991 (WebCore::SVGPathSegLinetoAbs::toString):
3992 (WebCore::SVGPathSegLinetoRel::toString):
3993 * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
3994 (WebCore::SVGPathSegLinetoHorizontalAbs::toString):
3995 (WebCore::SVGPathSegLinetoHorizontalRel::toString):
3996 * ksvg2/svg/SVGPathSegLinetoVertical.h:
3997 (WebCore::SVGPathSegLinetoVerticalAbs::toString):
3998 (WebCore::SVGPathSegLinetoVerticalRel::toString):
3999 * ksvg2/svg/SVGPathSegMoveto.h:
4000 (WebCore::SVGPathSegMovetoAbs::toString):
4001 (WebCore::SVGPathSegMovetoRel::toString):
4002 * ksvg2/svg/SVGPolyElement.cpp:
4003 (WebCore::SVGPolyElement::notifyAttributeChange):
4004 * ksvg2/svg/SVGUseElement.cpp:
4005 (WebCore::SVGUseElement::closeRenderer):
4006 * loader/icon/IconDatabase.cpp:
4007 (WebCore::IconDatabase::forgetIconForIconURLFromDatabase):
4008 * loader/icon/SQLDatabase.cpp:
4009 (WebCore::SQLDatabase::setSynchronous):
4010 * platform/Color.cpp:
4011 (WebCore::Color::name):
4012 * platform/DeprecatedString.cpp:
4013 (WebCore::DeprecatedString::setNum):
4014 (WebCore::DeprecatedString::format):
4015 * platform/DeprecatedString.h:
4016 * platform/PlatformString.h:
4017 * platform/String.cpp:
4018 (WebCore::String::format):
4019 (WebCore::String::number):
4020 * platform/mac/KeyEventMac.mm:
4021 (WebCore::keyIdentifierForKeyEvent):
4022 * platform/win/KeyEventWin.cpp:
4023 (WebCore::keyIdentifierForWindowsKeyCode):
4024 * rendering/RenderListMarker.cpp:
4025 (WebCore::RenderListMarker::calcMinMaxWidth):
4027 2006-11-09 Maciej Stachowiak <mjs@apple.com>
4031 - fixed "Regression: Can't log into gmail.com"
4032 - fixed "iBench doesn't report results - tests run but no number is recorded"
4034 * platform/network/cf/FormDataStreamCFNet.cpp:
4035 (WebCore::setHTTPBody): Removed extra ! character.
4037 2006-11-09 Beth Dakin <bdakin@apple.com>
4041 Fix for <rdar://problem/4805409> REGRESSION: Reproducible crash in
4042 WebCore::RenderBlock::skipWhitespace
4044 Note that this will still crash on Debug builds because it will hit
4045 an assertion failure in editing. (One of the reasons there is no
4046 layout test along with this fix.) There is definitely some editing
4047 wackiness happening. See http://bugs.webkit.org/show_bug.cgi?
4048 id=10144 for updates on the assertion failure bug.
4050 * rendering/RootInlineBox.cpp:
4051 (WebCore::RootInlineBox::childRemoved): It is possible for a
4052 prevRootBox and its prevRootBox to share a lineBreakObj. So instead
4053 of just clearing the lineBreakObj of the prevRootBox, cycle through
4054 all prevRootBoxs with the same lineBreakObj.
4056 2006-11-09 Adam Roben <aroben@apple.com>
4060 Fix the change in behavior I caused in r17680 with my build fix.
4062 * rendering/RenderObject.cpp:
4063 (WebCore::RenderObject::maxTopMargin):
4064 (WebCore::RenderObject::maxBottomMargin):
4066 2006-11-09 Anders Carlsson <acarlsson@apple.com>
4068 Reviewed by Adam, Oliver.
4070 Move more functions to Editor.
4072 * bridge/EditorClient.h:
4073 * bridge/mac/FrameMac.h:
4074 * bridge/mac/FrameMac.mm:
4075 * bridge/mac/WebCoreFrameBridge.h:
4076 * editing/EditCommand.cpp:
4077 (WebCore::EditCommand::apply):
4078 (WebCore::EditCommand::unapply):
4079 (WebCore::EditCommand::reapply):
4080 * editing/Editor.cpp:
4081 (WebCore::Editor::respondToChangedContents):
4082 (WebCore::dispatchEditableContentChangedEvents):
4083 (WebCore::Editor::appliedEditing):
4084 (WebCore::Editor::unappliedEditing):
4085 (WebCore::Editor::reappliedEditing):
4087 * editing/TypingCommand.cpp:
4088 (WebCore::TypingCommand::typingAddedToOpenCommand):
4092 2006-11-09 Darin Adler <darin@apple.com>
4094 * rendering/RenderObject.h: Oops! Fixed accidentally checked-in ifdef.
4096 2006-11-09 Alice Liu <alice.liu@apple.com>
4098 Reviewed by Beth Dakin.
4100 Fixed <rdar://problem/4808720> Hamachi test tool crashes Safari in WebCore::HTMLTableSectionElement::deleteRow
4101 All existing layout tests pass
4103 * html/HTMLTableElement.cpp:
4104 (WebCore::HTMLTableElement::deleteRow):
4105 check lastSection before deleting row
4107 2006-11-09 Darin Adler <darin@apple.com>
4109 - improved version of last night's build fix (should not do using namespace in a header)
4111 * rendering/RenderObject.h:
4112 * rendering/RenderObject.cpp:
4113 (WebCore::RenderObject::maxTopMargin):
4114 (WebCore::RenderObject::maxBottomMargin):
4116 2006-11-08 Maciej Stachowiak <mjs@apple.com>
4120 - added ResourceError class and didFailWithError client method
4122 * WebCore.xcodeproj/project.pbxproj:
4123 * loader/icon/IconLoader.cpp:
4124 (WebCore::IconLoader::didFailWithError):
4125 (WebCore::IconLoader::didFinishLoading):
4126 * loader/icon/IconLoader.h:
4127 * loader/loader.cpp:
4128 (WebCore::Loader::receivedAllData):
4129 (WebCore::Loader::didFailWithError):
4131 * loader/mac/SubresourceLoaderMac.mm:
4132 (WebCore::SubresourceLoader::didFail):
4133 (WebCore::SubresourceLoader::didCancel):
4134 * platform/cf/RetainPtr.h:
4136 (WebCore::adoptCFReference):
4137 (WebCore::RetainPtr::RetainPtr):
4139 * platform/network/ResourceError.cpp: Added.
4140 * platform/network/ResourceError.h: Added.
4141 (WebCore::ResourceError::ResourceError):
4142 (WebCore::ResourceError::domain):
4143 (WebCore::ResourceError::errorCode):
4144 (WebCore::ResourceError::failingURL):
4145 (WebCore::ResourceError::localizedDescription):
4146 (WebCore::ResourceError::unpackPlatformErrorIfNeeded):
4147 * platform/network/ResourceHandle.cpp:
4148 * platform/network/ResourceHandle.h:
4149 * platform/network/ResourceHandleClient.h:
4150 (WebCore::ResourceHandleClient::didFailWithError):
4151 * platform/network/cf/ResourceHandleCFNet.cpp:
4153 (WebCore::ResourceHandle::cancel):
4154 * platform/network/mac/ResourceErrorMac.mm: Added.
4155 (-[NSError WebCore]):
4156 * platform/network/mac/ResourceHandleMac.mm:
4157 (WebCore::ResourceHandle::reportError):
4158 * xml/xmlhttprequest.cpp:
4159 (WebCore::XMLHttpRequest::didFailWithError):
4160 (WebCore::XMLHttpRequest::didFinishLoading):
4161 * xml/xmlhttprequest.h:
4163 2006-11-08 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
4169 * platform/gdk/ChromeClientGdk.h:
4170 (WebCore::ChromeClientGdk::~ChromeClientGdk):
4171 * platform/gdk/CursorGdk.cpp:
4172 (WebCore::Cursor::Cursor):
4173 (WebCore::moveCursor):
4174 * platform/gdk/FrameGdk.cpp:
4175 (WebCore::FrameGdk::FrameGdk):
4176 (WebCore::FrameGdk::submitForm):
4177 (WebCore::FrameGdk::urlSelected):
4178 * platform/gdk/PageGdk.cpp:
4179 * platform/gdk/ScreenClientGdk.h: Added.
4180 (WebCore::ScreenClientGdk::~ScreenClientGdk):
4181 * platform/gdk/ScreenGdk.cpp:
4182 (WebCore::ScreenClientGdk::depth):
4183 (WebCore::ScreenClientGdk::depthPerComponent):
4184 (WebCore::ScreenClientGdk::isMonochrome):