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