Reviewed by Ada.
[WebKit-https.git] / WebCore / ChangeLog
1 2006-11-28  Adam Roben  <aroben@apple.com>
2
3         Reviewed by Ada.
4
5         Add platform-specific constructor/destructor to ContextMenu so we can
6         properly retain/release the platform menu description.
7
8         * platform/ContextMenu.h:
9         (WebCore::ContextMenu::platformDescription):
10         * platform/mac/ContextMenuMac.mm:
11         (WebCore::ContextMenu::ContextMenu):
12         (WebCore::ContextMenu::~ContextMenu):
13         (WebCore::getNSMenuItem):
14         (WebCore::ContextMenu::appendItem):
15         (WebCore::ContextMenu::itemCount):
16         (WebCore::ContextMenu::insertItem):
17         (WebCore::ContextMenu::setPlatformDescription):
18
19 2006-11-28  Adam Roben  <aroben@apple.com>
20
21         Build fix.
22
23         * platform/network/mac/ResourceRequestMac.mm:
24
25 2006-11-28  David Harrison  <harrison@apple.com>
26
27         Reviewed by Adele.
28
29         <rdar://problem/4852804> selection color does not get drawn over the missing image rectangle
30
31         Test:
32         * editing/selection/select-missing-image.html: Added.
33
34         * rendering/RenderImage.cpp:
35         (WebCore::RenderImage::paint):
36         Draw the selection tint even if the image itself is not available.
37
38 2006-11-28  Anders Carlsson  <acarlsson@apple.com>
39
40         Reviewed by Maciej.
41
42         Have ResourceRequest hold on to the platform object so we don't
43         have to convert back and forth when nothing in the object changes.
44
45         * WebCore.exp:
46         * WebCore.xcodeproj/project.pbxproj:
47         * loader/mac/FrameLoaderMac.mm:
48         (WebCore::FrameLoader::continueAfterNavigationPolicy):
49         * page/Chrome.cpp:
50         (WebCore::Chrome::pageRect):
51         * platform/network/ResourceRequest.cpp: Added.
52         (WebCore::ResourceRequest::isEmpty):
53         (WebCore::ResourceRequest::url):
54         (WebCore::ResourceRequest::setURL):
55         (WebCore::ResourceRequest::cachePolicy):
56         (WebCore::ResourceRequest::setCachePolicy):
57         (WebCore::ResourceRequest::timeoutInterval):
58         (WebCore::ResourceRequest::setTimeoutInterval):
59         (WebCore::ResourceRequest::mainDocumentURL):
60         (WebCore::ResourceRequest::setMainDocumentURL):
61         (WebCore::ResourceRequest::httpMethod):
62         (WebCore::ResourceRequest::setHTTPMethod):
63         (WebCore::ResourceRequest::httpHeaderFields):
64         (WebCore::ResourceRequest::httpHeaderField):
65         (WebCore::ResourceRequest::setHTTPHeaderField):
66         (WebCore::ResourceRequest::httpBody):
67         (WebCore::ResourceRequest::setHTTPBody):
68         (WebCore::ResourceRequest::allowHTTPCookies):
69         (WebCore::ResourceRequest::setAllowHTTPCookies):
70         (WebCore::ResourceRequest::updatePlatformRequest):
71         (WebCore::ResourceRequest::updateResourceRequest):
72         (WebCore::ResourceRequest::addHTTPHeaderField):
73         (WebCore::ResourceRequest::addHTTPHeaderFields):
74         * platform/network/ResourceRequest.h:
75         (WebCore::ResourceRequest::ResourceRequest):
76         * platform/network/mac/ResourceHandleMac.mm:
77         (WebCore::ResourceHandle::willSendRequest):
78         * platform/network/mac/ResourceRequestMac.h: Removed.
79         * platform/network/mac/ResourceRequestMac.mm:
80         (WebCore::ResourceRequest::nsURLRequest):
81         (WebCore::ResourceRequest::doUpdateResourceRequest):
82         (WebCore::ResourceRequest::doUpdatePlatformRequest):
83
84 2006-11-28  Adam Roben  <aroben@apple.com>
85
86         Reviewed by Beth.
87
88         More WebCore context menu work (still not turned on, however).
89
90         Split ContextMenuItem into its own files and make it a class.
91
92         * WebCore.exp: Updated symbols.
93         * WebCore.xcodeproj/project.pbxproj: Added new ContextMenuItem files.
94         * platform/ContextMenu.cpp:
95         (WebCore::ContextMenu::populate): Code cleanup.
96         * platform/ContextMenu.h: Split ContextMenuItem into a separate file,
97         removed redundant "Menu" part of platformMenuDescription(),
98         setPlatformMenuDescription().
99         (WebCore::ContextMenu::ContextMenu):
100         (WebCore::ContextMenu::hitTestResult):
101         (WebCore::ContextMenu::platformDescription):
102         * platform/ContextMenuItem.h: Added. Made ContextMenuItem a
103         full-fledged class.
104         (WebCore::):
105         (WebCore::ContextMenuItem::ContextMenuItem):
106         (WebCore::ContextMenuItem::menu):
107         (WebCore::ContextMenuItem::platformDescription):
108         (WebCore::ContextMenuItem::type):
109         (WebCore::ContextMenuItem::action):
110         (WebCore::ContextMenuItem::title):
111         * platform/mac/ContextMenuItemMac.mm: Added.
112         (WebCore::ContextMenuItem::ContextMenuItem):
113         * platform/mac/ContextMenuMac.mm: Updated for ContextMenuItem changes.
114         (-[MenuTarget forwardContextMenuAction:]):
115         (getNSMenuItem): Handle separator items.
116         (ContextMenu::appendItem):
117         (ContextMenu::itemCount):
118         (ContextMenu::insertItem):
119         (ContextMenu::setPlatformDescription):
120         * page/ContextMenuController.h: Updated declaration, added getter.
121         (WebCore::ContextMenuController::contextMenu):
122
123         Added some more context menu plumbing.
124
125         * dom/EventTargetNode.cpp:
126         (WebCore::EventTargetNode::defaultEventHandler): Added code to call the
127         ContextMenuController when a context menu event is received.
128         * page/ContextMenuClient.h: New client method declaration.
129         * page/ContextMenuController.cpp:
130         (WebCore::ContextMenuController::handleContextMenuEvent): Set the event
131         defaultHandled after handling it.
132         (WebCore::ContextMenuController::contextMenuItemSelected): Take a
133         ContextMenuItem instead of a separate action and title.
134
135         Changed event-handling methods to return bools to signify whether the
136         event was handled or not. This is needed so we can know whether to hand
137         the event off to the OS. Also restructured some code to use early
138         returns instead of nesting ifs.
139
140         * page/EventHandler.cpp:
141         (WebCore::EventHandler::handleMousePressEventDoubleClick):
142         (WebCore::EventHandler::handleMousePressEventTripleClick):
143         (WebCore::EventHandler::handleMousePressEventSingleClick):
144         (WebCore::EventHandler::handleMousePressEvent):
145         (WebCore::EventHandler::handleMouseMoveEvent):
146         (WebCore::EventHandler::handleMouseReleaseEvent):
147         (WebCore::EventHandler::handleMouseDoubleClickEvent):
148         (WebCore::EventHandler::handleWheelEvent):
149         (WebCore::EventHandler::canMouseDownStartSelect):
150         * page/EventHandler.h:
151         * page/FrameView.cpp:
152         (WebCore::FrameView::handleMouseMoveEvent):
153         (WebCore::FrameView::handleMouseReleaseEvent):
154         * page/FrameView.h:
155         * platform/ScrollBar.h: More bool return values.
156         (WebCore::Scrollbar::handleMouseMoveEvent):
157         (WebCore::Scrollbar::handleMouseOutEvent):
158         * platform/Widget.h: Ditto.
159         (WebCore::Widget::handleMouseMoveEvent):
160         (WebCore::Widget::handleMouseReleaseEvent):
161
162         Reverted the changes made in r17805 so that we can have fewer header
163         #includes.
164
165         * page/Page.cpp:
166         (WebCore::Page::Page):
167         * page/Page.h: Ditto.
168         (WebCore::Page::dragCaretController):
169         (WebCore::Page::chrome):
170         (WebCore::Page::contextMenuController):
171
172 2006-11-28  Alice Liu  <alice.liu@apple.com>
173
174         Reviewed by Justin and Adam.
175
176         All layout tests pass as they do without this patch
177
178         * WebCore.exp:
179         Exposed functions in Editor and removed functions in FrameMac due to changes in WebHTMLView.m
180
181         * WebCore.xcodeproj/project.pbxproj:
182         Added Pasteboard.h, PasteboardMac.mm, WebNSAttributedStringExtras.h&mm, EditorMac.mm
183
184         * bridge/EditorClient.h:
185         Added smartInsertDeleteEnabled and shouldInsertNode and some mac-specific functions
186
187         * bridge/mac/FrameMac.h:
188         * bridge/mac/FrameMac.mm:
189         Removed dispatchCPPEvent and [can|try]DHTML[cut|copy|paste] since the Editor's are called now
190
191         * dom/CharacterData.h:
192         (WebCore::CharacterData::isCharacterDataNode):
193         * dom/Node.h:
194         (WebCore::Node::isCharacterDataNode):
195         Added a type-identifying function to Node and the proper subclass
196
197         * dom/Clipboard.h:
198         Exposed setAccessPolicy as public
199         
200         * editing/Editor.h:
201         * editing/Editor.cpp:
202         Implemented the following
203         (WebCore::Editor::canDHTMLCut):
204         (WebCore::Editor::canDHTMLCopy):
205         (WebCore::Editor::canDHTMLPaste):
206         (WebCore::Editor::canSmartCopyOrDelete):
207         (WebCore::Editor::deleteSelection):
208         (WebCore::Editor::pasteAsPlainTextWithPasteboard):
209         (WebCore::Editor::pasteWithPasteboard):
210         (WebCore::Editor::canSmartReplaceWithPasteboard):
211         (WebCore::Editor::shouldInsertFragment):
212         (WebCore::Editor::replaceSelectionWithFragment):
213         (WebCore::Editor::replaceSelectionWithText):
214         (WebCore::Editor::selectedRange):
215         (WebCore::Editor::shouldDeleteRange):
216         (WebCore::Editor::tryDHTMLCopy):
217         (WebCore::Editor::tryDHTMLCut):
218         (WebCore::Editor::tryDHTMLPaste):
219         (WebCore::Editor::writeSelectionToPasteboard):
220         (WebCore::Editor::dispatchCPPEvent):
221         (WebCore::Editor::cut):
222         (WebCore::Editor::copy):
223         (WebCore::Editor::paste):
224                 
225         * platform/mac/ClipboardAccessPolicy.h: Removed.
226         Not removed, but moved to dom/ClipboardAccessPolicy.h
227         
228         * platform/mac/EditorMac.mm: Added.
229         (WebCore::Editor::newGeneralClipboard):
230
231         * platform/Pasteboard.h: Added.
232         * platform/mac/PasteboardMac.mm: Added.
233         The pasteboard class follows a singleton pattern
234         (Pasteboard::generalPasteboard):
235         (Pasteboard::~Pasteboard):
236         (Pasteboard::Pasteboard):
237         (Pasteboard::clearTypes):
238         (Pasteboard::writeSelection):
239         (Pasteboard::selectionPasteboardTypes):
240         (Pasteboard::canSmartReplace):
241         (Pasteboard::plainText):
242         (Pasteboard::documentFragment):
243         
244         * platform/mac/WebNSAttributedStringExtras.h: Added.
245         * platform/mac/WebNSAttributedStringExtras.mm: Added.
246         Added select portions of this file from WebKit because the pasteboard needed the following function:
247         (-[NSAttributedString _web_attributedStringByStrippingAttachmentCharacters]):
248
249 >>>>>>> .r17909
250 2006-11-28  Justin Garcia  <justin.garcia@apple.com>
251
252         Reviewed by harrison
253
254         <rdar://problem/4397952>
255         Cannot select buttons at the end of a document, preventing copy/paste
256         
257         There were no VisiblePositions before/after buttons because editingIgnoresContent
258         returned false for buttons. 
259
260         * dom/Position.cpp:
261         (WebCore::Position::upstream): Fixed a comment.
262         (WebCore::Position::downstream): Ditto.
263         * editing/DeleteSelectionCommand.cpp:
264         (WebCore::DeleteSelectionCommand::initializeStartEnd): Ditto.
265         * editing/htmlediting.cpp:
266         (WebCore::editingIgnoresContent): It's unnecessary to prefer renderer 
267         checks over tag name checks because it seems that a node of a tag name 
268         that we do not ignore content for can't have a renderer of a type that we do.
269         (WebCore::canHaveChildrenForEditing): Added selects, buttons, applets, and embeds.
270         * editing/visible_units.cpp:
271         (WebCore::previousLinePosition): Migrate to enclosingBlock.  Fixes a bug where the
272         caret would get stuck moving up/down a line from a caret just before an 
273         input element.
274         (WebCore::nextLinePosition): Ditto.
275
276 2006-11-28  Geoffrey Garen  <ggaren@apple.com>
277
278         Reviewed by Adam.
279
280         Fixed <rdar://problem/4844848> REGRESSION: extra cross-library ref/deref 
281         calls cause .5% PLT regression.
282         
283         Changed ref/deref calls to a single 'xxxDestroyed' call. Moved EditorClient
284         from the Frame to the Page, since it's only responsible for
285         Webview-level delegate calls.
286         
287         I don't really love this design, but it fixes the regression and allows
288         a single WebKit object to implement multiple client interfaces.
289         
290         Layout tests pass.
291
292 2006-11-27  Anders Carlsson  <acarlsson@apple.com>
293
294         Try fixing the build.
295         
296         * platform/graphics/IntRect.cpp:
297         (WebCore::IntRect::IntRect):
298
299 2006-11-27  Beth Dakin  <bdakin@apple.com>
300
301         Reviewed by Adam.
302
303         Getting rid of some of the critical FIXMEs in ContextMenu.cpp.
304
305         * bridge/mac/FrameMac.h: Two new spell checker functions from 
306         WebKit. (We will be able to delete the WebKit versions once we 
307         switch over to WebCore context menus.)
308         * bridge/mac/FrameMac.mm:
309         (WebCore::FrameMac::isSelectionMisspelled):
310         (WebCore::core): Convert from NSArray of Strings to a Vector of 
311         Strings.
312         (WebCore::FrameMac::guessesForMisspelledSelection):
313         * loader/FrameLoader.cpp:
314         (WebCore::FrameLoader::canHandleRequest):
315         * loader/FrameLoader.h: Make canHandleRequest available through the 
316         FrameLoader.
317         * loader/FrameLoaderClient.h: canHandleRequest takes a 
318         ResourceRequest instead of an NSURLRequest.
319         * loader/mac/FrameLoaderMac.mm:
320         (WebCore::FrameLoader::continueAfterNavigationPolicy): Same
321         * page/Frame.h: New spell checker functions moved to Frame. These 
322         should be moved some place better some day, but FrameMac currently 
323         seems to be the place to be for spell checker stuff.
324         * platform/ContextMenu.cpp:
325         (WebCore::ContextMenu::populate): Use new FrameLoader and spell 
326         checking functionality to get rid of two if (true) statements. Also 
327         add spelling guesses to the editing context menus.
328
329 2006-11-27  Alexey Proskuryakov  <ap@webkit.org>
330
331         Reviewed by Hyatt.
332
333         http://bugs.webkit.org/show_bug.cgi?id=11694
334         XSLT output method does not default to HTML when the target document is HTML
335
336         Test: fast/xsl/default-html.html
337
338         * xml/XSLTProcessor.cpp:
339         (WebCore::XSLTProcessor::transformToString): Make mimeType an input/output parameter, 
340         serving as a hint when the stylesheet doesn't specify the output method.
341         (WebCore::XSLTProcessor::transformToFragment): Set mimeType to text/html if the target
342         document is HTML.
343
344 2006-11-27  Oliver Hunt  <oliver@apple.com>
345
346         Reviewed by Adam.
347
348         Fixes a crash in SVG caused by an attempt to 
349         perform css overflow clipping by preventing
350         the css overflow clip from being set in SVG.
351         
352         <rdar:/problems/4839568>
353
354         * WebCore.xcodeproj/project.pbxproj:
355         * rendering/RenderForeignObject.cpp:
356         (WebCore::RenderForeignObject::RenderForeignObject):
357         * rendering/RenderForeignObject.h:
358         * rendering/RenderSVGBlock.cpp: Added.
359         (WebCore::RenderSVGBlock::RenderSVGBlock):
360         (WebCore::RenderSVGBlock::setStyle):
361         * rendering/RenderSVGBlock.h: Added.
362         * rendering/RenderSVGText.cpp:
363         (WebCore::RenderSVGText::RenderSVGText):
364         * rendering/RenderSVGText.h:
365
366 2006-11-27  Anders Carlsson  <acarlsson@apple.com>
367
368         Reviewed by Adam.
369
370         Add an explicit IntRect constructor that takes a FloatRect.
371         
372         * platform/graphics/IntRect.cpp:
373         (WebCore::IntRect::IntRect):
374         * platform/graphics/IntRect.h:
375
376 2006-11-27  Ada Chan  <adachan@apple.com>
377
378         Reviewed by Adam.
379
380         Moved WebCoreCache up to WebKit.
381
382         * WebCore.exp:
383         * WebCore.xcodeproj/project.pbxproj:
384         * bridge/mac/WebCoreCache.h: Removed.
385         * bridge/mac/WebCoreCache.mm: Removed.
386
387 2006-11-27  Anders Carlsson  <acarlsson@apple.com>
388
389         Reviewed by Adam.
390
391         Move addMessageToConsole to Chrome.
392         
393         * bindings/js/kjs_events.cpp:
394         (KJS::JSAbstractEventListener::handleEvent):
395         * bindings/js/kjs_proxy.cpp:
396         (WebCore::KJSProxy::evaluate):
397         * bindings/js/kjs_window.cpp:
398         (KJS::Window::isSafeScript):
399         (KJS::ScheduledAction::execute):
400         * bridge/mac/FrameMac.h:
401         * bridge/mac/FrameMac.mm:
402         * bridge/mac/WebCoreFrameBridge.h:
403         * page/Chrome.cpp:
404         (WebCore::Chrome::addMessageToConsole):
405         * page/Chrome.h:
406         * page/ChromeClient.h:
407         * page/Frame.h:
408
409 2006-11-27  Adele Peterson  <adele@apple.com>
410
411         Reviewed by Hyatt.
412
413         - Fix for http://bugs.webkit.org/show_bug.cgi?id=8062
414           Caret color in new text field should take background color and foreground color into consideration
415
416         * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
417           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)
418           as well as in editable WebViews, like in Mail, which will just pick up the color from the body element.
419
420 2006-11-26  Simon Hausmann  <hausmann@kde.org>
421
422         Reviewed by Maciej.
423
424         http://bugs.webkit.org/show_bug.cgi?id=11693
425         Fix the Qt build, adapt to various enum/class renamings.
426
427         * kcanvas/device/qt/KRenderingDeviceQt.cpp:
428         (WebCore::KRenderingDeviceQt::createResource):
429         (WebCore::KRenderingDeviceQt::createPaintServer):
430         * kcanvas/device/qt/KRenderingDeviceQt.h:
431         * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
432         (WebCore::SVGPaintServerLinearGradient::setup):
433         * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
434         (WebCore::SVGPaintServer::renderPath):
435         * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
436         (WebCore::setup):
437         * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
438         (WebCore::SVGPaintServerSolid::setup):
439
440 2006-11-24  Rob Buis  <buis@kde.org>
441
442         Reviewed by Mitz.
443
444         http://bugs.webkit.org/show_bug.cgi?id=11666
445         .getScreenCTM() returns wrong values
446
447         Take into account the local transform matrix too and
448         so fix getScreenCTM/getCTM for <text>.
449
450         * ksvg2/svg/SVGStyledTransformableElement.cpp:
451         (SVGStyledTransformableElement::getCTM):
452         (SVGStyledTransformableElement::getScreenCTM):
453         * ksvg2/svg/SVGTextElement.cpp:
454         (WebCore::SVGTextElement::getScreenCTM):
455         (WebCore::SVGTextElement::getCTM):
456         * ksvg2/svg/SVGTransformable.cpp:
457         (WebCore::SVGTransformable::getCTM):
458         (WebCore::SVGTransformable::getScreenCTM):
459         * ksvg2/svg/SVGTransformable.h:
460
461 2006-11-22  Rob Buis  <buis@kde.org>
462
463         Reviewed by Eric.
464
465         http://bugs.webkit.org/show_bug.cgi?id=11661
466         SVG: stroke not sensitive to mouse events (hit testing fails)
467
468         Use mapAbsolutePointToLocal when hit-testing strokes.
469
470         * rendering/RenderPath.cpp:
471         (WebCore::RenderPath::fillContains):
472         (WebCore::RenderPath::nodeAtPoint):
473
474 2006-11-21  Anders Carlsson  <acarlsson@apple.com>
475
476         Reviewed by Mitz.
477
478         General SVG cleanup. Change some enums to match the style guidelines, use PLATFORM(CG) instead of PLATFORM(MAC).
479         Remove config.h inluce from AffineTransform.h
480         
481         * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
482         (WebCore::KRenderingDeviceQuartz::createPaintServer):
483         (WebCore::KRenderingDeviceQuartz::createResource):
484         * ksvg2/misc/KCanvasRenderingStyle.cpp:
485         (WebCore::sharedSolidPaintServer):
486         * ksvg2/svg/SVGFilterElement.cpp:
487         (WebCore::SVGFilterElement::canvasResource):
488         * ksvg2/svg/SVGLinearGradientElement.cpp:
489         (WebCore::SVGLinearGradientElement::buildGradient):
490         * ksvg2/svg/SVGLinearGradientElement.h:
491         (WebCore::SVGLinearGradientElement::gradientType):
492         * ksvg2/svg/SVGPatternElement.cpp:
493         (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
494         (WebCore::SVGPatternElement::canvasResource):
495         * ksvg2/svg/SVGRadialGradientElement.cpp:
496         (WebCore::SVGRadialGradientElement::buildGradient):
497         * ksvg2/svg/SVGRadialGradientElement.h:
498         (WebCore::SVGRadialGradientElement::gradientType):
499         * platform/graphics/AffineTransform.h:
500         * platform/graphics/svg/SVGPaintServer.h:
501         (WebCore::):
502         * platform/graphics/svg/SVGPaintServerGradient.cpp:
503         (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
504         (WebCore::SVGPaintServerGradient::~SVGPaintServerGradient):
505         * platform/graphics/svg/SVGPaintServerGradient.h:
506         * platform/graphics/svg/SVGPaintServerLinearGradient.h:
507         (WebCore::SVGPaintServerLinearGradient::type):
508         * platform/graphics/svg/SVGPaintServerPattern.h:
509         (WebCore::SVGPaintServerPattern::type):
510         * platform/graphics/svg/SVGPaintServerRadialGradient.h:
511         (WebCore::SVGPaintServerRadialGradient::type):
512         * platform/graphics/svg/SVGPaintServerSolid.h:
513         (WebCore::SVGPaintServerSolid::type):
514         * platform/graphics/svg/SVGResource.h:
515         (WebCore::):
516         * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
517         (WebCore::SVGPaintServer::renderPath):
518         * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
519         (WebCore::SVGPaintServerGradient::updateQuartzGradientCache):
520         (WebCore::SVGPaintServerGradient::teardown):
521         (WebCore::SVGPaintServerGradient::renderPath):
522         (WebCore::SVGPaintServerGradient::setup):
523         * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
524         (WebCore::SVGPaintServerPattern::setup):
525         * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
526         (WebCore::SVGPaintServerSolid::setup):
527         * rendering/RenderPath.cpp:
528         (WebCore::RenderPath::paint):
529         * rendering/SVGInlineFlowBox.cpp:
530         (WebCore::paintSVGInlineFlow):
531
532 2006-11-21  Nikolas Zimmermann  <zimmermann@kde.org>
533
534         Reviewed by Oliver.
535
536         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11658
537
538         Move KRenderingPaintServer* classes to the location
539         of all other resources (platform/graphics/svg).
540
541         Soon the whole platform/graphics/svg stuff will bemoved
542         into ksvg2/ itself, as discussed with Darin.
543
544         * CMakeLists.txt:
545         * WebCore.xcodeproj/project.pbxproj:
546         * kcanvas/device/KRenderingDevice.h:
547         * kcanvas/device/KRenderingPaintServer.h: Removed.
548         * kcanvas/device/KRenderingPaintServerGradient.cpp: Removed.
549         * kcanvas/device/KRenderingPaintServerGradient.h: Removed.
550         * kcanvas/device/KRenderingPaintServerPattern.cpp: Removed.
551         * kcanvas/device/KRenderingPaintServerPattern.h: Removed.
552         * kcanvas/device/KRenderingPaintServerSolid.cpp: Removed.
553         * kcanvas/device/KRenderingPaintServerSolid.h: Removed.
554         * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp: Removed.
555         * kcanvas/device/qt/KRenderingPaintServerGradientQt.h: Removed.
556         * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp: Removed.
557         * kcanvas/device/qt/KRenderingPaintServerPatternQt.h: Removed.
558         * kcanvas/device/qt/KRenderingPaintServerQt.cpp: Removed.
559         * kcanvas/device/qt/KRenderingPaintServerQt.h: Removed.
560         * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp: Removed.
561         * kcanvas/device/qt/KRenderingPaintServerSolidQt.h: Removed.
562         * kcanvas/device/quartz/KCanvasItemQuartz.h: Removed.
563         * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
564         (WebCore::KRenderingDeviceQuartz::createPaintServer):
565         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
566         * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.cpp: Removed.
567         * kcanvas/device/quartz/KRenderingPaintServerQuartz.cpp: Removed.
568         * kcanvas/device/quartz/KRenderingPaintServerQuartz.h: Removed.
569         * ksvg2/misc/KCanvasRenderingStyle.cpp:
570         (WebCore::sharedSolidPaintServer):
571         (WebCore::KSVGPainterFactory::fillPaintServer):
572         (WebCore::KSVGPainterFactory::strokePaintServer):
573         * ksvg2/misc/KCanvasRenderingStyle.h:
574         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
575         * ksvg2/svg/SVGFEOffsetElement.cpp:
576         * ksvg2/svg/SVGGradientElement.cpp:
577         (WebCore::SVGGradientElement::canvasResource):
578         (WebCore::SVGGradientElement::resourceNotification):
579         (WebCore::SVGGradientElement::rebuildStops):
580         * ksvg2/svg/SVGGradientElement.h:
581         * ksvg2/svg/SVGLinearGradientElement.cpp:
582         (WebCore::SVGLinearGradientElement::buildGradient):
583         * ksvg2/svg/SVGLinearGradientElement.h:
584         (WebCore::SVGLinearGradientElement::gradientType):
585         * ksvg2/svg/SVGPatternElement.cpp:
586         (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
587         (WebCore::SVGPatternElement::canvasResource):
588         * ksvg2/svg/SVGPatternElement.h:
589         * ksvg2/svg/SVGRadialGradientElement.cpp:
590         (WebCore::SVGRadialGradientElement::buildGradient):
591         * ksvg2/svg/SVGRadialGradientElement.h:
592         (WebCore::SVGRadialGradientElement::gradientType):
593         * platform/graphics/svg/SVGPaintServer.cpp: Added.
594         (WebCore::SVGPaintServer::SVGPaintServer):
595         (WebCore::SVGPaintServer::~SVGPaintServer):
596         (WebCore::SVGPaintServer::activeClient):
597         (WebCore::SVGPaintServer::setActiveClient):
598         (WebCore::SVGPaintServer::isPaintingText):
599         (WebCore::SVGPaintServer::setPaintingText):
600         (WebCore::operator<<):
601         (WebCore::getPaintServerById):
602         * platform/graphics/svg/SVGPaintServer.h: Added.
603         (WebCore::):
604         (WebCore::SVGPaintServer::isPaintServer):
605         * platform/graphics/svg/SVGPaintServerGradient.cpp: Added.
606         (WebCore::compareStopOffset):
607         (WebCore::operator<<):
608         (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
609         (WebCore::SVGPaintServerGradient::~SVGPaintServerGradient):
610         (WebCore::SVGPaintServerGradient::gradientStops):
611         (WebCore::SVGPaintServerGradient::setGradientStops):
612         (WebCore::SVGPaintServerGradient::spreadMethod):
613         (WebCore::SVGPaintServerGradient::setGradientSpreadMethod):
614         (WebCore::SVGPaintServerGradient::boundingBoxMode):
615         (WebCore::SVGPaintServerGradient::setBoundingBoxMode):
616         (WebCore::SVGPaintServerGradient::gradientTransform):
617         (WebCore::SVGPaintServerGradient::setGradientTransform):
618         (WebCore::SVGPaintServerGradient::listener):
619         (WebCore::SVGPaintServerGradient::setListener):
620         (WebCore::SVGPaintServerGradient::externalRepresentation):
621         * platform/graphics/svg/SVGPaintServerGradient.h: Added.
622         (WebCore::):
623         (WebCore::SVGPaintServerGradient::):
624         (WebCore::makeGradientStop):
625         * platform/graphics/svg/SVGPaintServerLinearGradient.cpp: Added.
626         (WebCore::SVGPaintServerLinearGradient::SVGPaintServerLinearGradient):
627         (WebCore::SVGPaintServerLinearGradient::~SVGPaintServerLinearGradient):
628         (WebCore::SVGPaintServerLinearGradient::gradientStart):
629         (WebCore::SVGPaintServerLinearGradient::setGradientStart):
630         (WebCore::SVGPaintServerLinearGradient::gradientEnd):
631         (WebCore::SVGPaintServerLinearGradient::setGradientEnd):
632         (WebCore::SVGPaintServerLinearGradient::externalRepresentation):
633         * platform/graphics/svg/SVGPaintServerLinearGradient.h: Added.
634         (WebCore::SVGPaintServerLinearGradient::type):
635         * platform/graphics/svg/SVGPaintServerPattern.cpp: Added.
636         (WebCore::SVGPaintServerPattern::SVGPaintServerPattern):
637         (WebCore::SVGPaintServerPattern::~SVGPaintServerPattern):
638         (WebCore::SVGPaintServerPattern::bbox):
639         (WebCore::SVGPaintServerPattern::setBbox):
640         (WebCore::SVGPaintServerPattern::boundingBoxMode):
641         (WebCore::SVGPaintServerPattern::setBoundingBoxMode):
642         (WebCore::SVGPaintServerPattern::tile):
643         (WebCore::SVGPaintServerPattern::setTile):
644         (WebCore::SVGPaintServerPattern::patternTransform):
645         (WebCore::SVGPaintServerPattern::setPatternTransform):
646         (WebCore::SVGPaintServerPattern::listener):
647         (WebCore::SVGPaintServerPattern::setListener):
648         (WebCore::SVGPaintServerPattern::externalRepresentation):
649         * platform/graphics/svg/SVGPaintServerPattern.h: Added.
650         (WebCore::SVGPaintServerPattern::type):
651         * platform/graphics/svg/SVGPaintServerRadialGradient.cpp: Added.
652         (WebCore::SVGPaintServerRadialGradient::SVGPaintServerRadialGradient):
653         (WebCore::SVGPaintServerRadialGradient::~SVGPaintServerRadialGradient):
654         (WebCore::SVGPaintServerRadialGradient::gradientCenter):
655         (WebCore::SVGPaintServerRadialGradient::setGradientCenter):
656         (WebCore::SVGPaintServerRadialGradient::gradientFocal):
657         (WebCore::SVGPaintServerRadialGradient::setGradientFocal):
658         (WebCore::SVGPaintServerRadialGradient::gradientRadius):
659         (WebCore::SVGPaintServerRadialGradient::setGradientRadius):
660         (WebCore::SVGPaintServerRadialGradient::externalRepresentation):
661         * platform/graphics/svg/SVGPaintServerRadialGradient.h: Added.
662         (WebCore::SVGPaintServerRadialGradient::type):
663         * platform/graphics/svg/SVGPaintServerSolid.cpp: Added.
664         (WebCore::SVGPaintServerSolid::SVGPaintServerSolid):
665         (WebCore::SVGPaintServerSolid::~SVGPaintServerSolid):
666         (WebCore::SVGPaintServerSolid::color):
667         (WebCore::SVGPaintServerSolid::setColor):
668         (WebCore::SVGPaintServerSolid::externalRepresentation):
669         * platform/graphics/svg/SVGPaintServerSolid.h: Added.
670         (WebCore::SVGPaintServerSolid::type):
671         * platform/graphics/svg/SVGResource.cpp:
672         * platform/graphics/svg/SVGResource.h:
673         * platform/graphics/svg/SVGResourceClipper.cpp:
674         * platform/graphics/svg/SVGResourceMarker.cpp:
675         * platform/graphics/svg/SVGResourceMasker.cpp:
676         * platform/graphics/svg/cg/SVGPaintServerCg.cpp: Added.
677         (WebCore::SVGPaintServer::draw):
678         (WebCore::SVGPaintServer::teardown):
679         (WebCore::SVGPaintServer::renderPath):
680         (WebCore::SVGPaintServer::strokePath):
681         (WebCore::SVGPaintServer::clipToStrokePath):
682         (WebCore::SVGPaintServer::fillPath):
683         (WebCore::SVGPaintServer::clipToFillPath):
684         * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: Added.
685         (WebCore::cgGradientCallback):
686         (WebCore::CGShadingRefForLinearGradient):
687         (WebCore::CGShadingRefForRadialGradient):
688         (WebCore::SVGPaintServerGradient::invalidateCaches):
689         (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
690         (WebCore::SVGPaintServerGradient::updateQuartzGradientCache):
691         (WebCore::SVGPaintServerGradient::teardown):
692         (WebCore::SVGPaintServerGradient::renderPath):
693         (WebCore::SVGPaintServerGradient::setup):
694         (WebCore::SVGPaintServerGradient::invalidate):
695         * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp: Added.
696         (WebCore::patternCallback):
697         (WebCore::SVGPaintServerPattern::setup):
698         (WebCore::SVGPaintServerPattern::teardown):
699         * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp: Added.
700         (WebCore::SVGPaintServerSolid::setup):
701         * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp: Added.
702         (WebCore::SVGPaintServerGradient::fillColorArray):
703         * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp: Added.
704         (WebCore::SVGPaintServerLinearGradient::setup):
705         * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp: Added.
706         (WebCore::SVGPaintServerPattern::setup):
707         * platform/graphics/svg/qt/SVGPaintServerQt.cpp: Added.
708         (WebCore::SVGPaintServer::setPenProperties):
709         (WebCore::SVGPaintServer::draw):
710         (WebCore::SVGPaintServer::teardown):
711         (WebCore::SVGPaintServer::renderPath):
712         * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp: Added.
713         (WebCore::setup):
714         * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp: Added.
715         (WebCore::SVGPaintServerSolid::setup):
716         * rendering/RenderPath.cpp:
717         (WebCore::RenderPath::paint):
718         * rendering/SVGInlineFlowBox.cpp:
719         (WebCore::paintSVGInlineFlow):
720         * rendering/SVGRenderTreeAsText.cpp:
721         (WebCore::writeStyle):
722         (WebCore::writeRenderResources):
723
724 2006-11-21  Alex Taylor  <darwin@techvisual.co.nz>
725
726         Reviewed by Mitz.
727
728         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11587
729
730         Adds calculations for bottom right radius's position
731         which was being drawn incorrectly.
732
733         * rendering/RenderObject.cpp:
734         (WebCore::RenderObject::paintBorder):
735
736 2006-11-20  Rob Buis  <buis@kde.org>
737
738         Reviewed by Maciej.
739
740         http://bugs.webkit.org/show_bug.cgi?id=11519
741         REGRESSION: Disabled file upload control doesn't have disabled appearance, failing fast/forms/file-input-disabled.html
742
743         Transport disabled state from DOM element to the shadow
744         DOM/render object.
745
746         * rendering/RenderFileUploadControl.cpp:
747         (WebCore::RenderFileUploadControl::updateFromElement):
748         * rendering/RenderTheme.h:
749
750 2006-11-20  Anders Carlsson  <acarlsson@apple.com>
751
752         Reviewed by Maciej.
753
754         * loader/TextResourceDecoder.cpp:
755         (WebCore::findXMLEncoding):
756         Use CString instead of DeprecatedCString.
757         
758         * platform/CString.cpp:
759         (WebCore::CString::find):
760         * platform/CString.h:
761         (WebCore::CString::data):
762         Add find method, make data method inline.
763         
764         * platform/TextStream.cpp:
765         * platform/TextStream.h:
766         Remove DeprecatedCString functions.
767
768 2006-11-20  Anders Carlsson  <acarlsson@apple.com>
769
770         Reviewed by Maciej.
771
772         Use CString instead of DeprecatedCString.
773         
774         * html/FormDataList.cpp:
775         (WebCore::FormDataList::appendString):
776         (WebCore::fixLineBreaks):
777         (WebCore::FormDataList::appendFile):
778
779 2006-11-20  Samuel Weinig  <sam@webkit.org>
780
781         Reviewed by Alexey.
782
783         Fix for http://bugs.webkit.org/show_bug.cgi?id=11656
784         Fix Windows build
785
786         * WebCore.vcproj/WebCore/WebCore.vcproj:
787         * bridge/win/ContextMenuClientWin.h:
788         * bridge/win/EditorClientWin.h:
789         * bridge/win/FrameWin.h:
790         * platform/win/TemporaryLinkStubs.cpp:
791         (WebCore::ContextMenu::show):
792         (WebCore::ContextMenuClientWin::copyLinkToClipboard):
793         (WebCore::ContextMenuClientWin::downloadURL):
794         (WebCore::ContextMenuClientWin::copyImageToClipboard):
795         (WebCore::ContextMenuClientWin::lookUpInDictionary):
796         (WebCore::EditorClientWin::shouldInsertText):
797         (WebCore::FrameLoader::reload):
798         (WebCore::FrameWin::ignoreSpelling):
799         (WebCore::FrameWin::learnSpelling):
800
801 2006-11-20  Alexey Proskuryakov  <ap@webkit.org>
802
803         Reviewed by Maciej.
804
805         http://bugs.webkit.org/show_bug.cgi?id=10736
806         XMLHttpRequest.responseXML should be null on error
807
808         * dom/XMLTokenizer.cpp:
809         (WebCore::XMLTokenizer::wellFormed):
810         * dom/XMLTokenizer.h:
811         (WebCore::Tokenizer::wellFormed):
812         * dom/Document.cpp:
813         (WebCore::Document::Document):
814         (WebCore::Document::implicitClose):
815         * dom/Document.h:
816         (WebCore::Document::wellFormed):
817         Tell whether XMLTokenizer saw an error. Always true (success) for HTML.
818
819         * xml/xmlhttprequest.cpp:
820         (WebCore::XMLHttpRequest::getResponseXML): Set the document to null if it's not well-formed.
821
822 2006-11-20  Alexey Proskuryakov  <ap@webkit.org>
823
824         Reviewed by Sam Weinig.
825
826         http://bugs.webkit.org/show_bug.cgi?id=11633
827         Implement XMLDocument properties xmlEncoding, xmlVersion, xmlStandalone
828
829         * dom/Document.cpp:
830         (WebCore::Document::Document):
831         (WebCore::Document::setXMLVersion):
832         (WebCore::Document::setXMLStandalone):
833         * dom/Document.h:
834         (WebCore::Document::xmlEncoding):
835         (WebCore::Document::xmlVersion):
836         (WebCore::Document::xmlStandalone):
837         (WebCore::Document::setXMLEncoding):
838         * dom/Document.idl:
839         * dom/XMLTokenizer.cpp:
840         (WebCore::XMLTokenizer::startDocument):
841         (WebCore::startDocumentHandler):
842         (WebCore::XMLTokenizer::initializeParserContext):
843         Added support for these properties, getting them from an libxml2 context.
844
845         * html/HTMLDocument.cpp:
846         (WebCore::HTMLDocument::HTMLDocument):
847         HTMLDocument is the only kind of document that doesn't have xmlVersion default to "1.0".
848
849         * bindings/scripts/CodeGeneratorJS.pm:
850         * bindings/scripts/CodeGeneratorObjC.pm:
851         Added WK_ucfirst to properly uppercase xmlVersion and xmlStandalone.
852
853 2006-11-20  Nikolas Zimmermann  <zimmermann@kde.org>
854
855         Reviewed by Rob.
856
857         Fix Qt/Linux build.
858
859         * platform/qt/ContextMenuClientQt.cpp:
860         (WebCore::ContextMenuClientQt::ref):
861         (WebCore::ContextMenuClientQt::deref):
862         (WebCore::ContextMenuClientQt::copyLinkToClipboard):
863         (WebCore::ContextMenuClientQt::downloadURL):
864         (WebCore::ContextMenuClientQt::copyImageToClipboard):
865         (WebCore::ContextMenuClientQt::lookUpInDictionary):
866         * platform/qt/ContextMenuClientQt.h:
867         * platform/qt/ContextMenuQt.cpp:
868         (WebCore::ContextMenu::appendItem):
869         (WebCore::ContextMenu::show):
870         (WebCore::ContextMenu::itemCount):
871         (WebCore::ContextMenu::insertItem):
872         * platform/qt/EditorClientQt.cpp:
873         (WebCore::EditorClientQt::shouldInsertText):
874         * platform/qt/EditorClientQt.h:
875         * platform/qt/FrameQt.cpp:
876         (WebCore::FrameQt::ignoreSpelling):
877         (WebCore::FrameQt::learnSpelling):
878         * platform/qt/FrameQt.h:
879         * platform/qt/TemporaryLinkStubs.cpp:
880         (FrameLoader::reload):
881
882 2006-11-20  Samuel Weinig  <sam@webkit.org>
883
884         Reviewed by Maciej.
885
886         Fix for http://bugs.webkit.org/show_bug.cgi?id=11647
887         Fix Win32 build
888
889         * config.h: add #define NOMINMAX for windows build
890         * platform/win/FontCacheWin.cpp:
891         (WebCore::FontCache::createFontPlatformData):
892         * platform/win/TemporaryLinkStubs.cpp: add definitions for 
893         new cursors.
894         (WebCore::aliasCursor):
895         (WebCore::noDropCursor):
896         (WebCore::progressCursor):
897
898 2006-11-19  Beth Dakin  <bdakin@apple.com>
899
900         Reviewed by Adam.
901
902         Implementation of actions for the new context menus.
903
904         * WebCore.exp:
905         * WebCore.xcodeproj/project.pbxproj:
906         * bridge/EditorClient.h: Declaration of shouldInsertText.
907         * bridge/mac/FrameMac.h: Two new spelling functions.
908         * bridge/mac/FrameMac.mm:
909         (WebCore::FrameMac::ignoreSpelling):
910         (WebCore::FrameMac::learnSpelling):
911         * editing/Editor.cpp:
912         (WebCore::Editor::shouldInsertText): Call into the client.
913         * editing/Editor.h:
914         * editing/EditorInsertAction.h: Added.
915         (WebCore::): The WebCore equivalent of WebViewInsertAction. This is 
916         defined in its own header so that we can use it from Editor.h and 
917         EditorClient.h without having one of the above include the other.
918         * page/ContextMenuClient.h: A few currently WebKit-implemented 
919         function needed for menu actions.
920         * page/ContextMenuController.cpp:
921         (WebCore::makeGoogleSearchURL):
922         (WebCore::ContextMenuController::contextMenuActionSelected): The 
923         actions!
924         * page/ContextMenuController.h:
925         * page/Frame.h: New pure-virtual spelling functions.
926         * platform/ContextMenu.cpp:
927         (WebCore::ContextMenu::controller): Get the controller from the 
928         menu.
929         * platform/ContextMenu.h:
930         * platform/mac/ContextMenuMac.mm:
931         (-[MenuTarget 
932         forwardContextMenuAction:initWithContextMenuController:WebCore::]): 
933         Use the controller instead of the menu
934         (-[MenuTarget WebCore::]):
935         (-[MenuTarget setMenuController:WebCore::]):
936         (-[MenuTarget forwardContextMenuAction:]):
937         (getNSMenuItem):
938         (ContextMenu::show):
939         (ContextMenu::hide):
940
941 2006-11-19  Simon Hausmann  <hausmann@kde.org>
942
943         Reviewed by Zack.
944
945         http://bugs.webkit.org/show_bug.cgi?id=11649
946         Fix CMake files for Qt-only build without KDE cmake files.
947         Fix Qt/KDE build for the SVG support.
948         Fix Qt-only build in the resource handler.
949
950         * CMakeLists.txt:
951         * platform/graphics/svg/qt/SVGResourceFilterQt.cpp: Added.
952         (WebCore::SVGResourceFilter::SVGResourceFilter):
953         (WebCore::SVGResourceFilter::~SVGResourceFilter):
954         (WebCore::SVGResourceFilter::prepareFilter):
955         (WebCore::SVGResourceFilter::applyFilter):
956         * platform/network/qt/ResourceHandleManager.cpp:
957         (WebCore::ResourceHandleManager::cancel):
958         (WebCore::ResourceHandleManager::slotData):
959         (WebCore::ResourceHandleManager::slotMimetype):
960         (WebCore::ResourceHandleManager::slotResult):
961         (WebCore::ResourceHandleManager::deliverJobData):
962         * platform/network/qt/ResourceHandleManager.h:
963         * platform/network/qt/ResourceHandleQt.cpp:
964         * platform/qt/CursorQt.cpp:
965         (WebCore::noDropCursor):
966         (WebCore::progressCursor):
967         (WebCore::aliasCursor):
968
969 2006-11-19  Mitz Pettel  <mitz@webkit.org>
970
971         Reviewed by Maciej.
972
973         - http://bugs.webkit.org/show_bug.cgi?id=11626
974           Automate test for rdar://problem/4056100
975
976         * manual-tests/delete-into-nested-block.html: Removed.
977
978 2006-11-19  Nikolas Zimmermann  <zimmermann@kde.org>
979
980         Reviewed by Oliver.
981
982         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11596
983
984         Split up KCanvasFilters & KCanvasFilterQuartz into several
985         new classes (SVGFEBlend, SVGFEComposite...) and move them
986         into platform/graphics/svg. This is still a temporary location,
987         as discussed with Darin; the whole platform/graphics/svg directory
988         will probably be moved into ksvg2/ in near future.
989
990         This finally removes the duplicated enumerations in the svg filter
991         classes and within kcanvas. ksvg2/ and platform/graphics/svg share
992         their enums now. As KCanvasFilters is gone now, The kcanvas/ subdirectory
993         is empty.
994
995         * CMakeLists.txt:
996         * WebCore.xcodeproj/project.pbxproj:
997         * bindings/scripts/CodeGeneratorJS.pm:
998         * kcanvas/KCanvasFilters.cpp: Removed.
999         * kcanvas/KCanvasFilters.h: Removed.
1000         * kcanvas/device/KRenderingDevice.h:
1001         * kcanvas/device/qt/KRenderingDeviceQt.cpp:
1002         (WebCore::KRenderingDeviceQt::createFilterEffect):
1003         * kcanvas/device/qt/KRenderingDeviceQt.h:
1004         * kcanvas/device/quartz/KCanvasFilterQuartz.h: Removed.
1005         * kcanvas/device/quartz/KCanvasFilterQuartz.mm: Removed.
1006         * kcanvas/device/quartz/KCanvasItemQuartz.cpp:
1007         * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
1008         (WebCore::KRenderingDeviceQuartz::createResource):
1009         (WebCore::KRenderingDeviceQuartz::createFilterEffect):
1010         * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
1011         * kcanvas/device/quartz/filters/WKArithmeticFilter.cikernel: Removed.
1012         * kcanvas/device/quartz/filters/WKArithmeticFilter.h: Removed.
1013         * kcanvas/device/quartz/filters/WKArithmeticFilter.m: Removed.
1014         * kcanvas/device/quartz/filters/WKComponentMergeFilter.cikernel: Removed.
1015         * kcanvas/device/quartz/filters/WKComponentMergeFilter.h: Removed.
1016         * kcanvas/device/quartz/filters/WKComponentMergeFilter.m: Removed.
1017         * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.cikernel: Removed.
1018         * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.h: Removed.
1019         * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.m: Removed.
1020         * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.cikernel: Removed.
1021         * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.h: Removed.
1022         * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.m: Removed.
1023         * kcanvas/device/quartz/filters/WKDisplacementMapFilter.cikernel: Removed.
1024         * kcanvas/device/quartz/filters/WKDisplacementMapFilter.h: Removed.
1025         * kcanvas/device/quartz/filters/WKDisplacementMapFilter.m: Removed.
1026         * kcanvas/device/quartz/filters/WKDistantLightFilter.cikernel: Removed.
1027         * kcanvas/device/quartz/filters/WKDistantLightFilter.h: Removed.
1028         * kcanvas/device/quartz/filters/WKDistantLightFilter.m: Removed.
1029         * kcanvas/device/quartz/filters/WKGammaTransferFilter.cikernel: Removed.
1030         * kcanvas/device/quartz/filters/WKGammaTransferFilter.h: Removed.
1031         * kcanvas/device/quartz/filters/WKGammaTransferFilter.m: Removed.
1032         * kcanvas/device/quartz/filters/WKIdentityTransferFilter.h: Removed.
1033         * kcanvas/device/quartz/filters/WKIdentityTransferFilter.m: Removed.
1034         * kcanvas/device/quartz/filters/WKLinearTransferFilter.cikernel: Removed.
1035         * kcanvas/device/quartz/filters/WKLinearTransferFilter.h: Removed.
1036         * kcanvas/device/quartz/filters/WKLinearTransferFilter.m: Removed.
1037         * kcanvas/device/quartz/filters/WKNormalMapFilter.cikernel: Removed.
1038         * kcanvas/device/quartz/filters/WKNormalMapFilter.h: Removed.
1039         * kcanvas/device/quartz/filters/WKNormalMapFilter.m: Removed.
1040         * kcanvas/device/quartz/filters/WKPointLightFilter.cikernel: Removed.
1041         * kcanvas/device/quartz/filters/WKPointLightFilter.h: Removed.
1042         * kcanvas/device/quartz/filters/WKPointLightFilter.m: Removed.
1043         * kcanvas/device/quartz/filters/WKSpecularLightingFilter.cikernel: Removed.
1044         * kcanvas/device/quartz/filters/WKSpecularLightingFilter.h: Removed.
1045         * kcanvas/device/quartz/filters/WKSpecularLightingFilter.m: Removed.
1046         * kcanvas/device/quartz/filters/WKSpotLightFilter.cikernel: Removed.
1047         * kcanvas/device/quartz/filters/WKSpotLightFilter.h: Removed.
1048         * kcanvas/device/quartz/filters/WKSpotLightFilter.m: Removed.
1049         * kcanvas/device/quartz/filters/WKTableTransferFilter.cikernel: Removed.
1050         * kcanvas/device/quartz/filters/WKTableTransferFilter.h: Removed.
1051         * kcanvas/device/quartz/filters/WKTableTransferFilter.m: Removed.
1052         * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1053         (WebCore::SVGComponentTransferFunctionElement::transferFunction):
1054         * ksvg2/svg/SVGComponentTransferFunctionElement.h:
1055         * ksvg2/svg/SVGFEBlendElement.cpp:
1056         (WebCore::SVGFEBlendElement::filterEffect):
1057         * ksvg2/svg/SVGFEBlendElement.h:
1058         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1059         (WebCore::SVGFEColorMatrixElement::filterEffect):
1060         * ksvg2/svg/SVGFEColorMatrixElement.h:
1061         * ksvg2/svg/SVGFEComponentTransferElement.cpp:
1062         (WebCore::SVGFEComponentTransferElement::filterEffect):
1063         * ksvg2/svg/SVGFEComponentTransferElement.h:
1064         * ksvg2/svg/SVGFECompositeElement.cpp:
1065         (WebCore::SVGFECompositeElement::filterEffect):
1066         * ksvg2/svg/SVGFECompositeElement.h:
1067         * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1068         (WebCore::SVGFEDiffuseLightingElement::filterEffect):
1069         (WebCore::SVGFEDiffuseLightingElement::updateLights):
1070         * ksvg2/svg/SVGFEDiffuseLightingElement.h:
1071         * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
1072         (WebCore::SVGFEDisplacementMapElement::stringToChannel):
1073         (WebCore::SVGFEDisplacementMapElement::filterEffect):
1074         * ksvg2/svg/SVGFEDisplacementMapElement.h:
1075         * ksvg2/svg/SVGFEDistantLightElement.cpp:
1076         (WebCore::SVGFEDistantLightElement::lightSource):
1077         * ksvg2/svg/SVGFEDistantLightElement.h:
1078         * ksvg2/svg/SVGFEFloodElement.cpp:
1079         (WebCore::SVGFEFloodElement::filterEffect):
1080         * ksvg2/svg/SVGFEFloodElement.h:
1081         * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1082         (WebCore::SVGFEGaussianBlurElement::filterEffect):
1083         * ksvg2/svg/SVGFEGaussianBlurElement.h:
1084         * ksvg2/svg/SVGFEImageElement.cpp:
1085         (WebCore::SVGFEImageElement::filterEffect):
1086         * ksvg2/svg/SVGFEImageElement.h:
1087         * ksvg2/svg/SVGFELightElement.h:
1088         * ksvg2/svg/SVGFEMergeElement.cpp:
1089         (WebCore::SVGFEMergeElement::filterEffect):
1090         * ksvg2/svg/SVGFEMergeElement.h:
1091         * ksvg2/svg/SVGFEOffsetElement.cpp:
1092         (WebCore::SVGFEOffsetElement::filterEffect):
1093         * ksvg2/svg/SVGFEOffsetElement.h:
1094         * ksvg2/svg/SVGFEPointLightElement.cpp:
1095         (WebCore::SVGFEPointLightElement::lightSource):
1096         * ksvg2/svg/SVGFEPointLightElement.h:
1097         * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1098         (WebCore::SVGFESpecularLightingElement::filterEffect):
1099         (WebCore::SVGFESpecularLightingElement::updateLights):
1100         * ksvg2/svg/SVGFESpecularLightingElement.h:
1101         * ksvg2/svg/SVGFESpotLightElement.cpp:
1102         (WebCore::SVGFESpotLightElement::lightSource):
1103         * ksvg2/svg/SVGFESpotLightElement.h:
1104         * ksvg2/svg/SVGFETileElement.cpp:
1105         (WebCore::SVGFETileElement::filterEffect):
1106         * ksvg2/svg/SVGFETileElement.h:
1107         * ksvg2/svg/SVGFETurbulenceElement.cpp:
1108         (WebCore::SVGFETurbulenceElement::filterEffect):
1109         * ksvg2/svg/SVGFETurbulenceElement.h:
1110         (WebCore::):
1111         * ksvg2/svg/SVGFilterElement.cpp:
1112         (WebCore::SVGFilterElement::canvasResource):
1113         * ksvg2/svg/SVGFilterElement.h:
1114         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
1115         (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
1116         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
1117         * platform/graphics/FloatPoint3D.cpp: Added.
1118         (WebCore::FloatPoint3D::FloatPoint3D):
1119         (WebCore::FloatPoint3D::x):
1120         (WebCore::FloatPoint3D::setX):
1121         (WebCore::FloatPoint3D::y):
1122         (WebCore::FloatPoint3D::setY):
1123         (WebCore::FloatPoint3D::z):
1124         (WebCore::FloatPoint3D::setZ):
1125         (WebCore::FloatPoint3D::normalize):
1126         * platform/graphics/FloatPoint3D.h: Added.
1127         * platform/graphics/svg/SVGResourceFilter.cpp: Added.
1128         (WebCore::SVGResourceFilter::clearEffects):
1129         (WebCore::SVGResourceFilter::addFilterEffect):
1130         (WebCore::SVGResourceFilter::filterBBoxForItemBBox):
1131         (WebCore::SVGResourceFilter::externalRepresentation):
1132         (WebCore::getFilterById):
1133         * platform/graphics/svg/SVGResourceFilter.h: Added.
1134         (WebCore::SVGResourceFilter::isFilter):
1135         (WebCore::SVGResourceFilter::filterBoundingBoxMode):
1136         (WebCore::SVGResourceFilter::setFilterBoundingBoxMode):
1137         (WebCore::SVGResourceFilter::effectBoundingBoxMode):
1138         (WebCore::SVGResourceFilter::setEffectBoundingBoxMode):
1139         (WebCore::SVGResourceFilter::filterRect):
1140         (WebCore::SVGResourceFilter::setFilterRect):
1141         * platform/graphics/svg/SVGResourceImage.h:
1142         * platform/graphics/svg/SVGResourceListener.h:
1143         (SVGResourceListener::SVGResourceListener):
1144         (SVGResourceListener::~SVGResourceListener):
1145         * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
1146         * platform/graphics/svg/cg/SVGResourceFilterCg.mm: Added.
1147         (WebCore::SVGResourceFilter::SVGResourceFilter):
1148         (WebCore::SVGResourceFilter::~SVGResourceFilter):
1149         (WebCore::SVGResourceFilter::prepareFilter):
1150         (WebCore::SVGResourceFilter::applyFilter):
1151         (WebCore::SVGResourceFilter::getCIFilterStack):
1152         (WebCore::SVGResourceFilter::imageForName):
1153         (WebCore::SVGResourceFilter::setImageForName):
1154         (WebCore::SVGResourceFilter::setOutputImage):
1155         (WebCore::alphaImageForImage):
1156         (WebCore::SVGResourceFilter::inputImage):
1157         * platform/graphics/svg/cg/SVGResourceMaskerCg.h: Removed.
1158         * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
1159         * platform/graphics/svg/filters/SVGDistantLightSource.h: Added.
1160         (WebCore::SVGDistantLightSource::SVGDistantLightSource):
1161         (WebCore::SVGDistantLightSource::azimuth):
1162         (WebCore::SVGDistantLightSource::elevation):
1163         * platform/graphics/svg/filters/SVGFEBlend.cpp: Added.
1164         (WebCore::SVGFEBlend::in2):
1165         (WebCore::SVGFEBlend::setIn2):
1166         (WebCore::SVGFEBlend::blendMode):
1167         (WebCore::SVGFEBlend::setBlendMode):
1168         (WebCore::operator<<):
1169         (WebCore::SVGFEBlend::externalRepresentation):
1170         * platform/graphics/svg/filters/SVGFEBlend.h: Added.
1171         (WebCore::):
1172         * platform/graphics/svg/filters/SVGFEColorMatrix.cpp: Added.
1173         (WebCore::SVGFEColorMatrix::type):
1174         (WebCore::SVGFEColorMatrix::setType):
1175         (WebCore::SVGFEColorMatrix::values):
1176         (WebCore::SVGFEColorMatrix::setValues):
1177         (WebCore::operator<<):
1178         (WebCore::SVGFEColorMatrix::externalRepresentation):
1179         * platform/graphics/svg/filters/SVGFEColorMatrix.h: Added.
1180         (WebCore::):
1181         * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp: Added.
1182         (WebCore::SVGFEComponentTransfer::redFunction):
1183         (WebCore::SVGFEComponentTransfer::setRedFunction):
1184         (WebCore::SVGFEComponentTransfer::greenFunction):
1185         (WebCore::SVGFEComponentTransfer::setGreenFunction):
1186         (WebCore::SVGFEComponentTransfer::blueFunction):
1187         (WebCore::SVGFEComponentTransfer::setBlueFunction):
1188         (WebCore::SVGFEComponentTransfer::alphaFunction):
1189         (WebCore::SVGFEComponentTransfer::setAlphaFunction):
1190         (WebCore::operator<<):
1191         (WebCore::SVGFEComponentTransfer::externalRepresentation):
1192         * platform/graphics/svg/filters/SVGFEComponentTransfer.h: Added.
1193         (WebCore::):
1194         (WebCore::SVGComponentTransferFunction::SVGComponentTransferFunction):
1195         * platform/graphics/svg/filters/SVGFEComposite.cpp: Added.
1196         (WebCore::SVGFEComposite::in2):
1197         (WebCore::SVGFEComposite::setIn2):
1198         (WebCore::SVGFEComposite::operation):
1199         (WebCore::SVGFEComposite::setOperation):
1200         (WebCore::SVGFEComposite::k1):
1201         (WebCore::SVGFEComposite::setK1):
1202         (WebCore::SVGFEComposite::k2):
1203         (WebCore::SVGFEComposite::setK2):
1204         (WebCore::SVGFEComposite::k3):
1205         (WebCore::SVGFEComposite::setK3):
1206         (WebCore::SVGFEComposite::k4):
1207         (WebCore::SVGFEComposite::setK4):
1208         (WebCore::SVGFEComposite::externalRepresentation):
1209         * platform/graphics/svg/filters/SVGFEComposite.h: Added.
1210         (WebCore::):
1211         * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp: Added.
1212         (WebCore::SVGFEConvolveMatrix::kernelSize):
1213         (WebCore::SVGFEConvolveMatrix::setKernelSize):
1214         (WebCore::SVGFEConvolveMatrix::kernel):
1215         (WebCore::SVGFEConvolveMatrix::setKernel):
1216         (WebCore::SVGFEConvolveMatrix::divisor):
1217         (WebCore::SVGFEConvolveMatrix::setDivisor):
1218         (WebCore::SVGFEConvolveMatrix::bias):
1219         (WebCore::SVGFEConvolveMatrix::setBias):
1220         (WebCore::SVGFEConvolveMatrix::targetOffset):
1221         (WebCore::SVGFEConvolveMatrix::setTargetOffset):
1222         (WebCore::SVGFEConvolveMatrix::edgeMode):
1223         (WebCore::SVGFEConvolveMatrix::setEdgeMode):
1224         (WebCore::SVGFEConvolveMatrix::kernelUnitLength):
1225         (WebCore::SVGFEConvolveMatrix::setKernelUnitLength):
1226         (WebCore::SVGFEConvolveMatrix::preserveAlpha):
1227         (WebCore::SVGFEConvolveMatrix::setPreserveAlpha):
1228         (WebCore::operator<<):
1229         (WebCore::SVGFEConvolveMatrix::externalRepresentation):
1230         * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: Added.
1231         (WebCore::):
1232         * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp: Added.
1233         (WebCore::SVGFEDiffuseLighting::SVGFEDiffuseLighting):
1234         (WebCore::SVGFEDiffuseLighting::~SVGFEDiffuseLighting):
1235         (WebCore::SVGFEDiffuseLighting::lightingColor):
1236         (WebCore::SVGFEDiffuseLighting::setLightingColor):
1237         (WebCore::SVGFEDiffuseLighting::surfaceScale):
1238         (WebCore::SVGFEDiffuseLighting::setSurfaceScale):
1239         (WebCore::SVGFEDiffuseLighting::diffuseConstant):
1240         (WebCore::SVGFEDiffuseLighting::setDiffuseConstant):
1241         (WebCore::SVGFEDiffuseLighting::kernelUnitLengthX):
1242         (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthX):
1243         (WebCore::SVGFEDiffuseLighting::kernelUnitLengthY):
1244         (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthY):
1245         (WebCore::SVGFEDiffuseLighting::lightSource):
1246         (WebCore::SVGFEDiffuseLighting::setLightSource):
1247         (WebCore::SVGFEDiffuseLighting::externalRepresentation):
1248         * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: Added.
1249         * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp: Added.
1250         (WebCore::SVGFEDisplacementMap::SVGFEDisplacementMap):
1251         (WebCore::SVGFEDisplacementMap::in2):
1252         (WebCore::SVGFEDisplacementMap::setIn2):
1253         (WebCore::SVGFEDisplacementMap::xChannelSelector):
1254         (WebCore::SVGFEDisplacementMap::setXChannelSelector):
1255         (WebCore::SVGFEDisplacementMap::yChannelSelector):
1256         (WebCore::SVGFEDisplacementMap::setYChannelSelector):
1257         (WebCore::SVGFEDisplacementMap::scale):
1258         (WebCore::SVGFEDisplacementMap::setScale):
1259         (WebCore::operator<<):
1260         (WebCore::SVGFEDisplacementMap::externalRepresentation):
1261         * platform/graphics/svg/filters/SVGFEDisplacementMap.h: Added.
1262         (WebCore::):
1263         * platform/graphics/svg/filters/SVGFEFlood.cpp: Added.
1264         (WebCore::SVGFEFlood::floodColor):
1265         (WebCore::SVGFEFlood::setFloodColor):
1266         (WebCore::SVGFEFlood::floodOpacity):
1267         (WebCore::SVGFEFlood::setFloodOpacity):
1268         (WebCore::SVGFEFlood::externalRepresentation):
1269         * platform/graphics/svg/filters/SVGFEFlood.h: Added.
1270         * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp: Added.
1271         (WebCore::SVGFEGaussianBlur::stdDeviationX):
1272         (WebCore::SVGFEGaussianBlur::setStdDeviationX):
1273         (WebCore::SVGFEGaussianBlur::stdDeviationY):
1274         (WebCore::SVGFEGaussianBlur::setStdDeviationY):
1275         (WebCore::SVGFEGaussianBlur::externalRepresentation):
1276         * platform/graphics/svg/filters/SVGFEGaussianBlur.h: Added.
1277         * platform/graphics/svg/filters/SVGFEImage.cpp: Added.
1278         (WebCore::SVGFEImage::SVGFEImage):
1279         (WebCore::SVGFEImage::~SVGFEImage):
1280         (WebCore::SVGFEImage::cachedImage):
1281         (WebCore::SVGFEImage::setCachedImage):
1282         (WebCore::SVGFEImage::externalRepresentation):
1283         * platform/graphics/svg/filters/SVGFEImage.h: Added.
1284         * platform/graphics/svg/filters/SVGFEMerge.cpp: Added.
1285         (WebCore::SVGFEMerge::mergeInputs):
1286         (WebCore::SVGFEMerge::setMergeInputs):
1287         (WebCore::SVGFEMerge::externalRepresentation):
1288         * platform/graphics/svg/filters/SVGFEMerge.h: Added.
1289         * platform/graphics/svg/filters/SVGFEMorphology.cpp: Added.
1290         (WebCore::SVGFEMorphology::morphologyOperator):
1291         (WebCore::SVGFEMorphology::setMorphologyOperator):
1292         (WebCore::SVGFEMorphology::radiusX):
1293         (WebCore::SVGFEMorphology::setRadiusX):
1294         (WebCore::SVGFEMorphology::radiusY):
1295         (WebCore::SVGFEMorphology::setRadiusY):
1296         (WebCore::operator<<):
1297         (WebCore::SVGFEMorphology::externalRepresentation):
1298         * platform/graphics/svg/filters/SVGFEMorphology.h: Added.
1299         (WebCore::):
1300         * platform/graphics/svg/filters/SVGFEOffset.cpp: Added.
1301         (WebCore::SVGFEOffset::dx):
1302         (WebCore::SVGFEOffset::setDx):
1303         (WebCore::SVGFEOffset::dy):
1304         (WebCore::SVGFEOffset::setDy):
1305         (WebCore::SVGFEOffset::externalRepresentation):
1306         * platform/graphics/svg/filters/SVGFEOffset.h: Added.
1307         * platform/graphics/svg/filters/SVGFESpecularLighting.cpp: Added.
1308         (WebCore::SVGFESpecularLighting::SVGFESpecularLighting):
1309         (WebCore::SVGFESpecularLighting::~SVGFESpecularLighting):
1310         (WebCore::SVGFESpecularLighting::lightingColor):
1311         (WebCore::SVGFESpecularLighting::setLightingColor):
1312         (WebCore::SVGFESpecularLighting::surfaceScale):
1313         (WebCore::SVGFESpecularLighting::setSurfaceScale):
1314         (WebCore::SVGFESpecularLighting::specularConstant):
1315         (WebCore::SVGFESpecularLighting::setSpecularConstant):
1316         (WebCore::SVGFESpecularLighting::specularExponent):
1317         (WebCore::SVGFESpecularLighting::setSpecularExponent):
1318         (WebCore::SVGFESpecularLighting::kernelUnitLengthX):
1319         (WebCore::SVGFESpecularLighting::setKernelUnitLengthX):
1320         (WebCore::SVGFESpecularLighting::kernelUnitLengthY):
1321         (WebCore::SVGFESpecularLighting::setKernelUnitLengthY):
1322         (WebCore::SVGFESpecularLighting::lightSource):
1323         (WebCore::SVGFESpecularLighting::setLightSource):
1324         (WebCore::SVGFESpecularLighting::externalRepresentation):
1325         * platform/graphics/svg/filters/SVGFESpecularLighting.h: Added.
1326         * platform/graphics/svg/filters/SVGFETile.h: Added.
1327         * platform/graphics/svg/filters/SVGFETurbulence.cpp: Added.
1328         (WebCore::SVGFETurbulence::type):
1329         (WebCore::SVGFETurbulence::setType):
1330         (WebCore::SVGFETurbulence::baseFrequencyY):
1331         (WebCore::SVGFETurbulence::setBaseFrequencyY):
1332         (WebCore::SVGFETurbulence::baseFrequencyX):
1333         (WebCore::SVGFETurbulence::setBaseFrequencyX):
1334         (WebCore::SVGFETurbulence::seed):
1335         (WebCore::SVGFETurbulence::setSeed):
1336         (WebCore::SVGFETurbulence::numOctaves):
1337         (WebCore::SVGFETurbulence::setNumOctaves):
1338         (WebCore::SVGFETurbulence::stitchTiles):
1339         (WebCore::SVGFETurbulence::setStitchTiles):
1340         (WebCore::operator<<):
1341         (WebCore::SVGFETurbulence::externalRepresentation):
1342         * platform/graphics/svg/filters/SVGFETurbulence.h: Added.
1343         (WebCore::):
1344         * platform/graphics/svg/filters/SVGFilterEffect.cpp: Added.
1345         (WebCore::SVGFilterEffect::subRegion):
1346         (WebCore::SVGFilterEffect::setSubRegion):
1347         (WebCore::SVGFilterEffect::in):
1348         (WebCore::SVGFilterEffect::setIn):
1349         (WebCore::SVGFilterEffect::result):
1350         (WebCore::SVGFilterEffect::setResult):
1351         (WebCore::SVGFilterEffect::externalRepresentation):
1352         (WebCore::operator<<):
1353         * platform/graphics/svg/filters/SVGFilterEffect.h: Added.
1354         (WebCore::):
1355         (WebCore::SVGFilterEffect::SVGFilterEffect):
1356         (WebCore::SVGFilterEffect::~SVGFilterEffect):
1357         (WebCore::SVGFilterEffect::effectType):
1358         * platform/graphics/svg/filters/SVGLightSource.cpp: Added.
1359         (WebCore::operator<<):
1360         (WebCore::SVGPointLightSource::externalRepresentation):
1361         (WebCore::SVGSpotLightSource::externalRepresentation):
1362         (WebCore::SVGDistantLightSource::externalRepresentation):
1363         * platform/graphics/svg/filters/SVGLightSource.h: Added.
1364         (WebCore::):
1365         (WebCore::SVGLightSource::SVGLightSource):
1366         (WebCore::SVGLightSource::~SVGLightSource):
1367         (WebCore::SVGLightSource::type):
1368         * platform/graphics/svg/filters/SVGPointLightSource.h: Added.
1369         (WebCore::SVGPointLightSource::SVGPointLightSource):
1370         (WebCore::SVGPointLightSource::position):
1371         * platform/graphics/svg/filters/SVGSpotLightSource.h: Added.
1372         (WebCore::SVGSpotLightSource::SVGSpotLightSource):
1373         (WebCore::SVGSpotLightSource::position):
1374         (WebCore::SVGSpotLightSource::direction):
1375         (WebCore::SVGSpotLightSource::specularExponent):
1376         (WebCore::SVGSpotLightSource::limitingConeAngle):
1377         * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm: Added.
1378         (WebCore::SVGFEBlend::getCIFilter):
1379         * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm: Added.
1380         (WebCore::SVGFEColorMatrix::getCIFilter):
1381         * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm: Added.
1382         (WebCore::genImageFromTable):
1383         (WebCore::setParametersForComponentFunc):
1384         (WebCore::filterForComponentFunc):
1385         (WebCore::getFilterForFunc):
1386         (WebCore::SVGFEComponentTransfer::getFunctionFilter):
1387         (WebCore::SVGFEComponentTransfer::getCIFilter):
1388         * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm: Added.
1389         (WebCore::SVGFEComposite::getCIFilter):
1390         * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm: Added.
1391         (WebCore::SVGFEDiffuseLighting::getCIFilter):
1392         * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm: Added.
1393         (WebCore::SVGFEDisplacementMap::getCIFilter):
1394         * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm: Added.
1395         (WebCore::SVGFEFlood::getCIFilter):
1396         * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm: Added.
1397         (WebCore::SVGFEGaussianBlur::getCIFilter):
1398         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: Added.
1399         * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm: Added.
1400         (WebCore::getVectorForChannel):
1401         (WebCore::ciColor):
1402         (WebCore::getPointLightVectors):
1403         (WebCore::getLightVectors):
1404         (WebCore::getNormalMap):
1405         * platform/graphics/svg/filters/cg/SVGFEImageCg.mm: Added.
1406         (WebCore::SVGFEImage::getCIFilter):
1407         * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm: Added.
1408         (WebCore::SVGFEMerge::getCIFilter):
1409         * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm: Added.
1410         (WebCore::SVGFEOffset::getCIFilter):
1411         * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm: Added.
1412         (WebCore::SVGFESpecularLighting::getCIFilter):
1413         * platform/graphics/svg/filters/cg/SVGFETileCg.mm: Added.
1414         (WebCore::SVGFETile::getCIFilter):
1415         * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm: Added.
1416         (WebCore::SVGFilterEffect::getCIFilter):
1417         * rendering/RenderPath.cpp:
1418         (WebCore::RenderPath::getAbsoluteRepaintRect):
1419         (WebCore::RenderPath::paint):
1420         * rendering/RenderSVGContainer.cpp:
1421         (WebCore::RenderSVGContainer::paint):
1422         (WebCore::RenderSVGContainer::getAbsoluteRepaintRect):
1423         * rendering/RenderSVGImage.cpp:
1424         (WebCore::RenderSVGImage::paint):
1425         (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
1426         * rendering/SVGInlineFlowBox.cpp:
1427         (WebCore::paintSVGInlineFlow):
1428
1429 2006-11-18  Rob Buis  <buis@kde.org>
1430
1431         Reviewed by Maciej.
1432
1433         http://bugs.webkit.org/show_bug.cgi?id=11321
1434         Element with :target pseudo-class still matched after fragment identifier change
1435
1436         Make sure the page does a style recalculation and possible rendering
1437         when navigating back from a page with an anchor to a page without
1438         an anchor.
1439
1440         * loader/FrameLoader.cpp:
1441         (WebCore::FrameLoader::gotoAnchor):
1442
1443 2006-11-18  Don Gibson  <dgibson77@gmail.com>
1444
1445         Reviewed by Sam Weinig.
1446
1447         http://bugs.webkit.org/show_bug.cgi?id=11634:
1448         Fix segfault on startup for Windows build.  Also fix segfault when
1449         typing in a URL.
1450         Clean up some of the style of the patch that landed in r17816.
1451
1452         * WebCore.vcproj/WebCore/WebCore.vcproj:
1453         * bridge/win/ChromeClientWin.h:
1454         (WebCore::ChromeClientWin::~ChromeClientWin):
1455         (WebCore::ChromeClientWin::ref):
1456         (WebCore::ChromeClientWin::deref):
1457         * bridge/win/ContextMenuClientWin.h:
1458         (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
1459         (WebCore::ContextMenuClientWin::ref):
1460         (WebCore::ContextMenuClientWin::deref):
1461         * bridge/win/EditorClientWin.h:
1462         (WebCore::EditorClientWin::~EditorClientWin):
1463         (WebCore::EditorClientWin::ref):
1464         (WebCore::EditorClientWin::deref):
1465         * bridge/win/FrameWin.cpp:
1466         (WebCore::FrameWin::FrameWin):
1467         * bridge/win/FrameWin.h:
1468         (WebCore::Win):
1469         * loader/win/FrameLoaderClientWin.h: Added.
1470         (WebCore::FrameLoaderClientWin::~FrameLoaderClientWin):
1471         (WebCore::FrameLoaderClientWin::ref):
1472         (WebCore::FrameLoaderClientWin::deref):
1473         * platform/win/TemporaryLinkStubs.cpp:
1474         (WebCore::ChromeClientWin::createWindow):
1475         (WebCore::ChromeClientWin::createModalDialog):
1476         (WebCore::EditorClientWin::selectWordBeforeMenuEvent):
1477         (WebCore::EditorClientWin::isEditable):
1478         (WebCore::EditorClientWin::shouldBeginEditing):
1479         (WebCore::EditorClientWin::shouldEndEditing):
1480         (WebCore::EditorClientWin::shouldApplyStyle):
1481         (WebCore::EditorClientWin::didBeginEditing):
1482         (WebCore::EditorClientWin::respondToChangedContents):
1483         (WebCore::EditorClientWin::didEndEditing):
1484         (WebCore::EditorClientWin::registerCommandForUndo):
1485         (WebCore::EditorClientWin::registerCommandForRedo):
1486         (WebCore::EditorClientWin::clearUndoRedoOperations):
1487         (WebCore::EditorClientWin::canUndo):
1488         (WebCore::EditorClientWin::canRedo):
1489         (WebCore::EditorClientWin::undo):
1490         (WebCore::EditorClientWin::redo):
1491         (WebCore::FrameLoader::createFrame):
1492         (WebCore::FrameLoader::createPlugin):
1493         (WebCore::FrameLoaderClientWin::hasWebView):
1494         (WebCore::FrameLoaderClientWin::hasFrameView):
1495         (WebCore::FrameLoaderClientWin::hasBackForwardList):
1496         (WebCore::FrameLoaderClientWin::resetBackForwardList):
1497         (WebCore::FrameLoaderClientWin::provisionalItemIsTarget):
1498         (WebCore::FrameLoaderClientWin::loadProvisionalItemFromPageCache):
1499         (WebCore::FrameLoaderClientWin::invalidateCurrentItemPageCache):
1500         (WebCore::FrameLoaderClientWin::privateBrowsingEnabled):
1501         (WebCore::FrameLoaderClientWin::makeDocumentView):
1502         (WebCore::FrameLoaderClientWin::makeRepresentation):
1503         (WebCore::FrameLoaderClientWin::forceLayout):
1504         (WebCore::FrameLoaderClientWin::forceLayoutForNonHTML):
1505         (WebCore::FrameLoaderClientWin::updateHistoryForCommit):
1506         (WebCore::FrameLoaderClientWin::updateHistoryForBackForwardNavigation):
1507         (WebCore::FrameLoaderClientWin::updateHistoryForReload):
1508         (WebCore::FrameLoaderClientWin::updateHistoryForStandardLoad):
1509         (WebCore::FrameLoaderClientWin::updateHistoryForInternalLoad):
1510         (WebCore::FrameLoaderClientWin::updateHistoryAfterClientRedirect):
1511         (WebCore::FrameLoaderClientWin::setCopiesOnScroll):
1512         (WebCore::FrameLoaderClientWin::tokenForLoadErrorReset):
1513         (WebCore::FrameLoaderClientWin::resetAfterLoadError):
1514         (WebCore::FrameLoaderClientWin::doNotResetAfterLoadError):
1515         (WebCore::FrameLoaderClientWin::willCloseDocument):
1516         (WebCore::FrameLoaderClientWin::detachedFromParent1):
1517         (WebCore::FrameLoaderClientWin::detachedFromParent2):
1518         (WebCore::FrameLoaderClientWin::detachedFromParent3):
1519         (WebCore::FrameLoaderClientWin::detachedFromParent4):
1520         (WebCore::FrameLoaderClientWin::loadedFromPageCache):
1521         (WebCore::FrameLoaderClientWin::dispatchDidHandleOnloadEvents):
1522         (WebCore::FrameLoaderClientWin::dispatchDidReceiveServerRedirectForProvisionalLoad):
1523         (WebCore::FrameLoaderClientWin::dispatchDidCancelClientRedirect):
1524         (WebCore::FrameLoaderClientWin::dispatchWillPerformClientRedirect):
1525         (WebCore::FrameLoaderClientWin::dispatchDidChangeLocationWithinPage):
1526         (WebCore::FrameLoaderClientWin::dispatchWillClose):
1527         (WebCore::FrameLoaderClientWin::dispatchDidReceiveIcon):
1528         (WebCore::FrameLoaderClientWin::dispatchDidStartProvisionalLoad):
1529         (WebCore::FrameLoaderClientWin::dispatchDidReceiveTitle):
1530         (WebCore::FrameLoaderClientWin::dispatchDidCommitLoad):
1531         (WebCore::FrameLoaderClientWin::dispatchDidFinishLoad):
1532         (WebCore::FrameLoaderClientWin::dispatchDidFirstLayout):
1533         (WebCore::FrameLoaderClientWin::dispatchShow):
1534         (WebCore::FrameLoaderClientWin::cancelPolicyCheck):
1535         (WebCore::FrameLoaderClientWin::dispatchWillSubmitForm):
1536         (WebCore::FrameLoaderClientWin::dispatchDidLoadMainResource):
1537         (WebCore::FrameLoaderClientWin::clearLoadingFromPageCache):
1538         (WebCore::FrameLoaderClientWin::isLoadingFromPageCache):
1539         (WebCore::FrameLoaderClientWin::revertToProvisionalState):
1540         (WebCore::FrameLoaderClientWin::clearUnarchivingState):
1541         (WebCore::FrameLoaderClientWin::progressStarted):
1542         (WebCore::FrameLoaderClientWin::progressCompleted):
1543         (WebCore::FrameLoaderClientWin::setMainFrameDocumentReady):
1544         (WebCore::FrameLoaderClientWin::willChangeTitle):
1545         (WebCore::FrameLoaderClientWin::didChangeTitle):
1546         (WebCore::FrameLoaderClientWin::finishedLoading):
1547         (WebCore::FrameLoaderClientWin::finalSetupForReplace):
1548         (WebCore::FrameLoaderClientWin::setDefersLoading):
1549         (WebCore::FrameLoaderClientWin::isArchiveLoadPending):
1550         (WebCore::FrameLoaderClientWin::cancelPendingArchiveLoad):
1551         (WebCore::FrameLoaderClientWin::clearArchivedResources):
1552         (WebCore::FrameLoaderClientWin::canShowMIMEType):
1553         (WebCore::FrameLoaderClientWin::representationExistsForURLScheme):
1554         (WebCore::FrameLoaderClientWin::generatedMIMETypeForURLScheme):
1555         (WebCore::FrameLoaderClientWin::frameLoadCompleted):
1556         (WebCore::FrameLoaderClientWin::restoreScrollPositionAndViewState):
1557         (WebCore::FrameLoaderClientWin::provisionalLoadStarted):
1558         (WebCore::FrameLoaderClientWin::shouldTreatURLAsSameAsCurrent):
1559         (WebCore::FrameLoaderClientWin::addHistoryItemForFragmentScroll):
1560         (WebCore::FrameLoaderClientWin::didFinishLoad):
1561         (WebCore::FrameLoaderClientWin::prepareForDataSourceReplacement):
1562         (WebCore::FrameLoaderClientWin::setTitle):
1563         (WebCore::FrameLoaderClientWin::userAgent):
1564
1565 2006-11-18  Alexey Proskuryakov  <ap@webkit.org>
1566
1567         Reviewed by Rob (yay!).
1568
1569         http://bugs.webkit.org/show_bug.cgi?id=11640
1570         XMLHttpRequest produces undefined:undefined HTTP authentication
1571
1572         * bindings/js/JSXMLHttpRequest.cpp:
1573         (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
1574         Treat undefined credentials as missing ones.
1575
1576 2006-11-17  Lars Naesbye Christensen  <larsnaesbye@stud.ku.dk>
1577
1578         Reviewed by Tim H.
1579
1580         http://bugs.webkit.org/show_bug.cgi?id=11638
1581         [CSS 2.1+3] add support for alias, progress, no-drop and not-allowed cursor styles
1582
1583         * Resources/aliasCursor.png: Added.
1584         * Resources/noDropCursor.png: Added.
1585         * Resources/progressCursor.png: Added.
1586         * WebCore.xcodeproj/project.pbxproj:
1587         * css/CSSComputedStyleDeclaration.cpp:
1588         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1589         * css/CSSValueKeywords.in:
1590         * manual-tests/cursor.html:
1591         * page/EventHandler.cpp:
1592         (WebCore::selectCursor):
1593         * platform/Cursor.h:
1594         * platform/mac/CursorMac.mm:
1595         (WebCore::handCursor):
1596         (WebCore::aliasCursor):
1597         (WebCore::progressCursor):
1598         (WebCore::noDropCursor):
1599         * rendering/RenderStyle.h:
1600         (WebCore::):
1601
1602 2006-11-18  Steve Falkenburg  <sfalken@apple.com>
1603
1604         Reviewed by Adam.
1605
1606         Properly adjust CFAbsoluteTime to time_t to fix date calculations.
1607         
1608         Compare lastModified w/ MAX_TIME_T when setting last modified date
1609         instead of comparing expiration against MAX_TIME_T.
1610
1611         * platform/network/cf/ResourceResponseCFNet.cpp:
1612         (WebCore::getResourceResponse): Add kCFAbsoluteTimeIntervalSince1970 in assignment
1613
1614 2006-11-17  Anders Carlsson  <acarlsson@apple.com>
1615
1616         Reviewed by Geoff.
1617
1618         More conversions from DeprecatedValueList to Vector and HashSet.
1619         
1620         * css/CSSValueList.cpp:
1621         (WebCore::CSSValueList::~CSSValueList):
1622         (WebCore::CSSValueList::append):
1623         (WebCore::CSSValueList::cssText):
1624         * css/CSSValueList.h:
1625         (WebCore::CSSValueList::length):
1626         (WebCore::CSSValueList::item):
1627         * dom/Document.cpp:
1628         (WebCore::Document::attachNodeIterator):
1629         (WebCore::Document::notifyBeforeNodeRemoval):
1630         * dom/Document.h:
1631         * ksvg2/svg/SVGGradientElement.cpp:
1632         (WebCore::SVGGradientElement::notifyAttributeChange):
1633         * ksvg2/svg/SVGPatternElement.cpp:
1634         (WebCore::SVGPatternElement::notifyClientsToRepaint):
1635         * platform/graphics/svg/SVGResource.cpp:
1636         (WebCore::SVGResource::invalidate):
1637         (WebCore::SVGResource::addClient):
1638         * platform/graphics/svg/SVGResource.h:
1639         * rendering/RenderBlock.h:
1640
1641 === Safari-521.31 ===
1642
1643 2006-11-17  Timothy Hatcher  <timothy@apple.com>
1644
1645         Reviewed by Harrison.
1646
1647         <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
1648
1649         Disable the delete button controller when cloning nodes, Mail does this before saving a draft.
1650
1651         * dom/ContainerNode.cpp:
1652         (WebCore::ContainerNode::cloneChildNodes):
1653         * editing/markup.cpp:
1654         (WebCore::createFragmentFromNodes):
1655
1656 2006-11-17  Justin Garcia  <justin.garcia@apple.com>
1657
1658         Reviewed by harrison
1659         
1660         <rdar://problem/4237467> REGRESSION: Pasting word from quoted text quotes the destination
1661         <rdar://problem/4017358> quoted text is wrong color, when pasted as quotation
1662
1663         * editing/ReplaceSelectionCommand.cpp:
1664         (WebCore::isMailPasteAsQuotationNode): Added.  Checks for the node
1665         that Mail wraps around an incoming fragment when it wants it to be pasted
1666         with quoting (no merging should be done).
1667         (WebCore::ReplaceSelectionCommand::removeNodePreservingChildren): Added
1668         this virtual method in order to adjust the nodes that ReplaceSelectionCommand
1669         tracks.
1670         (WebCore::ReplaceSelectionCommand::shouldMerge): Don't merge from content
1671         inside a Mail Paste as Quotation node.  Allow merging from Mail blockquotes.
1672         (WebCore::ReplaceSelectionCommand::removeRedundantStyles): When pasting into
1673         a Mail blockquote, we ignore the parts of the source document's default style
1674         that are overriden by styles from the Mail blockquote.  This is necessary in order
1675         for text that's black (because black is the source document's default font color) 
1676         to appear blue/green/whatever when it's pasted into a Mail blockquote.
1677         (WebCore::ReplaceSelectionCommand::handlePasteAsQuotationNode): Turn an inserted
1678         Mail Paste as Quotation node into a normal Mail blockquote.  This will prevent
1679         a copied blockquote that was inserted into the document using Paste as Quotation
1680         from triggering Paste as Quotation behavior when it's pasted.
1681         (WebCore::ReplaceSelectionCommand::doApply): Call the new/altered methods.
1682         * editing/ReplaceSelectionCommand.h:
1683         * editing/markup.cpp:
1684         (WebCore::styleFromMatchedRulesForElement): Put this code into a subroutine.
1685         (WebCore::removeEnclosingMailBlockquoteStyle): Added.
1686         (WebCore::startMarkup): When wrapping text nodes in style spans, leave out
1687         styles that Mail blockquotes contribute, so that Mail blockquote styles can
1688         be differentiated from styles that the user has applied.  When creating markup
1689         for elements, do the same thing.
1690         (WebCore::createMarkup): Call the new subroutine.
1691
1692 2006-11-17  Rob Buis  <buis@kde.org>
1693
1694         Reviewed by Mitz.
1695
1696         http://bugs.webkit.org/show_bug.cgi?id=11635
1697         Bug 11635: Fix potential issue with non-xslt build
1698
1699         Fix the issue and do style guideline corrections.
1700
1701         * dom/ProcessingInstruction.cpp:
1702         (WebCore::ProcessingInstruction::checkStyleSheet):
1703         (WebCore::ProcessingInstruction::sheetLoaded):
1704         (WebCore::ProcessingInstruction::setCSSStyleSheet):
1705         (WebCore::ProcessingInstruction::setXSLStyleSheet):
1706         (WebCore::ProcessingInstruction::parseStyleSheet):
1707
1708 2006-11-17  Timothy Hatcher  <timothy@apple.com>
1709
1710         Reviewed by Harrison.
1711
1712         <rdar://problem/4843131> text entry is slow inside element that has the deletion rectangle around it
1713
1714         Only disable/enable the delete button inside applyCommand() to prevent slowing down typing.
1715         This reintroduces <rdar://problem/4796657> table deletion outline does not always follow the table size as editing occurs inside
1716
1717         * editing/EditCommand.cpp:
1718         (WebCore::EditCommand::apply):
1719         (WebCore::EditCommand::unapply):
1720         (WebCore::EditCommand::reapply):
1721         (WebCore::applyCommand):
1722         * editing/EditCommand.h:
1723
1724 2006-11-17  Zack Rusin  <zack@kde.org>
1725
1726         Reviewed by Mitz. Landed by Niko.
1727
1728         Making platform Qt/KDE compile and work after
1729         the latest api changes. Reported as
1730         http://bugs.webkit.org/show_bug.cgi?id=11617
1731
1732         * CMakeLists.txt:
1733         * page/qt/EventHandlerQt.cpp: Added.
1734         (WebCore::isKeyboardOptionTab):
1735         (WebCore::EventHandler::tabsToLinks):
1736         (WebCore::EventHandler::tabsToAllControls):
1737         (WebCore::EventHandler::freeClipboard):
1738         (WebCore::EventHandler::focusDocumentView):
1739         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
1740         (WebCore::EventHandler::passMouseDownEventToWidget):
1741         (WebCore::EventHandler::lastEventIsMouseUp):
1742         (WebCore::EventHandler::dragHysteresisExceeded):
1743         (WebCore::EventHandler::handleDrag):
1744         (WebCore::EventHandler::handleMouseUp):
1745         (WebCore::EventHandler::passSubframeEventToSubframe):
1746         (WebCore::EventHandler::passWheelEventToWidget):
1747         (WebCore::EventHandler::shouldDragAutoNode):
1748         (WebCore::EventHandler::dispatchDragSrcEvent):
1749         (WebCore::EventHandler::passMousePressEventToSubframe):
1750         (WebCore::EventHandler::passMouseMoveEventToSubframe):
1751         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
1752         (WebCore::EventHandler::passWheelEventToSubframe):
1753         (WebCore::EventHandler::passMousePressEventToScrollbar):
1754         * platform/ContextMenu.h:
1755         * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
1756         (WebCore::SVGResourceClipper::applyClip):
1757         * platform/qt/ContextMenuClientQt.cpp: Added.
1758         (WebCore::ContextMenuClientQt::addCustomContextMenuItems):
1759         (WebCore::ContextMenuClientQt::ref):
1760         (WebCore::ContextMenuClientQt::deref):
1761         * platform/qt/ContextMenuClientQt.h: Added.
1762         * platform/qt/ContextMenuQt.cpp: Added.
1763         (WebCore::ContextMenu::appendItem):
1764         (WebCore::ContextMenu::itemCount):
1765         (WebCore::ContextMenu::insertItem):
1766         (WebCore::ContextMenu::setPlatformMenuDescription):
1767         * platform/qt/EditorClientQt.cpp:
1768         (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
1769         (WebCore::EditorClientQt::isEditable):
1770         (WebCore::EditorClientQt::registerCommandForUndo):
1771         (WebCore::EditorClientQt::registerCommandForRedo):
1772         (WebCore::EditorClientQt::clearUndoRedoOperations):
1773         (WebCore::EditorClientQt::canUndo):
1774         (WebCore::EditorClientQt::canRedo):
1775         (WebCore::EditorClientQt::undo):
1776         (WebCore::EditorClientQt::redo):
1777         * platform/qt/EditorClientQt.h:
1778         * platform/qt/ScrollViewCanvasQt.cpp:
1779         (WebCore::ScrollViewCanvasQt::mousePressEvent):
1780         * platform/qt/TemporaryLinkStubs.cpp:
1781         (FrameView::updateBorder):
1782
1783 2006-11-17  David Harrison  <harrison@apple.com>
1784
1785         Reviewed by Adele.
1786
1787         <rdar://problem/4799899> Frame::revealSelection() only scrolls the startContainer's layer
1788
1789         Replace an assert with a fixme that refers to this bug.
1790         
1791         * page/Frame.cpp:
1792         (WebCore::Frame::revealSelection):
1793
1794 2006-11-16  Rob Buis  <buis@kde.org>
1795
1796         Reviewed and landed by Brady
1797
1798         Fixes http://bugs.webkit.org/show_bug.cgi?id=11590 -
1799         REGRESSION (r17726-r17742): Wikipedia page intermittently loads but doesn't render
1800         Fix the regression by setting m_loadCompleted correctly.
1801
1802         * css/CSSStyleSheet.cpp:
1803         (WebCore::CSSStyleSheet::checkLoaded):
1804         * dom/Node.h:
1805         (WebCore::Node::sheetLoaded):
1806         * dom/ProcessingInstruction.cpp:
1807         (WebCore::ProcessingInstruction::sheetLoaded):
1808         * dom/ProcessingInstruction.h:
1809         * html/HTMLLinkElement.cpp:
1810         (WebCore::HTMLLinkElement::sheetLoaded):
1811         * html/HTMLLinkElement.h:
1812         * html/HTMLStyleElement.cpp:
1813         (WebCore::HTMLStyleElement::sheetLoaded):
1814         * html/HTMLStyleElement.h:
1815
1816 2006-11-16  David Harrison  <harrison@apple.com>
1817
1818         Reviewed by Beth.
1819
1820         <rdar://problem/4056100> REGRESSION (Tiger): Deleting top part of reply email leaves fails to clear text at end of message
1821
1822         The problem was triggered by the fact that the parent div was changing both
1823         in position and in height. The renderer normally bifurcates its logic for
1824         x-position changes vs height changes.
1825
1826         Call repaintDuringLayoutIfMoved() with old rect (incl. width and height) instead of just the old position.
1827
1828         Test added:
1829         * manual-tests/delete-into-nested-block.html
1830         
1831         * rendering/RenderBlock.cpp:
1832         (WebCore::RenderBlock::layoutBlockChildren):
1833         (WebCore::RenderBlock::positionNewFloats):
1834         * rendering/RenderBox.cpp:
1835         (WebCore::RenderBox::repaintDuringLayoutIfMoved):
1836         * rendering/RenderBox.h:
1837         * rendering/RenderFlexibleBox.cpp:
1838         (WebCore::RenderFlexibleBox::placeChild):
1839         * rendering/RenderObject.cpp:
1840         (WebCore::RenderObject::repaintDuringLayoutIfMoved):
1841         * rendering/RenderObject.h:
1842         * rendering/RenderTableSection.cpp:
1843         (WebCore::RenderTableSection::layoutRows):
1844
1845 2006-11-16  Adele Peterson  <adele@apple.com>
1846
1847         Reviewed by Adam.
1848
1849         Slider cleanup.  Let the theme set the size of the slider thumb.
1850
1851         * rendering/RenderSlider.cpp:
1852         (WebCore::RenderSlider::setStyle): Moving the thumb's appearance adjustment to createThumbStyle.
1853         (WebCore::RenderSlider::createThumbStyle):
1854         (WebCore::RenderSlider::layout): Let the theme set the size of the thumb.
1855         * rendering/RenderTheme.cpp: (WebCore::RenderTheme::adjustSliderThumbSize):  Added.
1856         * rendering/RenderTheme.h: ditto.
1857         * rendering/RenderThemeMac.h: ditto.
1858         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::adjustSliderThumbSize): ditto.
1859
1860 2006-11-15  Anders Carlsson  <acarlsson@apple.com>
1861
1862         Reviewed by Darin.
1863
1864         Use Vector instead of DeprecatedValueList in a few places.
1865         
1866         * bindings/js/kjs_dom.cpp:
1867         (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
1868         (KJS::DOMNamedNodesCollection::lengthGetter):
1869         (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
1870         * bindings/js/kjs_dom.h:
1871         * bindings/js/kjs_html.cpp:
1872         (KJS::JSHTMLDocument::namedItemGetter):
1873         (KJS::JSHTMLElement::classInfo):
1874         (KJS::JSHTMLElement::accessors):
1875         (KJS::JSHTMLCollection::getNamedItems):
1876         * bindings/objc/DOM.mm:
1877         * bridge/mac/FrameMac.mm:
1878         (WebCore::FrameMac::dashboardRegionsDictionary):
1879         * css/CSSStyleDeclaration.cpp:
1880         (WebCore::CSSStyleDeclaration::diff):
1881         * html/HTMLCollection.cpp:
1882         (WebCore::HTMLCollection::namedItems):
1883         * html/HTMLCollection.h:
1884         * kcanvas/KCanvasFilters.cpp:
1885         (WebCore::KCanvasFilter::externalRepresentation):
1886         * kcanvas/KCanvasFilters.h:
1887         (WebCore::KCanvasFEColorMatrix::values):
1888         (WebCore::KCanvasFEColorMatrix::setValues):
1889         (WebCore::KCanvasFEConvolveMatrix::kernel):
1890         (WebCore::KCanvasFEConvolveMatrix::setKernel):
1891         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
1892         (WebCore::KCanvasFilterQuartz::getCIFilterStack):
1893         (WebCore::KCanvasFEColorMatrixQuartz::getCIFilter):
1894         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1895         (WebCore::SVGFEColorMatrixElement::filterEffect):
1896         * platform/graphics/svg/SVGResourceClipper.h:
1897         * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
1898         (WebCore::SVGResourceClipper::applyClip):
1899         * platform/network/FormData.h:
1900         * rendering/RenderPath.h:
1901         * rendering/SVGRenderTreeAsText.h:
1902         (WebCore::operator<<):
1903
1904 2006-11-16  Anders Carlsson  <acarlsson@apple.com>
1905
1906         Reviewed by Tim.
1907
1908         * editing/markup.cpp:
1909         (WebCore::createMarkup):
1910         Add null-checks for the frame, it might not exist for all documents.
1911         
1912 2006-11-16  Don Gibson  <dgibson77@gmail.com>
1913
1914         Reviewed and landed by ap.
1915
1916         http://bugs.webkit.org/show_bug.cgi?id=11509:
1917         Windows build bustage.
1918
1919         Also reorganizes WebCore.vcproj to add files whose absence wasn't
1920         causing compile errors, but which should have been there, and to
1921         make the include directory ordering (and contents) sane.
1922         Also reorganizes TemporaryLinkStubs.cpp to put headers and
1923         function groups in alphabetical order, and ensure that all functions
1924         in the file call notImplemented().
1925
1926         * WebCore.vcproj/WebCore/WebCore.vcproj:
1927         * bridge/win/ChromeClientWin.h:
1928         (WebCore::ChromeClientWin::ref):
1929         (WebCore::ChromeClientWin::deref):
1930         * bridge/win/ContextMenuClientWin.h: Added.
1931         (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
1932         (WebCore::ContextMenuClientWin::ref):
1933         (WebCore::ContextMenuClientWin::deref):
1934         * bridge/win/EditorClientWin.h:
1935         * bridge/win/FrameWin.cpp:
1936         (WebCore::FrameWin::~FrameWin):
1937         (WebCore::FrameWin::keyPress):
1938         * bridge/win/FrameWin.h:
1939         * bridge/win/PageWin.cpp: Removed.
1940         * editing/EditCommand.h:
1941         * loader/FormState.h:
1942         * loader/FrameLoader.h:
1943         * page/EventHandler.cpp:
1944         * platform/MimeTypeRegistry.cpp:
1945         (WebCore::initialiseSupportedImageMIMETypes):
1946         * platform/graphics/win/ImageWin.cpp:
1947         * platform/network/ResourceError.cpp:
1948         * platform/network/ResourceHandleInternal.h:
1949         * platform/network/win/ResourceHandleWin.cpp:
1950         (WebCore::ResourceHandle::onHandleCreated):
1951         (WebCore::ResourceHandle::onRequestRedirected):
1952         (WebCore::ResourceHandle::start):
1953         (WebCore::ResourceHandle::cancel):
1954         * platform/win/ScreenWin.cpp:
1955         (WebCore::monitorInfo):
1956         (WebCore::screenRect):
1957         (WebCore::screenAvailableRect):
1958         (WebCore::screenDepth):
1959         * platform/win/SoundWin.cpp: Added.
1960         (WebCore::systemBeep):
1961         * platform/win/TemporaryLinkStubs.cpp:
1962         (WebCore::CacheObjectExpiresTime):
1963         (WebCore::CheckCacheObjectStatus):
1964         (WebCore::CheckIfReloading):
1965         (WebCore::defaultLanguage):
1966         (WebCore::fileButtonChooseFileLabel):
1967         (WebCore::fileButtonNoFileSelectedLabel):
1968         (WebCore::findNextSentenceFromIndex):
1969         (WebCore::findNextWordFromIndex):
1970         (WebCore::findSentenceBoundary):
1971         (WebCore::findWordBoundary):
1972         (WebCore::focusRingColor):
1973         (WebCore::historyContains):
1974         (WebCore::inputElementAltText):
1975         (WebCore::IsResponseURLEqualToURL):
1976         (WebCore::cellCursor):
1977         (WebCore::contextMenuCursor):
1978         (WebCore::moveCursor):
1979         (WebCore::verticalTextCursor):
1980         (WebCore::refreshPlugins):
1981         (WebCore::resetButtonDefaultLabel):
1982         (WebCore::ResponseIsMultipart):
1983         (WebCore::ResponseMIMEType):
1984         (WebCore::ResponseURL):
1985         (WebCore::screenDepthPerComponent):
1986         (WebCore::screenIsMonochrome):
1987         (WebCore::searchableIndexIntroduction):
1988         (WebCore::ServeSynchronousRequest):
1989         (WebCore::setFocusRingColorChangeFunction):
1990         (WebCore::submitButtonDefaultLabel):
1991         (WebCore::CachedResource::setPlatformResponse):
1992         (WebCore::CachedResource::setAllData):
1993         (WebCore::ChromeClientWin::setWindowRect):
1994         (WebCore::ChromeClientWin::windowRect):
1995         (WebCore::ChromeClientWin::pageRect):
1996         (WebCore::ChromeClientWin::scaleFactor):
1997         (WebCore::ChromeClientWin::focus):
1998         (WebCore::ChromeClientWin::unfocus):
1999         (WebCore::ChromeClientWin::createWindow):
2000         (WebCore::ChromeClientWin::createModalDialog):
2001         (WebCore::ChromeClientWin::show):
2002         (WebCore::ChromeClientWin::canRunModal):
2003         (WebCore::ChromeClientWin::runModal):
2004         (WebCore::ChromeClientWin::setToolbarsVisible):
2005         (WebCore::ChromeClientWin::toolbarsVisible):
2006         (WebCore::ChromeClientWin::setStatusbarVisible):
2007         (WebCore::ChromeClientWin::statusbarVisible):
2008         (WebCore::ChromeClientWin::setScrollbarsVisible):
2009         (WebCore::ChromeClientWin::scrollbarsVisible):
2010         (WebCore::ChromeClientWin::setMenubarVisible):
2011         (WebCore::ChromeClientWin::menubarVisible):
2012         (WebCore::ChromeClientWin::setResizable):
2013         (WebCore::ContextMenu::appendItem):
2014         (WebCore::ContextMenuClientWin::addCustomContextMenuItems):
2015         (WebCore::DocumentLoader::setFrame):
2016         (WebCore::DocumentLoader::frameLoader):
2017         (WebCore::DocumentLoader::URL):
2018         (WebCore::DocumentLoader::isStopping):
2019         (WebCore::DocumentLoader::stopLoading):
2020         (WebCore::DocumentLoader::setLoading):
2021         (WebCore::DocumentLoader::updateLoading):
2022         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
2023         (WebCore::DocumentLoader::isLoadingInAPISense):
2024         (WebCore::DocumentLoader::stopRecordingResponses):
2025         (WebCore::EditorClientWin::shouldDeleteRange):
2026         (WebCore::EditorClientWin::shouldShowDeleteInterface):
2027         (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
2028         (WebCore::EditorClientWin::isGrammarCheckingEnabled):
2029         (WebCore::EditorClientWin::spellCheckerDocumentTag):
2030         (WebCore::EventHandler::focusDocumentView):
2031         (WebCore::EventHandler::handleDrag):
2032         (WebCore::EventHandler::handleMouseUp):
2033         (WebCore::EventHandler::lastEventIsMouseUp):
2034         (WebCore::EventHandler::passMousePressEventToSubframe):
2035         (WebCore::EventHandler::passMouseMoveEventToSubframe):
2036         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
2037         (WebCore::EventHandler::passWheelEventToSubframe):
2038         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
2039         (WebCore::EventHandler::passMousePressEventToScrollbar):
2040         (WebCore::EventHandler::shouldDragAutoNode):
2041         (WebCore::EventHandler::tabsToAllControls):
2042         (WebCore::EventHandler::tabsToLinks):
2043         (WebCore::Frame::setNeedsReapplyStyles):
2044         (WebCore::FrameLoader::didFirstLayout):
2045         (WebCore::FrameLoader::overrideMediaType):
2046         (WebCore::FrameLoader::createJavaAppletWidget):
2047         (WebCore::FrameLoader::redirectDataToPlugin):
2048         (WebCore::FrameLoader::getHistoryLength):
2049         (WebCore::FrameLoader::setTitle):
2050         (WebCore::FrameLoader::referrer):
2051         (WebCore::FrameLoader::saveDocumentState):
2052         (WebCore::FrameLoader::restoreDocumentState):
2053         (WebCore::FrameLoader::goBackOrForward):
2054         (WebCore::FrameLoader::historyURL):
2055         (WebCore::FrameLoader::urlSelected):
2056         (WebCore::FrameLoader::createFrame):
2057         (WebCore::FrameLoader::submitForm):
2058         (WebCore::FrameLoader::partClearedInBegin):
2059         (WebCore::FrameLoader::originalRequestURL):
2060         (WebCore::FrameLoader::canGoBackOrForward):
2061         (WebCore::FrameLoader::objectContentType):
2062         (WebCore::FrameLoader::createPlugin):
2063         (WebCore::FrameLoader::detachFromParent):
2064         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
2065         (WebCore::FrameView::updateBorder):
2066         (WebCore::FrameWin::bindingRootObject):
2067         (WebCore::FrameWin::canPaste):
2068         (WebCore::FrameWin::issuePasteAndMatchStyleCommand):
2069         (WebCore::FrameWin::markedTextRange):
2070         (WebCore::FrameWin::passSubframeEventToSubframe):
2071         (WebCore::FrameWin::lastEventIsMouseUp):
2072         (WebCore::FrameWin::addMessageToConsole):
2073         (WebCore::FrameWin::shouldChangeSelection):
2074         (WebCore::FrameWin::respondToChangedSelection):
2075         (WebCore::FrameWin::clearUndoRedoOperations):
2076         (WebCore::FrameWin::markMisspellingsInAdjacentWords):
2077         (WebCore::FrameWin::respondToChangedContents):
2078         (WebCore::GraphicsContext::addRoundedRectClip):
2079         (WebCore::GraphicsContext::setShadow):
2080         (WebCore::GraphicsContext::clearShadow):
2081         (WebCore::GraphicsContext::beginTransparencyLayer):
2082         (WebCore::GraphicsContext::endTransparencyLayer):
2083         (WebCore::GraphicsContext::clearRect):
2084         (WebCore::GraphicsContext::strokeRect):
2085         (WebCore::GraphicsContext::setLineWidth):
2086         (WebCore::GraphicsContext::setLineCap):
2087         (WebCore::GraphicsContext::setLineJoin):
2088         (WebCore::GraphicsContext::setMiterLimit):
2089         (WebCore::GraphicsContext::setAlpha):
2090         (WebCore::GraphicsContext::setCompositeOperation):
2091         (WebCore::GraphicsContext::clip):
2092         (WebCore::GraphicsContext::rotate):
2093         (WebCore::GraphicsContext::scale):
2094         (WebCore::Icon::Icon):
2095         (WebCore::Icon::~Icon):
2096         (WebCore::Icon::newIconForFile):
2097         (WebCore::Icon::paint):
2098         (WebCore::IconDatabase::isIconExpiredForIconURL):
2099         (WebCore::IconDatabase::hasEntryForIconURL):
2100         (WebCore::IconDatabase::sharedIconDatabase):
2101         (WebCore::IconDatabase::setIconURLForPageURL):
2102         (WebCore::IconDatabase::setIconDataForIconURL):
2103         (WebCore::Image::drawTiled):
2104         (WebCore::Image::getHBITMAP):
2105         (WebCore::Path::Path):
2106         (WebCore::Path::~Path):
2107         (WebCore::Path::contains):
2108         (WebCore::Path::translate):
2109         (WebCore::Path::boundingRect):
2110         (WebCore::Path::operator=):
2111         (WebCore::Path::clear):
2112         (WebCore::Path::moveTo):
2113         (WebCore::Path::addLineTo):
2114         (WebCore::Path::addQuadCurveTo):
2115         (WebCore::Path::addBezierCurveTo):
2116         (WebCore::Path::addArcTo):
2117         (WebCore::Path::closeSubpath):
2118         (WebCore::Path::addArc):
2119         (WebCore::Path::addRect):
2120         (WebCore::Path::addEllipse):
2121         (WebCore::Path::transform):
2122         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2123         (WebCore::PlatformScrollbar::PlatformScrollbar):
2124         (WebCore::PlatformScrollbar::~PlatformScrollbar):
2125         (WebCore::PlatformScrollbar::width):
2126         (WebCore::PlatformScrollbar::height):
2127         (WebCore::PlatformScrollbar::setEnabled):
2128         (WebCore::PlatformScrollbar::paint):
2129         (WebCore::PlatformScrollbar::updateThumbPosition):
2130         (WebCore::PlatformScrollbar::updateThumbProportion):
2131         (WebCore::PlatformScrollbar::setRect):
2132         (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
2133         (WebCore::PlugInInfoStore::pluginCount):
2134         (WebCore::PlugInInfoStore::supportsMIMEType):
2135         (WebCore::PolicyCheck::PolicyCheck):
2136         (WebCore::PolicyCheck::clear):
2137         (WebCore::PolicyCheck::clearRequest):
2138         (WebCore::PolicyCheck::call):
2139         (WebCore::RenderThemeWin::systemFont):
2140         (WebCore::RenderThemeWin::paintMenuList):
2141         (WebCore::RenderThemeWin::adjustMenuListStyle):
2142         (WebCore::ResourceLoader::cancel):
2143         (WebCore::ScrollView::addChild):
2144         (WebCore::ScrollView::removeChild):
2145         (WebCore::ScrollView::scrollPointRecursively):
2146         (WebCore::ScrollView::inWindow):
2147         (WebCore::ScrollView::paint):
2148         (WebCore::ScrollView::wheelEvent):
2149         (WebCore::ScrollView::themeChanged):
2150         (WebCore::ScrollView::convertChildToSelf):
2151         (WebCore::ScrollView::convertSelfToChild):
2152         (WebCore::ScrollView::geometryChanged):
2153         (WebCore::ScrollView::scrollbarUnderMouse):
2154         (WebCore::ScrollView::setFrameGeometry):
2155         (WebCore::ScrollView::windowResizerRect):
2156         (WebCore::ScrollView::resizerOverlapsContent):
2157         (WebCore::TextField::selectAll):
2158         (WebCore::TextField::addSearchResult):
2159         (WebCore::TextField::selectionStart):
2160         (WebCore::TextField::hasSelectedText):
2161         (WebCore::TextField::selectedText):
2162         (WebCore::TextField::setAutoSaveName):
2163         (WebCore::TextField::checksDescendantsForFocus):
2164         (WebCore::TextField::setSelection):
2165         (WebCore::TextField::setMaxResults):
2166         (WebCore::TextField::edited):
2167         (WebCore::TextField::focusPolicy):
2168         (WebCore::TextField::TextField):
2169         (WebCore::TextField::~TextField):
2170         (WebCore::TextField::setFont):
2171         (WebCore::TextField::setAlignment):
2172         (WebCore::TextField::setWritingDirection):
2173         (WebCore::TextField::maxLength):
2174         (WebCore::TextField::setMaxLength):
2175         (WebCore::TextField::text):
2176         (WebCore::TextField::setText):
2177         (WebCore::TextField::cursorPosition):
2178         (WebCore::TextField::setCursorPosition):
2179         (WebCore::TextField::setEdited):
2180         (WebCore::TextField::setReadOnly):
2181         (WebCore::TextField::setPlaceholderString):
2182         (WebCore::TextField::setColors):
2183         (WebCore::TextField::sizeForCharacterWidth):
2184         (WebCore::TextField::baselinePosition):
2185         (WebCore::TextField::setLiveSearch):
2186         (WebCore::Widget::enableFlushDrawing):
2187         (WebCore::Widget::isEnabled):
2188         (WebCore::Widget::focusPolicy):
2189         (WebCore::Widget::disableFlushDrawing):
2190         (WebCore::Widget::removeFromParent):
2191         (WebCore::Widget::lockDrawingFocus):
2192         (WebCore::Widget::unlockDrawingFocus):
2193         (WebCore::Widget::capturingMouse):
2194         (WebCore::Widget::setCapturingMouse):
2195         (WebCore::Widget::capturingTarget):
2196         (WebCore::Widget::capturingChild):
2197         (WebCore::Widget::setCapturingChild):
2198         (WebCore::Widget::convertChildToSelf):
2199         (WebCore::Widget::convertSelfToChild):
2200         (WebCore::Widget::setParent):
2201         (WebCore::Widget::parent):
2202         (WebCore::Widget::setEnabled):
2203         (WebCore::Widget::paint):
2204         (WebCore::Widget::setIsSelected):
2205         (WebCore::Widget::invalidate):
2206         (WebCore::Widget::invalidateRect):
2207         * platform/win/WidgetWin.cpp:
2208         (WebCore::Widget::clearFocus):
2209
2210 2006-11-16  Timothy Hatcher  <timothy@apple.com>
2211
2212         Reviewed by Adam.
2213
2214         <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
2215
2216         * editing/markup.cpp:
2217         (WebCore::createMarkup): disable the delete button so it's elements are not serialized into the markup
2218
2219 2006-11-16  George Staikos  <staikos@kde.org>
2220
2221         Rubberstamped by Maciej.
2222
2223         Making the code valgrind clean.
2224
2225         * rendering/RenderTableCell.cpp: initialize variable m_widthChanged
2226         (WebCore::RenderTableCell::RenderTableCell):
2227         * rendering/RenderTableCell.h: remove unused variable nWrap
2228
2229 2006-11-16  David Harrison  <harrison@apple.com>
2230
2231         Reviewed by Darin and Tim.
2232
2233         <rdar://problem/4799949> REGRESSION: Crash in FrameMac::eventMayStartDrag() by clicking on a page
2234         
2235         * page/mac/EventHandlerMac.mm:
2236         (WebCore::EventHandler::eventMayStartDrag):
2237         Add nil check of hitTest's result.innerNode().
2238
2239 2006-11-16  Timothy Hatcher  <timothy@apple.com>
2240
2241         Reviewed by Darin.
2242
2243         <rdar://problem/4836897> Deletion rectangle disappears when multiple list items are selected
2244
2245         Consider the container of the selection range for deletion before asking enclosingNodeOfType().
2246
2247         * editing/DeleteButtonController.cpp:
2248         (WebCore::enclosingDeletableElement):
2249
2250 2006-11-16  Rob Buis  <buis@kde.org>
2251
2252         Reviewed by hyatt.
2253
2254         Removal of unused m_styleElement.
2255
2256         * dom/Node.cpp:
2257         (WebCore::Node::Node):
2258         (WebCore::Node::dump):
2259         * dom/Node.h:
2260         (WebCore::Node::isLink): should be styleElement, a bug?
2261
2262 2006-11-15  Adam Roben  <aroben@apple.com>
2263
2264         Build fix.
2265
2266         Rename the items in the ContextMenuAction enum so that they don't
2267         conflict with WebKit names.
2268
2269         * WebCore.xcodeproj/project.pbxproj:
2270         * platform/ContextMenu.cpp:
2271         (WebCore::ContextMenu::populate):
2272         * platform/ContextMenu.h:
2273         (WebCore::):
2274         (WebCore::ContextMenuItem::ContextMenuItem):
2275
2276 2006-11-15  Adam Roben  <aroben@apple.com>
2277
2278         Reviewed by Anders.
2279
2280         Change m_contextMenu to an OwnPtr.
2281
2282         * WebCore.xcodeproj/project.pbxproj:
2283         * page/ContextMenuController.cpp:
2284         (WebCore::ContextMenuController::handleContextMenuEvent):
2285         * page/ContextMenuController.h:
2286
2287 2006-11-15  Adam Roben  <aroben@apple.com>
2288
2289         Reviewed by Anders.
2290
2291         Add new ContextMenuController and ContextMenuClient classes, and move
2292         context menu responsibilities from Chrome and ChromeClient to them.
2293
2294         * WebCore.exp:
2295         * WebCore.xcodeproj/project.pbxproj: Add new files to project, and
2296         alphabetize some others.
2297         * page/Chrome.cpp: Remove context menu-related code.
2298         * page/Chrome.h: Ditto.
2299         * page/ChromeClient.h:
2300         * page/ContextMenuClient.h: Added.
2301         * page/ContextMenuController.cpp: Added.
2302         (WebCore::ContextMenuController::ContextMenuController):
2303         (WebCore::ContextMenuController::~ContextMenuController):
2304         (WebCore::ContextMenuController::handleContextMenuEvent):
2305         (WebCore::ContextMenuController::contextMenuActionSelected):
2306         * page/ContextMenuController.h: Added.
2307         (WebCore::ContextMenuController::client):
2308         * page/Page.cpp: Every Page now has a ContextMenuController.
2309         (WebCore::Page::Page):
2310         * page/Page.h: Made m_dragCaretController and m_chrome objects instead
2311         of pointers to objects.
2312         (WebCore::Page::contextMenuController):
2313         * platform/ContextMenu.cpp:
2314         (WebCore::ContextMenu::populate): Removed the call to Chrome to ask the
2315         delegate to add its menu items, and moved the code from the static
2316         addDefaultItems function into this method.
2317         * platform/ContextMenu.h:
2318         (WebCore::ContextMenu::show): Added an empty method body since this
2319         method is now called from ContextMenuController (although no one calls
2320         into ContextMenuController yet, so it's OK for this to be empty).
2321         (WebCore::ContextMenu::hide): Ditto.
2322
2323 2006-11-15  Anders Carlsson  <acarlsson@apple.com>
2324
2325         Reviewed by Darin.
2326
2327         Add null checks on the node filter, they can be null if no filter was passed to the respective
2328         create functions.
2329         
2330         * bindings/js/JSNodeIteratorCustom.cpp:
2331         (WebCore::JSNodeIterator::mark):
2332         * bindings/js/JSTreeWalkerCustom.cpp:
2333         (WebCore::JSTreeWalker::mark):
2334
2335 2006-11-15  Oliver Hunt  <oliver@apple.com>
2336
2337         Reviewed by Anders.
2338
2339         Allow <embed> and <object> tags to include non-plugin
2340         content when plugins are disabled
2341
2342         Fixes <rdar://problems/4839488>
2343
2344         * html/HTMLEmbedElement.cpp:
2345         (WebCore::HTMLEmbedElement::rendererIsNeeded):
2346         * html/HTMLObjectElement.cpp:
2347         (WebCore::HTMLObjectElement::rendererIsNeeded):
2348         * loader/FrameLoader.cpp:
2349         (WebCore::FrameLoader::requestObject):
2350
2351 2006-11-15  Adele Peterson  <adele@apple.com>
2352
2353         Build fix.  Another type problem that I don't see locally.
2354
2355         * rendering/RenderSlider.cpp: (WebCore::RenderSlider::setPositionFromValue):
2356
2357 2006-11-15  Adele Peterson  <adele@apple.com>
2358
2359         Reviewed by Adam.
2360
2361         Adding MathExtras header.
2362
2363         * rendering/RenderSlider.cpp:
2364
2365 2006-11-15  Timothy Hatcher  <timothy@apple.com>
2366
2367         Reviewed by Harrison.
2368
2369         <rdar://problem/4832894> Crash deleting an element inside a list while deletion rectangle is visible (compareBoundaryPoints)
2370
2371         * Disable and hide the deletion UI for each editing command. This prevents editing commands from being affected
2372           by the deletion UI elements we insert. The deletion UI is then shown after the editing commands are completely done.
2373
2374         * Multiple calls to DeleteButtonController's disable() needed to be paired with the same number of enable() calls before
2375           the deletion UI is enabled again. This allows for nested editing commands to be called without thrashing the deletion UI.
2376
2377         * Make sure the the renderers are currently reflecting the latest style changes, so call updateLayoutIgnorePendingStylesheets().
2378
2379         * editing/DeleteButtonController.cpp:
2380         (WebCore::DeleteButtonController::DeleteButtonController):
2381         (WebCore::isDeletableElement):
2382         (WebCore::DeleteButtonController::respondToChangedSelection): check the enabled state
2383         (WebCore::DeleteButtonController::respondToChangedContents): check the enabled state
2384         (WebCore::DeleteButtonController::show): call isDeletableElement() to make sure the element is allowed
2385         (WebCore::DeleteButtonController::deleteTarget): check the enabled state
2386         * editing/DeleteButtonController.h:
2387         (WebCore::DeleteButtonController::disable):
2388         (WebCore::DeleteButtonController::enable):
2389         (WebCore::DeleteButtonController::enabled):
2390         * editing/EditCommand.cpp:
2391         (WebCore::EditCommand::apply): hide and disable the deletion UI, then show at the end
2392         (WebCore::EditCommand::unapply): ditto
2393         (WebCore::EditCommand::reapply): ditto
2394
2395 2006-11-15  Adele Peterson  <adele@apple.com>
2396
2397         Reviewed by Adam.
2398
2399         New implementation of slider control.
2400
2401         * WebCore.xcodeproj/project.pbxproj: Removed DeprecatedSlider and Slider classes, added RenderSlider class.
2402         * rendering/DeprecatedSlider.cpp: Removed.
2403         * rendering/DeprecatedSlider.h: Removed.
2404         * platform/Slider.h: Removed.
2405         * platform/mac/SliderMac.mm: Removed.
2406         * platform/win/TemporaryLinkStubs.cpp:
2407
2408         * css/CSSSelector.h: (WebCore::CSSSelector::): Added PseudoElement for thumb, PseudoSliderThumb.
2409         * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType): Added code for "-webkit-slider-thumb".
2410         * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::checkOneSelector): 
2411         * rendering/RenderStyle.cpp:
2412         (WebCore::):
2413         (WebCore::pseudoBit):
2414         * rendering/RenderStyle.h: (WebCore::RenderStyle::):
2415
2416         * css/html4.css: Added style for input[type="range"] and input[type="range"]::-webkit-slider-thumb
2417
2418         * html/HTMLInputElement.cpp:
2419         (WebCore::HTMLInputElement::createRenderer): Create RenderSlider for input type="range" elements.
2420         (WebCore::HTMLInputElement::defaultEventHandler): Allow the renderer to forward events, and set thumb position when click occurs on the track.
2421
2422         * 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
2423           continue to capture mouse move events during the drag, even though those events aren't directly over the slider.
2424         (WebCore::EventHandler::EventHandler):
2425         (WebCore::EventHandler::setCapturingMouseEventsNode):
2426         (WebCore::EventHandler::dispatchMouseEvent): If the capturingMouseEventsNode is set, then dispatch all mouse events to that node.
2427         * page/EventHandler.h:
2428
2429         * rendering/RenderSlider.cpp: Added.
2430         (WebCore::HTMLSliderThumbElement::isShadowNode):
2431         (WebCore::HTMLSliderThumbElement::shadowParentNode):
2432         (WebCore::HTMLSliderThumbElement::inDragMode): Keeps track of whether or not the thumb is in drag mode.
2433         (WebCore::HTMLSliderThumbElement::HTMLSliderThumbElement):
2434         (WebCore::HTMLSliderThumbElement::defaultEventHandler): Handles positioning of slider thumb during drag.
2435         (WebCore::RenderSlider::RenderSlider):
2436         (WebCore::RenderSlider::~RenderSlider):
2437         (WebCore::RenderSlider::baselinePosition):
2438         (WebCore::RenderSlider::calcMinMaxWidth):
2439         (WebCore::RenderSlider::setStyle):
2440         (WebCore::RenderSlider::createThumbStyle):
2441         (WebCore::RenderSlider::layout): Positions the thumb to be centered on the track.
2442         (WebCore::RenderSlider::updateFromElement):
2443         (WebCore::RenderSlider::mouseEventIsInThumb):
2444         (WebCore::RenderSlider::setValueForPosition):
2445         (WebCore::RenderSlider::setPositionFromValue):
2446         (WebCore::RenderSlider::positionForOffset):
2447         (WebCore::RenderSlider::valueChanged):
2448         (WebCore::RenderSlider::currentPosition):
2449         (WebCore::RenderSlider::setCurrentPosition):
2450         (WebCore::RenderSlider::trackSize):
2451         (WebCore::RenderSlider::forwardEvent):
2452         (WebCore::RenderSlider::inDragMode):
2453         * rendering/RenderSlider.h: Added.
2454         (WebCore::RenderSlider::renderName):
2455
2456          * rendering/RenderTheme.cpp: Added drawing code for slider track and thumb.
2457         (WebCore::RenderTheme::adjustStyle):
2458         (WebCore::RenderTheme::paint):
2459         (WebCore::RenderTheme::paintBorderOnly):
2460         (WebCore::RenderTheme::paintDecorations):
2461         (WebCore::RenderTheme::adjustSliderTrackStyle):
2462         (WebCore::RenderTheme::adjustSliderThumbStyle):
2463         * rendering/RenderTheme.h:
2464         (WebCore::RenderTheme::paintSliderTrack):
2465         (WebCore::RenderTheme::paintSliderThumb):
2466         * rendering/RenderThemeMac.h:
2467         * rendering/RenderThemeMac.mm:
2468         (WebCore::RenderThemeMac::RenderThemeMac):
2469         (WebCore::TrackGradientInterpolate):
2470         (WebCore::RenderThemeMac::paintSliderTrack):
2471         (WebCore::RenderThemeMac::paintSliderThumb):
2472         (WebCore::RenderThemeMac::adjustSliderTrackStyle):
2473         (WebCore::RenderThemeMac::adjustSliderThumbStyle):
2474
2475 2006-11-15  Beth Dakin  <bdakin@apple.com>
2476
2477         Reviewed by Adam.
2478
2479         Oops! Forgot to add this!
2480
2481         * platform/mac/ContextMenuMac.mm: Added.
2482         (-[MenuTarget forwardContextMenuAction:initWithContextMenu:WebCore::]):
2483         (-[MenuTarget WebCore::]):
2484         (-[MenuTarget setMenu:WebCore::]):
2485         (-[MenuTarget forwardContextMenuAction:]):
2486         (getNSMenuItem):
2487         (ContextMenu::appendItem):
2488         (ContextMenu::itemCount):
2489         (ContextMenu::insertItem):
2490         (ContextMenu::setPlatformMenuDescription):
2491
2492 2006-11-15  Beth Dakin  <bdakin@apple.com>
2493         &   Adam Roben  <aroben@apple.com>
2494
2495         Reviewed by Adam and Beth.
2496
2497         Initial cut at pushing Context Menus into WebCore. Nobody actually 
2498         calls this code just yet.
2499
2500         * WebCore.exp:
2501         * WebCore.xcodeproj/project.pbxproj:
2502         * page/Chrome.cpp:
2503         (WebCore::Chrome::addCustomContextMenuItems): Use the chrome to 
2504         call into addContextMenuItems on the UIDelegate.
2505         * page/Chrome.h:
2506         * page/ChromeClient.h:
2507         * platform/ContextMenu.cpp: Added.
2508         (WebCore::addDefaultItems):
2509         (WebCore::ContextMenu::populate):
2510         * platform/ContextMenu.h: Added.
2511         (WebCore::):
2512         (WebCore::ContextMenuItem::ContextMenuItem):
2513         (WebCore::ContextMenu::ContextMenu):
2514         (WebCore::ContextMenu::hitTestResult):
2515         (WebCore::ContextMenu::platformMenuDescription):
2516
2517 2006-11-15  Adele Peterson  <adele@apple.com>
2518
2519         Reviewed by Hyatt.
2520
2521         - Fix for <rdar://problem/4780306> REGRESSION: clicking in textarea does not set selection at PunBB.org
2522
2523         * css/html4.css: Removed "-webkit-user-select: ignore" for labels.
2524
2525 2006-11-15  David Harrison  <harrison@apple.com>
2526
2527         Reviewed by Darin.
2528
2529         <rdar://problem/4836034> REGRESSION: Hang while spell-checking (advanceToNextMisspelling)
2530
2531         Test:
2532         * manual-tests/keep_spelling_markers.html:
2533         Updated to include checking for this bug.
2534         
2535         * bridge/mac/FrameMac.mm:
2536         (WebCore::FrameMac::advanceToNextMisspelling):
2537         it.advance() even when current string is a single space.
2538
2539 2006-11-15  Brady Eidson  <beidson@apple.com>
2540
2541         Reviewed by lamadio
2542
2543         Backing out macro expansion
2544
2545         * WebCore.xcodeproj/project.pbxproj:
2546         * html/HTMLElement.cpp:
2547         (WebCore::HTMLElement::isRecognizedTagName):
2548         * ksvg2/scripts/make_names.pl:
2549
2550 2006-11-15  David Harrison  <harrison@apple.com>
2551
2552         Reviewed by Darin.
2553
2554         <rdar://problem/4770453> VO not honoring secure edit fields in web pages
2555
2556         The remaining problem was the password fields would return their contents
2557         even though they did not advertise that they could. Apparently, VoiceOver
2558         does not read the ads.
2559
2560         * bridge/mac/WebCoreAXObject.mm:
2561         (isPasswordFieldElement):
2562         (-[WebCoreAXObject isPasswordField]):
2563         (-[WebCoreAXObject textMarkerForVisiblePosition:]):
2564         (-[WebCoreAXObject accessibilityAttributeValue:]):
2565         (-[WebCoreAXObject doAXStringForRange:]):
2566
2567 2006-11-13  Lou Amadio  <lamadio@apple.com>
2568
2569         Reviewed by Darin Adler, Maciej Stachowiak
2570
2571         Cleanup: Expanded macros in generated files
2572
2573         * html/HTMLElement.cpp:
2574         (WebCore::HTMLElement::isRecognizedTagName):
2575         * ksvg2/scripts/make_names.pl:
2576
2577 2006-11-16  Anders Carlsson  <acarlsson@apple.com>
2578
2579         Reviewed by Geoff.
2580
2581         Use Vector instead of DeprecatedPtrList.
2582         
2583         * editing/ApplyStyleCommand.cpp:
2584         (WebCore::ApplyStyleCommand::applyBlockStyle):
2585         * editing/BreakBlockquoteCommand.cpp:
2586         * rendering/RenderFlow.cpp:
2587         (WebCore::RenderFlow::paintOutline):
2588
2589 2006-11-15  Adam Roben  <aroben@apple.com>
2590
2591         Build fix.
2592
2593         * page/EventHandler.h:
2594
2595 2006-11-14  Beth Dakin  <bdakin@apple.com>
2596
2597         Reviewed by Geoff.
2598
2599         Move things off the bridge, and move sendContextMenuEvent() from 
2600         EventHandlerMac to EventHandler.
2601
2602         * WebCore.exp:
2603         * WebCore.xcodeproj/project.pbxproj:
2604         * bridge/EditorClient.h:
2605         * bridge/mac/WebCoreFrameBridge.h:
2606         * editing/Editor.cpp:
2607         (WebCore::Editor::selectWordBeforeMenuEvent):
2608         (WebCore::Editor::clientIsEditable):
2609         * editing/Editor.h:
2610         * page/EventHandler.cpp:
2611         (WebCore::EventHandler::sendContextMenuEvent):
2612         * page/EventHandler.h:
2613         * page/mac/EventHandlerMac.mm:
2614
2615 2006-11-14  Timothy Hatcher  <timothy@apple.com>
2616
2617         Reviewed by Harrison.
2618
2619         <rdar://problem/4766635> Safari should never follow links in editable areas (add a WebKitEditableLinkNeverLive option)
2620
2621         Adds an EditableLinkNeverLive setting that will make links in editable areas always dead.
2622
2623         * bridge/mac/WebCoreSettings.mm:
2624         (-[WebCoreSettings setEditableLinkBehavior:]):
2625         * html/HTMLAnchorElement.cpp:
2626         (WebCore::HTMLAnchorElement::defaultEventHandler):
2627         (WebCore::HTMLAnchorElement::setActive):
2628         (WebCore::HTMLAnchorElement::isLiveLink):
2629         * page/FrameView.cpp:
2630         (WebCore::selectCursor):
2631         * page/Settings.h:
2632         (WebCore::Settings::):
2633
2634 2006-11-14  Mark Rowe  <bdash@webkit.org>
2635
2636         Reviewed by Oliver.
2637
2638         Build fix
2639
2640         * bindings/scripts/CodeGenerator.pm:
2641
2642 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
2643
2644         Turns out I wasn't forcing DWARF on the world at all, 
2645         it's now the default!
2646
2647         * WebCore.xcodeproj/project.pbxproj:
2648
2649 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
2650
2651         I must stop trying to force DWARF on the world.
2652         
2653         * WebCore.xcodeproj/project.pbxproj:
2654
2655 2006-11-13  Justin Garcia  <justin.garcia@apple.com>
2656
2657         Reviewed by harrison
2658         
2659         <rdar://problem/4806874>
2660         Missing background image after paste
2661         
2662         * editing/markup.cpp:
2663         (WebCore::createMarkup): If the body is fully selected, add a 
2664         div with its CSS properties to the markup.  Migrated a use of 
2665         enclosingBlockFlowElement to enclosingBlock to fix an infinite 
2666         loop when pasting <div><input></div>.
2667
2668 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
2669
2670         Reviewed by Adam.
2671
2672         Add Undo/Redo to execCommand.
2673         
2674         * editing/Editor.cpp:
2675         (WebCore::execRedo):
2676         (WebCore::execUndo):
2677         (WebCore::canRedo):
2678         (WebCore::canUndo):
2679         (WebCore::CommandEntry::):
2680
2681 2006-11-14  Darin Adler  <darin@apple.com>
2682
2683         Reviewed by Anders.
2684
2685         - created EventHandler class, moved event handling code from both
2686           Frame and FrameView in there
2687
2688         - added ScrollTypes.h header so you can include the scroller-related
2689           enums without all of Scrollbar.h
2690
2691         * page/EventHandler.cpp: Added.
2692         * page/EventHandler.h: Added.
2693         * page/mac/EventHandlerMac.mm: Added.
2694
2695         * platform/ScrollBarMode.h: Removed.
2696         * platform/ScrollTypes.h: Added.
2697
2698         * WebCore.exp:
2699         * WebCore.xcodeproj/project.pbxproj:
2700         * bridge/mac/FrameMac.h:
2701         * bridge/mac/FrameMac.mm:
2702         (WebCore::FrameMac::FrameMac):
2703         (WebCore::FrameMac::~FrameMac):
2704         (WebCore::FrameMac::bridgeForWidget):
2705         (WebCore::FrameMac::imageFromRect):
2706         * bridge/mac/FrameViewMac.mm:
2707         * bridge/mac/WebCoreFrameBridge.mm:
2708         (-[WebCoreFrameBridge scrollOverflowInDirection:granularity:]):
2709         (-[WebCoreFrameBridge nextKeyView]):
2710         (-[WebCoreFrameBridge previousKeyView]):
2711         (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]):
2712         (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):
2713         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
2714         (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
2715         (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
2716         (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
2717         (-[WebCoreFrameBridge dragSourceMovedTo:]):
2718         (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
2719         * dom/Document.cpp:
2720         (WebCore::Document::hoveredNodeDetached):
2721         * dom/Element.h:
2722         * dom/EventTargetNode.cpp:
2723         (WebCore::EventTargetNode::defaultEventHandler):
2724         * editing/SelectionController.cpp:
2725         (WebCore::SelectionController::SelectionController):
2726         * editing/SelectionController.h:
2727         (WebCore::SelectionController::setCaretBlinkingSuspended):
2728         (WebCore::SelectionController::isCaretBlinkingSuspended):
2729         * html/HTMLAnchorElement.cpp:
2730         (WebCore::HTMLAnchorElement::isKeyboardFocusable):
2731         * html/HTMLFrameElementBase.cpp:
2732         (WebCore::HTMLFrameElementBase::setFocus):
2733         * html/HTMLFrameElementBase.h:
2734         * html/HTMLGenericFormElement.cpp:
2735         (WebCore::HTMLGenericFormElement::isKeyboardFocusable):
2736         * html/HTMLInputElement.cpp:
2737         (WebCore::HTMLInputElement::defaultEventHandler):
2738         * html/HTMLSelectElement.cpp:
2739         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
2740         * loader/FrameLoader.cpp:
2741         (WebCore::FrameLoader::clear):
2742         (WebCore::FrameLoader::open):
2743
2744         * page/Frame.cpp:
2745         (WebCore::Frame::caretBlinkTimerFired):
2746         (WebCore::Frame::frameForWidget):
2747         (WebCore::Frame::eventHandler):
2748         (WebCore::Frame::setProhibitsScrolling):
2749         (WebCore::FramePrivate::FramePrivate):
2750         * page/Frame.h:
2751         * page/FramePrivate.h:
2752         * page/FrameView.cpp:
2753         (WebCore::FrameViewPrivate::FrameViewPrivate):
2754         (WebCore::FrameViewPrivate::reset):
2755         (WebCore::FrameView::FrameView):
2756         (WebCore::FrameView::~FrameView):
2757         (WebCore::FrameView::clear):
2758         (WebCore::FrameView::adjustViewSize):
2759         (WebCore::FrameView::addRepaintInfo):
2760         (WebCore::FrameView::layout):
2761         (WebCore::FrameView::scrollPointRecursively):
2762         (WebCore::FrameView::setContentsPos):
2763         (WebCore::FrameView::scheduleRelayoutOfSubtree):
2764         (WebCore::FrameView::scheduleEvent):
2765         (WebCore::FrameView::updateOverflowStatus):
2766         (WebCore::FrameView::dispatchScheduledEvents):
2767         (WebCore::FrameView::windowClipRectForLayer):
2768         (WebCore::FrameView::handleMouseMoveEvent):
2769         (WebCore::FrameView::handleMouseReleaseEvent):
2770         * page/FrameView.h:
2771         * page/PageState.cpp:
2772         (WebCore::PageState::PageState):
2773         (WebCore::PageState::restore):
2774         * page/PageState.h:
2775         * platform/ScrollBar.h:
2776         * platform/ScrollView.h:
2777         * platform/mac/ClipboardMac.mm:
2778         * platform/mac/PopupMenuMac.mm:
2779         (WebCore::PopupMenu::show):
2780         * platform/mac/SliderMac.mm:
2781         (-[WebCoreSlider becomeFirstResponder]):
2782         (-[WebCoreSlider nextKeyView]):
2783         (-[WebCoreSlider previousKeyView]):
2784         (-[WebCoreSlider canBecomeKeyView]):
2785         (Slider::focusPolicy):
2786         * platform/mac/WebCoreTextField.mm:
2787         (-[WebCoreTextFieldController textView:shouldHandleEvent:]):
2788         (-[WebCoreTextFieldController setHasFocus:]):
2789         (-[WebCoreSearchField nextKeyView]):
2790         (-[WebCoreSearchField previousKeyView]):
2791         (-[WebCoreSearchFieldCell _addStringToRecentSearches:]):
2792         * platform/mac/WidgetMac.mm:
2793         (WebCore::Widget::hasFocus):
2794         (WebCore::Widget::clearFocus):
2795         * rendering/RenderFrameSet.cpp:
2796         (WebCore::RenderFrameSet::setResizing):
2797         * rendering/RenderLayer.cpp:
2798         (WebCore::RenderLayer::autoscroll):
2799         (WebCore::RenderLayer::resize):
2800         (WebCore::RenderLayer::updateOverflowStatus):
2801         * rendering/RenderLayer.h:
2802         * rendering/RenderListBox.cpp:
2803         (WebCore::RenderListBox::autoscroll):
2804         * rendering/RenderObject.cpp:
2805         (WebCore::RenderObject::draggableNode):
2806         (WebCore::RenderObject::destroy):
2807         * rendering/RenderObject.h:
2808         (WebCore::RenderObject::RepaintInfo::RepaintInfo):
2809         * rendering/RenderPartObject.cpp:
2810         (WebCore::RenderPartObject::viewCleared):
2811
2812 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
2813
2814         Reviewed by Darin.
2815
2816         Let the editor client handle undo/redo.
2817         
2818         * WebCore.exp:
2819         * WebCore.xcodeproj/project.pbxproj:
2820         * bridge/EditorClient.h:
2821         * bridge/mac/FrameMac.h:
2822         * bridge/mac/FrameMac.mm:
2823         (WebCore::FrameMac::canUndo):
2824         (WebCore::FrameMac::canRedo):
2825         * bridge/mac/WebCoreEditCommand.h: Removed.
2826         * bridge/mac/WebCoreEditCommand.mm: Removed.
2827         * bridge/mac/WebCoreFrameBridge.h:
2828         * bridge/mac/WebCoreFrameBridge.mm:
2829         * editing/Editor.cpp:
2830         (WebCore::Editor::appliedEditing):
2831         (WebCore::Editor::unappliedEditing):
2832         (WebCore::Editor::reappliedEditing):
2833         * editing/JSEditor.cpp:
2834         * loader/FrameLoader.cpp:
2835         (WebCore::FrameLoader::closeURL):
2836         * page/Frame.cpp:
2837         * page/Frame.h:
2838         * rendering/RenderTextControl.cpp:
2839         (WebCore::RenderTextControl::updateFromElement):
2840
2841 2006-11-14  Nikolas Zimmermann  <zimmermann@kde.org>
2842
2843         Reviewed and landed by Brady
2844
2845         Fix Qt/Linux build.
2846
2847         * ChangeLog:
2848         * loader/qt/FrameLoaderQt.cpp:
2849         (WebCore::FrameLoader::submitForm):
2850         * platform/network/qt/ResourceHandleManager.cpp:
2851         (WebCore::ResourceHandleManager::add):
2852         * platform/qt/FrameQtClient.cpp:
2853         (WebCore::FrameQtClientDefault::submitForm):
2854         * platform/qt/FrameQtClient.h:
2855
2856 2006-11-14  Brady Eidson  <beidson@apple.com>
2857
2858         Reviewed by Anders
2859
2860         Cleanup of my patch last night and merging with aroben-style changes from this morning
2861         (More ref-counted FormData stuff)
2862
2863         * html/HTMLFormElement.cpp:
2864         (WebCore::HTMLFormElement::submit):
2865         * loader/FrameLoader.cpp:
2866         (WebCore::FrameLoader::submitForm):
2867         * platform/network/ResourceHandle.cpp:
2868         (WebCore::ResourceHandle::postData):
2869         * platform/network/ResourceHandle.h:
2870         * platform/network/cf/FormDataStreamCFNet.cpp:
2871         (WebCore::setHTTPBody):
2872         * platform/network/mac/FormDataStreamMac.h:
2873         * platform/network/mac/FormDataStreamMac.mm:
2874         (WebCore::getStreamFormDatas):
2875         (WebCore::formCreate):
2876         (WebCore::formFinalize):
2877         (WebCore::setHTTPBody):
2878         (WebCore::httpBodyFromStream):
2879         * platform/network/mac/ResourceRequestMac.mm:
2880         (WebCore::getResourceRequest):
2881
2882 2006-11-14  Rob Buis  <buis@kde.org>
2883
2884         Reviewed by Darin.
2885
2886         http://bugs.webkit.org/show_bug.cgi?id=11575
2887         Bug 11575: REGRESSION: WebCore crash in CSSParser/HTMLTokenizer
2888
2889         Test: fast/css/css-imports.html
2890
2891         * css/CSSImportRule.cpp:
2892         (WebCore::CSSImportRule::insertedIntoParent):
2893         Fix the crash by testing for null pointer.
2894
2895 2006-11-14  Alexey Proskuryakov  <ap@webkit.org>
2896
2897         Reviewed by Tim H.
2898
2899         Test for http://bugs.webkit.org/show_bug.cgi?id=3387
2900         Redundant keydown, keypress, keyup events sent for arrow keys
2901
2902         * manual-tests/arrow-key-events.html: Added.
2903
2904 2006-11-14  Darin Adler  <darin@apple.com>
2905
2906         Reviewed by Adam.
2907
2908         Fix up usages of FormData within CFNet loader code.
2909
2910         * platform/network/ResourceRequest.h:
2911         (WebCore::ResourceRequest::httpBody):
2912         * platform/network/cf/FormDataStreamCFNet.cpp:
2913         (WebCore::getStreamFormDatas): Store RefPtr<FormData>s in the
2914         streamFormDatas HashMap.
2915         (WebCore::formCreate):
2916         (WebCore::formFinalize): Removed delete because the remove() will deref
2917         and delete if necessary.
2918         (WebCore::setHTTPBody): Changed parameter to PassRefPtr.
2919         (WebCore::httpBodyFromStream):
2920         * platform/network/cf/FormDataStreamCFNet.h: Fix declarations.
2921         * platform/network/cf/ResourceRequestCFNet.cpp:
2922         (WebCore::getResourceRequest):
2923
2924 2006-11-14  Greg Jackson  <gjspanner@gmail.com>
2925
2926         Reviewed by Darin.
2927
2928         Preserves any pre-existing value for WEBCORE_NAVIGATOR_PLATFORM
2929         rather than overriding it based on platform detection.
2930
2931         * bindings/js/kjs_navigator.cpp:
2932
2933 2006-11-13  Brady Eidson  <beidson@apple.com>
2934
2935         Reviewed by Maciej
2936
2937         Made FormData Shared, and pass it around as such.
2938
2939         * WebCore.xcodeproj/project.pbxproj: Reordered some items
2940         * html/HTMLFormElement.cpp:
2941         (WebCore::HTMLFormElement::formData):
2942         (WebCore::HTMLFormElement::submit):
2943         * html/HTMLFormElement.h:
2944         * loader/FrameLoader.cpp:
2945         (WebCore::FormSubmission::FormSubmission):
2946         (WebCore::FrameLoader::submitForm):
2947         * loader/FrameLoader.h:
2948         * loader/mac/FrameLoaderMac.mm:
2949         (WebCore::FrameLoader::post):
2950         (WebCore::FrameLoader::loadResourceSynchronously):
2951         * loader/mac/SubresourceLoaderMac.mm:
2952         (WebCore::SubresourceLoader::create):
2953         * platform/network/FormData.h: Made FormData shared
2954         * platform/network/ResourceHandle.h:
2955         * platform/network/ResourceHandle.cpp:
2956         (WebCore::ResourceHandle::postData): 
2957         * platform/network/ResourceRequest.h:
2958         (WebCore::ResourceRequest::httpBody):
2959         (WebCore::ResourceRequest::setHTTPBody): 
2960         * platform/network/mac/ResourceRequestMac.mm:
2961         (WebCore::getResourceRequest):
2962         (WebCore::nsURLRequest): 
2963
2964         * platform/network/mac/FormDataStreamMac.h:
2965         * platform/network/mac/FormDataStreamMac.mm:
2966         (WebCore::getStreamFormDatas): Hash Streams to RefPtr<FormData>s
2967         (WebCore::formCreate):
2968         (WebCore::formFinalize):
2969         (WebCore::setHTTPBody):
2970         (WebCore::httpBodyFromStream):
2971
2972         * xml/xmlhttprequest.cpp:
2973         (WebCore::XMLHttpRequest::send):
2974
2975 2006-11-13  Justin Garcia  <justin.garcia@apple.com>
2976
2977         Reviewed by harrison
2978         
2979         <rdar://problem/4828264>
2980         In Mail, a crash occurs at WebCore::Selection::toRange() when selecting this web content (http://www.cnet.com/)
2981         
2982         The start of the selection is in an editable area, and the end is in an 
2983         input field inside that editable area.  The code that should pull the end
2984         of such a selection outside the input field didn't escape shadow nodes,
2985         it would leave a dangling end, causing the crash in toRange.
2986         
2987         * editing/Selection.cpp:
2988         (WebCore::Selection::adjustForEditableContent):  Added an ASSERT and a fixup
2989         to prevent crashes like this in future Release builds.
2990         * editing/htmlediting.cpp:
2991         (WebCore::firstEditablePositionAfterPositionInRoot): Let this function 
2992         escape shadow nodes.  We might eventually push this code down into 
2993         next/previous{VisuallyDistinct}Canditate.
2994         (WebCore::lastEditablePositionBeforePositionInRoot): Ditto.
2995
2996 2006-11-13  Justin Garcia  <justin.garcia@apple.com>
2997
2998         Reviewed by darin
2999         
3000         * editing/DeleteSelectionCommand.cpp:
3001         (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor):
3002         * editing/Editor.cpp:
3003         (WebCore::Editor::appliedEditing):
3004         * editing/Editor.h:
3005         (WebCore::Editor::setRemovedAnchor): Pass a PassRefPtr.
3006
3007 2006-11-10  Justin Garcia  <justin.garcia@apple.com>
3008
3009         Reviewed by Oliver
3010         
3011         <rdar://problem/4820026>
3012         copy/paste of news.google.com yields text from hidden select element options
3013
3014         We were adding descendants of unrendered select elements. 
3015
3016         * editing/markup.cpp:
3017         (WebCore::createMarkup): Don't traverse into nodes without renderers, unless 
3018         they are grandfathered in by a rendered select element.
3019         
3020 2006-11-12  Simon Hausmann  <hausmann@kde.org>
3021
3022         Reviewed by Sam Weinig.
3023
3024         Fix Qt build. Missing AbstractShared implementation.
3025         http://bugs.webkit.org/show_bug.cgi?id=11581
3026
3027         * loader/qt/FrameLoaderClientQt.cpp:
3028         (WebCore::FrameLoaderClientQt::ref):
3029         (WebCore::FrameLoaderClientQt::deref):
3030         * loader/qt/FrameLoaderClientQt.h:
3031         * platform/qt/ChromeClientQt.cpp:
3032         (WebCore::ChromeClientQt::ref):
3033         (WebCore::ChromeClientQt::deref):
3034         * platform/qt/ChromeClientQt.h:
3035         * platform/qt/EditorClientQt.cpp:
3036         (WebCore::EditorClientQt::ref):
3037         (WebCore::EditorClientQt::deref):
3038         * platform/qt/EditorClientQt.h:
3039
3040 2006-11-13  Mark Rowe  <bdash@webkit.org>
3041
3042         Reviewed by Mitz.
3043
3044         Fix some Linux/Gdk build issues noted by Alp Toker.
3045
3046         * Projects/gdk/webcore-gdk.bkl:
3047         * WebCoreSources.bkl:
3048         * platform/graphics/gdk/ImageGdk.cpp:
3049         (WebCore::Image::loadPlatformResource):
3050
3051 2006-11-12  Brady Eidson <beidson@apple.com>
3052
3053         Reviewed by Anders
3054
3055         Logging channel plumbing for future work
3056
3057         * platform/Logging.cpp:
3058         (WebCore::):
3059         * platform/Logging.h:
3060         * platform/mac/LoggingMac.mm:
3061         (WebCore::InitializeLoggingChannelsIfNecessary):
3062
3063 2006-11-12  Mark Rowe  <bdash@webkit.org>
3064
3065         Reviewed by Mitz.
3066
3067         Linux/Gdk compilation fixes, and bakefile cleanups.  Based on patches by
3068         Alp Toker.
3069
3070         * Projects/gdk/webcore-gdk.bkl:
3071         * WebCoreSources.bkl:
3072         * page/PageState.cpp:
3073         * platform/gdk/ChromeClientGdk.h:
3074         (WebCore::ChromeClientGdk::ref):
3075         (WebCore::ChromeClientGdk::deref):
3076         * platform/gdk/FrameGdk.cpp:
3077         (WebCore::FrameGdkClientDefault::openURL):
3078         (WebCore::FrameGdkClientDefault::didReceiveData):
3079         (WebCore::FrameGdkClientDefault::receivedAllData):
3080         (WebCore::FrameGdk::FrameGdk):
3081         (WebCore::FrameGdk::~FrameGdk):
3082         * platform/gdk/FrameGdk.h:
3083         * platform/gdk/KeyEventGdk.cpp:
3084         (WebCore::keyIdentifierForGdkKeyCode):
3085         * platform/gdk/ScreenClientGdk.h: Removed.
3086         * platform/gdk/TemporaryLinkStubs.cpp:
3087         (FrameGdk::canPaste):
3088         (FrameGdk::originalRequestURL):
3089         (TextField::TextField):
3090         * platform/network/gdk/ResourceHandleManager.cpp:
3091         (WebCore::ResourceHandleManager::downloadTimerCallback):
3092         (WebCore::ResourceHandleManager::add):
3093         (WebCore::ResourceHandleManager::cancel):
3094         * webcore-base.bkl:
3095
3096 2006-11-11  Geoffrey Garen  <ggaren@apple.com>
3097
3098         Reviewed by Maciej Stachowiak.
3099         
3100         - Fixed loader crash by clarifying ownership of WebKit client objects. 
3101         WebCore objects own their WebKit clients, and ref and deref through 
3102         virtual methods, leaving WebKit free to use whatever client / reference-counting 
3103         implementation it likes.
3104         
3105         * WebCore.exp:
3106         * WebCore.xcodeproj/project.pbxproj:
3107         * bridge/EditorClient.h: Fixed up function prototypes for style.
3108         * loader/FrameLoader.cpp: Removed detachFrameLoader, since its real purpose
3109         was to implement an alternative ownership model.
3110         (WebCore::FrameLoader::~FrameLoader): Removed empty destructor.
3111         (WebCore::FrameLoader::setClient): This function now takes ownership
3112         (WebCore::FrameLoader::client):
3113         * loader/FrameLoader.h:
3114         * loader/FrameLoaderClient.h:
3115         * page/ChromeClient.h:
3116         * platform/AbstractShared.h: Added. This is the virtual function-based refcounting
3117         complement to Shared.
3118         (WebCore::AbstractShared::~AbstractShared):
3119
3120 2006-11-11  George Staikos  <staikos@kde.org>
3121
3122         Reviewed by Maciej.
3123
3124         Fix uninitialized variable.
3125
3126         * rendering/RenderStyle.h:
3127
3128 2006-11-11  Nikolas Zimmermann  <zimmermann@kde.org>
3129
3130         Reviewed/landed by Adam.
3131
3132         Complete cleanup of the CMakeLists.txt.
3133         Now all files to be built are sorted in alphabetic order.
3134
3135         General style cleanup, remove all tabs etc.
3136
3137         * CMakeLists.txt:
3138
3139 2006-11-11  Geoffrey Garen  <ggaren@apple.com>
3140
3141         Reviewed by Maciej Stachowiak.
3142         
3143         Added missing initializer to ResourceRequest -- fixes some loader crashes
3144         due to assuming a request always has a non-null httpMethod.
3145
3146         * platform/network/ResourceRequest.h:
3147         (WebCore::ResourceRequest::ResourceRequest):
3148
3149 2006-11-11  Brady Eidson <beidson@apple.com>
3150
3151         Reviewed by Maciej
3152
3153         Fixed header guard
3154
3155         * loader/FrameLoaderClient.h:
3156
3157 2006-11-11  Darin Adler  <darin@apple.com>
3158
3159         - attempt to fix Qt build
3160
3161         * platform/qt/CursorQt.cpp:
3162         (WebCore::verticalTextCursor): Added. Just returns pointer cursor.
3163         (WebCore::cellCursor): Ditto.
3164         (WebCore::contextMenuCursor): Ditto.
3165
3166 2006-11-11  Rob Buis  <buis@kde.org>
3167
3168         Reviewed by hyatt.
3169
3170         http://bugs.webkit.org/show_bug.cgi?id=10893
3171         InsertRule can not handle @import statements
3172
3173         Allow @import as part of a css rule.
3174
3175         * css/CSSGrammar.y:
3176         * css/CSSImportRule.cpp:
3177         (WebCore::CSSImportRule::insertedIntoParent):
3178         * css/CSSStyleSheet.cpp:
3179         (WebCore::CSSStyleSheet::CSSStyleSheet):
3180         (WebCore::CSSStyleSheet::checkLoaded):
3181         * css/CSSStyleSheet.h:
3182         (WebCore::CSSStyleSheet::loadCompleted):
3183
3184 2006-11-11  Alexey Proskuryakov  <ap@webkit.org>
3185
3186         Attempt to fix Qt build.
3187
3188         * CMakeLists.txt: PathQt.cpp is in graphics/qt now.
3189
3190 2006-11-11  Lars Naesbye Christensen  <larsnaesbye@stud.ku.dk>
3191
3192         Tortured by Sam Weinig, Tim H., Maciej, Mitz and Alexey :-)
3193
3194         [CSS 3] support for vertical-text, cell and context-menu cursors
3195         http://bugs.webkit.org/show_bug.cgi?id=11494
3196
3197         * Resources/cellCursor.png: Added.
3198         * Resources/contextMenuCursor.png: Added.
3199         * Resources/verticalTextCursor.png: Added.
3200         * WebCore.xcodeproj/project.pbxproj:
3201         * css/CSSComputedStyleDeclaration.cpp:
3202         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3203         * css/CSSValueKeywords.in:
3204         * manual-tests/cursor.html:
3205         * page/FrameView.cpp:
3206         (WebCore::selectCursor):
3207         * platform/Cursor.h:
3208         * platform/mac/CursorMac.mm:
3209         (WebCore::verticalTextCursor):
3210         (WebCore::cellCursor):
3211         (WebCore::contextMenuCursor):
3212         * rendering/RenderStyle.h:
3213         (WebCore::):
3214
3215 2006-11-11  Nikolas Zimmermann  <zimmermann@kde.org>
3216
3217         Reviewed by aroben and ap, landed by ap.
3218
3219         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11468
3220
3221         Group graphics related files in platform/graphics.
3222         Move certain files from certain subdirectories
3223         into platform/graphics/{win,mac,cg,gdk,qt}
3224
3225         * CMakeLists.txt:
3226         * WebCore.xcodeproj/project.pbxproj:
3227         * platform/AffineTransform.cpp: Removed.
3228         * platform/AffineTransform.h: Removed.
3229         * platform/Color.cpp: Removed.
3230         * platform/Color.h: Removed.
3231         * platform/FloatPoint.cpp: Removed.
3232         * platform/FloatPoint.h: Removed.
3233         * platform/FloatRect.cpp: Removed.
3234         * platform/FloatRect.h: Removed.
3235         * platform/FloatSize.cpp: Removed.
3236         * platform/FloatSize.h: Removed.
3237         * platform/Icon.h: Removed.
3238         * platform/Image.cpp: Removed.
3239         * platform/Image.h: Removed.
3240         * platform/ImageSource.h: Removed.
3241         * platform/IntPoint.h: Removed.
3242         * platform/IntRect.cpp: Removed.
3243         * platform/IntRect.h: Removed.
3244         * platform/IntSize.h: Removed.
3245         * platform/IntSizeHash.h: Removed.
3246         * platform/Path.cpp: Removed.
3247         * platform/Path.h: Removed.
3248         * platform/Pen.cpp: Removed.
3249         * platform/Pen.h: Removed.
3250         * platform/cairo/AffineTransformCairo.cpp: Removed.
3251         * platform/cairo/GraphicsContextCairo.cpp: Removed.
3252         * platform/cairo/ImageCairo.cpp: Removed.
3253         * platform/cairo/ImageSourceCairo.cpp: Removed.
3254         * platform/cairo/cairo/AUTHORS: Removed.
3255         * platform/cairo/cairo/COPYING: Removed.
3256         * platform/cairo/cairo/COPYING-LGPL-2.1: Removed.
3257         * platform/cairo/cairo/COPYING-MPL-1.1: Removed.
3258         * platform/cairo/cairo/INSTALL: Removed.
3259         * platform/cairo/cairo/NEWS: Removed.
3260         * platform/cairo/cairo/README: Removed.
3261         * platform/cairo/cairo/TODO: Removed.
3262         * platform/cairo/cairo/src/Makefile.in: Removed.
3263         * platform/cairo/cairo/src/cairo-arc-private.h: Removed.
3264         * platform/cairo/cairo/src/cairo-arc.c: Removed.
3265         * platform/cairo/cairo/src/cairo-array.c: Removed.
3266         * platform/cairo/cairo/src/cairo-atsui-font.c: Removed.
3267         * platform/cairo/cairo/src/cairo-atsui.h: Removed.
3268         * platform/cairo/cairo/src/cairo-beos-surface.cpp: Removed.
3269         * platform/cairo/cairo/src/cairo-beos.h: Removed.
3270         * platform/cairo/cairo/src/cairo-cache-private.h: Removed.
3271         * platform/cairo/cairo/src/cairo-cache.c: Removed.
3272         * platform/cairo/cairo/src/cairo-clip-private.h: Removed.
3273         * platform/cairo/cairo/src/cairo-clip.c: Removed.
3274         * platform/cairo/cairo/src/cairo-color.c: Removed.
3275         * platform/cairo/cairo/src/cairo-debug.c: Removed.
3276         * platform/cairo/cairo/src/cairo-debug.h: Removed.
3277         * platform/cairo/cairo/src/cairo-directfb-surface.c: Removed.
3278         * platform/cairo/cairo/src/cairo-directfb.h: Removed.
3279         * platform/cairo/cairo/src/cairo-features.h: Removed.
3280         * platform/cairo/cairo/src/cairo-features.h.in: Removed.
3281         * platform/cairo/cairo/src/cairo-fixed.c: Removed.
3282         * platform/cairo/cairo/src/cairo-font-options.c: Removed.
3283         * platform/cairo/cairo/src/cairo-font-subset-private.h: Removed.
3284         * platform/cairo/cairo/src/cairo-font-subset.c: Removed.
3285         * platform/cairo/cairo/src/cairo-font.c: Removed.
3286         * platform/cairo/cairo/src/cairo-ft-font.c: Removed.
3287         * platform/cairo/cairo/src/cairo-ft-private.h: Removed.
3288         * platform/cairo/cairo/src/cairo-ft.h: Removed.
3289         * platform/cairo/cairo/src/cairo-glitz-surface.c: Removed.
3290         * platform/cairo/cairo/src/cairo-glitz.h: Removed.
3291         * platform/cairo/cairo/src/cairo-gstate-private.h: Removed.
3292         * platform/cairo/cairo/src/cairo-gstate.c: Removed.
3293         * platform/cairo/cairo/src/cairo-hash-private.h: Removed.
3294         * platform/cairo/cairo/src/cairo-hash.c: Removed.
3295         * platform/cairo/cairo/src/cairo-hull.c: Removed.
3296         * platform/cairo/cairo/src/cairo-image-surface.c: Removed.
3297         * platform/cairo/cairo/src/cairo-matrix.c: Removed.
3298         * platform/cairo/cairo/src/cairo-meta-surface-private.h: Removed.
3299         * platform/cairo/cairo/src/cairo-meta-surface.c: Removed.
3300         * platform/cairo/cairo/src/cairo-output-stream.c: Removed.
3301         * platform/cairo/cairo/src/cairo-paginated-surface-private.h: Removed.
3302         * platform/cairo/cairo/src/cairo-paginated-surface.c: Removed.
3303         * platform/cairo/cairo/src/cairo-path-bounds.c: Removed.
3304         * platform/cairo/cairo/src/cairo-path-data-private.h: Removed.
3305         * platform/cairo/cairo/src/cairo-path-data.c: Removed.
3306         * platform/cairo/cairo/src/cairo-path-fill.c: Removed.
3307         * platform/cairo/cairo/src/cairo-path-fixed-private.h: Removed.
3308         * platform/cairo/cairo/src/cairo-path-stroke.c: Removed.
3309         * platform/cairo/cairo/src/cairo-path.c: Removed.
3310         * platform/cairo/cairo/src/cairo-pattern.c: Removed.
3311         * platform/cairo/cairo/src/cairo-pdf-surface.c: Removed.
3312         * platform/cairo/cairo/src/cairo-pdf.h: Removed.
3313         * platform/cairo/cairo/src/cairo-pen.c: Removed.
3314         * platform/cairo/cairo/src/cairo-platform.h: Removed.
3315         * platform/cairo/cairo/src/cairo-png.c: Removed.
3316         * platform/cairo/cairo/src/cairo-polygon.c: Removed.
3317         * platform/cairo/cairo/src/cairo-private.h: Removed.
3318         * platform/cairo/cairo/src/cairo-ps-surface.c: Removed.
3319         * platform/cairo/cairo/src/cairo-ps.h: Removed.
3320         * platform/cairo/cairo/src/cairo-quartz-private.h: Removed.
3321         * platform/cairo/cairo/src/cairo-quartz-surface.c: Removed.
3322         * platform/cairo/cairo/src/cairo-quartz.h: Removed.
3323         * platform/cairo/cairo/src/cairo-quartz2-surface.c: Removed.
3324         * platform/cairo/cairo/src/cairo-quartz2.h: Removed.
3325         * platform/cairo/cairo/src/cairo-region.c: Removed.
3326         * platform/cairo/cairo/src/cairo-scaled-font.c: Removed.
3327         * platform/cairo/cairo/src/cairo-slope.c: Removed.
3328         * platform/cairo/cairo/src/cairo-spline.c: Removed.
3329         * platform/cairo/cairo/src/cairo-stroke-style.c: Removed.
3330         * platform/cairo/cairo/src/cairo-surface-fallback-private.h: Removed.
3331         * platform/cairo/cairo/src/cairo-surface-fallback.c: Removed.
3332         * platform/cairo/cairo/src/cairo-surface.c: Removed.
3333         * platform/cairo/cairo/src/cairo-svg-surface.c: Removed.
3334         * platform/cairo/cairo/src/cairo-svg.h: Removed.
3335         * platform/cairo/cairo/src/cairo-traps.c: Removed.
3336         * platform/cairo/cairo/src/cairo-unicode.c: Removed.
3337         * platform/cairo/cairo/src/cairo-wideint.c: Removed.
3338         * platform/cairo/cairo/src/cairo-wideint.h: Removed.
3339         * platform/cairo/cairo/src/cairo-win32-font.c: Removed.
3340         * platform/cairo/cairo/src/cairo-win32-private.h: Removed.
3341         * platform/cairo/cairo/src/cairo-win32-surface.c: Removed.
3342         * platform/cairo/cairo/src/cairo-win32.h: Removed.
3343         * platform/cairo/cairo/src/cairo-xcb-surface.c: Removed.
3344         * platform/cairo/cairo/src/cairo-xcb-xrender.h: Removed.
3345         * platform/cairo/cairo/src/cairo-xcb.h: Removed.
3346         * platform/cairo/cairo/src/cairo-xlib-private.h: Removed.
3347         * platform/cairo/cairo/src/cairo-xlib-screen.c: Removed.
3348         * platform/cairo/cairo/src/cairo-xlib-surface.c: Removed.
3349         * platform/cairo/cairo/src/cairo-xlib-test.h: Removed.
3350         * platform/cairo/cairo/src/cairo-xlib-xrender.h: Removed.
3351         * platform/cairo/cairo/src/cairo-xlib.h: Removed.
3352         * platform/cairo/cairo/src/cairo.c: Removed.
3353         * platform/cairo/cairo/src/cairo.h: Removed.
3354         * platform/cairo/cairo/src/cairoint.h: Removed.
3355         * platform/cairo/cairo/src/test-fallback-surface.c: Removed.
3356         * platform/cairo/cairo/src/test-fallback-surface.h: Removed.
3357         * platform/cairo/cairo/src/test-meta-surface.c: Removed.
3358         * platform/cairo/cairo/src/test-meta-surface.h: Removed.
3359         * platform/cairo/cairo/src/test-paginated-surface.c: Removed.
3360         * platform/cairo/cairo/src/test-paginated-surface.h: Removed.
3361         * platform/cairo/pixman/AUTHORS: Removed.
3362         * platform/cairo/pixman/COPYING: Removed.
3363         * platform/cairo/pixman/README: Removed.
3364         * platform/cairo/pixman/src/Makefile.in: Removed.
3365         * platform/cairo/pixman/src/fbcompose.c: Removed.
3366         * platform/cairo/pixman/src/fbedge.c: Removed.
3367         * platform/cairo/pixman/src/fbedgeimp.h: Removed.
3368         * platform/cairo/pixman/src/fbmmx.c: Removed.
3369         * platform/cairo/pixman/src/fbmmx.h: Removed.
3370         * platform/cairo/pixman/src/fbpict.c: Removed.
3371         * platform/cairo/pixman/src/fbpict.h: Removed.
3372         * platform/cairo/pixman/src/fbtrap.c: Removed.
3373         * platform/cairo/pixman/src/icblt.c: Removed.
3374         * platform/cairo/pixman/src/icbltone.c: Removed.
3375         * platform/cairo/pixman/src/iccolor.c: Removed.
3376         * platform/cairo/pixman/src/icformat.c: Removed.
3377         * platform/cairo/pixman/src/icimage.c: Removed.
3378         * platform/cairo/pixman/src/icimage.h: Removed.
3379         * platform/cairo/pixman/src/icint.h: Removed.
3380         * platform/cairo/pixman/src/icpixels.c: Removed.
3381         * platform/cairo/pixman/src/icrect.c: Removed.
3382         * platform/cairo/pixman/src/icrop.h: Removed.
3383         * platform/cairo/pixman/src/icstipple.c: Removed.
3384         * platform/cairo/pixman/src/ictransform.c: Removed.
3385         * platform/cairo/pixman/src/ictrap.c: Removed.
3386         * platform/cairo/pixman/src/ictri.c: Removed.
3387         * platform/cairo/pixman/src/icutil.c: Removed.
3388         * platform/cairo/pixman/src/pixman-remap.h: Removed.
3389         * platform/cairo/pixman/src/pixman-xserver-compat.h: Removed.
3390         * platform/cairo/pixman/src/pixman.h: Removed.
3391         * platform/cairo/pixman/src/pixregion.c: Removed.
3392         * platform/cairo/pixman/src/pixregionint.h: Removed.
3393         * platform/cairo/pixman/src/renderedge.c: Removed.
3394         * platform/cairo/pixman/src/renderedge.h: Removed.
3395         * platform/cairo/pixman/src/slim_internal.h: Removed.
3396         * platform/cairo/rgb24-hacks.txt: Removed.
3397         * platform/cairo/scale-removal.txt: Removed.
3398         * platform/cg/AffineTransformCG.cpp: Removed.
3399         * platform/cg/FloatPointCG.cpp: Removed.
3400         * platform/cg/FloatRectCG.cpp: Removed.
3401         * platform/cg/FloatSizeCG.cpp: Removed.
3402         * platform/cg/GraphicsContextCG.cpp: Removed.
3403         * platform/cg/GraphicsContextPlatformPrivate.h: Removed.
3404         * platform/cg/ImageCG.cpp: Removed.
3405         * platform/cg/ImageSourceCG.cpp: Removed.
3406         * platform/cg/IntPointCG.cpp: Removed.
3407         * platform/cg/IntRectCG.cpp: Removed.
3408         * platform/cg/IntSizeCG.cpp: Removed.
3409         * platform/cg/PDFDocumentImage.cpp: Removed.
3410         * platform/cg/PDFDocumentImage.h: Removed.
3411         * platform/cg/PathCG.cpp: Removed.
3412         * platform/gdk/ImageGdk.cpp: Removed.
3413         * platform/mac/ColorMac.mm: Removed.
3414         * platform/mac/FloatPointMac.mm: Removed.
3415         * platform/mac/FloatRectMac.mm: Removed.
3416         * platform/mac/FloatSizeMac.mm: Removed.
3417         * platform/mac/GraphicsContextMac.mm:
3418         * platform/mac/IconMac.mm: Removed.
3419         * platform/mac/ImageMac.mm: Removed.
3420         * platform/mac/IntPointMac.mm: Removed.
3421         * platform/mac/IntRectMac.mm: Removed.
3422         * platform/mac/IntSizeMac.mm: Removed.
3423         * platform/qt/AffineTransformQt.cpp: Removed.
3424         * platform/qt/ColorQt.cpp: Removed.
3425         * platform/qt/FloatPointQt.cpp: Removed.
3426         * platform/qt/FloatRectQt.cpp: Removed.
3427         * platform/qt/IconQt.cpp: Removed.
3428         * platform/qt/ImageQt.cpp: Removed.
3429         * platform/qt/ImageSourceQt.cpp: Removed.
3430         * platform/qt/IntPointQt.cpp: Removed.
3431         * platform/qt/IntRectQt.cpp: Removed.
3432         * platform/qt/IntSizeQt.cpp: Removed.
3433         * platform/qt/PathQt.cpp: Removed.
3434         * platform/win/ImageWin.cpp: Removed.
3435         * platform/win/IntPointWin.cpp: Removed.
3436         * platform/win/IntRectWin.cpp: Removed.
3437         * platform/win/IntSizeWin.cpp: Removed.
3438
3439 2006-11-11  Graham Dennis  <graham.dennis@gmail.com>
3440
3441         Reviewed by hyatt.
3442
3443         A layout test was added when this bug was fixed, so none needed now.
3444         
3445         Cleanup after:
3446         REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
3447         http://bugs.webkit.org/show_bug.cgi?id=11570
3448         
3449         * rendering/RenderStyle.h:
3450         (WebCore::RenderStyle::isSpace): Removed.
3451         * rendering/RenderText.cpp:
3452         (WebCore::isSpace): Added.
3453         (WebCore::RenderText::calcMinMaxWidth): Use inline function instead of polluting RenderStyle.
3454
3455 2006-11-11  Graham Dennis  <graham.dennis@gmail.com>
3456
3457         Reviewed by mitz.
3458         
3459         REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
3460         http://bugs.webkit.org/show_bug.cgi?id=11570
3461
3462         * rendering/RenderStyle.h:
3463         (WebCore::RenderStyle::isSpace): Added.
3464         * rendering/RenderText.cpp:
3465         (WebCore::RenderText::calcMinMaxWidth): For the purposes of calculating the line widths, 
3466         treat non-breaking spaces the same as normal spaces if -webkit-nbsp-mode is 'space'
3467
3468 2006-11-10  Zalan Bujtas <zalan.bujtas@nokia.com>
3469
3470         Reviewed by Maciej.
3471
3472         Added basic types for symbian platform.
3473         http://bugs.webkit.org/show_bug.cgi?id=11540
3474
3475         * config.h:
3476         * platform/AtomicString.h:
3477         (WebCore::AtomicString::AtomicString):
3478         (WebCore::AtomicString::operator TPtrC):
3479         * platform/DeprecatedString.cpp:
3480         (WebCore::initializeHandleNodeBlock):
3481         * platform/DeprecatedString.h: char _internalBuffer has to be in front of
3482           the bitfields as Codewarrior (3.2.5 build 461) compiler cannot cope with
3483           bitfields and breaks byte aligment
3484         * platform/FloatPoint.h:
3485         * platform/FloatRect.h:
3486         * platform/IntPoint.h:
3487         * platform/IntRect.h:
3488         * platform/IntSize.h:
3489         * platform/PlatformString.h:
3490         (WebCore::String::operator TPtrC):
3491         (WebCore::String::des):
3492         * platform/StringImpl.h:
3493         * platform/symbian/DeprecatedStringSymbian.cpp: Added.
3494         (WebCore::DeprecatedString::setBufferFromDes):
3495         (WebCore::DeprecatedString::fromDes):
3496         (WebCore::DeprecatedString::des):
3497         (WebCore::DeprecatedString::des8):
3498         * platform/symbian/FloatPointSymbian.cpp: Added.
3499         (WebCore::FloatPoint::FloatPoint):
3500         (WebCore::FloatPoint::operator TPoint):
3501         * platform/symbian/FloatRectSymbian.cpp: Added.
3502         (WebCore::FloatRect::FloatRect):
3503         (WebCore::FloatRect::operator TRect):
3504         (WebCore::FloatRect::rect):
3505         * platform/symbian/IntPointSymbian.cpp: Added.
3506         (WebCore::IntPoint::IntPoint):
3507         (WebCore::IntPoint::operator TPoint):
3508         * platform/symbian/IntRectSymbian.cpp: Added.
3509         (WebCore::IntRect::IntRect):
3510         (WebCore::IntRect::operator TRect):
3511         (WebCore::IntRect::Rect):
3512         * platform/symbian/IntSizeSymbian.cpp: Added.
3513         (WebCore::IntSize::IntSize):
3514         (WebCore::IntSize::operator TSize):
3515         * platform/symbian/StringImplSymbian.cpp: Added.
3516         (WebCore::StringImpl::StringImpl):
3517         (WebCore::StringImpl::des):
3518         * platform/symbian/StringSymbian.cpp: Added.
3519         (WebCore::String::String):
3520
3521 2006-11-10  Zack Rusin  <zack@kde.org>
3522
3523         Reviewed by Anders.
3524
3525         Adjust to the changes Brady made in the Qt code.
3526
3527         * loader/qt/FrameLoaderClientQt.cpp:
3528         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
3529         * loader/qt/FrameLoaderClientQt.h:
3530
3531 2006-11-10  Justin Garcia  <justin.garcia@apple.com>
3532
3533         Reviewed by harrison
3534         
3535         <rdar://problem/4069359>
3536         Deleting hyperlink text, then typing uses link typing style but loses the link itself
3537         
3538         The removed anchor element needs to stick around temporarily, in the same way
3539         that the typing style hangs off the caret until the user moves it.  Also text
3540         insertion around anchors didn't match TextEdit.
3541
3542         * editing/DeleteSelectionCommand.cpp:
3543         (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor): Added.
3544         (WebCore::DeleteSelectionCommand::doApply): Call saveFullySelectedAnchor.
3545         * editing/DeleteSelectionCommand.h:
3546         * editing/EditCommand.cpp:
3547         (WebCore::EditCommand::apply): Clear the removed anchor after any top level
3548         editing command that doesn't preserve the typing style (matches TextEdit).
3549         * editing/Editor.cpp:
3550         (WebCore::Editor::appliedEditing): Added a fixme: we shouldn't call 
3551         setSelection with a message telling it to clear the typing style 
3552         (and the saved anchor) here.  Save/restore the saved anchor because of this.
3553         * editing/Editor.h:
3554         (WebCore::Editor::removedAnchor): Getter.
3555         (WebCore::Editor::setRemovedAnchor): Setter.