b569dc70cb9f4a4aec1bb4758ef8cb603025a359
[WebKit-https.git] / WebCore / ChangeLog
1 2006-11-16  David Harrison  <harrison@apple.com>
2
3         Reviewed by Darin and Tim.
4
5         <rdar://problem/4799949> REGRESSION: Crash in FrameMac::eventMayStartDrag() by clicking on a page
6         
7         * page/mac/EventHandlerMac.mm:
8         (WebCore::EventHandler::eventMayStartDrag):
9         Add nil check of hitTest's result.innerNode().
10
11 2006-11-16  Timothy Hatcher  <timothy@apple.com>
12
13         Reviewed by Darin.
14
15         <rdar://problem/4836897> Deletion rectangle disappears when multiple list items are selected
16
17         Consider the container of the selection range for deletion before asking enclosingNodeOfType().
18
19         * editing/DeleteButtonController.cpp:
20         (WebCore::enclosingDeletableElement):
21
22 2006-11-16  Rob Buis  <buis@kde.org>
23
24         Reviewed by hyatt.
25
26         Removal of unused m_styleElement.
27
28         * dom/Node.cpp:
29         (WebCore::Node::Node):
30         (WebCore::Node::dump):
31         * dom/Node.h:
32         (WebCore::Node::isLink): should be styleElement, a bug?
33
34 2006-11-15  Adam Roben  <aroben@apple.com>
35
36         Build fix.
37
38         Rename the items in the ContextMenuAction enum so that they don't
39         conflict with WebKit names.
40
41         * WebCore.xcodeproj/project.pbxproj:
42         * platform/ContextMenu.cpp:
43         (WebCore::ContextMenu::populate):
44         * platform/ContextMenu.h:
45         (WebCore::):
46         (WebCore::ContextMenuItem::ContextMenuItem):
47
48 2006-11-15  Adam Roben  <aroben@apple.com>
49
50         Reviewed by Anders.
51
52         Change m_contextMenu to an OwnPtr.
53
54         * WebCore.xcodeproj/project.pbxproj:
55         * page/ContextMenuController.cpp:
56         (WebCore::ContextMenuController::handleContextMenuEvent):
57         * page/ContextMenuController.h:
58
59 2006-11-15  Adam Roben  <aroben@apple.com>
60
61         Reviewed by Anders.
62
63         Add new ContextMenuController and ContextMenuClient classes, and move
64         context menu responsibilities from Chrome and ChromeClient to them.
65
66         * WebCore.exp:
67         * WebCore.xcodeproj/project.pbxproj: Add new files to project, and
68         alphabetize some others.
69         * page/Chrome.cpp: Remove context menu-related code.
70         * page/Chrome.h: Ditto.
71         * page/ChromeClient.h:
72         * page/ContextMenuClient.h: Added.
73         * page/ContextMenuController.cpp: Added.
74         (WebCore::ContextMenuController::ContextMenuController):
75         (WebCore::ContextMenuController::~ContextMenuController):
76         (WebCore::ContextMenuController::handleContextMenuEvent):
77         (WebCore::ContextMenuController::contextMenuActionSelected):
78         * page/ContextMenuController.h: Added.
79         (WebCore::ContextMenuController::client):
80         * page/Page.cpp: Every Page now has a ContextMenuController.
81         (WebCore::Page::Page):
82         * page/Page.h: Made m_dragCaretController and m_chrome objects instead
83         of pointers to objects.
84         (WebCore::Page::contextMenuController):
85         * platform/ContextMenu.cpp:
86         (WebCore::ContextMenu::populate): Removed the call to Chrome to ask the
87         delegate to add its menu items, and moved the code from the static
88         addDefaultItems function into this method.
89         * platform/ContextMenu.h:
90         (WebCore::ContextMenu::show): Added an empty method body since this
91         method is now called from ContextMenuController (although no one calls
92         into ContextMenuController yet, so it's OK for this to be empty).
93         (WebCore::ContextMenu::hide): Ditto.
94
95 2006-11-15  Anders Carlsson  <acarlsson@apple.com>
96
97         Reviewed by Darin.
98
99         Add null checks on the node filter, they can be null if no filter was passed to the respective
100         create functions.
101         
102         * bindings/js/JSNodeIteratorCustom.cpp:
103         (WebCore::JSNodeIterator::mark):
104         * bindings/js/JSTreeWalkerCustom.cpp:
105         (WebCore::JSTreeWalker::mark):
106
107 2006-11-15  Oliver Hunt  <oliver@apple.com>
108
109         Reviewed by Anders.
110
111         Allow <embed> and <object> tags to include non-plugin
112         content when plugins are disabled
113
114         Fixes <rdar://problems/4839488>
115
116         * html/HTMLEmbedElement.cpp:
117         (WebCore::HTMLEmbedElement::rendererIsNeeded):
118         * html/HTMLObjectElement.cpp:
119         (WebCore::HTMLObjectElement::rendererIsNeeded):
120         * loader/FrameLoader.cpp:
121         (WebCore::FrameLoader::requestObject):
122
123 2006-11-15  Adele Peterson  <adele@apple.com>
124
125         Build fix.  Another type problem that I don't see locally.
126
127         * rendering/RenderSlider.cpp: (WebCore::RenderSlider::setPositionFromValue):
128
129 2006-11-15  Adele Peterson  <adele@apple.com>
130
131         Reviewed by Adam.
132
133         Adding MathExtras header.
134
135         * rendering/RenderSlider.cpp:
136
137 2006-11-15  Timothy Hatcher  <timothy@apple.com>
138
139         Reviewed by Harrison.
140
141         <rdar://problem/4832894> Crash deleting an element inside a list while deletion rectangle is visible (compareBoundaryPoints)
142
143         * Disable and hide the deletion UI for each editing command. This prevents editing commands from being affected
144           by the deletion UI elements we insert. The deletion UI is then shown after the editing commands are completely done.
145
146         * Multiple calls to DeleteButtonController's disable() needed to be paired with the same number of enable() calls before
147           the deletion UI is enabled again. This allows for nested editing commands to be called without thrashing the deletion UI.
148
149         * Make sure the the renderers are currently reflecting the latest style changes, so call updateLayoutIgnorePendingStylesheets().
150
151         * editing/DeleteButtonController.cpp:
152         (WebCore::DeleteButtonController::DeleteButtonController):
153         (WebCore::isDeletableElement):
154         (WebCore::DeleteButtonController::respondToChangedSelection): check the enabled state
155         (WebCore::DeleteButtonController::respondToChangedContents): check the enabled state
156         (WebCore::DeleteButtonController::show): call isDeletableElement() to make sure the element is allowed
157         (WebCore::DeleteButtonController::deleteTarget): check the enabled state
158         * editing/DeleteButtonController.h:
159         (WebCore::DeleteButtonController::disable):
160         (WebCore::DeleteButtonController::enable):
161         (WebCore::DeleteButtonController::enabled):
162         * editing/EditCommand.cpp:
163         (WebCore::EditCommand::apply): hide and disable the deletion UI, then show at the end
164         (WebCore::EditCommand::unapply): ditto
165         (WebCore::EditCommand::reapply): ditto
166
167 2006-11-15  Adele Peterson  <adele@apple.com>
168
169         Reviewed by Adam.
170
171         New implementation of slider control.
172
173         * WebCore.xcodeproj/project.pbxproj: Removed DeprecatedSlider and Slider classes, added RenderSlider class.
174         * rendering/DeprecatedSlider.cpp: Removed.
175         * rendering/DeprecatedSlider.h: Removed.
176         * platform/Slider.h: Removed.
177         * platform/mac/SliderMac.mm: Removed.
178         * platform/win/TemporaryLinkStubs.cpp:
179
180         * css/CSSSelector.h: (WebCore::CSSSelector::): Added PseudoElement for thumb, PseudoSliderThumb.
181         * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType): Added code for "-webkit-slider-thumb".
182         * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::checkOneSelector): 
183         * rendering/RenderStyle.cpp:
184         (WebCore::):
185         (WebCore::pseudoBit):
186         * rendering/RenderStyle.h: (WebCore::RenderStyle::):
187
188         * css/html4.css: Added style for input[type="range"] and input[type="range"]::-webkit-slider-thumb
189
190         * html/HTMLInputElement.cpp:
191         (WebCore::HTMLInputElement::createRenderer): Create RenderSlider for input type="range" elements.
192         (WebCore::HTMLInputElement::defaultEventHandler): Allow the renderer to forward events, and set thumb position when click occurs on the track.
193
194         * 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
195           continue to capture mouse move events during the drag, even though those events aren't directly over the slider.
196         (WebCore::EventHandler::EventHandler):
197         (WebCore::EventHandler::setCapturingMouseEventsNode):
198         (WebCore::EventHandler::dispatchMouseEvent): If the capturingMouseEventsNode is set, then dispatch all mouse events to that node.
199         * page/EventHandler.h:
200
201         * rendering/RenderSlider.cpp: Added.
202         (WebCore::HTMLSliderThumbElement::isShadowNode):
203         (WebCore::HTMLSliderThumbElement::shadowParentNode):
204         (WebCore::HTMLSliderThumbElement::inDragMode): Keeps track of whether or not the thumb is in drag mode.
205         (WebCore::HTMLSliderThumbElement::HTMLSliderThumbElement):
206         (WebCore::HTMLSliderThumbElement::defaultEventHandler): Handles positioning of slider thumb during drag.
207         (WebCore::RenderSlider::RenderSlider):
208         (WebCore::RenderSlider::~RenderSlider):
209         (WebCore::RenderSlider::baselinePosition):
210         (WebCore::RenderSlider::calcMinMaxWidth):
211         (WebCore::RenderSlider::setStyle):
212         (WebCore::RenderSlider::createThumbStyle):
213         (WebCore::RenderSlider::layout): Positions the thumb to be centered on the track.
214         (WebCore::RenderSlider::updateFromElement):
215         (WebCore::RenderSlider::mouseEventIsInThumb):
216         (WebCore::RenderSlider::setValueForPosition):
217         (WebCore::RenderSlider::setPositionFromValue):
218         (WebCore::RenderSlider::positionForOffset):
219         (WebCore::RenderSlider::valueChanged):
220         (WebCore::RenderSlider::currentPosition):
221         (WebCore::RenderSlider::setCurrentPosition):
222         (WebCore::RenderSlider::trackSize):
223         (WebCore::RenderSlider::forwardEvent):
224         (WebCore::RenderSlider::inDragMode):
225         * rendering/RenderSlider.h: Added.
226         (WebCore::RenderSlider::renderName):
227
228          * rendering/RenderTheme.cpp: Added drawing code for slider track and thumb.
229         (WebCore::RenderTheme::adjustStyle):
230         (WebCore::RenderTheme::paint):
231         (WebCore::RenderTheme::paintBorderOnly):
232         (WebCore::RenderTheme::paintDecorations):
233         (WebCore::RenderTheme::adjustSliderTrackStyle):
234         (WebCore::RenderTheme::adjustSliderThumbStyle):
235         * rendering/RenderTheme.h:
236         (WebCore::RenderTheme::paintSliderTrack):
237         (WebCore::RenderTheme::paintSliderThumb):
238         * rendering/RenderThemeMac.h:
239         * rendering/RenderThemeMac.mm:
240         (WebCore::RenderThemeMac::RenderThemeMac):
241         (WebCore::TrackGradientInterpolate):
242         (WebCore::RenderThemeMac::paintSliderTrack):
243         (WebCore::RenderThemeMac::paintSliderThumb):
244         (WebCore::RenderThemeMac::adjustSliderTrackStyle):
245         (WebCore::RenderThemeMac::adjustSliderThumbStyle):
246
247 2006-11-15  Beth Dakin  <bdakin@apple.com>
248
249         Reviewed by Adam.
250
251         Oops! Forgot to add this!
252
253         * platform/mac/ContextMenuMac.mm: Added.
254         (-[MenuTarget forwardContextMenuAction:initWithContextMenu:WebCore::]):
255         (-[MenuTarget WebCore::]):
256         (-[MenuTarget setMenu:WebCore::]):
257         (-[MenuTarget forwardContextMenuAction:]):
258         (getNSMenuItem):
259         (ContextMenu::appendItem):
260         (ContextMenu::itemCount):
261         (ContextMenu::insertItem):
262         (ContextMenu::setPlatformMenuDescription):
263
264 2006-11-15  Beth Dakin  <bdakin@apple.com>
265         &   Adam Roben  <aroben@apple.com>
266
267         Reviewed by Adam and Beth.
268
269         Initial cut at pushing Context Menus into WebCore. Nobody actually 
270         calls this code just yet.
271
272         * WebCore.exp:
273         * WebCore.xcodeproj/project.pbxproj:
274         * page/Chrome.cpp:
275         (WebCore::Chrome::addCustomContextMenuItems): Use the chrome to 
276         call into addContextMenuItems on the UIDelegate.
277         * page/Chrome.h:
278         * page/ChromeClient.h:
279         * platform/ContextMenu.cpp: Added.
280         (WebCore::addDefaultItems):
281         (WebCore::ContextMenu::populate):
282         * platform/ContextMenu.h: Added.
283         (WebCore::):
284         (WebCore::ContextMenuItem::ContextMenuItem):
285         (WebCore::ContextMenu::ContextMenu):
286         (WebCore::ContextMenu::hitTestResult):
287         (WebCore::ContextMenu::platformMenuDescription):
288
289 2006-11-15  Adele Peterson  <adele@apple.com>
290
291         Reviewed by Hyatt.
292
293         - Fix for <rdar://problem/4780306> REGRESSION: clicking in textarea does not set selection at PunBB.org
294
295         * css/html4.css: Removed "-webkit-user-select: ignore" for labels.
296
297 2006-11-15  David Harrison  <harrison@apple.com>
298
299         Reviewed by Darin.
300
301         <rdar://problem/4836034> REGRESSION: Hang while spell-checking (advanceToNextMisspelling)
302
303         Test:
304         * manual-tests/keep_spelling_markers.html:
305         Updated to include checking for this bug.
306         
307         * bridge/mac/FrameMac.mm:
308         (WebCore::FrameMac::advanceToNextMisspelling):
309         it.advance() even when current string is a single space.
310
311 2006-11-15  Brady Eidson  <beidson@apple.com>
312
313         Reviewed by lamadio
314
315         Backing out macro expansion
316
317         * WebCore.xcodeproj/project.pbxproj:
318         * html/HTMLElement.cpp:
319         (WebCore::HTMLElement::isRecognizedTagName):
320         * ksvg2/scripts/make_names.pl:
321
322 2006-11-15  David Harrison  <harrison@apple.com>
323
324         Reviewed by Darin.
325
326         <rdar://problem/4770453> VO not honoring secure edit fields in web pages
327
328         The remaining problem was the password fields would return their contents
329         even though they did not advertise that they could. Apparently, VoiceOver
330         does not read the ads.
331
332         * bridge/mac/WebCoreAXObject.mm:
333         (isPasswordFieldElement):
334         (-[WebCoreAXObject isPasswordField]):
335         (-[WebCoreAXObject textMarkerForVisiblePosition:]):
336         (-[WebCoreAXObject accessibilityAttributeValue:]):
337         (-[WebCoreAXObject doAXStringForRange:]):
338
339 2006-11-13  Lou Amadio  <lamadio@apple.com>
340
341         Reviewed by Darin Adler, Maciej Stachowiak
342
343         Cleanup: Expanded macros in generated files
344
345         * html/HTMLElement.cpp:
346         (WebCore::HTMLElement::isRecognizedTagName):
347         * ksvg2/scripts/make_names.pl:
348
349 2006-11-15  Anders Carlsson  <acarlsson@apple.com>
350
351         Reviewed by Geoff.
352
353         Use Vector instead of DeprecatedPtrList.
354         
355         * editing/ApplyStyleCommand.cpp:
356         (WebCore::ApplyStyleCommand::applyBlockStyle):
357         * editing/BreakBlockquoteCommand.cpp:
358         * rendering/RenderFlow.cpp:
359         (WebCore::RenderFlow::paintOutline):
360
361 2006-11-15  Adam Roben  <aroben@apple.com>
362
363         Build fix.
364
365         * page/EventHandler.h:
366
367 2006-11-14  Beth Dakin  <bdakin@apple.com>
368
369         Reviewed by Geoff.
370
371         Move things off the bridge, and move sendContextMenuEvent() from 
372         EventHandlerMac to EventHandler.
373
374         * WebCore.exp:
375         * WebCore.xcodeproj/project.pbxproj:
376         * bridge/EditorClient.h:
377         * bridge/mac/WebCoreFrameBridge.h:
378         * editing/Editor.cpp:
379         (WebCore::Editor::selectWordBeforeMenuEvent):
380         (WebCore::Editor::clientIsEditable):
381         * editing/Editor.h:
382         * page/EventHandler.cpp:
383         (WebCore::EventHandler::sendContextMenuEvent):
384         * page/EventHandler.h:
385         * page/mac/EventHandlerMac.mm:
386
387 2006-11-14  Timothy Hatcher  <timothy@apple.com>
388
389         Reviewed by Harrison.
390
391         <rdar://problem/4766635> Safari should never follow links in editable areas (add a WebKitEditableLinkNeverLive option)
392
393         Adds an EditableLinkNeverLive setting that will make links in editable areas always dead.
394
395         * bridge/mac/WebCoreSettings.mm:
396         (-[WebCoreSettings setEditableLinkBehavior:]):
397         * html/HTMLAnchorElement.cpp:
398         (WebCore::HTMLAnchorElement::defaultEventHandler):
399         (WebCore::HTMLAnchorElement::setActive):
400         (WebCore::HTMLAnchorElement::isLiveLink):
401         * page/FrameView.cpp:
402         (WebCore::selectCursor):
403         * page/Settings.h:
404         (WebCore::Settings::):
405
406 2006-11-14  Mark Rowe  <bdash@webkit.org>
407
408         Reviewed by Oliver.
409
410         Build fix
411
412         * bindings/scripts/CodeGenerator.pm:
413
414 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
415
416         Turns out I wasn't forcing DWARF on the world at all, 
417         it's now the default!
418
419         * WebCore.xcodeproj/project.pbxproj:
420
421 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
422
423         I must stop trying to force DWARF on the world.
424         
425         * WebCore.xcodeproj/project.pbxproj:
426
427 2006-11-13  Justin Garcia  <justin.garcia@apple.com>
428
429         Reviewed by harrison
430         
431         <rdar://problem/4806874>
432         Missing background image after paste
433         
434         * editing/markup.cpp:
435         (WebCore::createMarkup): If the body is fully selected, add a 
436         div with its CSS properties to the markup.  Migrated a use of 
437         enclosingBlockFlowElement to enclosingBlock to fix an infinite 
438         loop when pasting <div><input></div>.
439
440 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
441
442         Reviewed by Adam.
443
444         Add Undo/Redo to execCommand.
445         
446         * editing/Editor.cpp:
447         (WebCore::execRedo):
448         (WebCore::execUndo):
449         (WebCore::canRedo):
450         (WebCore::canUndo):
451         (WebCore::CommandEntry::):
452
453 2006-11-14  Darin Adler  <darin@apple.com>
454
455         Reviewed by Anders.
456
457         - created EventHandler class, moved event handling code from both
458           Frame and FrameView in there
459
460         - added ScrollTypes.h header so you can include the scroller-related
461           enums without all of Scrollbar.h
462
463         * page/EventHandler.cpp: Added.
464         * page/EventHandler.h: Added.
465         * page/mac/EventHandlerMac.mm: Added.
466
467         * platform/ScrollBarMode.h: Removed.
468         * platform/ScrollTypes.h: Added.
469
470         * WebCore.exp:
471         * WebCore.xcodeproj/project.pbxproj:
472         * bridge/mac/FrameMac.h:
473         * bridge/mac/FrameMac.mm:
474         (WebCore::FrameMac::FrameMac):
475         (WebCore::FrameMac::~FrameMac):
476         (WebCore::FrameMac::bridgeForWidget):
477         (WebCore::FrameMac::imageFromRect):
478         * bridge/mac/FrameViewMac.mm:
479         * bridge/mac/WebCoreFrameBridge.mm:
480         (-[WebCoreFrameBridge scrollOverflowInDirection:granularity:]):
481         (-[WebCoreFrameBridge nextKeyView]):
482         (-[WebCoreFrameBridge previousKeyView]):
483         (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]):
484         (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):
485         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
486         (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
487         (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
488         (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
489         (-[WebCoreFrameBridge dragSourceMovedTo:]):
490         (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
491         * dom/Document.cpp:
492         (WebCore::Document::hoveredNodeDetached):
493         * dom/Element.h:
494         * dom/EventTargetNode.cpp:
495         (WebCore::EventTargetNode::defaultEventHandler):
496         * editing/SelectionController.cpp:
497         (WebCore::SelectionController::SelectionController):
498         * editing/SelectionController.h:
499         (WebCore::SelectionController::setCaretBlinkingSuspended):
500         (WebCore::SelectionController::isCaretBlinkingSuspended):
501         * html/HTMLAnchorElement.cpp:
502         (WebCore::HTMLAnchorElement::isKeyboardFocusable):
503         * html/HTMLFrameElementBase.cpp:
504         (WebCore::HTMLFrameElementBase::setFocus):
505         * html/HTMLFrameElementBase.h:
506         * html/HTMLGenericFormElement.cpp:
507         (WebCore::HTMLGenericFormElement::isKeyboardFocusable):
508         * html/HTMLInputElement.cpp:
509         (WebCore::HTMLInputElement::defaultEventHandler):
510         * html/HTMLSelectElement.cpp:
511         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
512         * loader/FrameLoader.cpp:
513         (WebCore::FrameLoader::clear):
514         (WebCore::FrameLoader::open):
515
516         * page/Frame.cpp:
517         (WebCore::Frame::caretBlinkTimerFired):
518         (WebCore::Frame::frameForWidget):
519         (WebCore::Frame::eventHandler):
520         (WebCore::Frame::setProhibitsScrolling):
521         (WebCore::FramePrivate::FramePrivate):
522         * page/Frame.h:
523         * page/FramePrivate.h:
524         * page/FrameView.cpp:
525         (WebCore::FrameViewPrivate::FrameViewPrivate):
526         (WebCore::FrameViewPrivate::reset):
527         (WebCore::FrameView::FrameView):
528         (WebCore::FrameView::~FrameView):
529         (WebCore::FrameView::clear):
530         (WebCore::FrameView::adjustViewSize):
531         (WebCore::FrameView::addRepaintInfo):
532         (WebCore::FrameView::layout):
533         (WebCore::FrameView::scrollPointRecursively):
534         (WebCore::FrameView::setContentsPos):
535         (WebCore::FrameView::scheduleRelayoutOfSubtree):
536         (WebCore::FrameView::scheduleEvent):
537         (WebCore::FrameView::updateOverflowStatus):
538         (WebCore::FrameView::dispatchScheduledEvents):
539         (WebCore::FrameView::windowClipRectForLayer):
540         (WebCore::FrameView::handleMouseMoveEvent):
541         (WebCore::FrameView::handleMouseReleaseEvent):
542         * page/FrameView.h:
543         * page/PageState.cpp:
544         (WebCore::PageState::PageState):
545         (WebCore::PageState::restore):
546         * page/PageState.h:
547         * platform/ScrollBar.h:
548         * platform/ScrollView.h:
549         * platform/mac/ClipboardMac.mm:
550         * platform/mac/PopupMenuMac.mm:
551         (WebCore::PopupMenu::show):
552         * platform/mac/SliderMac.mm:
553         (-[WebCoreSlider becomeFirstResponder]):
554         (-[WebCoreSlider nextKeyView]):
555         (-[WebCoreSlider previousKeyView]):
556         (-[WebCoreSlider canBecomeKeyView]):
557         (Slider::focusPolicy):
558         * platform/mac/WebCoreTextField.mm:
559         (-[WebCoreTextFieldController textView:shouldHandleEvent:]):
560         (-[WebCoreTextFieldController setHasFocus:]):
561         (-[WebCoreSearchField nextKeyView]):
562         (-[WebCoreSearchField previousKeyView]):
563         (-[WebCoreSearchFieldCell _addStringToRecentSearches:]):
564         * platform/mac/WidgetMac.mm:
565         (WebCore::Widget::hasFocus):
566         (WebCore::Widget::clearFocus):
567         * rendering/RenderFrameSet.cpp:
568         (WebCore::RenderFrameSet::setResizing):
569         * rendering/RenderLayer.cpp:
570         (WebCore::RenderLayer::autoscroll):
571         (WebCore::RenderLayer::resize):
572         (WebCore::RenderLayer::updateOverflowStatus):
573         * rendering/RenderLayer.h:
574         * rendering/RenderListBox.cpp:
575         (WebCore::RenderListBox::autoscroll):
576         * rendering/RenderObject.cpp:
577         (WebCore::RenderObject::draggableNode):
578         (WebCore::RenderObject::destroy):
579         * rendering/RenderObject.h:
580         (WebCore::RenderObject::RepaintInfo::RepaintInfo):
581         * rendering/RenderPartObject.cpp:
582         (WebCore::RenderPartObject::viewCleared):
583
584 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
585
586         Reviewed by Darin.
587
588         Let the editor client handle undo/redo.
589         
590         * WebCore.exp:
591         * WebCore.xcodeproj/project.pbxproj:
592         * bridge/EditorClient.h:
593         * bridge/mac/FrameMac.h:
594         * bridge/mac/FrameMac.mm:
595         (WebCore::FrameMac::canUndo):
596         (WebCore::FrameMac::canRedo):
597         * bridge/mac/WebCoreEditCommand.h: Removed.
598         * bridge/mac/WebCoreEditCommand.mm: Removed.
599         * bridge/mac/WebCoreFrameBridge.h:
600         * bridge/mac/WebCoreFrameBridge.mm:
601         * editing/Editor.cpp:
602         (WebCore::Editor::appliedEditing):
603         (WebCore::Editor::unappliedEditing):
604         (WebCore::Editor::reappliedEditing):
605         * editing/JSEditor.cpp:
606         * loader/FrameLoader.cpp:
607         (WebCore::FrameLoader::closeURL):
608         * page/Frame.cpp:
609         * page/Frame.h:
610         * rendering/RenderTextControl.cpp:
611         (WebCore::RenderTextControl::updateFromElement):
612
613 2006-11-14  Nikolas Zimmermann  <zimmermann@kde.org>
614
615         Reviewed and landed by Brady
616
617         Fix Qt/Linux build.
618
619         * ChangeLog:
620         * loader/qt/FrameLoaderQt.cpp:
621         (WebCore::FrameLoader::submitForm):
622         * platform/network/qt/ResourceHandleManager.cpp:
623         (WebCore::ResourceHandleManager::add):
624         * platform/qt/FrameQtClient.cpp:
625         (WebCore::FrameQtClientDefault::submitForm):
626         * platform/qt/FrameQtClient.h:
627
628 2006-11-14  Brady Eidson  <beidson@apple.com>
629
630         Reviewed by Anders
631
632         Cleanup of my patch last night and merging with aroben-style changes from this morning
633         (More ref-counted FormData stuff)
634
635         * html/HTMLFormElement.cpp:
636         (WebCore::HTMLFormElement::submit):
637         * loader/FrameLoader.cpp:
638         (WebCore::FrameLoader::submitForm):
639         * platform/network/ResourceHandle.cpp:
640         (WebCore::ResourceHandle::postData):
641         * platform/network/ResourceHandle.h:
642         * platform/network/cf/FormDataStreamCFNet.cpp:
643         (WebCore::setHTTPBody):
644         * platform/network/mac/FormDataStreamMac.h:
645         * platform/network/mac/FormDataStreamMac.mm:
646         (WebCore::getStreamFormDatas):
647         (WebCore::formCreate):
648         (WebCore::formFinalize):
649         (WebCore::setHTTPBody):
650         (WebCore::httpBodyFromStream):
651         * platform/network/mac/ResourceRequestMac.mm:
652         (WebCore::getResourceRequest):
653
654 2006-11-14  Rob Buis  <buis@kde.org>
655
656         Reviewed by Darin.
657
658         http://bugs.webkit.org/show_bug.cgi?id=11575
659         Bug 11575: REGRESSION: WebCore crash in CSSParser/HTMLTokenizer
660
661         Test: fast/css/css-imports.html
662
663         * css/CSSImportRule.cpp:
664         (WebCore::CSSImportRule::insertedIntoParent):
665         Fix the crash by testing for null pointer.
666
667 2006-11-14  Alexey Proskuryakov  <ap@webkit.org>
668
669         Reviewed by Tim H.
670
671         Test for http://bugs.webkit.org/show_bug.cgi?id=3387
672         Redundant keydown, keypress, keyup events sent for arrow keys
673
674         * manual-tests/arrow-key-events.html: Added.
675
676 2006-11-14  Darin Adler  <darin@apple.com>
677
678         Reviewed by Adam.
679
680         Fix up usages of FormData within CFNet loader code.
681
682         * platform/network/ResourceRequest.h:
683         (WebCore::ResourceRequest::httpBody):
684         * platform/network/cf/FormDataStreamCFNet.cpp:
685         (WebCore::getStreamFormDatas): Store RefPtr<FormData>s in the
686         streamFormDatas HashMap.
687         (WebCore::formCreate):
688         (WebCore::formFinalize): Removed delete because the remove() will deref
689         and delete if necessary.
690         (WebCore::setHTTPBody): Changed parameter to PassRefPtr.
691         (WebCore::httpBodyFromStream):
692         * platform/network/cf/FormDataStreamCFNet.h: Fix declarations.
693         * platform/network/cf/ResourceRequestCFNet.cpp:
694         (WebCore::getResourceRequest):
695
696 2006-11-14  Greg Jackson  <gjspanner@gmail.com>
697
698         Reviewed by Darin.
699
700         Preserves any pre-existing value for WEBCORE_NAVIGATOR_PLATFORM
701         rather than overriding it based on platform detection.
702
703         * bindings/js/kjs_navigator.cpp:
704
705 2006-11-13  Brady Eidson  <beidson@apple.com>
706
707         Reviewed by Maciej
708
709         Made FormData Shared, and pass it around as such.
710
711         * WebCore.xcodeproj/project.pbxproj: Reordered some items
712         * html/HTMLFormElement.cpp:
713         (WebCore::HTMLFormElement::formData):
714         (WebCore::HTMLFormElement::submit):
715         * html/HTMLFormElement.h:
716         * loader/FrameLoader.cpp:
717         (WebCore::FormSubmission::FormSubmission):
718         (WebCore::FrameLoader::submitForm):
719         * loader/FrameLoader.h:
720         * loader/mac/FrameLoaderMac.mm:
721         (WebCore::FrameLoader::post):
722         (WebCore::FrameLoader::loadResourceSynchronously):
723         * loader/mac/SubresourceLoaderMac.mm:
724         (WebCore::SubresourceLoader::create):
725         * platform/network/FormData.h: Made FormData shared
726         * platform/network/ResourceHandle.h:
727         * platform/network/ResourceHandle.cpp:
728         (WebCore::ResourceHandle::postData): 
729         * platform/network/ResourceRequest.h:
730         (WebCore::ResourceRequest::httpBody):
731         (WebCore::ResourceRequest::setHTTPBody): 
732         * platform/network/mac/ResourceRequestMac.mm:
733         (WebCore::getResourceRequest):
734         (WebCore::nsURLRequest): 
735
736         * platform/network/mac/FormDataStreamMac.h:
737         * platform/network/mac/FormDataStreamMac.mm:
738         (WebCore::getStreamFormDatas): Hash Streams to RefPtr<FormData>s
739         (WebCore::formCreate):
740         (WebCore::formFinalize):
741         (WebCore::setHTTPBody):
742         (WebCore::httpBodyFromStream):
743
744         * xml/xmlhttprequest.cpp:
745         (WebCore::XMLHttpRequest::send):
746
747 2006-11-13  Justin Garcia  <justin.garcia@apple.com>
748
749         Reviewed by harrison
750         
751         <rdar://problem/4828264>
752         In Mail, a crash occurs at WebCore::Selection::toRange() when selecting this web content (http://www.cnet.com/)
753         
754         The start of the selection is in an editable area, and the end is in an 
755         input field inside that editable area.  The code that should pull the end
756         of such a selection outside the input field didn't escape shadow nodes,
757         it would leave a dangling end, causing the crash in toRange.
758         
759         * editing/Selection.cpp:
760         (WebCore::Selection::adjustForEditableContent):  Added an ASSERT and a fixup
761         to prevent crashes like this in future Release builds.
762         * editing/htmlediting.cpp:
763         (WebCore::firstEditablePositionAfterPositionInRoot): Let this function 
764         escape shadow nodes.  We might eventually push this code down into 
765         next/previous{VisuallyDistinct}Canditate.
766         (WebCore::lastEditablePositionBeforePositionInRoot): Ditto.
767
768 2006-11-13  Justin Garcia  <justin.garcia@apple.com>
769
770         Reviewed by darin
771         
772         * editing/DeleteSelectionCommand.cpp:
773         (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor):
774         * editing/Editor.cpp:
775         (WebCore::Editor::appliedEditing):
776         * editing/Editor.h:
777         (WebCore::Editor::setRemovedAnchor): Pass a PassRefPtr.
778
779 2006-11-10  Justin Garcia  <justin.garcia@apple.com>
780
781         Reviewed by Oliver
782         
783         <rdar://problem/4820026>
784         copy/paste of news.google.com yields text from hidden select element options
785
786         We were adding descendants of unrendered select elements. 
787
788         * editing/markup.cpp:
789         (WebCore::createMarkup): Don't traverse into nodes without renderers, unless 
790         they are grandfathered in by a rendered select element.
791         
792 2006-11-12  Simon Hausmann  <hausmann@kde.org>
793
794         Reviewed by Sam Weinig.
795
796         Fix Qt build. Missing AbstractShared implementation.
797         http://bugs.webkit.org/show_bug.cgi?id=11581
798
799         * loader/qt/FrameLoaderClientQt.cpp:
800         (WebCore::FrameLoaderClientQt::ref):
801         (WebCore::FrameLoaderClientQt::deref):
802         * loader/qt/FrameLoaderClientQt.h:
803         * platform/qt/ChromeClientQt.cpp:
804         (WebCore::ChromeClientQt::ref):
805         (WebCore::ChromeClientQt::deref):
806         * platform/qt/ChromeClientQt.h:
807         * platform/qt/EditorClientQt.cpp:
808         (WebCore::EditorClientQt::ref):
809         (WebCore::EditorClientQt::deref):
810         * platform/qt/EditorClientQt.h:
811
812 2006-11-13  Mark Rowe  <bdash@webkit.org>
813
814         Reviewed by Mitz.
815
816         Fix some Linux/Gdk build issues noted by Alp Toker.
817
818         * Projects/gdk/webcore-gdk.bkl:
819         * WebCoreSources.bkl:
820         * platform/graphics/gdk/ImageGdk.cpp:
821         (WebCore::Image::loadPlatformResource):
822
823 2006-11-12  Brady Eidson <beidson@apple.com>
824
825         Reviewed by Anders
826
827         Logging channel plumbing for future work
828
829         * platform/Logging.cpp:
830         (WebCore::):
831         * platform/Logging.h:
832         * platform/mac/LoggingMac.mm:
833         (WebCore::InitializeLoggingChannelsIfNecessary):
834
835 2006-11-12  Mark Rowe  <bdash@webkit.org>
836
837         Reviewed by Mitz.
838
839         Linux/Gdk compilation fixes, and bakefile cleanups.  Based on patches by
840         Alp Toker.
841
842         * Projects/gdk/webcore-gdk.bkl:
843         * WebCoreSources.bkl:
844         * page/PageState.cpp:
845         * platform/gdk/ChromeClientGdk.h:
846         (WebCore::ChromeClientGdk::ref):
847         (WebCore::ChromeClientGdk::deref):
848         * platform/gdk/FrameGdk.cpp:
849         (WebCore::FrameGdkClientDefault::openURL):
850         (WebCore::FrameGdkClientDefault::didReceiveData):
851         (WebCore::FrameGdkClientDefault::receivedAllData):
852         (WebCore::FrameGdk::FrameGdk):
853         (WebCore::FrameGdk::~FrameGdk):
854         * platform/gdk/FrameGdk.h:
855         * platform/gdk/KeyEventGdk.cpp:
856         (WebCore::keyIdentifierForGdkKeyCode):
857         * platform/gdk/ScreenClientGdk.h: Removed.
858         * platform/gdk/TemporaryLinkStubs.cpp:
859         (FrameGdk::canPaste):
860         (FrameGdk::originalRequestURL):
861         (TextField::TextField):
862         * platform/network/gdk/ResourceHandleManager.cpp:
863         (WebCore::ResourceHandleManager::downloadTimerCallback):
864         (WebCore::ResourceHandleManager::add):
865         (WebCore::ResourceHandleManager::cancel):
866         * webcore-base.bkl:
867
868 2006-11-11  Geoffrey Garen  <ggaren@apple.com>
869
870         Reviewed by Maciej Stachowiak.
871         
872         - Fixed loader crash by clarifying ownership of WebKit client objects. 
873         WebCore objects own their WebKit clients, and ref and deref through 
874         virtual methods, leaving WebKit free to use whatever client / reference-counting 
875         implementation it likes.
876         
877         * WebCore.exp:
878         * WebCore.xcodeproj/project.pbxproj:
879         * bridge/EditorClient.h: Fixed up function prototypes for style.
880         * loader/FrameLoader.cpp: Removed detachFrameLoader, since its real purpose
881         was to implement an alternative ownership model.
882         (WebCore::FrameLoader::~FrameLoader): Removed empty destructor.
883         (WebCore::FrameLoader::setClient): This function now takes ownership
884         (WebCore::FrameLoader::client):
885         * loader/FrameLoader.h:
886         * loader/FrameLoaderClient.h:
887         * page/ChromeClient.h:
888         * platform/AbstractShared.h: Added. This is the virtual function-based refcounting
889         complement to Shared.
890         (WebCore::AbstractShared::~AbstractShared):
891
892 2006-11-11  George Staikos  <staikos@kde.org>
893
894         Reviewed by Maciej.
895
896         Fix uninitialized variable.
897
898         * rendering/RenderStyle.h:
899
900 2006-11-11  Nikolas Zimmermann  <zimmermann@kde.org>
901
902         Reviewed/landed by Adam.
903
904         Complete cleanup of the CMakeLists.txt.
905         Now all files to be built are sorted in alphabetic order.
906
907         General style cleanup, remove all tabs etc.
908
909         * CMakeLists.txt:
910
911 2006-11-11  Geoffrey Garen  <ggaren@apple.com>
912
913         Reviewed by Maciej Stachowiak.
914         
915         Added missing initializer to ResourceRequest -- fixes some loader crashes
916         due to assuming a request always has a non-null httpMethod.
917
918         * platform/network/ResourceRequest.h:
919         (WebCore::ResourceRequest::ResourceRequest):
920
921 2006-11-11  Brady Eidson <beidson@apple.com>
922
923         Reviewed by Maciej
924
925         Fixed header guard
926
927         * loader/FrameLoaderClient.h:
928
929 2006-11-11  Darin Adler  <darin@apple.com>
930
931         - attempt to fix Qt build
932
933         * platform/qt/CursorQt.cpp:
934         (WebCore::verticalTextCursor): Added. Just returns pointer cursor.
935         (WebCore::cellCursor): Ditto.
936         (WebCore::contextMenuCursor): Ditto.
937
938 2006-11-11  Rob Buis  <buis@kde.org>
939
940         Reviewed by hyatt.
941
942         http://bugs.webkit.org/show_bug.cgi?id=10893
943         InsertRule can not handle @import statements
944
945         Allow @import as part of a css rule.
946
947         * css/CSSGrammar.y:
948         * css/CSSImportRule.cpp:
949         (WebCore::CSSImportRule::insertedIntoParent):
950         * css/CSSStyleSheet.cpp:
951         (WebCore::CSSStyleSheet::CSSStyleSheet):
952         (WebCore::CSSStyleSheet::checkLoaded):
953         * css/CSSStyleSheet.h:
954         (WebCore::CSSStyleSheet::loadCompleted):
955
956 2006-11-11  Alexey Proskuryakov  <ap@webkit.org>
957
958         Attempt to fix Qt build.
959
960         * CMakeLists.txt: PathQt.cpp is in graphics/qt now.
961
962 2006-11-11  Lars Naesbye Christensen  <larsnaesbye@stud.ku.dk>
963
964         Tortured by Sam Weinig, Tim H., Maciej, Mitz and Alexey :-)
965
966         [CSS 3] support for vertical-text, cell and context-menu cursors
967         http://bugs.webkit.org/show_bug.cgi?id=11494
968
969         * Resources/cellCursor.png: Added.
970         * Resources/contextMenuCursor.png: Added.
971         * Resources/verticalTextCursor.png: Added.
972         * WebCore.xcodeproj/project.pbxproj:
973         * css/CSSComputedStyleDeclaration.cpp:
974         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
975         * css/CSSValueKeywords.in:
976         * manual-tests/cursor.html:
977         * page/FrameView.cpp:
978         (WebCore::selectCursor):
979         * platform/Cursor.h:
980         * platform/mac/CursorMac.mm:
981         (WebCore::verticalTextCursor):
982         (WebCore::cellCursor):
983         (WebCore::contextMenuCursor):
984         * rendering/RenderStyle.h:
985         (WebCore::):
986
987 2006-11-11  Nikolas Zimmermann  <zimmermann@kde.org>
988
989         Reviewed by aroben and ap, landed by ap.
990
991         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11468
992
993         Group graphics related files in platform/graphics.
994         Move certain files from certain subdirectories
995         into platform/graphics/{win,mac,cg,gdk,qt}
996
997         * CMakeLists.txt:
998         * WebCore.xcodeproj/project.pbxproj:
999         * platform/AffineTransform.cpp: Removed.
1000         * platform/AffineTransform.h: Removed.
1001         * platform/Color.cpp: Removed.
1002         * platform/Color.h: Removed.
1003         * platform/FloatPoint.cpp: Removed.
1004         * platform/FloatPoint.h: Removed.
1005         * platform/FloatRect.cpp: Removed.
1006         * platform/FloatRect.h: Removed.
1007         * platform/FloatSize.cpp: Removed.
1008         * platform/FloatSize.h: Removed.
1009         * platform/Icon.h: Removed.
1010         * platform/Image.cpp: Removed.
1011         * platform/Image.h: Removed.
1012         * platform/ImageSource.h: Removed.
1013         * platform/IntPoint.h: Removed.
1014         * platform/IntRect.cpp: Removed.
1015         * platform/IntRect.h: Removed.
1016         * platform/IntSize.h: Removed.
1017         * platform/IntSizeHash.h: Removed.
1018         * platform/Path.cpp: Removed.
1019         * platform/Path.h: Removed.
1020         * platform/Pen.cpp: Removed.
1021         * platform/Pen.h: Removed.
1022         * platform/cairo/AffineTransformCairo.cpp: Removed.
1023         * platform/cairo/GraphicsContextCairo.cpp: Removed.
1024         * platform/cairo/ImageCairo.cpp: Removed.
1025         * platform/cairo/ImageSourceCairo.cpp: Removed.
1026         * platform/cairo/cairo/AUTHORS: Removed.
1027         * platform/cairo/cairo/COPYING: Removed.
1028         * platform/cairo/cairo/COPYING-LGPL-2.1: Removed.
1029         * platform/cairo/cairo/COPYING-MPL-1.1: Removed.
1030         * platform/cairo/cairo/INSTALL: Removed.
1031         * platform/cairo/cairo/NEWS: Removed.
1032         * platform/cairo/cairo/README: Removed.
1033         * platform/cairo/cairo/TODO: Removed.
1034         * platform/cairo/cairo/src/Makefile.in: Removed.
1035         * platform/cairo/cairo/src/cairo-arc-private.h: Removed.
1036         * platform/cairo/cairo/src/cairo-arc.c: Removed.
1037         * platform/cairo/cairo/src/cairo-array.c: Removed.
1038         * platform/cairo/cairo/src/cairo-atsui-font.c: Removed.
1039         * platform/cairo/cairo/src/cairo-atsui.h: Removed.
1040         * platform/cairo/cairo/src/cairo-beos-surface.cpp: Removed.
1041         * platform/cairo/cairo/src/cairo-beos.h: Removed.
1042         * platform/cairo/cairo/src/cairo-cache-private.h: Removed.
1043         * platform/cairo/cairo/src/cairo-cache.c: Removed.
1044         * platform/cairo/cairo/src/cairo-clip-private.h: Removed.
1045         * platform/cairo/cairo/src/cairo-clip.c: Removed.
1046         * platform/cairo/cairo/src/cairo-color.c: Removed.
1047         * platform/cairo/cairo/src/cairo-debug.c: Removed.
1048         * platform/cairo/cairo/src/cairo-debug.h: Removed.
1049         * platform/cairo/cairo/src/cairo-directfb-surface.c: Removed.
1050         * platform/cairo/cairo/src/cairo-directfb.h: Removed.
1051         * platform/cairo/cairo/src/cairo-features.h: Removed.
1052         * platform/cairo/cairo/src/cairo-features.h.in: Removed.
1053         * platform/cairo/cairo/src/cairo-fixed.c: Removed.
1054         * platform/cairo/cairo/src/cairo-font-options.c: Removed.
1055         * platform/cairo/cairo/src/cairo-font-subset-private.h: Removed.
1056         * platform/cairo/cairo/src/cairo-font-subset.c: Removed.
1057         * platform/cairo/cairo/src/cairo-font.c: Removed.
1058         * platform/cairo/cairo/src/cairo-ft-font.c: Removed.
1059         * platform/cairo/cairo/src/cairo-ft-private.h: Removed.
1060         * platform/cairo/cairo/src/cairo-ft.h: Removed.
1061         * platform/cairo/cairo/src/cairo-glitz-surface.c: Removed.
1062         * platform/cairo/cairo/src/cairo-glitz.h: Removed.
1063         * platform/cairo/cairo/src/cairo-gstate-private.h: Removed.
1064         * platform/cairo/cairo/src/cairo-gstate.c: Removed.
1065         * platform/cairo/cairo/src/cairo-hash-private.h: Removed.
1066         * platform/cairo/cairo/src/cairo-hash.c: Removed.
1067         * platform/cairo/cairo/src/cairo-hull.c: Removed.
1068         * platform/cairo/cairo/src/cairo-image-surface.c: Removed.
1069         * platform/cairo/cairo/src/cairo-matrix.c: Removed.
1070         * platform/cairo/cairo/src/cairo-meta-surface-private.h: Removed.
1071         * platform/cairo/cairo/src/cairo-meta-surface.c: Removed.
1072         * platform/cairo/cairo/src/cairo-output-stream.c: Removed.
1073         * platform/cairo/cairo/src/cairo-paginated-surface-private.h: Removed.
1074         * platform/cairo/cairo/src/cairo-paginated-surface.c: Removed.
1075         * platform/cairo/cairo/src/cairo-path-bounds.c: Removed.
1076         * platform/cairo/cairo/src/cairo-path-data-private.h: Removed.
1077         * platform/cairo/cairo/src/cairo-path-data.c: Removed.
1078         * platform/cairo/cairo/src/cairo-path-fill.c: Removed.
1079         * platform/cairo/cairo/src/cairo-path-fixed-private.h: Removed.
1080         * platform/cairo/cairo/src/cairo-path-stroke.c: Removed.
1081         * platform/cairo/cairo/src/cairo-path.c: Removed.
1082         * platform/cairo/cairo/src/cairo-pattern.c: Removed.
1083         * platform/cairo/cairo/src/cairo-pdf-surface.c: Removed.
1084         * platform/cairo/cairo/src/cairo-pdf.h: Removed.
1085         * platform/cairo/cairo/src/cairo-pen.c: Removed.
1086         * platform/cairo/cairo/src/cairo-platform.h: Removed.
1087         * platform/cairo/cairo/src/cairo-png.c: Removed.
1088         * platform/cairo/cairo/src/cairo-polygon.c: Removed.
1089         * platform/cairo/cairo/src/cairo-private.h: Removed.
1090         * platform/cairo/cairo/src/cairo-ps-surface.c: Removed.
1091         * platform/cairo/cairo/src/cairo-ps.h: Removed.
1092         * platform/cairo/cairo/src/cairo-quartz-private.h: Removed.
1093         * platform/cairo/cairo/src/cairo-quartz-surface.c: Removed.
1094         * platform/cairo/cairo/src/cairo-quartz.h: Removed.
1095         * platform/cairo/cairo/src/cairo-quartz2-surface.c: Removed.
1096         * platform/cairo/cairo/src/cairo-quartz2.h: Removed.
1097         * platform/cairo/cairo/src/cairo-region.c: Removed.
1098         * platform/cairo/cairo/src/cairo-scaled-font.c: Removed.
1099         * platform/cairo/cairo/src/cairo-slope.c: Removed.
1100         * platform/cairo/cairo/src/cairo-spline.c: Removed.
1101         * platform/cairo/cairo/src/cairo-stroke-style.c: Removed.
1102         * platform/cairo/cairo/src/cairo-surface-fallback-private.h: Removed.
1103         * platform/cairo/cairo/src/cairo-surface-fallback.c: Removed.
1104         * platform/cairo/cairo/src/cairo-surface.c: Removed.
1105         * platform/cairo/cairo/src/cairo-svg-surface.c: Removed.
1106         * platform/cairo/cairo/src/cairo-svg.h: Removed.
1107         * platform/cairo/cairo/src/cairo-traps.c: Removed.
1108         * platform/cairo/cairo/src/cairo-unicode.c: Removed.
1109         * platform/cairo/cairo/src/cairo-wideint.c: Removed.
1110         * platform/cairo/cairo/src/cairo-wideint.h: Removed.
1111         * platform/cairo/cairo/src/cairo-win32-font.c: Removed.
1112         * platform/cairo/cairo/src/cairo-win32-private.h: Removed.
1113         * platform/cairo/cairo/src/cairo-win32-surface.c: Removed.
1114         * platform/cairo/cairo/src/cairo-win32.h: Removed.
1115         * platform/cairo/cairo/src/cairo-xcb-surface.c: Removed.
1116         * platform/cairo/cairo/src/cairo-xcb-xrender.h: Removed.
1117         * platform/cairo/cairo/src/cairo-xcb.h: Removed.
1118         * platform/cairo/cairo/src/cairo-xlib-private.h: Removed.
1119         * platform/cairo/cairo/src/cairo-xlib-screen.c: Removed.
1120         * platform/cairo/cairo/src/cairo-xlib-surface.c: Removed.
1121         * platform/cairo/cairo/src/cairo-xlib-test.h: Removed.
1122         * platform/cairo/cairo/src/cairo-xlib-xrender.h: Removed.
1123         * platform/cairo/cairo/src/cairo-xlib.h: Removed.
1124         * platform/cairo/cairo/src/cairo.c: Removed.
1125         * platform/cairo/cairo/src/cairo.h: Removed.
1126         * platform/cairo/cairo/src/cairoint.h: Removed.
1127         * platform/cairo/cairo/src/test-fallback-surface.c: Removed.
1128         * platform/cairo/cairo/src/test-fallback-surface.h: Removed.
1129         * platform/cairo/cairo/src/test-meta-surface.c: Removed.
1130         * platform/cairo/cairo/src/test-meta-surface.h: Removed.
1131         * platform/cairo/cairo/src/test-paginated-surface.c: Removed.
1132         * platform/cairo/cairo/src/test-paginated-surface.h: Removed.
1133         * platform/cairo/pixman/AUTHORS: Removed.
1134         * platform/cairo/pixman/COPYING: Removed.
1135         * platform/cairo/pixman/README: Removed.
1136         * platform/cairo/pixman/src/Makefile.in: Removed.
1137         * platform/cairo/pixman/src/fbcompose.c: Removed.
1138         * platform/cairo/pixman/src/fbedge.c: Removed.
1139         * platform/cairo/pixman/src/fbedgeimp.h: Removed.
1140         * platform/cairo/pixman/src/fbmmx.c: Removed.
1141         * platform/cairo/pixman/src/fbmmx.h: Removed.
1142         * platform/cairo/pixman/src/fbpict.c: Removed.
1143         * platform/cairo/pixman/src/fbpict.h: Removed.
1144         * platform/cairo/pixman/src/fbtrap.c: Removed.
1145         * platform/cairo/pixman/src/icblt.c: Removed.
1146         * platform/cairo/pixman/src/icbltone.c: Removed.
1147         * platform/cairo/pixman/src/iccolor.c: Removed.
1148         * platform/cairo/pixman/src/icformat.c: Removed.
1149         * platform/cairo/pixman/src/icimage.c: Removed.
1150         * platform/cairo/pixman/src/icimage.h: Removed.
1151         * platform/cairo/pixman/src/icint.h: Removed.
1152         * platform/cairo/pixman/src/icpixels.c: Removed.
1153         * platform/cairo/pixman/src/icrect.c: Removed.
1154         * platform/cairo/pixman/src/icrop.h: Removed.
1155         * platform/cairo/pixman/src/icstipple.c: Removed.
1156         * platform/cairo/pixman/src/ictransform.c: Removed.
1157         * platform/cairo/pixman/src/ictrap.c: Removed.
1158         * platform/cairo/pixman/src/ictri.c: Removed.
1159         * platform/cairo/pixman/src/icutil.c: Removed.
1160         * platform/cairo/pixman/src/pixman-remap.h: Removed.
1161         * platform/cairo/pixman/src/pixman-xserver-compat.h: Removed.
1162         * platform/cairo/pixman/src/pixman.h: Removed.
1163         * platform/cairo/pixman/src/pixregion.c: Removed.
1164         * platform/cairo/pixman/src/pixregionint.h: Removed.
1165         * platform/cairo/pixman/src/renderedge.c: Removed.
1166         * platform/cairo/pixman/src/renderedge.h: Removed.
1167         * platform/cairo/pixman/src/slim_internal.h: Removed.
1168         * platform/cairo/rgb24-hacks.txt: Removed.
1169         * platform/cairo/scale-removal.txt: Removed.
1170         * platform/cg/AffineTransformCG.cpp: Removed.
1171         * platform/cg/FloatPointCG.cpp: Removed.
1172         * platform/cg/FloatRectCG.cpp: Removed.
1173         * platform/cg/FloatSizeCG.cpp: Removed.
1174         * platform/cg/GraphicsContextCG.cpp: Removed.
1175         * platform/cg/GraphicsContextPlatformPrivate.h: Removed.
1176         * platform/cg/ImageCG.cpp: Removed.
1177         * platform/cg/ImageSourceCG.cpp: Removed.
1178         * platform/cg/IntPointCG.cpp: Removed.
1179         * platform/cg/IntRectCG.cpp: Removed.
1180         * platform/cg/IntSizeCG.cpp: Removed.
1181         * platform/cg/PDFDocumentImage.cpp: Removed.
1182         * platform/cg/PDFDocumentImage.h: Removed.
1183         * platform/cg/PathCG.cpp: Removed.
1184         * platform/gdk/ImageGdk.cpp: Removed.
1185         * platform/mac/ColorMac.mm: Removed.
1186         * platform/mac/FloatPointMac.mm: Removed.
1187         * platform/mac/FloatRectMac.mm: Removed.
1188         * platform/mac/FloatSizeMac.mm: Removed.
1189         * platform/mac/GraphicsContextMac.mm:
1190         * platform/mac/IconMac.mm: Removed.
1191         * platform/mac/ImageMac.mm: Removed.
1192         * platform/mac/IntPointMac.mm: Removed.
1193         * platform/mac/IntRectMac.mm: Removed.
1194         * platform/mac/IntSizeMac.mm: Removed.
1195         * platform/qt/AffineTransformQt.cpp: Removed.
1196         * platform/qt/ColorQt.cpp: Removed.
1197         * platform/qt/FloatPointQt.cpp: Removed.
1198         * platform/qt/FloatRectQt.cpp: Removed.
1199         * platform/qt/IconQt.cpp: Removed.
1200         * platform/qt/ImageQt.cpp: Removed.
1201         * platform/qt/ImageSourceQt.cpp: Removed.
1202         * platform/qt/IntPointQt.cpp: Removed.
1203         * platform/qt/IntRectQt.cpp: Removed.
1204         * platform/qt/IntSizeQt.cpp: Removed.
1205         * platform/qt/PathQt.cpp: Removed.
1206         * platform/win/ImageWin.cpp: Removed.
1207         * platform/win/IntPointWin.cpp: Removed.
1208         * platform/win/IntRectWin.cpp: Removed.
1209         * platform/win/IntSizeWin.cpp: Removed.
1210
1211 2006-11-11  Graham Dennis  <graham.dennis@gmail.com>
1212
1213         Reviewed by hyatt.
1214
1215         A layout test was added when this bug was fixed, so none needed now.
1216         
1217         Cleanup after:
1218         REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
1219         http://bugs.webkit.org/show_bug.cgi?id=11570
1220         
1221         * rendering/RenderStyle.h:
1222         (WebCore::RenderStyle::isSpace): Removed.
1223         * rendering/RenderText.cpp:
1224         (WebCore::isSpace): Added.
1225         (WebCore::RenderText::calcMinMaxWidth): Use inline function instead of polluting RenderStyle.
1226
1227 2006-11-11  Graham Dennis  <graham.dennis@gmail.com>
1228
1229         Reviewed by mitz.
1230         
1231         REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
1232         http://bugs.webkit.org/show_bug.cgi?id=11570
1233
1234         * rendering/RenderStyle.h:
1235         (WebCore::RenderStyle::isSpace): Added.
1236         * rendering/RenderText.cpp:
1237         (WebCore::RenderText::calcMinMaxWidth): For the purposes of calculating the line widths, 
1238         treat non-breaking spaces the same as normal spaces if -webkit-nbsp-mode is 'space'
1239
1240 2006-11-10  Zalan Bujtas <zalan.bujtas@nokia.com>
1241
1242         Reviewed by Maciej.
1243
1244         Added basic types for symbian platform.
1245         http://bugs.webkit.org/show_bug.cgi?id=11540
1246
1247         * config.h:
1248         * platform/AtomicString.h:
1249         (WebCore::AtomicString::AtomicString):
1250         (WebCore::AtomicString::operator TPtrC):
1251         * platform/DeprecatedString.cpp:
1252         (WebCore::initializeHandleNodeBlock):
1253         * platform/DeprecatedString.h: char _internalBuffer has to be in front of
1254           the bitfields as Codewarrior (3.2.5 build 461) compiler cannot cope with
1255           bitfields and breaks byte aligment
1256         * platform/FloatPoint.h:
1257         * platform/FloatRect.h:
1258         * platform/IntPoint.h:
1259         * platform/IntRect.h:
1260         * platform/IntSize.h:
1261         * platform/PlatformString.h:
1262         (WebCore::String::operator TPtrC):
1263         (WebCore::String::des):
1264         * platform/StringImpl.h:
1265         * platform/symbian/DeprecatedStringSymbian.cpp: Added.
1266         (WebCore::DeprecatedString::setBufferFromDes):
1267         (WebCore::DeprecatedString::fromDes):
1268         (WebCore::DeprecatedString::des):
1269         (WebCore::DeprecatedString::des8):
1270         * platform/symbian/FloatPointSymbian.cpp: Added.
1271         (WebCore::FloatPoint::FloatPoint):
1272         (WebCore::FloatPoint::operator TPoint):
1273         * platform/symbian/FloatRectSymbian.cpp: Added.
1274         (WebCore::FloatRect::FloatRect):
1275         (WebCore::FloatRect::operator TRect):
1276         (WebCore::FloatRect::rect):
1277         * platform/symbian/IntPointSymbian.cpp: Added.
1278         (WebCore::IntPoint::IntPoint):
1279         (WebCore::IntPoint::operator TPoint):
1280         * platform/symbian/IntRectSymbian.cpp: Added.
1281         (WebCore::IntRect::IntRect):
1282         (WebCore::IntRect::operator TRect):
1283         (WebCore::IntRect::Rect):
1284         * platform/symbian/IntSizeSymbian.cpp: Added.
1285         (WebCore::IntSize::IntSize):
1286         (WebCore::IntSize::operator TSize):
1287         * platform/symbian/StringImplSymbian.cpp: Added.
1288         (WebCore::StringImpl::StringImpl):
1289         (WebCore::StringImpl::des):
1290         * platform/symbian/StringSymbian.cpp: Added.
1291         (WebCore::String::String):
1292
1293 2006-11-10  Zack Rusin  <zack@kde.org>
1294
1295         Reviewed by Anders.
1296
1297         Adjust to the changes Brady made in the Qt code.
1298
1299         * loader/qt/FrameLoaderClientQt.cpp:
1300         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
1301         * loader/qt/FrameLoaderClientQt.h:
1302
1303 2006-11-10  Justin Garcia  <justin.garcia@apple.com>
1304
1305         Reviewed by harrison
1306         
1307         <rdar://problem/4069359>
1308         Deleting hyperlink text, then typing uses link typing style but loses the link itself
1309         
1310         The removed anchor element needs to stick around temporarily, in the same way
1311         that the typing style hangs off the caret until the user moves it.  Also text
1312         insertion around anchors didn't match TextEdit.
1313
1314         * editing/DeleteSelectionCommand.cpp:
1315         (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor): Added.
1316         (WebCore::DeleteSelectionCommand::doApply): Call saveFullySelectedAnchor.
1317         * editing/DeleteSelectionCommand.h:
1318         * editing/EditCommand.cpp:
1319         (WebCore::EditCommand::apply): Clear the removed anchor after any top level
1320         editing command that doesn't preserve the typing style (matches TextEdit).
1321         * editing/Editor.cpp:
1322         (WebCore::Editor::appliedEditing): Added a fixme: we shouldn't call 
1323         setSelection with a message telling it to clear the typing style 
1324         (and the saved anchor) here.  Save/restore the saved anchor because of this.
1325         * editing/Editor.h:
1326         (WebCore::Editor::removedAnchor): Getter.
1327         (WebCore::Editor::setRemovedAnchor): Setter.
1328         * editing/InsertTextCommand.cpp:
1329         (WebCore::InsertTextCommand::prepareForTextInsertion): Insert the saved anchor
1330         if one exists.
1331         * editing/SelectionController.cpp:
1332         (WebCore::SelectionController::setSelection): Clear the removed anchor whenever
1333         we make a selection change that clears the typing style.
1334         (WebCore::SelectionController::nodeWillBeRemoved): Removed an old outdated FIXME.
1335         * editing/htmlediting.cpp:
1336         (WebCore::positionAvoidingSpecialElementBoundary): Cleaned up and
1337         made some changes to match TextEdit's behavior.  First, insert content
1338         inside the anchor when the caret is after it, unless the caret is at the
1339         end of the document, or if the caret is before it and at the start of a 
1340         paragraph.
1341
1342 === Safari-521.30 ===
1343
1344 2006-11-10  Timothy Hatcher  <timothy@apple.com>
1345
1346         Reviewed by Hyatt.
1347
1348         Check for BHIDDEN in isVisible() also.
1349
1350         * rendering/RenderStyle.h:
1351         (WebCore::BorderValue::isVisible):
1352
1353 2006-11-10  Timothy Hatcher  <timothy@apple.com>
1354
1355         Reviewed by Adam.
1356
1357         <rdar://problem/4821423> element deletion UI appears for Mail blockquote and others with less than three visible borders
1358
1359         Added a new function to BorderValue called isVisible(). This checks nonZero() and !isTransparent().
1360
1361         * editing/DeleteButtonController.cpp:
1362         (WebCore::isDeletableElement):
1363         * rendering/RenderStyle.h:
1364         (WebCore::BorderValue::isVisible):
1365
1366 2006-11-10  Adam Roben  <aroben@apple.com>
1367
1368         Rubberstamped by Anders.
1369
1370         Back out some accidentally-committed changes from r17711.
1371
1372         * page/Frame.cpp:
1373         (WebCore::Frame::command):
1374         (WebCore::FramePrivate::FramePrivate):
1375         * page/Frame.h:
1376         * page/FramePrivate.h:
1377
1378 2006-11-10  Anders Carlsson  <acarlsson@apple.com>
1379
1380         Reviewed by Geoff.
1381
1382         Add more commands, make toggleBold and toggleItalic executable commands.
1383
1384         * WebCore.exp:
1385         * editing/Editor.cpp:
1386         (WebCore::execCopy):
1387         (WebCore::execCut):
1388         (WebCore::execDelete):
1389         (WebCore::execForwardDelete):
1390         (WebCore::execPaste):
1391         (WebCore::execSelectAll):
1392         (WebCore::execToggleBold):
1393         (WebCore::execToggleItalic):
1394         (WebCore::enabled):
1395         (WebCore::canPaste):
1396         (WebCore::hasEditableSelection):
1397         (WebCore::hasEditableRangeSelection):
1398         (WebCore::hasRangeSelection):
1399         (WebCore::hasRichlyEditableSelection):
1400         (WebCore::CommandEntry::):
1401         * editing/Editor.h:
1402
1403 2006-11-10  Anders Carlsson  <acarlsson@apple.com>
1404
1405         Reviewed by Maciej, Geoff.
1406
1407         Added an execCommand method to Editor. The idea is that this should replace the CommandByName object. Get rid of
1408         the alterCurrentSelection method in the bridge. WebKit can just call execCommand directly.
1409
1410         * WebCore.exp:
1411         * bridge/mac/WebCoreFrameBridge.h:
1412         * bridge/mac/WebCoreFrameBridge.mm:
1413         * editing/Editor.cpp:
1414         (WebCore::execMoveBackward):
1415         (WebCore::execMoveBackwardAndModifySelection):
1416         (WebCore::execMoveDown):
1417         (WebCore::execMoveDownAndModifySelection):
1418         (WebCore::execMoveForward):
1419         (WebCore::execMoveForwardAndModifySelection):
1420         (WebCore::execMoveLeft):
1421         (WebCore::execMoveLeftAndModifySelection):
1422         (WebCore::execMoveRight):
1423         (WebCore::execMoveRightAndModifySelection):
1424         (WebCore::execMoveToBeginningOfDocument):
1425         (WebCore::execMoveToBeginningOfDocumentAndModifySelection):
1426         (WebCore::execMoveToBeginningOfSentence):
1427         (WebCore::execMoveToBeginningOfSentenceAndModifySelection):
1428         (WebCore::execMoveToBeginningOfLine):
1429         (WebCore::execMoveToBeginningOfLineAndModifySelection):
1430         (WebCore::execMoveToBeginningOfParagraph):
1431         (WebCore::execMoveToBeginningOfParagraphAndModifySelection):
1432         (WebCore::execMoveToEndOfDocument):
1433         (WebCore::execMoveToEndOfDocumentAndModifySelection):
1434         (WebCore::execMoveToEndOfSentence):
1435         (WebCore::execMoveToEndOfSentenceAndModifySelection):
1436         (WebCore::execMoveToEndOfLine):
1437         (WebCore::execMoveToEndOfLineAndModifySelection):
1438         (WebCore::execMoveToEndOfParagraph):
1439         (WebCore::execMoveToEndOfParagraphAndModifySelection):
1440         (WebCore::execMoveParagraphBackwardAndModifySelection):
1441         (WebCore::execMoveParagraphForwardAndModifySelection):
1442         (WebCore::execMoveUp):
1443         (WebCore::execMoveUpAndModifySelection):
1444         (WebCore::execMoveWordBackward):
1445         (WebCore::execMoveWordBackwardAndModifySelection):
1446         (WebCore::execMoveWordForward):
1447         (WebCore::execMoveWordForwardAndModifySelection):
1448         (WebCore::execMoveWordLeft):
1449         (WebCore::execMoveWordLeftAndModifySelection):
1450         (WebCore::execMoveWordRight):
1451         (WebCore::execMoveWordRightAndModifySelection):
1452         (WebCore::enabledAnySelection):
1453         (WebCore::createCommandMap):
1454         (WebCore::CommandEntry::):
1455         (WebCore::Editor::execCommand):
1456         * editing/Editor.h:
1457
1458 2006-11-10  Brady Eidson  <beidson@apple.com>
1459
1460         Reviewed by Darin
1461
1462         Took out WebIconDatabaseBridge and made WebKit call IconDatabase directly
1463
1464         * WebCore.exp:
1465         * WebCore.xcodeproj/project.pbxproj:
1466         * bridge/mac/WebCoreIconDatabaseBridge.h: Removed.
1467         * bridge/mac/WebCoreIconDatabaseBridge.mm: Removed.
1468         * loader/FrameLoaderClient.h:
1469         * loader/icon/IconDatabase.cpp:
1470         (WebCore::IconDatabase::sharedIconDatabase):
1471         (WebCore::IconDatabase::~IconDatabase):
1472         * loader/icon/IconDatabase.h:
1473         (WebCore::IconDatabase::isPrivateBrowsingEnabled):
1474         (WebCore::IconDatabase::enabled):
1475         * loader/icon/IconLoader.cpp:
1476         (WebCore::IconLoader::finishLoading):
1477         * loader/mac/FrameLoaderMac.mm:
1478
1479 2006-11-10  Zack Rusin  <zack@kde.org>
1480
1481         Reviewed and landed by Anders.
1482
1483         Adjust platform Qt/KDE code to the recent loader
1484         changes. 
1485
1486         * CMakeLists.txt:
1487         * loader/DocumentLoader.h:
1488         * loader/FrameLoader.cpp:
1489         (WebCore::FrameLoader::createEmptyDocument):
1490         * loader/FrameLoader.h:
1491         * loader/FrameLoaderClient.h:
1492         * loader/qt/DocumentLoaderQt.cpp: Added.
1493         (WebCore::canonicalizedTitle):
1494         (WebCore::DocumentLoader::DocumentLoader):
1495         (WebCore::DocumentLoader::frameLoader):
1496         (WebCore::DocumentLoader::~DocumentLoader):
1497         (WebCore::DocumentLoader::URL):
1498         (WebCore::DocumentLoader::unreachableURL):
1499         (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
1500         (WebCore::DocumentLoader::isStopping):
1501         (WebCore::DocumentLoader::clearErrors):
1502         (WebCore::DocumentLoader::stopLoading):
1503         (WebCore::DocumentLoader::setupForReplace):
1504         (WebCore::DocumentLoader::commitIfReady):
1505         (WebCore::DocumentLoader::finishedLoading):
1506         (WebCore::DocumentLoader::setCommitted):
1507         (WebCore::DocumentLoader::isCommitted):
1508         (WebCore::DocumentLoader::setLoading):
1509         (WebCore::DocumentLoader::isLoading):
1510         (WebCore::DocumentLoader::doesProgressiveLoad):
1511         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
1512         (WebCore::DocumentLoader::updateLoading):
1513         (WebCore::DocumentLoader::setFrame):
1514         (WebCore::DocumentLoader::attachToFrame):
1515         (WebCore::DocumentLoader::detachFromFrame):
1516         (WebCore::DocumentLoader::prepareForLoadStart):
1517         (WebCore::DocumentLoader::loadingStartedTime):
1518         (WebCore::DocumentLoader::setIsClientRedirect):
1519         (WebCore::DocumentLoader::isClientRedirect):
1520         (WebCore::DocumentLoader::setPrimaryLoadComplete):
1521         (WebCore::DocumentLoader::isLoadingInAPISense):
1522         (WebCore::DocumentLoader::stopRecordingResponses):
1523         (WebCore::DocumentLoader::title):
1524         (WebCore::DocumentLoader::triggeringAction):
1525         (WebCore::DocumentLoader::setTriggeringAction):
1526         (WebCore::DocumentLoader::setOverrideEncoding):
1527         (WebCore::DocumentLoader::overrideEncoding):
1528         (WebCore::DocumentLoader::setTitle):
1529         (WebCore::DocumentLoader::URLForHistory):
1530         * loader/qt/FrameLoaderClientQt.cpp: Added.
1531         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
1532         (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
1533         (WebCore::FrameLoaderClientQt::detachFrameLoader):
1534         (WebCore::FrameLoaderClientQt::hasWebView):
1535         (WebCore::FrameLoaderClientQt::hasFrameView):
1536         (WebCore::FrameLoaderClientQt::hasBackForwardList):
1537         (WebCore::FrameLoaderClientQt::resetBackForwardList):
1538         (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
1539         (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
1540         (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
1541         (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
1542         (WebCore::FrameLoaderClientQt::makeDocumentView):
1543         (WebCore::FrameLoaderClientQt::makeRepresentation):
1544         (WebCore::FrameLoaderClientQt::forceLayout):
1545         (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
1546         (WebCore::FrameLoaderClientQt::updateHistoryForCommit):
1547         (WebCore::FrameLoaderClientQt::updateHistoryForBackForwardNavigation):
1548         (WebCore::FrameLoaderClientQt::updateHistoryForReload):
1549         (WebCore::FrameLoaderClientQt::updateHistoryForStandardLoad):
1550         (WebCore::FrameLoaderClientQt::updateHistoryForInternalLoad):
1551         (WebCore::FrameLoaderClientQt::updateHistoryAfterClientRedirect):
1552         (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
1553         (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
1554         (WebCore::FrameLoaderClientQt::resetAfterLoadError):
1555         (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
1556         (WebCore::FrameLoaderClientQt::willCloseDocument):
1557         (WebCore::FrameLoaderClientQt::detachedFromParent1):
1558         (WebCore::FrameLoaderClientQt::detachedFromParent2):
1559         (WebCore::FrameLoaderClientQt::detachedFromParent3):
1560         (WebCore::FrameLoaderClientQt::detachedFromParent4):
1561         (WebCore::FrameLoaderClientQt::loadedFromPageCache):
1562         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
1563         (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
1564         (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
1565         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
1566         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
1567         (WebCore::FrameLoaderClientQt::dispatchWillClose):
1568         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
1569         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
1570         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
1571         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
1572         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
1573         (WebCore::FrameLoaderClientQt::dispatchShow):
1574         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
1575         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
1576         (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
1577         (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
1578         (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
1579         (WebCore::FrameLoaderClientQt::revertToProvisionalState):
1580         (WebCore::FrameLoaderClientQt::clearUnarchivingState):
1581         (WebCore::FrameLoaderClientQt::progressStarted):
1582         (WebCore::FrameLoaderClientQt::progressCompleted):
1583         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
1584         (WebCore::FrameLoaderClientQt::willChangeTitle):
1585         (WebCore::FrameLoaderClientQt::didChangeTitle):
1586         (WebCore::FrameLoaderClientQt::finishedLoading):
1587         (WebCore::FrameLoaderClientQt::finalSetupForReplace):
1588         (WebCore::FrameLoaderClientQt::setDefersLoading):
1589         (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
1590         (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
1591         (WebCore::FrameLoaderClientQt::clearArchivedResources):
1592         (WebCore::FrameLoaderClientQt::canShowMIMEType):
1593         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
1594         (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
1595         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
1596         (WebCore::FrameLoaderClientQt::restoreScrollPositionAndViewState):
1597         (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
1598         (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
1599         (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
1600         (WebCore::FrameLoaderClientQt::didFinishLoad):
1601         (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
1602         (WebCore::FrameLoaderClientQt::setTitle):
1603         (WebCore::FrameLoaderClientQt::userAgent):
1604         * loader/qt/FrameLoaderClientQt.h: Added.
1605         * loader/qt/FrameLoaderQt.cpp:
1606         (WebCore::FrameLoader::submitForm):
1607         (WebCore::FrameLoader::overrideMediaType):
1608         (WebCore::FrameLoader::getHistoryLength):
1609         (WebCore::FrameLoader::referrer):
1610         (WebCore::FrameLoader::detachFromParent):
1611         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
1612         (WebCore::FrameLoader::goBackOrForward):
1613         (WebCore::FrameLoader::historyURL):
1614         (WebCore::FrameLoader::didFirstLayout):
1615         (WebCore::FrameLoader::canGoBackOrForward):
1616         (WebCore::FrameLoader::partClearedInBegin):
1617         (WebCore::FrameLoader::saveDocumentState):
1618         (WebCore::FrameLoader::restoreDocumentState):
1619         (WebCore::FrameLoader::didChangeTitle):
1620         (WebCore::FrameLoader::redirectDataToPlugin):
1621         (WebCore::PolicyCheck::PolicyCheck):
1622         (WebCore::PolicyCheck::clear):
1623         (WebCore::PolicyCheck::set):
1624         (WebCore::PolicyCheck::call):
1625         (WebCore::PolicyCheck::clearRequest):
1626         * loader/qt/NavigationActionQt.cpp: Added.
1627         (WebCore::navigationType):
1628         (WebCore::NavigationAction::NavigationAction):
1629         * loader/qt/ResourceLoaderQt.cpp: Added.
1630         (WebCore::ResourceLoader::ResourceLoader):
1631         (WebCore::ResourceLoader::~ResourceLoader):
1632         (WebCore::ResourceLoader::setDefersLoading):
1633         (WebCore::ResourceLoader::cancel):
1634         (WebCore::ResourceLoader::loadsBlocked):
1635         * platform/MimeTypeRegistry.cpp:
1636         (WebCore::initialiseSupportedImageMIMETypes):
1637         * platform/network/qt/ResourceHandleManager.cpp:
1638         (WebCore::ResourceHandleManager::slotResult):
1639         (WebCore::ResourceHandleManager::cancel):
1640         * platform/qt/ChromeClientQt.cpp: Added.
1641         (WebCore::rootWindowForFrame):
1642         (WebCore::ChromeClientQt::ChromeClientQt):
1643         (WebCore::ChromeClientQt::~ChromeClientQt):
1644         (WebCore::ChromeClientQt::setWindowRect):
1645         (WebCore::ChromeClientQt::windowRect):
1646         (WebCore::ChromeClientQt::pageRect):
1647         (WebCore::ChromeClientQt::scaleFactor):
1648         (WebCore::ChromeClientQt::focus):
1649         (WebCore::ChromeClientQt::unfocus):
1650         (WebCore::ChromeClientQt::createWindow):
1651         (WebCore::ChromeClientQt::createModalDialog):
1652         (WebCore::ChromeClientQt::show):
1653         (WebCore::ChromeClientQt::canRunModal):
1654         (WebCore::ChromeClientQt::runModal):
1655         (WebCore::ChromeClientQt::setToolbarsVisible):
1656         (WebCore::ChromeClientQt::toolbarsVisible):
1657         (WebCore::ChromeClientQt::setStatusbarVisible):
1658         (WebCore::ChromeClientQt::statusbarVisible):
1659         (WebCore::ChromeClientQt::setScrollbarsVisible):
1660         (WebCore::ChromeClientQt::scrollbarsVisible):
1661         (WebCore::ChromeClientQt::setMenubarVisible):
1662         (WebCore::ChromeClientQt::menubarVisible):
1663         (WebCore::ChromeClientQt::setResizable):
1664         * platform/qt/ChromeClientQt.h: Added.
1665         * platform/qt/EditorClientQt.cpp:
1666         (WebCore::EditorClientQt::shouldBeginEditing):
1667         (WebCore::EditorClientQt::shouldEndEditing):
1668         (WebCore::EditorClientQt::shouldApplyStyle):
1669         (WebCore::EditorClientQt::didBeginEditing):
1670         (WebCore::EditorClientQt::respondToChangedContents):
1671         (WebCore::EditorClientQt::didEndEditing):
1672         * platform/qt/EditorClientQt.h:
1673         * platform/qt/FrameQt.cpp:
1674         (WebCore::FrameQt::FrameQt):
1675         (WebCore::FrameQt::~FrameQt):
1676         (WebCore::FrameQt::keyEvent):
1677         * platform/qt/FrameQt.h:
1678         * platform/qt/FrameQtClient.cpp:
1679         (WebCore::FrameQtClientDefault::openURL):
1680         (WebCore::FrameQtClientDefault::didReceiveData):
1681         (WebCore::FrameQtClientDefault::receivedAllData):
1682         * platform/qt/ImageQt.cpp:
1683         * platform/qt/MimeTypeRegistryQt.cpp: Added.
1684         (WebCore::getMIMETypeForUTI):
1685         (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
1686         * platform/qt/PageQt.cpp:
1687         * platform/qt/PlatformKeyboardEventQt.cpp:
1688         (WebCore::keyIdentifierForQtKeyCode):
1689         * platform/qt/ScreenQt.cpp:
1690         * platform/qt/TemporaryLinkStubs.cpp:
1691         (WebCore::TextField::TextField):
1692         (WebCore::screenDepth):
1693         (WebCore::screenDepthPerComponent):
1694         (WebCore::screenIsMonochrome):
1695         (WebCore::screenRect):
1696         (WebCore::screenAvailableRect):
1697
1698 2006-11-10  Brady Eidson <beidson@apple.com>
1699
1700         Reviewed by Mitz
1701
1702         http://bugs.webkit.org/show_bug.cgi?id=11554
1703         Fix the above bug (in didFinishLoading) and also another potential bug in didFailWithError
1704         in case the icon load fails after some data has been received. 
1705
1706         * loader/icon/IconLoader.cpp:
1707         (WebCore::IconLoader::didFailWithError): Clear the buffer so half-an-image isn't commited to the DB
1708         on error.  Also, as a loader re-factoring sanity check, added an assertion
1709         (WebCore::IconLoader::didFinishLoading): If an icon loader resulted in an error-response, the icon 
1710         is already committed to the DB.  Skip doing that step twice.
1711
1712 2006-11-09  Oliver Hunt  <oliver@apple.com>
1713
1714         Reviewed by Brady.
1715
1716         Pulled MIME type handling out of WebFrameBridge and added
1717         a general C++ class to store/query MIME info
1718         Added an Obj-C bridge to provide WebKit with access to the
1719         MimeTypeRegistry for non-Obj-C++ classes.
1720         
1721         * WebCore.exp:
1722         * WebCore.xcodeproj/project.pbxproj:
1723         * bridge/mac/WebCoreFrameBridge.h:
1724         * bridge/mac/WebCoreFrameBridge.mm:
1725         * bridge/mac/WebMimeTypeRegistryBridge.h: Added.
1726         * bridge/mac/WebMimeTypeRegistryBridge.mm: Added.
1727         (+[WebMimeTypeRegistryBridge supportsImageWithMIMEType:]):
1728         (+[WebMimeTypeRegistryBridge supportsNonImageWithMIMEType:]):
1729         (+[WebMimeTypeRegistryBridge supportedNonImageMIMETypes]):
1730         (+[WebMimeTypeRegistryBridge supportedImageMIMETypes]):
1731         (+[WebMimeTypeRegistryBridge supportedImageResourceMIMETypes]):
1732         * platform/Image.cpp:
1733         (WebCore::Image::supportsType):
1734         * platform/Image.h:
1735         * platform/MimeTypeRegistry.cpp: Added.
1736         (WebCore::initialiseSupportedImageMIMETypes):
1737         (WebCore::initialiseSupportedNonImageMimeTypes):
1738         (WebCore::initialiseMimeTypeRegistry):
1739         (WebCore::MimeTypeRegistry::isSupportedImageMIMEType):
1740         (WebCore::MimeTypeRegistry::isSupportedImageResourceMIMEType):
1741         (WebCore::MimeTypeRegistry::isSupportedNonImageMIMEType):
1742         (WebCore::MimeTypeRegistry::getSupportedImageMIMETypes):
1743         (WebCore::MimeTypeRegistry::getSupportedImageResourceMIMETypes):
1744         (WebCore::MimeTypeRegistry::getSupportedNonImageMIMETypes):
1745         * platform/MimeTypeRegistry.h: Added.
1746         * platform/mac/ImageMac.mm:
1747         * platform/mac/MimeTypeRegistryMac.mm: Added.
1748         (WebCore::getMIMETypeForUTI):
1749         (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
1750
1751 2006-11-09  Maciej Stachowiak  <mjs@apple.com>
1752
1753         Reviewed by Oliver.
1754
1755         - rename String::sprintf and DeprecatedString::sprintf to ...::format to avoid needlessly tweaking a search
1756         for insecure functions. Neither of these has risk of buffer overruns since they calculate the buffer size
1757         for you and use vsnprintf.
1758
1759         * bindings/js/kjs_window.cpp:
1760         (KJS::Window::isSafeScript):
1761         * css/cssparser.cpp:
1762         (WebCore::CSSParser::parseColorFromValue):
1763         * dom/StyledElement.cpp:
1764         (WebCore::StyledElement::addCSSColor):
1765         * dom/XMLTokenizer.cpp:
1766         (WebCore::XMLTokenizer::handleError):
1767         * ksvg2/css/SVGCSSParser.cpp:
1768         (WebCore::CSSParser::parseSVGPaint):
1769         (WebCore::CSSParser::parseSVGColor):
1770         * ksvg2/svg/SVGPathSegArc.h:
1771         (WebCore::SVGPathSegArcAbs::toString):
1772         (WebCore::SVGPathSegArcRel::toString):
1773         * ksvg2/svg/SVGPathSegCurvetoCubic.h:
1774         (WebCore::SVGPathSegCurvetoCubicAbs::toString):
1775         (WebCore::SVGPathSegCurvetoCubicRel::toString):
1776         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
1777         (WebCore::SVGPathSegCurvetoCubicSmoothAbs::toString):
1778         (WebCore::SVGPathSegCurvetoCubicSmoothRel::toString):
1779         * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
1780         (WebCore::SVGPathSegCurvetoQuadraticAbs::toString):
1781         (WebCore::SVGPathSegCurvetoQuadraticRel::toString):
1782         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
1783         (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::toString):
1784         (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::toString):
1785         * ksvg2/svg/SVGPathSegLineto.h:
1786         (WebCore::SVGPathSegLinetoAbs::toString):
1787         (WebCore::SVGPathSegLinetoRel::toString):
1788         * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
1789         (WebCore::SVGPathSegLinetoHorizontalAbs::toString):
1790         (WebCore::SVGPathSegLinetoHorizontalRel::toString):
1791         * ksvg2/svg/SVGPathSegLinetoVertical.h:
1792         (WebCore::SVGPathSegLinetoVerticalAbs::toString):
1793         (WebCore::SVGPathSegLinetoVerticalRel::toString):
1794         * ksvg2/svg/SVGPathSegMoveto.h:
1795         (WebCore::SVGPathSegMovetoAbs::toString):
1796         (WebCore::SVGPathSegMovetoRel::toString):
1797         * ksvg2/svg/SVGPolyElement.cpp:
1798         (WebCore::SVGPolyElement::notifyAttributeChange):
1799         * ksvg2/svg/SVGUseElement.cpp:
1800         (WebCore::SVGUseElement::closeRenderer):
1801         * loader/icon/IconDatabase.cpp:
1802         (WebCore::IconDatabase::forgetIconForIconURLFromDatabase):
1803         * loader/icon/SQLDatabase.cpp:
1804         (WebCore::SQLDatabase::setSynchronous):
1805         * platform/Color.cpp:
1806         (WebCore::Color::name):
1807         * platform/DeprecatedString.cpp:
1808         (WebCore::DeprecatedString::setNum):
1809         (WebCore::DeprecatedString::format):
1810         * platform/DeprecatedString.h:
1811         * platform/PlatformString.h:
1812         * platform/String.cpp:
1813         (WebCore::String::format):
1814         (WebCore::String::number):
1815         * platform/mac/KeyEventMac.mm:
1816         (WebCore::keyIdentifierForKeyEvent):
1817         * platform/win/KeyEventWin.cpp:
1818         (WebCore::keyIdentifierForWindowsKeyCode):
1819         * rendering/RenderListMarker.cpp:
1820         (WebCore::RenderListMarker::calcMinMaxWidth):
1821
1822 2006-11-09  Maciej Stachowiak  <mjs@apple.com>
1823
1824         Reviewed by Anders.
1825
1826         - fixed "Regression: Can't log into gmail.com"
1827         - fixed "iBench doesn't report results - tests run but no number is recorded"
1828         
1829         * platform/network/cf/FormDataStreamCFNet.cpp:
1830         (WebCore::setHTTPBody): Removed extra ! character.
1831
1832 2006-11-09  Beth Dakin  <bdakin@apple.com>
1833
1834         Reviewed by Hyatt.
1835
1836         Fix for <rdar://problem/4805409> REGRESSION: Reproducible crash in 
1837         WebCore::RenderBlock::skipWhitespace
1838
1839         Note that this will still crash on Debug builds because it will hit 
1840         an assertion failure in editing. (One of the reasons there is no 
1841         layout test along with this fix.) There is definitely some editing 
1842         wackiness happening. See http://bugs.webkit.org/show_bug.cgi?
1843         id=10144 for updates on the assertion failure bug.
1844
1845         * rendering/RootInlineBox.cpp:
1846         (WebCore::RootInlineBox::childRemoved): It is possible for a 
1847         prevRootBox and its prevRootBox to share a lineBreakObj. So instead 
1848         of just clearing the lineBreakObj of the prevRootBox, cycle through 
1849         all prevRootBoxs with the same lineBreakObj. 
1850
1851 2006-11-09  Adam Roben  <aroben@apple.com>
1852
1853         Reviewed by Geoff.
1854
1855         Fix the change in behavior I caused in r17680 with my build fix.
1856
1857         * rendering/RenderObject.cpp:
1858         (WebCore::RenderObject::maxTopMargin):
1859         (WebCore::RenderObject::maxBottomMargin):
1860
1861 2006-11-09  Anders Carlsson  <acarlsson@apple.com>
1862
1863         Reviewed by Adam, Oliver.
1864
1865         Move more functions to Editor.
1866
1867         * bridge/EditorClient.h:
1868         * bridge/mac/FrameMac.h:
1869         * bridge/mac/FrameMac.mm:
1870         * bridge/mac/WebCoreFrameBridge.h:
1871         * editing/EditCommand.cpp:
1872         (WebCore::EditCommand::apply):
1873         (WebCore::EditCommand::unapply):
1874         (WebCore::EditCommand::reapply):
1875         * editing/Editor.cpp:
1876         (WebCore::Editor::respondToChangedContents):
1877         (WebCore::dispatchEditableContentChangedEvents):
1878         (WebCore::Editor::appliedEditing):
1879         (WebCore::Editor::unappliedEditing):
1880         (WebCore::Editor::reappliedEditing):
1881         * editing/Editor.h:
1882         * editing/TypingCommand.cpp:
1883         (WebCore::TypingCommand::typingAddedToOpenCommand):
1884         * page/Frame.cpp:
1885         * page/Frame.h:
1886
1887 2006-11-09  Darin Adler  <darin@apple.com>
1888
1889         * rendering/RenderObject.h: Oops! Fixed accidentally checked-in ifdef.
1890
1891 2006-11-09  Alice Liu  <alice.liu@apple.com>
1892
1893         Reviewed by Beth Dakin.
1894
1895         Fixed <rdar://problem/4808720> Hamachi test tool crashes Safari in WebCore::HTMLTableSectionElement::deleteRow
1896         All existing layout tests pass
1897
1898         * html/HTMLTableElement.cpp:
1899         (WebCore::HTMLTableElement::deleteRow):
1900         check lastSection before deleting row
1901
1902 2006-11-09  Darin Adler  <darin@apple.com>
1903
1904         - improved version of last night's build fix (should not do using namespace in a header)
1905
1906         * rendering/RenderObject.h:
1907         * rendering/RenderObject.cpp:
1908         (WebCore::RenderObject::maxTopMargin):
1909         (WebCore::RenderObject::maxBottomMargin):
1910
1911 2006-11-08  Maciej Stachowiak  <mjs@apple.com>
1912
1913         Reviewed by Geoff.
1914         
1915         - added ResourceError class and didFailWithError client method
1916
1917         * WebCore.xcodeproj/project.pbxproj:
1918         * loader/icon/IconLoader.cpp:
1919         (WebCore::IconLoader::didFailWithError):
1920         (WebCore::IconLoader::didFinishLoading):
1921         * loader/icon/IconLoader.h:
1922         * loader/loader.cpp:
1923         (WebCore::Loader::receivedAllData):
1924         (WebCore::Loader::didFailWithError):
1925         * loader/loader.h:
1926         * loader/mac/SubresourceLoaderMac.mm:
1927         (WebCore::SubresourceLoader::didFail):
1928         (WebCore::SubresourceLoader::didCancel):
1929         * platform/cf/RetainPtr.h:
1930         (WebCore::):
1931         (WebCore::adoptCFReference):
1932         (WebCore::RetainPtr::RetainPtr):
1933         (WebCore::::adopt):
1934         * platform/network/ResourceError.cpp: Added.
1935         * platform/network/ResourceError.h: Added.
1936         (WebCore::ResourceError::ResourceError):
1937         (WebCore::ResourceError::domain):
1938         (WebCore::ResourceError::errorCode):
1939         (WebCore::ResourceError::failingURL):
1940         (WebCore::ResourceError::localizedDescription):
1941         (WebCore::ResourceError::unpackPlatformErrorIfNeeded):
1942         * platform/network/ResourceHandle.cpp:
1943         * platform/network/ResourceHandle.h:
1944         * platform/network/ResourceHandleClient.h:
1945         (WebCore::ResourceHandleClient::didFailWithError):
1946         * platform/network/cf/ResourceHandleCFNet.cpp:
1947         (WebCore::didFail):
1948         (WebCore::ResourceHandle::cancel):
1949         * platform/network/mac/ResourceErrorMac.mm: Added.
1950         (-[NSError WebCore]):
1951         * platform/network/mac/ResourceHandleMac.mm:
1952         (WebCore::ResourceHandle::reportError):
1953         * xml/xmlhttprequest.cpp:
1954         (WebCore::XMLHttpRequest::didFailWithError):
1955         (WebCore::XMLHttpRequest::didFinishLoading):
1956         * xml/xmlhttprequest.h:
1957
1958 2006-11-08  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
1959
1960         Reviewed by Maciej.
1961
1962         Linux\Gdk fixes.
1963
1964         * platform/gdk/ChromeClientGdk.h:
1965         (WebCore::ChromeClientGdk::~ChromeClientGdk):
1966         * platform/gdk/CursorGdk.cpp:
1967         (WebCore::Cursor::Cursor):
1968         (WebCore::moveCursor):
1969         * platform/gdk/FrameGdk.cpp:
1970         (WebCore::FrameGdk::FrameGdk):
1971         (WebCore::FrameGdk::submitForm):
1972         (WebCore::FrameGdk::urlSelected):
1973         * platform/gdk/PageGdk.cpp:
1974         * platform/gdk/ScreenClientGdk.h: Added.
1975         (WebCore::ScreenClientGdk::~ScreenClientGdk):
1976         * platform/gdk/ScreenGdk.cpp:
1977         (WebCore::ScreenClientGdk::depth):
1978         (WebCore::ScreenClientGdk::depthPerComponent):
1979         (WebCore::ScreenClientGdk::isMonochrome):
1980         (WebCore::ScreenClientGdk::rect):
1981         (WebCore::ScreenClientGdk::usableRect):
1982         * platform/gdk/TemporaryLinkStubs.cpp:
1983         (FrameGdk::historyURL):
1984         (ChromeClientGdk::windowRect):
1985         (ChromeClientGdk::setWindowRect):
1986         (ChromeClientGdk::pageRect):
1987         (ChromeClientGdk::scaleFactor):
1988         (ChromeClientGdk::focus):
1989         (ChromeClientGdk::unfocus):
1990         (ChromeClientGdk::createWindow):
1991         (ChromeClientGdk::createModalDialog):
1992         (ChromeClientGdk::show):
1993         (ChromeClientGdk::canRunModal):
1994         (ChromeClientGdk::runModal):
1995         (ChromeClientGdk::setToolbarsVisible):
1996         (ChromeClientGdk::toolbarsVisible):
1997         (ChromeClientGdk::setStatusbarVisible):
1998         (ChromeClientGdk::statusbarVisible):
1999         (ChromeClientGdk::setScrollbarsVisible):
2000         (ChromeClientGdk::scrollbarsVisible):
2001         (ChromeClientGdk::setMenubarVisible):
2002         (ChromeClientGdk::menubarVisible):
2003         (ChromeClientGdk::setResizable):
2004         * platform/network/ResourceHandleInternal.h:
2005         (WebCore::ResourceHandleInternal::client):
2006         * platform/network/gdk/ResourceHandleManager.cpp:
2007         (WebCore::writeCallback):
2008         (WebCore::ResourceHandleManager::downloadTimerCallback):
2009         (WebCore::ResourceHandleManager::remove):
2010
2011 2006-11-08  Adam Roben  <aroben@apple.com>
2012
2013         Build fix.
2014
2015         * rendering/RenderObject.h:
2016         (WebCore::RenderObject::maxTopMargin):
2017         (WebCore::RenderObject::maxBottomMargin):
2018
2019 2006-11-08  Geoffrey Garen  <ggaren@apple.com>
2020
2021         Reviewed by Anders Carlsson.
2022
2023         Made Screen a good platform citizen by removing its reference to Page. This
2024         made a class unnecessary, so all screen fuctions are stand-alone now.
2025
2026         * bindings/js/kjs_window.cpp: Removed unnecessary subtractions
2027         when computing the screen's available dimensions.
2028
2029 2006-11-08  Sam Weinig  <sam.weinig@gmail.com>
2030
2031         Reviewed by Mitz.
2032
2033         Fix for http://bugs.webkit.org/show_bug.cgi?id=11506
2034         Cleanup RenderObject
2035
2036         * rendering/RenderObject.cpp:
2037         (WebCore::RenderObject::operator delete):
2038         (WebCore::RenderObject::createObject):
2039         (WebCore::RenderObjectCounter::~RenderObjectCounter):
2040         (WebCore::RenderObject::RenderObject):
2041         (WebCore::RenderObject::isDescendantOf):
2042         (WebCore::RenderObject::isRoot):
2043         (WebCore::RenderObject::addChild):
2044         (WebCore::RenderObject::removeChildNode):
2045         (WebCore::RenderObject::removeChild):
2046         (WebCore::RenderObject::appendChildNode):
2047         (WebCore::RenderObject::insertChildNode):
2048         (WebCore::RenderObject::nextInPreOrder):
2049         (WebCore::RenderObject::nextInPreOrderAfterChildren):
2050         (WebCore::RenderObject::previousInPreOrder):
2051         (WebCore::RenderObject::isEditable):
2052         (WebCore::RenderObject::nextEditable):
2053         (WebCore::RenderObject::previousEditable):
2054         (WebCore::RenderObject::firstLeafChild):
2055         (WebCore::RenderObject::lastLeafChild):
2056         (WebCore::RenderObject::addLayers):
2057         (WebCore::RenderObject::removeLayers):
2058         (WebCore::RenderObject::moveLayers):
2059         (WebCore::RenderObject::findNextLayer):
2060         (WebCore::RenderObject::enclosingLayer):
2061         (WebCore::RenderObject::updateFirstLetter):
2062         (WebCore::RenderObject::offsetParent):
2063         (WebCore::RenderObject::scroll):
2064         (WebCore::RenderObject::hasStaticX):
2065         (WebCore::RenderObject::setNeedsLayout):
2066         (WebCore::RenderObject::setChildNeedsLayout):
2067         (WebCore::RenderObject::markContainingBlocksForLayout):
2068         (WebCore::RenderObject::containingBlock):
2069         (WebCore::RenderObject::containingBlockWidth):
2070         (WebCore::RenderObject::containingBlockHeight):
2071         (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
2072         (WebCore::RenderObject::drawBorderArc):
2073         (WebCore::RenderObject::drawBorder):
2074         (WebCore::RenderObject::paintBorderImage):
2075         (WebCore::RenderObject::paintBorder):
2076         (WebCore::RenderObject::absoluteRects):
2077         (WebCore::RenderObject::addPDFURLRect):
2078         (WebCore::RenderObject::addFocusRingRects):
2079         (WebCore::RenderObject::paintOutline):
2080         (WebCore::RenderObject::repaint):
2081         (WebCore::RenderObject::repaintRectangle):
2082         (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
2083         (WebCore::RenderObject::repaintObjectsBeforeLayout):
2084         (WebCore::RenderObject::getAbsoluteRepaintRectWithOutline):
2085         (WebCore::RenderObject::information):
2086         (WebCore::RenderObject::dump):
2087         (WebCore::selectStartNode):
2088         (WebCore::RenderObject::shouldSelect):
2089         (WebCore::RenderObject::draggableNode):
2090         (WebCore::RenderObject::createAnonymousBlock):
2091         (WebCore::RenderObject::handleDynamicFloatPositionChange):
2092         (WebCore::RenderObject::setStyle):
2093         (WebCore::RenderObject::setStyleInternal):
2094         (WebCore::RenderObject::updateBackgroundImages):
2095         (WebCore::RenderObject::absolutePosition):
2096         (WebCore::RenderObject::caretRect):
2097         (WebCore::RenderObject::paddingTop):
2098         (WebCore::RenderObject::paddingBottom):
2099         (WebCore::RenderObject::paddingLeft):
2100         (WebCore::RenderObject::paddingRight):
2101         (WebCore::RenderObject::tabWidth):
2102         (WebCore::RenderObject::container):
2103         (WebCore::RenderObject::removeFromObjectLists):
2104         (WebCore::RenderObject::destroy):
2105         (WebCore::RenderObject::arenaDelete):
2106         (WebCore::RenderObject::hitTest):
2107         (WebCore::RenderObject::setInnerNode):
2108         (WebCore::RenderObject::nodeAtPoint):
2109         (WebCore::RenderObject::verticalPositionHint):
2110         (WebCore::RenderObject::getVerticalPosition):
2111         (WebCore::RenderObject::lineHeight):
2112         (WebCore::RenderObject::invalidateVerticalPositions):
2113         (WebCore::RenderObject::recalcMinMaxWidths):
2114         (WebCore::RenderObject::scheduleRelayout):
2115         (WebCore::RenderObject::setInlineBoxWrapper):
2116         (WebCore::RenderObject::firstLineStyle):
2117         (WebCore::RenderObject::getPseudoStyle):
2118         (WebCore::RenderObject::getTextDecorationColors):
2119         (WebCore::RenderObject::addDashboardRegions):
2120         (WebCore::RenderObject::collectDashboardRegions):
2121         (WebCore::RenderObject::avoidsFloats):
2122         (WebCore::RenderObject::findCounter):
2123         (WebCore::RenderObject::backslashAsCurrencySymbol):
2124         (WebCore::RenderObject::imageChanged):
2125         (WebCore::RenderObject::previousOffset):
2126         (WebCore::RenderObject::nextOffset):
2127         (WebCore::RenderObject::inlineBox):
2128         * rendering/RenderObject.h:
2129         (WebCore::):
2130         (WebCore::RenderObject::renderName):
2131         (WebCore::RenderObject::parent):
2132         (WebCore::RenderObject::previousSibling):
2133         (WebCore::RenderObject::nextSibling):
2134         (WebCore::RenderObject::firstChild):
2135         (WebCore::RenderObject::lastChild):
2136         (WebCore::RenderObject::getOverflowClipRect):
2137         (WebCore::RenderObject::getClipRect):
2138         (WebCore::RenderObject::getBaselineOfFirstLineBox):
2139         (WebCore::RenderObject::setEdited):
2140         (WebCore::RenderObject::setStaticX):
2141         (WebCore::RenderObject::setStaticY):
2142         (WebCore::RenderObject::setPreviousSibling):
2143         (WebCore::RenderObject::setNextSibling):
2144         (WebCore::RenderObject::setParent):
2145         (WebCore::RenderObject::isInlineBlockOrInlineTable):
2146         (WebCore::RenderObject::isRenderView):
2147         (WebCore::RenderObject::childrenInline):
2148         (WebCore::RenderObject::setChildrenInline):
2149         (WebCore::RenderObject::isAnonymousBlock):
2150         (WebCore::RenderObject::isDragging):
2151         (WebCore::RenderObject::needsLayout):
2152         (WebCore::RenderObject::setMinMaxKnown):
2153         (WebCore::RenderObject::setNeedsLayoutAndMinMaxRecalc):
2154         (WebCore::RenderObject::setPositioned):
2155         (WebCore::RenderObject::setRelPositioned):
2156         (WebCore::RenderObject::setFloating):
2157         (WebCore::RenderObject::setInline):
2158         (WebCore::RenderObject::setShouldPaintBackgroundOrBorder):
2159         (WebCore::RenderObject::setReplaced):
2160         (WebCore::RenderObject::PaintInfo::PaintInfo):
2161         (WebCore::RenderObject::paintBackgroundExtended):
2162         (WebCore::RenderObject::calcWidth):
2163         (WebCore::RenderObject::updateFromElement):
2164         (WebCore::RenderObject::RepaintInfo::RepaintInfo):
2165         (WebCore::RenderObject::setOverrideSize):
2166         (WebCore::RenderObject::setPos):
2167         (WebCore::RenderObject::setWidth):
2168         (WebCore::RenderObject::setHeight):
2169         (WebCore::RenderObject::absolutePositionForContent):
2170         (WebCore::RenderObject::overflowHeight):
2171         (WebCore::RenderObject::overflowWidth):
2172         (WebCore::RenderObject::setOverflowHeight):
2173         (WebCore::RenderObject::setOverflowWidth):
2174         (WebCore::RenderObject::overflowLeft):
2175         (WebCore::RenderObject::overflowTop):
2176         (WebCore::RenderObject::overflowRect):
2177         (WebCore::RenderObject::stopAutoscroll):
2178         (WebCore::RenderObject::collapsedMarginTop):
2179         (WebCore::RenderObject::collapsedMarginBottom):
2180         (WebCore::RenderObject::maxTopMargin):
2181         (WebCore::RenderObject::maxBottomMargin):
2182         (WebCore::RenderObject::):
2183         (WebCore::RenderObject::setTable):
2184         (WebCore::RenderObject::isFloatingOrPositioned):
2185         (WebCore::RenderObject::containsFloat):
2186         (WebCore::RenderObject::setSelectionState):
2187         (WebCore::RenderObject::SelectionInfo::SelectionInfo):
2188         (WebCore::RenderObject::lowestPosition):
2189         (WebCore::RenderObject::rightmostPosition):
2190         (WebCore::RenderObject::leftmostPosition):
2191         (WebCore::RenderObject::calcVerticalMargins):
2192         (WebCore::RenderObject::font):
2193
2194 2006-11-08  Darin Adler  <darin@apple.com>
2195
2196         Reviewed by Anders.
2197
2198         - added event parameters to focus-related functions so we can
2199           implement the "option-tab to all links" behavior without relying
2200           on a global "current event" -- also makes it work with DOM events
2201
2202         * page/Frame.h: Removed unneeded includes. Moved some functions
2203         that were misplaced into the appropriate sections.
2204         * page/Frame.cpp:
2205         (WebCore::Frame::doTextFieldCommandFromEvent): Changed parameter from
2206         PlatformKeyboardEvent to the DOM keyboard event class.
2207         (WebCore::Frame::tabsToLinks): Added event parameter.
2208         (WebCore::Frame::tabsToAllControls): Ditto.
2209         (WebCore::scanForForm): Fixed code that incorrectly assumes
2210         that an iframe is an HTMLFrameElement (no longer true since Geoff
2211         changed the class hierarchy a bit).
2212         (WebCore::Frame::hitTestResultAtPoint): Ditto.
2213
2214         * bridge/mac/FrameMac.h: Removed unneeded includes. Moved some functions
2215         that were misplaced into the appropriate sections.
2216         * bridge/mac/FrameMac.mm:
2217         (WebCore::selectorForKeyEvent): Changed to use a DOM event instead of
2218         a PlatformKeyboardEvent.
2219         (WebCore::FrameMac::nextKeyViewInFrame): Changed to use currentKeyboardEvent()
2220         and pass event into next/previousFocusNode.
2221         (WebCore::FrameMac::currentKeyboardEvent): Added. Creates a DOM event from
2222         the AppKit current event, if it's a keyboard event. Really just a hack that's
2223         needed to preserve some code we can remove once we deal with the last NSView-
2224         based form control.
2225         (WebCore::isKeyboardOptionTab): Added.
2226         (WebCore::FrameMac::tabsToLinks): Added event parameter, used to check if the
2227         option (alt) key is down.
2228         (WebCore::FrameMac::tabsToAllControls): Ditto.
2229         (WebCore::FrameMac::keyEvent): Changed call to prepareForUserAction() to just
2230         call resetMultipleFormSubmissionProtection() explicitly instead.
2231         (WebCore::FrameMac::mouseDown): Ditto.
2232
2233         * bridge/mac/WebCoreAXObject.mm:
2234         (-[WebCoreAXObject accessibilityDescription]): Fixed code that incorrectly
2235         assumes that an iframe is an HTMLFrameElement (no longer true since Geoff
2236         changed the class hierarchy a bit).
2237         (-[WebCoreAXObject accessibilityPerformAction:]): Changed call to
2238         prepareForUserAction() to call resetMultipleFormSubmissionProtection()
2239         explicitly instead.
2240
2241         * page/FrameView.h:
2242         * page/FrameView.cpp:
2243         (WebCore::FrameView::advanceFocus): Changed function to take an
2244         event parameter, and decide the direction based on the shift key
2245         modifier instead of a passed-in boolean.
2246
2247         * dom/Document.h:
2248         * dom/Document.cpp:
2249         (WebCore::Document::nextFocusNode): Added event parameter.
2250         (WebCore::Document::previousFocusNode): Ditto.
2251         * dom/Node.h:
2252         * dom/Node.cpp:
2253         (WebCore::Node::isKeyboardFocusable): Ditto.
2254         * html/HTMLAnchorElement.h:
2255         * html/HTMLAnchorElement.cpp:
2256         (WebCore::HTMLAnchorElement::isKeyboardFocusable): Ditto.
2257         * html/HTMLGenericFormElement.h:
2258         * html/HTMLGenericFormElement.cpp:
2259         (WebCore::HTMLGenericFormElement::isKeyboardFocusable): Ditto.
2260         * html/HTMLInputElement.h:
2261         * html/HTMLInputElement.cpp:
2262         (WebCore::HTMLInputElement::isKeyboardFocusable): Ditto.
2263         (WebCore::HTMLInputElement::defaultEventHandler): Ditto.
2264         * html/HTMLSelectElement.h:
2265         * html/HTMLSelectElement.cpp:
2266         (WebCore::HTMLSelectElement::isKeyboardFocusable): Ditto.
2267         * html/HTMLTextAreaElement.h:
2268         * html/HTMLTextAreaElement.cpp:
2269         (WebCore::HTMLTextAreaElement::isKeyboardFocusable): Ditto.
2270
2271         * dom/EventTargetNode.cpp:
2272         (WebCore::EventTargetNode::defaultEventHandler): Pass event to the
2273         advanceFocus function.
2274
2275         * platform/TextField.h:
2276         * platform/mac/TextFieldMac.mm: Removed the non-search field code.
2277
2278         * platform/mac/WebCoreTextField.h:
2279         * platform/mac/WebCoreTextField.mm: Removed the non-search field code.
2280         (-[WebCoreTextFieldController controlTextDidChange:]): Removed the
2281         call to FrameMac::handleKeyboardOptionTabInView, which is no longer
2282         needed since the default handler in HTMLInputElement takes care of
2283         option-tab.
2284
2285         * platform/mac/SliderMac.mm:
2286         (-[WebCoreSlider canBecomeKeyView]): Changed to use currentKeyboardEvent()
2287         and pass event into tabsToAllControls.
2288         (Slider::focusPolicy): Ditto.
2289
2290         * rendering/RenderLineEdit.cpp:
2291         (WebCore::RenderLineEdit::RenderLineEdit): Removed the non-search field code.
2292         (WebCore::RenderLineEdit::updateFromElement): Ditto.
2293
2294 2006-11-08  Brady Eidson  <beidson@apple.com>
2295
2296         Reviewed by Dave Harrison, Oliver, and Darin 
2297         (oh my!  where was superkevin on this one?)
2298
2299         <rdar://problem/4816196> "Xcode Help" crashes in WebCore::DocumentLoader::setPrimaryLoadComplete(bool)
2300
2301         More "free nil checking" we lost in the transition from ObjC to C++
2302
2303         * loader/mac/FrameLoaderMac.mm:
2304         (WebCore::FrameLoader::startLoading): Null check m_provisionalDocumentLoader and bail early.
2305         (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Ditto
2306
2307 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
2308
2309         Reviewed by Adam.
2310
2311         Move more code into editor.
2312         
2313         * WebCore.exp:
2314         * bridge/EditorClient.h:
2315         * bridge/mac/FrameMac.h:
2316         * bridge/mac/FrameMac.mm:
2317         * bridge/mac/WebCoreFrameBridge.h:
2318         * dom/Document.cpp:
2319         (WebCore::Document::relinquishesEditingFocus):
2320         (WebCore::Document::acceptsEditingFocus):
2321         (WebCore::Document::didBeginEditing):
2322         (WebCore::Document::didEndEditing):
2323         * editing/Editor.cpp:
2324         (WebCore::Editor::indent):
2325         (WebCore::Editor::outdent):
2326         * editing/Editor.h:
2327         * page/Frame.cpp:
2328         * page/Frame.h:
2329
2330 2006-11-08  Beth Dakin  <bdakin@apple.com>
2331
2332         Reviewed by Adam.
2333
2334         Add ability to HitTestResult to ask if the inner non-shared node is 
2335         content editable.
2336
2337         * WebCore.exp: Export HitTestResult::isContentEditable()
2338         * rendering/HitTestResult.cpp:
2339         (WebCore::HitTestResult::isContentEditable):
2340         * rendering/HitTestResult.h:
2341
2342 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
2343
2344         Build fix.
2345         
2346         * WebCore.xcodeproj/project.pbxproj:
2347         Add DOMCSSStyleDeclarationInternal.h to the "Copy Generated Headers" build phase.
2348
2349 2006-11-08  Timothy Hatcher  <timothy@apple.com>
2350
2351         Reviewed by Darin.
2352
2353         <rdar://problem/4713280> Would like to get an array of bounding rects rather than just the union of them for a DOMRange
2354         <rdar://problem/4804317> Would like SPI to get bounding box for a DOM range without having to change the selection
2355
2356         Added lineBoxRects and boundingBox to Range and DOMRange. These methods correspond to the DOMNode methods.
2357
2358         * bindings/objc/DOM.mm:
2359         (WebCore::kit):
2360         (-[DOMNode lineBoxRects]):
2361         (-[DOMRange boundingBox]):
2362         (-[DOMRange lineBoxRects]):
2363         * bindings/objc/DOMPrivate.h:
2364         * dom/Range.cpp:
2365         (WebCore::Range::boundingBox):
2366         (WebCore::Range::addLineBoxRects):
2367         * dom/Range.h:
2368         * rendering/RenderContainer.cpp:
2369         (WebCore::RenderContainer::addLineBoxRects):
2370         * rendering/RenderContainer.h:
2371         * rendering/RenderObject.cpp:
2372         (WebCore::RenderObject::addLineBoxRects):
2373         * rendering/RenderObject.h:
2374         * rendering/RenderText.cpp:
2375         (WebCore::RenderText::addLineBoxRects):
2376         * rendering/RenderText.h:
2377
2378 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
2379
2380         Reviewed by Oliver.
2381         
2382         Move methods from the bridge and frame into editor.
2383         
2384         * WebCore.exp:
2385         * bridge/EditorClient.h:
2386         * bridge/mac/WebCoreFrameBridge.h:
2387         * bridge/mac/WebCoreFrameBridge.mm:
2388         * editing/Editor.cpp:
2389         (WebCore::Editor::removeFormattingAndStyle):
2390         (WebCore::Editor::applyStyle):
2391         (WebCore::Editor::applyParagraphStyle):
2392         (WebCore::Editor::applyStyleToSelection):
2393         (WebCore::Editor::applyParagraphStyleToSelection):
2394         (WebCore::Editor::toggleBold):
2395         (WebCore::Editor::toggleItalic):
2396         (WebCore::Editor::selectionStartHasStyle):
2397         * editing/Editor.h:
2398         * editing/JSEditor.cpp:
2399         * page/Frame.cpp:
2400         * page/Frame.h:
2401
2402 2006-11-08  Geoffrey Garen  <ggaren@apple.com>
2403
2404         Reviewed by Beth.
2405         
2406         Fixed regression in fast/events/objc-event-api. DumpRenderTree expects to
2407         be able to dispatch user events even when off-screen, so we have to support
2408         off-screen windows when handling mouse events.
2409
2410         * platform/Screen.h:
2411         * platform/mac/PlatformMouseEventMac.mm:
2412         (WebCore::globalPoint): Grab the best screen instead of the screen you're
2413         on, since you might be off-screen.
2414         * platform/mac/ScreenMac.mm:
2415         (WebCore::screenForWindow):
2416
2417 2006-11-08  Darin Adler  <darin@apple.com>
2418
2419         - fix bug caused by last-minute change to my check-in last night
2420           that is causing layout tests to hang
2421
2422         * dom/Document.cpp: (WebCore::Document::completeURL): Added comments.
2423         * loader/FrameLoader.cpp: (WebCore::FrameLoader::submitForm): Turn
2424         a null string into an empty string before calling completeURL.
2425
2426 2006-11-08  Brady Eidson <beidson@apple.com>
2427
2428         Reviewed by Maciej
2429
2430         If the request has already been aborted, bail out of didFinishLoading()
2431         immediately.  This prevents state change notifications that aren't
2432         needed.
2433
2434         * xml/xmlhttprequest.cpp:
2435         (WebCore::XMLHttpRequest::didFinishLoading):
2436
2437 2006-11-08  Darin Adler  <darin@apple.com>
2438
2439         - another attempt to fix Qt build
2440
2441         * loader/qt/FrameLoaderQt.cpp: Added missing include of FrameLoader.h.
2442
2443 2006-11-08  Darin Adler  <darin@apple.com>
2444
2445         Reviewed by Geoff.
2446
2447         - stray bits of my FrameLoader patch that I left out by accident
2448
2449         * loader/FrameLoader.cpp:
2450         (WebCore::FrameLoader::createWindow): Use m_outgoingReferrer instead of outgoingReferrer()
2451         inside the FrameLoader class.
2452         (WebCore::FrameLoader::requestFrame): Use less DeprecatedString.
2453         (WebCore::FrameLoader::clear): Stop the redirection timer.
2454         (WebCore::FrameLoader::receivedFirstData): Added an early return instead of nesting the
2455         entire function in an if statement. Use less DeprecatedString.
2456         (WebCore::FrameLoader::scheduleLocationChange): Fix backwards ? : operator.
2457         (WebCore::FrameLoader::scheduleRefresh): Ditto.
2458         (WebCore::FrameLoader::urlSelected): Use m_outgoingReferrer instead of outgoingReferrer()
2459         inside the FrameLoader class.
2460         * loader/mac/FrameLoaderMac.mm:
2461         (WebCore::FrameLoader::load): Ditto.
2462         (WebCore::FrameLoader::loadResourceSynchronously): Ditto.
2463
2464 2006-11-07  Beth Dakin  <bdakin@apple.com>
2465
2466         Reviewed by Hyatt.
2467
2468         Another go at fix for <rdar://problem/4820814> A crash occurs at 
2469         WebCore::HitTestResult::spellingToolTip() when mousing down on 
2470         iframe at www.macsurfer.com
2471
2472         The fix from yesterday caused a layout test regression which 
2473         exposed an existing bug. The existing bug was that we allowed text 
2474         nodes to stay in the head tag, but other browsers move them to the 
2475         body. The previous fix also caused a performance regression, which 
2476         was seemingly easy to fix by moving the new clause in 
2477         HTMLParser::handleError() to be below the HTMLElement case.
2478
2479         * html/HTMLDocument.cpp:
2480         (WebCore::HTMLDocument::childAllowed): Don't allow comment nodes to 
2481         be the child of the document.
2482         * html/HTMLHeadElement.cpp:
2483         (WebCore::HTMLHeadElement::childAllowed): Do not allow non-
2484         whitespace text nodes to be children of the head.
2485         * html/HTMLHeadElement.h:
2486         * html/HTMLParser.cpp:
2487         (WebCore::HTMLParser::handleError): Error case for comment nodes.
2488         * page/FrameView.cpp:
2489         (WebCore::FrameView::handleMousePressEvent): Safety-net null check 
2490         for the original crash. 
2491
2492 2006-11-07  Darin Adler  <darin@apple.com>
2493
2494         - another attempt to fix Qt build
2495
2496         * loader/icon/IconLoader.h: Added missing include.
2497
2498 2006-11-06  Geoffrey Garen  <ggaren@apple.com>
2499
2500         Reviewed by Tim Hatcher.
2501         
2502         Removed ScreenClient. It was highly unpopular, risking my midterm re-election.
2503         
2504         None of Screen's responsibilities require up-calls to WebKit or delegates, 
2505         so WebCore can handle it all.
2506         
2507         Moved Screen back from page/ to platform/ because it's a platform
2508         abstraction again.
2509
2510         Merged scaling and flipping functions into 'toUserSpace' and 'toDeviceSpace',
2511         since the two were always used together.
2512         
2513         Changed pixel depth queries to query the deepest screen. Darin mentioned
2514         that it might have been a feature, not a bug, to use the main/menubar screen
2515         regardless of the screen you were on. For scaling and flipping that's not
2516         the case, but for querying pixel depth I think it is. You want to know
2517         about the highest pixel depth your content may display on.
2518         
2519         Tests still pass.
2520
2521         * WebCore.exp:
2522         * WebCore.xcodeproj/project.pbxproj:
2523         * page/Page.cpp:
2524         (WebCore::Page::Page):
2525         * page/Page.h:
2526         * page/Screen.cpp: Removed.
2527         * page/Screen.h: Removed.
2528         * page/ScreenClient.h: Removed.
2529         * platform/mac/PlatformMouseEventMac.mm:
2530         (WebCore::globalPoint):
2531         * platform/mac/ScreenMac.mm:
2532         (WebCore::window):
2533         (WebCore::bestScreen):
2534         (WebCore::Screen::depth):
2535         (WebCore::Screen::depthPerComponent):
2536         (WebCore::Screen::isMonochrome):
2537         (WebCore::Screen::rect):
2538         (WebCore::Screen::usableRect):
2539         (WebCore::toUserSpace):
2540         (WebCore::toDeviceSpace):
2541
2542 2006-11-07  Darin Adler  <darin@apple.com>
2543
2544         - try to fix Qt build
2545
2546         * CMakeLists.txt: Updated for some file changes.
2547         * WebCoreSources.bkl: Ditto.
2548
2549 2006-11-07  Darin Adler  <darin@apple.com>
2550
2551         Reviewed by Geoff.
2552
2553         - moved loader code from Frame/FrameMac to FrameLoader
2554
2555         * WebCore.exp:
2556         * WebCore.xcodeproj/project.pbxproj:
2557         * bindings/js/JSXSLTProcessor.h:
2558         * bindings/js/kjs_events.cpp:
2559         (KJS::JSLazyEventListener::parseCode):
2560         * bindings/js/kjs_html.cpp:
2561         (KJS::JSHTMLDocument::putValueProperty):
2562         * bindings/js/kjs_navigator.cpp:
2563         (KJS::Navigator::getValueProperty):
2564         * bindings/js/kjs_proxy.cpp:
2565         (WebCore::KJSProxy::initScriptIfNeeded):
2566         * bindings/js/kjs_window.cpp:
2567         (KJS::Screen::Screen):
2568         (KJS::createNewWindow):
2569         (KJS::Window::getValueProperty):
2570         (KJS::Window::put):
2571         (KJS::Window::isSafeScript):
2572         (KJS::WindowFunc::callAsFunction):
2573         (KJS::ScheduledAction::execute):
2574         (KJS::Location::getValueProperty):
2575         (KJS::Location::put):
2576         (KJS::Location::toString):
2577         (KJS::LocationFunc::callAsFunction):
2578         (KJS::History::getValueProperty):
2579         (KJS::HistoryFunc::callAsFunction):
2580         * bindings/objc/DOM.mm:
2581         (+[DOMNode _nodeWith:WebCore::]):
2582         * bridge/mac/FrameMac.h:
2583         * bridge/mac/FrameMac.mm:
2584         (WebCore::FrameMac::~FrameMac):
2585         (WebCore::FrameMac::setView):
2586         (WebCore::FrameMac::setStatusBarText):
2587         * bridge/mac/WebCoreFrameBridge.h:
2588         * bridge/mac/WebCoreFrameBridge.mm:
2589         (-[WebCoreFrameBridge close]):
2590         (-[WebCoreFrameBridge addData:]):
2591         (-[WebCoreFrameBridge createFrameViewWithNSView:marginWidth:marginHeight:]):
2592         (-[WebCoreFrameBridge reapplyStylesForDeviceType:]):
2593         (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
2594         (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]):
2595         (-[WebCoreFrameBridge baseURL]):
2596         (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
2597         (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
2598         (-[WebCoreFrameBridge canProvideDocumentSource]):
2599         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
2600         * css/cssparser.cpp:
2601         (WebCore::CSSParser::parseContent):
2602         * dom/DOMImplementation.cpp:
2603         (WebCore::DOMImplementation::createDocument):
2604         (WebCore::DOMImplementation::createHTMLDocument):
2605         * dom/DOMImplementation.h:
2606         * dom/Document.cpp:
2607         (WebCore::Document::readyState):
2608         (WebCore::Document::updateTitle):
2609         (WebCore::Document::open):
2610         (WebCore::Document::close):
2611         (WebCore::Document::implicitClose):
2612         (WebCore::Document::processHttpEquiv):
2613         (WebCore::Document::referrer):
2614         (WebCore::Document::finishedParsing):
2615         * dom/ProcessingInstruction.cpp:
2616         (WebCore::ProcessingInstruction::checkStyleSheet):
2617         * dom/XMLTokenizer.cpp:
2618         (WebCore::XMLTokenizer::endElementNs):
2619         (WebCore::ignorableWhitespaceHandler):
2620         (WebCore::XMLTokenizer::notifyFinished):
2621         * editing/TextIterator.cpp:
2622         (WebCore::TextIterator::rangeFromLocationAndLength):
2623         * html/HTMLAnchorElement.cpp:
2624         (WebCore::HTMLAnchorElement::defaultEventHandler):
2625         * html/HTMLBaseElement.cpp:
2626         (WebCore::HTMLBaseElement::process):
2627         * html/HTMLDocument.cpp:
2628         (WebCore::HTMLDocument::lastModified):
2629         * html/HTMLFormElement.cpp:
2630         (WebCore::HTMLFormElement::formData):
2631         (WebCore::HTMLFormElement::submit):
2632         * html/HTMLFrameElementBase.cpp:
2633         (WebCore::HTMLFrameElementBase::isURLAllowed):
2634         (WebCore::HTMLFrameElementBase::openURL):
2635         (WebCore::HTMLFrameElementBase::willRemove):
2636         * html/HTMLInputElement.cpp:
2637         (WebCore::HTMLInputElement::setValueFromRenderer):
2638         * html/HTMLLinkElement.cpp:
2639         (WebCore::HTMLLinkElement::process):
2640         * html/HTMLParser.cpp:
2641         (WebCore::HTMLParser::handleError):
2642         (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
2643         * html/HTMLPreElement.idl:
2644         * html/HTMLScriptElement.cpp:
2645         (WebCore::HTMLScriptElement::parseMappedAttribute):
2646         (WebCore::HTMLScriptElement::insertedIntoDocument):
2647         * html/HTMLTokenizer.cpp:
2648         (WebCore::HTMLTokenizer::scriptExecution):
2649         (WebCore::HTMLTokenizer::parseTag):
2650         (WebCore::HTMLTokenizer::write):
2651         (WebCore::HTMLTokenizer::stopParsing):
2652         (WebCore::HTMLTokenizer::timerFired):
2653         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
2654         (WebCore::KCanvasFilterQuartz::prepareFilter):
2655         * ksvg2/svg/SVGAElement.cpp:
2656         (WebCore::SVGAElement::defaultEventHandler):
2657         * ksvg2/svg/SVGElement.cpp:
2658         (WebCore::SVGElement::sendSVGLoadEventIfPossible):
2659         * loader/DocLoader.cpp:
2660         (WebCore::DocLoader::setLoadInProgress):
2661         * loader/FrameLoader.cpp:
2662         (WebCore::FormSubmission::FormSubmission):
2663         (WebCore::ScheduledRedirection::):
2664         (WebCore::ScheduledRedirection::ScheduledRedirection):
2665         (WebCore::cancelAll):
2666         (WebCore::getString):
2667         (WebCore::isBackForwardLoadType):
2668         (WebCore::numRequests):
2669         (WebCore::FrameLoader::FrameLoader):
2670         (WebCore::FrameLoader::~FrameLoader):
2671         (WebCore::FrameLoader::createWindow):
2672         (WebCore::FrameLoader::changeLocation):
2673         (WebCore::FrameLoader::urlSelected):
2674         (WebCore::FrameLoader::requestFrame):
2675         (WebCore::FrameLoader::loadSubframe):
2676         (WebCore::FrameLoader::submitFormAgain):
2677         (WebCore::FrameLoader::submitForm):
2678         (WebCore::FrameLoader::stopLoading):
2679         (WebCore::FrameLoader::stop):
2680         (WebCore::FrameLoader::closeURL):
2681         (WebCore::FrameLoader::cancelRedirection):
2682         (WebCore::FrameLoader::iconURL):
2683         (WebCore::FrameLoader::didOpenURL):
2684         (WebCore::FrameLoader::didExplicitOpen):
2685         (WebCore::FrameLoader::replaceContentsWithScriptResult):
2686         (WebCore::FrameLoader::executeScript):
2687         (WebCore::FrameLoader::cancelAndClear):
2688         (WebCore::FrameLoader::clear):
2689         (WebCore::FrameLoader::receivedFirstData):
2690         (WebCore::FrameLoader::responseMIMEType):
2691         (WebCore::FrameLoader::setResponseMIMEType):
2692         (WebCore::FrameLoader::begin):
2693         (WebCore::FrameLoader::write):
2694         (WebCore::FrameLoader::end):
2695         (WebCore::FrameLoader::endIfNotLoading):
2696         (WebCore::FrameLoader::startIconLoader):
2697         (WebCore::FrameLoader::commitIconURLToIconDatabase):
2698         (WebCore::FrameLoader::gotoAnchor):
2699         (WebCore::FrameLoader::finishedParsing):
2700         (WebCore::FrameLoader::loadDone):
2701         (WebCore::FrameLoader::checkCompleted):
2702         (WebCore::FrameLoader::checkEmitLoadEvent):
2703         (WebCore::FrameLoader::baseURL):
2704         (WebCore::FrameLoader::baseTarget):
2705         (WebCore::FrameLoader::completeURL):
2706         (WebCore::FrameLoader::scheduleRedirection):
2707         (WebCore::FrameLoader::scheduleLocationChange):
2708         (WebCore::FrameLoader::scheduleRefresh):
2709         (WebCore::FrameLoader::isScheduledLocationChangePending):
2710         (WebCore::FrameLoader::scheduleHistoryNavigation):
2711         (WebCore::FrameLoader::redirectionTimerFired):
2712         (WebCore::FrameLoader::encoding):
2713         (WebCore::FrameLoader::requestObject):
2714         (WebCore::FrameLoader::shouldUsePlugin):
2715         (WebCore::FrameLoader::loadPlugin):
2716         (WebCore::FrameLoader::clearRecordedFormValues):
2717         (WebCore::FrameLoader::recordFormValue):
2718         (WebCore::FrameLoader::parentCompleted):
2719         (WebCore::FrameLoader::outgoingReferrer):
2720         (WebCore::FrameLoader::lastModified):
2721         (WebCore::FrameLoader::opener):
2722         (WebCore::FrameLoader::setOpener):
2723         (WebCore::FrameLoader::openedByJavaScript):
2724         (WebCore::FrameLoader::setOpenedByJavaScript):
2725         (WebCore::FrameLoader::handleFallbackContent):
2726         (WebCore::FrameLoader::provisionalLoadStarted):
2727         (WebCore::FrameLoader::userGestureHint):
2728         (WebCore::FrameLoader::didNotOpenURL):
2729         (WebCore::FrameLoader::resetMultipleFormSubmissionProtection):
2730         (WebCore::FrameLoader::setEncoding):
2731         (WebCore::FrameLoader::addData):
2732         (WebCore::FrameLoader::canCachePage):
2733         (WebCore::FrameLoader::updatePolicyBaseURL):
2734         (WebCore::FrameLoader::setPolicyBaseURL):
2735         (WebCore::FrameLoader::scrollToAnchor):
2736         (WebCore::FrameLoader::isComplete):
2737         (WebCore::FrameLoader::isLoadingMainResource):
2738         (WebCore::FrameLoader::url):
2739         (WebCore::FrameLoader::startRedirectionTimer):
2740         (WebCore::FrameLoader::stopRedirectionTimer):
2741         (WebCore::FrameLoader::updateBaseURLForEmptyDocument):
2742         (WebCore::FrameLoader::completed):
2743         (WebCore::FrameLoader::started):
2744         (WebCore::FrameLoader::containsPlugins):
2745         (WebCore::FrameLoader::prepareForLoadStart):
2746         (WebCore::FrameLoader::setupForReplace):
2747         (WebCore::FrameLoader::setupForReplaceByMIMEType):
2748         (WebCore::FrameLoader::finalSetupForReplace):
2749         (WebCore::FrameLoader::load):
2750         (WebCore::FrameLoader::canTarget):
2751         (WebCore::FrameLoader::stopLoadingPlugIns):
2752         (WebCore::FrameLoader::stopLoadingSubresources):
2753         (WebCore::FrameLoader::stopLoadingSubframes):
2754         (WebCore::FrameLoader::stopAllLoaders):
2755         (WebCore::FrameLoader::cancelMainResourceLoad):
2756         (WebCore::FrameLoader::cancelPendingArchiveLoad):
2757         (WebCore::FrameLoader::activeDocumentLoader):
2758         (WebCore::FrameLoader::addPlugInStreamLoader):
2759         (WebCore::FrameLoader::removePlugInStreamLoader):
2760         (WebCore::FrameLoader::hasMainResourceLoader):
2761         (WebCore::FrameLoader::isLoadingSubresources):
2762         (WebCore::FrameLoader::isLoadingPlugIns):
2763         (WebCore::FrameLoader::isLoading):
2764         (WebCore::FrameLoader::addSubresourceLoader):
2765         (WebCore::FrameLoader::removeSubresourceLoader):
2766         (WebCore::FrameLoader::releaseMainResourceLoader):
2767         (WebCore::FrameLoader::setDocumentLoader):
2768         (WebCore::FrameLoader::documentLoader):
2769         (WebCore::FrameLoader::setPolicyDocumentLoader):
2770         (WebCore::FrameLoader::provisionalDocumentLoader):
2771         (WebCore::FrameLoader::setProvisionalDocumentLoader):
2772         (WebCore::FrameLoader::state):
2773         (WebCore::FrameLoader::timeOfLastCompletedLoad):
2774         (WebCore::FrameLoader::setState):
2775         (WebCore::FrameLoader::clearProvisionalLoad):
2776         (WebCore::FrameLoader::markLoadComplete):
2777         (WebCore::FrameLoader::commitProvisionalLoad):
2778         (WebCore::FrameLoader::privateBrowsingEnabled):
2779         (WebCore::FrameLoader::clientRedirectCancelledOrFinished):
2780         (WebCore::FrameLoader::clientRedirected):
2781         (WebCore::FrameLoader::shouldReload):
2782         (WebCore::FrameLoader::closeOldDataSources):
2783         (WebCore::FrameLoader::open):
2784         (WebCore::FrameLoader::isStopping):
2785         (WebCore::FrameLoader::finishedLoading):
2786         (WebCore::FrameLoader::URL):
2787         (WebCore::FrameLoader::isArchiveLoadPending):
2788         (WebCore::FrameLoader::isHostedByObjectElement):
2789         (WebCore::FrameLoader::isLoadingMainFrame):
2790         (WebCore::FrameLoader::canShowMIMEType):
2791         (WebCore::FrameLoader::representationExistsForURLScheme):
2792         (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
2793         (WebCore::FrameLoader::cancelContentPolicyCheck):
2794         (WebCore::FrameLoader::didReceiveServerRedirectForProvisionalLoadForFrame):
2795         (WebCore::FrameLoader::finishedLoadingDocument):
2796         (WebCore::FrameLoader::isReplacing):
2797         (WebCore::FrameLoader::setReplacing):
2798         (WebCore::FrameLoader::revertToProvisional):
2799         (WebCore::FrameLoader::subframeIsLoading):
2800         (WebCore::FrameLoader::willChangeTitle):
2801         (WebCore::FrameLoader::loadType):
2802         (WebCore::FrameLoader::stopPolicyCheck):
2803         (WebCore::FrameLoader::continueAfterContentPolicy):
2804         (WebCore::FrameLoader::continueAfterWillSubmitForm):
2805         (WebCore::FrameLoader::didFirstLayout):
2806         (WebCore::FrameLoader::frameLoadCompleted):
2807         (WebCore::FrameLoader::firstLayoutDone):
2808         (WebCore::FrameLoader::isQuickRedirectComing):
2809         (WebCore::FrameLoader::closeDocument):
2810         (WebCore::FrameLoader::detachChildren):
2811         (WebCore::FrameLoader::checkLoadComplete):
2812         (WebCore::FrameLoader::numPendingOrLoadingRequests):
2813         (WebCore::FrameLoader::setClient):
2814         (WebCore::FrameLoader::client):
2815         (WebCore::FrameLoader::userAgent):
2816         (WebCore::FrameLoader::createEmptyDocument):
2817         (WebCore::FrameLoader::tokenizerProcessedData):
2818         (WebCore::FrameLoader::didTellBridgeAboutLoad):
2819         (WebCore::FrameLoader::haveToldBridgeAboutLoad):
2820         (WebCore::FrameLoader::handledOnloadEvents):
2821         (WebCore::FrameLoader::frameDetached):
2822         (WebCore::FrameLoader::setTitle):
2823         (WebCore::FrameLoaderClient::~FrameLoaderClient):
2824         * loader/FrameLoader.h:
2825         (WebCore::):
2826         * loader/FrameLoaderClient.h:
2827         * loader/PluginDocument.cpp:
2828         (WebCore::PluginTokenizer::createDocumentStructure):
2829         (WebCore::PluginTokenizer::writeRawData):
2830         * loader/ResourceLoader.h:
2831         * loader/TextResourceDecoder.cpp:
2832         (WebCore::TextResourceDecoder::checkForHeadCharset):
2833         * loader/icon/IconLoader.cpp:
2834         (WebCore::IconLoader::startLoading):
2835         (WebCore::IconLoader::finishLoading):
2836         * loader/loader.cpp:
2837         (WebCore::Loader::didReceiveResponse):
2838         * loader/mac/DocumentLoaderMac.mm:
2839         (WebCore::DocumentLoader::~DocumentLoader):
2840         (WebCore::DocumentLoader::stopLoading):
2841         (WebCore::DocumentLoader::finishedLoading):
2842         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
2843         (WebCore::DocumentLoader::setPrimaryLoadComplete):
2844         * loader/mac/FrameLoaderMac.mm:
2845         (WebCore::FrameLoader::load):
2846         (WebCore::FrameLoader::startLoading):
2847         (WebCore::FrameLoader::cancelMainResourceLoad):
2848         (WebCore::FrameLoader::receivedMainResourceError):
2849         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
2850         (WebCore::FrameLoader::commitProvisionalLoad):
2851         (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
2852         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
2853         (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
2854         (WebCore::FrameLoader::detachFromParent):
2855         (WebCore::FrameLoader::addExtraFieldsToRequest):
2856         (WebCore::FrameLoader::loadResourceSynchronously):
2857         (WebCore::FrameLoader::createFrame):
2858         (WebCore::FrameLoader::objectContentType):
2859         (WebCore::nsArray):
2860         (WebCore::FrameLoader::createPlugin):
2861         (WebCore::FrameLoader::redirectDataToPlugin):
2862         (WebCore::FrameLoader::createJavaAppletWidget):
2863         (WebCore::FrameLoader::partClearedInBegin):
2864         (WebCore::FrameLoader::saveDocumentState):
2865         (WebCore::FrameLoader::restoreDocumentState):
2866         (WebCore::FrameLoader::overrideMediaType):
2867         (WebCore::FrameLoader::mainResourceData):
2868         (WebCore::FrameLoader::canGoBackOrForward):
2869         (WebCore::FrameLoader::originalRequestURL):
2870         (WebCore::FrameLoader::getHistoryLength):
2871         (WebCore::FrameLoader::goBackOrForward):
2872         (WebCore::FrameLoader::historyURL):
2873         (WebCore::FrameLoader::didFinishLoad):
2874         * loader/mac/LoaderFunctionsMac.mm:
2875         (WebCore::ServeSynchronousRequest):
2876         (WebCore::CheckCacheObjectStatus):
2877         * loader/mac/ResourceLoaderMac.mm:
2878         (WebCore::ResourceLoader::cancel):
2879         * loader/mac/SubresourceLoaderMac.mm:
2880         (WebCore::SubresourceLoader::create):
2881         * loader/qt/FrameLoaderQt.cpp: Added.
2882         (WebCore::FrameLoader::submitForm):
2883         (WebCore::FrameLoader::urlSelected):
2884         (WebCore::FrameLoader::setTitle):
2885         (WebCore::FrameLoader::createFrame):
2886         (WebCore::FrameLoader::objectContentType):
2887         (WebCore::FrameLoader::createPlugin):
2888         (WebCore::FrameLoader::createJavaAppletWidget):
2889         (WebCore::FrameLoader::originalRequestURL):
2890         * page/DOMWindow.cpp:
2891         (WebCore::DOMWindow::document):
2892         * page/Frame.cpp:
2893         (WebCore::Frame::~Frame):
2894         (WebCore::Frame::reparseConfiguration):
2895         (WebCore::Frame::shouldDragAutoNode):
2896         (WebCore::Frame::prepareForUserAction):
2897         (WebCore::FramePrivate::FramePrivate):
2898         (WebCore::FramePrivate::~FramePrivate):
2899         * page/Frame.h:
2900         * page/FramePrivate.h:
2901         * page/FrameView.cpp:
2902         (WebCore::FrameView::layout):
2903         (WebCore::FrameView::mediaType):
2904         * page/FrameView.h:
2905         * page/PageState.cpp:
2906         (WebCore::PageState::PageState):
2907         (WebCore::PageState::restoreJavaScriptState):
2908         * platform/mac/CookieJar.mm:
2909         (WebCore::setCookies):
2910         * platform/mac/TextCodecMac.cpp:
2911         * platform/mac/WebFontCache.mm:
2912         (+[WebFontCache fontWithFamily:traits:size:]):
2913         * platform/network/cf/ResourceHandleCFNet.cpp:
2914         (WebCore::ResourceHandle::start):
2915         * platform/network/mac/ResourceHandleMac.mm:
2916         (WebCore::ResourceHandle::start):
2917         * platform/qt/FrameQt.cpp:
2918         * platform/qt/FrameQt.h:
2919         * rendering/RenderApplet.cpp:
2920         (WebCore::RenderApplet::createWidgetIfNecessary):
2921         * rendering/RenderBlock.h:
2922         * rendering/RenderPartObject.cpp:
2923         (WebCore::isURLAllowed):
2924         (WebCore::RenderPartObject::updateWidget):
2925         * xml/DOMParser.cpp:
2926         (WebCore::DOMParser::parseFromString):
2927         * xml/XSLTProcessor.cpp:
2928         (WebCore::XSLTProcessor::createDocumentFromSource):
2929         * xml/xmlhttprequest.cpp:
2930         (WebCore::XMLHttpRequest::getResponseXML):
2931
2932 2006-11-07  Anders Carlsson  <acarlsson@apple.com>
2933
2934         Reviewed by Geoff.
2935
2936         Get rid of some duplicate editing enums. Also rename EAlter to EAlteration.
2937         
2938         * bridge/mac/FrameMac.mm:
2939         (WebCore::FrameMac::registerCommandForUndoOrRedo):
2940         * bridge/mac/WebCoreFrameBridge.h:
2941         * bridge/mac/WebCoreFrameBridge.mm:
2942         (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
2943         (-[WebCoreFrameBridge alterCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
2944         (-[WebCoreFrameBridge alterCurrentSelection:SelectionController::verticalDistance:]):
2945         (-[WebCoreFrameBridge selectionGranularity]):
2946         (-[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:]):
2947         (-[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:]):
2948         (-[WebCoreFrameBridge setTypingStyle:withUndoAction:]):
2949         (-[WebCoreFrameBridge applyStyle:withUndoAction:]):
2950         (-[WebCoreFrameBridge applyParagraphStyle:withUndoAction:]):
2951         * editing/SelectionController.cpp:
2952         (WebCore::SelectionController::setModifyBias):
2953         (WebCore::SelectionController::modify):
2954         * editing/SelectionController.h:
2955         (WebCore::SelectionController::):
2956         * editing/TextGranularity.h:
2957
2958 2006-11-07  Brady Eidson  <beidson@apple.com>
2959
2960         Reviewed by Maciej
2961
2962         Changed the check for "top level frame" to something much more valid
2963
2964         * page/Frame.cpp:
2965         (WebCore::Frame::endIfNotLoading):
2966
2967 2006-11-07  Beth Dakin  <bdakin@apple.com>
2968
2969         Reviewed by Hyatt (yesterday).
2970
2971         Here is part of my patch from yesterday that is safe to roll back 
2972         in. It will make the BuildBot happy.
2973
2974         * rendering/HitTestResult.cpp:
2975         (WebCore::HitTestResult::spellingToolTip): Null-check 
2976         m_innerNonSharedNode.
2977
2978 2006-11-07  Darin Adler  <darin@apple.com>
2979
2980         * loader/icon/IconLoader.cpp: (WebCore::IconLoader::didReceiveResponse):
2981         Comment grammar fix.
2982
2983 2006-11-07  Darin Adler  <darin@apple.com>
2984
2985         Rolled out change for <rdar://problem/4820814>.
2986
2987         Beth's planning on landing a new change for it soon, but in the mean time
2988         we need layout tests succeeding again.
2989
2990 2006-11-07  Darin Adler  <darin@apple.com>
2991
2992         Reviewed by Brady.
2993
2994         - fix <rdar://problem/4752069> 9A274: World of Warcraft Launcher
2995           crashes on launch in WebCore::ResourceLoader::start
2996
2997         No layout test, because this depends on cached icons, although there's
2998         perhaps a way to write a test for it with some further ingenuity.
2999
3000         * loader/icon/IconLoader.h: Make IconLoader inherit from Noncopyable
3001         to make explicit the fact that it can't be successfully copied.
3002         Remove notifyIconChanged function and put the contents in the caller.
3003         This eliminates the need for IconLoaderMac.mm. Added finishedLoading
3004         and clearLoadingState functions to share code. Removed m_url, since the
3005         resource handle already stores the URL. Renamed m_resourceLoader to
3006         m_handle to reflect the class's name change. Removed the 4096-byte
3007         inline buffer from m_data, since the malloc savings is not sufficient
3008         to offset the additional memory use. Removed m_httpStatusCode because
3009         we can instead cancel the load when we get a status code that reflects
3010         failure. Added m_loadIsInProgress boolean because we need to detect
3011         loads that complete during the ResourceHandle::create function call.
3012
3013         * loader/icon/IconLoader.cpp:
3014         (WebCore::IconLoader::IconLoader): Initialize m_loadIsInProgress.
3015         Don't initialize m_httpStatusCode.
3016         (WebCore::IconLoader::~IconLoader): Updated for name change.
3017         (WebCore::IconLoader::startLoading): Added code to use the
3018         m_loadIsInProgress flag to detect if the load completed while inside
3019         the ResourceHandle::create function. Removed code to set m_url.
3020         (WebCore::IconLoader::stopLoading): Call clearLoadingState to share
3021         more code.
3022         (WebCore::IconLoader::didReceiveResponse): Kill the ResourceHandle
3023         and finish loading if the HTTP status code indicates failure.
3024         (WebCore::IconLoader::didReceiveData): Removed assertion that checks
3025         the ResourceHandle, since we can't do that any more.
3026         (WebCore::IconLoader::didFinishLoading): Changed to call finishLoading
3027         so we can share code with the new didReceiveResponse code path.
3028         (WebCore::IconLoader::finishLoading): Moved code here from the
3029         didFinishLoading callback. Pass a URL when calling
3030         commitIconURLToIconDatabase. Call notifyIconChanged directly here
3031         instead of using a separate function. Call clearLoadingState to
3032         share more code with stopLoading.
3033         (WebCore::IconLoader::clearLoadingState): Added.
3034
3035         * loader/mac/IconLoaderMac.mm: Removed.
3036         * WebCore.xcodeproj/project.pbxproj: Removed IconLoaderMac.mm.
3037
3038 2006-11-06  David Harrison  <harrison@apple.com>
3039
3040         Reviewed by Darin.
3041
3042         <rdar://problem/4714993> REGRESSION: After replacing a misspelled word in a sentence, the selected word wraps down to next line (10428)
3043
3044         * editing/pasteboard/3976872-expected.txt:
3045         * editing/pasteboard/4076267-2-expected.txt:
3046         * editing/pasteboard/4076267-3-expected.txt:
3047         * editing/pasteboard/4076267-expected.txt:
3048         * editing/pasteboard/8145-1-expected.txt:
3049         * editing/pasteboard/paste-empty-startcontainer-expected.txt: Removed.
3050         * editing/pasteboard/paste-match-style-001-expected.txt:
3051         * editing/pasteboard/paste-match-style-002-expected.txt:
3052         * editing/pasteboard/paste-text-019-expected.txt:
3053         * editing/pasteboard/pasting-tabs-expected.txt:
3054         Updated because pasting text with no newlines does not use intermediate div.
3055         
3056         * editing/markup.cpp:
3057         (WebCore::fillContainerFromString):
3058         First parameter is now a Container so a fragment can be passed.
3059         
3060         (WebCore::createFragmentFromText):
3061         A string with no newlines gets added inline, rather than being put into a paragraph.
3062
3063 2006-11-06  Beth Dakin  <bdakin@apple.com>
3064
3065         Reviewed by Hyatt.
3066
3067         Fix for <rdar://problem/4820814> A crash occurs at 
3068         WebCore::HitTestResult::spellingToolTip() when mousing down on 
3069         iframe at www.macsurfer.com
3070
3071         The bug here is that the source of the iframe is only a comment, 
3072         and we were not properly constructing the frame because it was 
3073         sort-of empty but not.
3074
3075         * html/HTMLDocument.cpp:
3076         (WebCore::HTMLDocument::childAllowed): newChild is NOT allowed if 
3077         it is a comment node.
3078         * html/HTMLParser.cpp:
3079         (WebCore::HTMLParser::handleError): if n is a comment node and 
3080         there is no head, we create a head, insert in the document, and add 
3081         the comment node as a child. This is what Firefox does too. 
3082         * page/FrameView.cpp:
3083         (WebCore::FrameView::handleMousePressEvent): Safe-guard for the 
3084         fix. It is possible to get a mouse event without a target node, so 
3085         we null check it. (Of course, in the case of this bug, it should 
3086         not have been null, but it is a good thing to check for anyway.
3087         * rendering/HitTestResult.cpp:
3088         (WebCore::HitTestResult::spellingToolTip): Null-check 
3089         m_innerNonSharedNode.
3090
3091 2006-11-06  Justin Garcia  <justin.garcia@apple.com>
3092
3093         Reviewed by harrison
3094         
3095         <rdar://problem/4641880>
3096         Setting bullets to existing text grabs subsequent paragraph
3097         
3098         When a selection ends at the start of a paragraph, we rarely paint 
3099         the selection gap before that paragraph, because there often is no gap.  
3100         In a case like this, it's not obvious to the user that the selection 
3101         ends "inside" that paragraph, so it would be confusing if 
3102         InsertUn{Ordered}List and Indent/Outdent operated on that paragraph.
3103         
3104         * editing/FormatBlockCommand.cpp:
3105         (WebCore::FormatBlockCommand::doApply): Moved the check for editability of
3106         the selection to a more appropriate place.  Change the endingSelection
3107         if it ends at the start of a paragraph.
3108         * editing/IndentOutdentCommand.cpp:
3109         (WebCore::IndentOutdentCommand::doApply): Ditto.
3110         * editing/InsertListCommand.cpp:
3111         (WebCore::InsertListCommand::doApply): Ditto.
3112
3113 2006-11-06  Brady Eidson  <beidson@apple.com>
3114
3115         Reviewed by Sarge
3116
3117         <rdar://problem/4822911> - ASSERTION was a little overzealous.  
3118         Toned it down a bit.
3119
3120         * xml/xmlhttprequest.cpp:
3121         (WebCore::XMLHttpRequest::didFinishLoading):  Toned down assertion
3122
3123 2006-11-06  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
3124
3125         Reviewed by Maciej.
3126
3127         Linux\Gdk build fixes.
3128
3129         * loader/icon/IconDatabase.cpp:
3130         * loader/icon/SQLStatement.h:
3131         * platform/gdk/ChromeClientGdk.h: Added.
3132         (WebCore::ChromeClientGdk::~ChromeClientGdk):
3133         * platform/gdk/CursorGdk.cpp:
3134         (WebCore::pointerCursor):
3135         * platform/gdk/FrameGdk.cpp:
3136         (WebCore::doScroll):
3137         (WebCore::FrameGdk::FrameGdk):
3138         (WebCore::FrameGdk::submitForm):
3139         (WebCore::FrameGdk::urlSelected):
3140         (WebCore::FrameGdk::openURL):
3141         (WebCore::FrameGdk::handleGdkEvent):
3142         * platform/gdk/FrameGdk.h:
3143         (WebCore::FrameGdk::client):
3144         * platform/gdk/RenderPopupMenuGdk.cpp:
3145         (WebCore::PopupMenu::updateFromElement):
3146         * platform/gdk/ScreenGdk.cpp:
3147         * platform/gdk/TemporaryLinkStubs.cpp:
3148         (Slider::focusPolicy):
3149         (WebCore::ServeSynchronousRequest):
3150         (FrameGdk::goBackOrForward):
3151         (FrameGdk::getHistoryLength):
3152         (FrameGdk::historyURL):
3153         (ChromeClientGdk::canRunModal):
3154         (ChromeClientGdk::runModal):
3155         (WebCore::systemBeep):
3156         (WebCore::CachedResource::setPlatformResponse):
3157         (Path::transform):
3158         (ResourceLoader::loadsBlocked):
3159         (IconLoader::notifyIconChanged):
3160         * platform/network/gdk/ResourceHandleManager.cpp:
3161         (WebCore::writeCallback):
3162         (WebCore::ResourceHandleManager::downloadTimerCallback):
3163         (WebCore::ResourceHandleManager::remove):
3164         (WebCore::ResourceHandleManager::add):
3165
3166 2006-11-06  Geoffrey Garen  <ggaren@apple.com>
3167
3168         build fix.
3169         
3170         * WebCore.xcodeproj/project.pbxproj:
3171
3172 2006-11-06  Geoffrey Garen  <ggaren@apple.com>
3173
3174         Reviewed by Maciej, Anders, Darin.
3175
3176         Removed the Page bridge. Beefed up Chrome. Added Screen and ScreenClient.
3177         Fixed a minor where WebCore would always assume it was displayed on the 
3178         monitor containing the menubar. window.open and window.showModalDialog 
3179         are now cross-platform. 
3180         
3181         Layout tests, manual-tests/show-modal-dialog, and manual-tests/
3182         window-open-features-parsing all pass. I verified the new screen functionality
3183         by running in DRT, and checking whether WebCore knew it was off-screen.
3184         
3185         Some refactoring remains, as all were not pleased by this design. I see
3186         in my future another patch.
3187
3188         * bindings/js/kjs_window.cpp: Screen is now a stand-alone object with a
3189         client, to encapsulate asking the platform questions about the screen occupied by
3190         the page. (Previously, we always assumed we were on screen 0, which was a bug.)
3191         * bridge/mac/WebCoreFrameBridge.mm:
3192         (createMouseEventFromDraggingInfo): Reversed argument order, to match other
3193         functions.
3194         (-[WebCoreFrameBridge dragSourceMovedTo:]): ditto
3195         (-[WebCoreFrameBridge dragSourceEndedAt:operation:]): ditto
3196         * bridge/mac/WebCoreFrameNamespaces.h: Removed. Dead Code.
3197         * bridge/mac/WebCoreFrameNamespaces.mm: Removed. Dead Code.
3198         * bridge/mac/WebCorePageBridge.h: Removed. Dead Code.
3199         * bridge/mac/WebCorePageBridge.mm: Removed. Dead Code.
3200         * manual-tests/window-open-features-parsing.html: Updated for accuracy.
3201         (In this case, neither size nor position is specified, so you should
3202         get the default window size and position.)
3203         * page/Screen.cpp: Added. Includes screen-related helper functions used
3204         in WebCore and WebKit.
3205         * platform/PlatformMouseEvent.h: Exported common code so it doesn't have
3206         to be duplicated. Renamed "position" to "point" since both were used,
3207         and "point" seemed clearer.
3208         * platform/Screen.h: Removed. Dead Code.
3209         * platform/mac/LoggingMac.mm: Added. Moved code here from WebCorePageBridge
3210         initialization.
3211
3212 2006-11-06  Graham Dennis  <graham.dennis@gmail.com>
3213
3214         Reviewed by Tim Hatcher.
3215
3216         Part of patch for http://bugs.webkit.org/show_bug.cgi?id=11323
3217         Link dragging behaviour does not obey WebKitEditableLinkBehavior WebPref
3218         
3219         No layout tests added as this must be tested manually by the test
3220         WebCore/manual-tests/contenteditable-link.html
3221
3222         * WebCore.exp: Exported HitTestResult::isLiveLink().
3223         * html/HTMLAnchorElement.cpp:
3224         (WebCore::HTMLAnchorElement::HTMLAnchorElement):
3225         (WebCore::HTMLAnchorElement::defaultEventHandler):
3226         (WebCore::HTMLAnchorElement::isLiveLink):
3227         * html/HTMLAnchorElement.h: added m_wasShiftKeyDownOnMouseDown variable
3228         to track shift key status.
3229         * manual-tests/contenteditable-link.html: Added description about link
3230         dragging behaviour.
3231         * rendering/HitTestResult.cpp:
3232         (WebCore::HitTestResult::isLiveLink): Added.
3233         * rendering/HitTestResult.h:
3234
3235 2006-11-06  Brady Eidson  <beidson@apple.com>
3236
3237         Reviewed by Oliver
3238
3239         Fixes <rdar://problem/4812674> and http://bugs.webkit.org/show_bug.cgi?id=11530
3240         For now, we have to not load favicons when we have no Document - linking directly 
3241         to PDFs being the common case
3242
3243         * loader/icon/IconLoader.cpp:
3244         (WebCore::IconLoader::startLoading): Check for the document and return if none
3245
3246 2006-11-06  Brady Eidson  <beidson@apple.com>
3247
3248         Reviewed by Dave Harrison
3249
3250         <rdar://problem/4801066>
3251         Added a critical null frameLoader() check
3252
3253         * loader/mac/MainResourceLoaderMac.mm:
3254         (WebCore::MainResourceLoader::loadNow):
3255
3256 2006-11-06  David Harrison  <harrison@apple.com>
3257
3258         Reviewed by Darin.
3259
3260         <rdar://problem/4813973> Pressing delete key to remove empty quoted line leaves cursor mis-positioned
3261
3262         Test:
3263         * editing/deleting/delete-br-012.html
3264         
3265         * editing/DeleteSelectionCommand.cpp:
3266         (WebCore::DeleteSelectionCommand::handleSpecialCaseBRDelete):
3267         Update m_endingPosition when preventing merge.
3268         Also removed setting of m_mergeBlocksAfterDelete when this function returns true, because is is not checked in this case.
3269
3270 2006-11-06  Mark Rowe  <bdash@webkit.org>
3271
3272         Reviewed by Maciej.
3273
3274         http://bugs.webkit.org/show_bug.cgi?id=11526
3275         Bug 11526: REGRESSION(r17610): Layout test failure in svg/custom/create-metadata-element.svg
3276
3277         Update DOMNode::toString to always use className rather than preferring nodeName.
3278
3279         * bindings/js/kjs_dom.cpp:
3280         (KJS::DOMNode::toString): Match the format returned by valueOf.
3281
3282 2006-11-06  Oliver Hunt  <oliver@apple.com>
3283
3284         Reviewed by Maciej.
3285
3286         Fix RTL text in SVG to have correct positioning
3287
3288         * rendering/SVGRootInlineBox.cpp:
3289         (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
3290
3291 2006-11-06  Alexey Proskuryakov  <ap@webkit.org>
3292
3293         Reviewed by Maciej.
3294
3295         http://bugs.webkit.org/show_bug.cgi?id=11517
3296         REGRESSION: Flash clicks/interactivity not working properly
3297
3298         * bridge/mac/FrameMac.mm:
3299         (WebCore::FrameMac::handleMouseMoveEvent):
3300         (WebCore::FrameMac::handleMouseReleaseEvent):
3301         Restore parts of event dispatching that were removed when fixing
3302         bug 7323 - just bypass those for subframes.
3303
3304 2006-11-05  Darin Adler  <darin@apple.com>
3305
3306         - quick attempt to fix the no-SVG build
3307
3308         * platform/graphics/svg/SVGResource.cpp:
3309         * platform/graphics/svg/SVGResource.h:
3310         * platform/graphics/svg/SVGResourceClipper.cpp:
3311         * platform/graphics/svg/SVGResourceClipper.h:
3312         * platform/graphics/svg/SVGResourceImage.h:
3313         * platform/graphics/svg/SVGResourceMarker.cpp:
3314         * platform/graphics/svg/SVGResourceMarker.h:
3315         * platform/graphics/svg/SVGResourceMasker.cpp:
3316         * platform/graphics/svg/SVGResourceMasker.h:
3317         * platform/graphics/svg/cg/SVGResourceMaskerCg.h:
3318         * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
3319         * platform/graphics/svg/qt/SVGResourceImageQt.cpp:
3320         * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
3321         Added #ifdef SVG_SUPPORT to these files.
3322
3323 2006-11-05  MorganL  <morganl.webkit@yahoo.com>
3324
3325         Reviewed & landed by Maciej.
3326
3327         Fixes http://bugs.webkit.org/show_bug.cgi?id=11265
3328
3329         * platform/win/ResourceLoaderWin.cpp:
3330         (WebCore::transferJobStatusCallback):
3331         (WebCore::ResourceLoader::start):
3332
3333 2006-11-04  Maciej Stachowiak  <mjs@apple.com>
3334
3335         Reviewed by Oliver.
3336
3337         - moved FormData and FormDataStream to platform/network directory
3338
3339         * WebCore.xcodeproj/project.pbxproj:
3340         * bridge/mac/WebCoreFrameBridge.mm:
3341         * loader/FormData.cpp: Removed.
3342         * loader/FormData.h: Removed.
3343         * loader/mac/FormDataStream.h: Removed.
3344         * loader/mac/FormDataStream.m: Removed.
3345         * loader/mac/FrameLoaderMac.mm:
3346         * loader/mac/SubresourceLoaderMac.mm:
3347         * platform/network/mac/FormDataStreamMac.h: Added.
3348         * platform/network/mac/FormDataStreamMac.mm: Added.
3349         * platform/network/mac/ResourceRequestMac.mm:
3350
3351 2006-11-05  Steve Falkenburg  <sfalken@apple.com>
3352
3353         Fix build breaks
3354
3355         * loader/DocumentLoader.h:
3356         * platform/win/ScreenWin.cpp:
3357
3358 2006-11-05  Darin Adler  <darin@apple.com>
3359
3360         Reviewed by Geoff.
3361
3362         - more preparation for splitting up Frame into sub-pieces
3363         - removed unnecessary includes from Frame.h
3364
3365         * page/Frame.h: Removed unneeded includes and forward declarations.
3366         Added additional forward declarations. Removed the constant
3367         NoXPosForVerticalArrowNavigation, now moved inside SelectionController.
3368         Created sections of functions to be moved into Chrome, Editor,
3369         EventHandler, FrameLoader, SelectionController, and the Platform
3370         directory, as well as marking one function for deletion.
3371
3372         * page/FramePrivate.h: Removed the definition of the constructor and
3373         destructor and removed unnecessary includes.
3374
3375         * page/FrameView.h: Removed unneeded forward declarations and friend
3376         declarations. Created a section of functions and data to be moved into
3377         EventHandler.
3378
3379         * bridge/mac/FrameMac.h: Removed unneeded forward declarations.
3380         Created sections of functions and data to be moved into Chrome,
3381         Editor, EventHandler, FrameLoader, and the Platform directory.
3382
3383         * bridge/mac/WebCoreFrameBridge.h: Removed obsolete comment.
3384         Removed unused methods areScrollbarsVisible,
3385         nextValidKeyViewOutsideWebFrameViews, and fileWrapperForURL:.
3386
3387         * page/Frame.cpp:
3388         (WebCore::Frame::begin): Added an overload, so Frame.h doesn't have
3389         to include KURL.h just for the KURL default constructor.
3390         (WebCore::FramePrivate::FramePrivate): Moved here from FramePrivate.h.
3391         (WebCore::FramePrivate::~FramePrivate): Ditto.
3392
3393         * page/FrameView.cpp: Removed unused scrollbarMoved and scrollingSelf
3394         booleans, scrollbarMoved and cleared funcitons.
3395         (WebCore::FrameView::clear): Moved the code from the cleared
3396         function in here.
3397         (WebCore::FrameView::scrollTo): Removed code to set scrollingSelf.
3398
3399         * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac): Updated
3400         for changes to header.
3401
3402         * editing/SelectionController.cpp:
3403         (WebCore::SelectionController::setSelection):
3404         (WebCore::SelectionController::xPosForVerticalArrowNavigation):
3405         Moved NoXPosForVerticalArrowNavigation into this file.
3406
3407         * bindings/js/kjs_events.cpp:
3408         * bindings/js/kjs_html.cpp:
3409         * bindings/js/kjs_window.cpp:
3410         * bridge/mac/WebCoreAXObject.mm:
3411         * bridge/mac/WebCoreFrameBridge.mm:
3412         * css/cssstyleselector.cpp:
3413         * dom/Document.cpp:
3414         * dom/Element.cpp:
3415         * dom/EventTargetNode.cpp:
3416         * dom/MouseRelatedEvent.cpp:
3417         * dom/XMLTokenizer.cpp:
3418         * html/HTMLBaseElement.cpp:
3419         * html/HTMLDocument.cpp:
3420         * html/HTMLEmbedElement.cpp:
3421         * html/HTMLFrameElementBase.cpp:
3422         * html/HTMLGenericFormElement.cpp:
3423         * html/HTMLObjectElement.cpp:
3424         * html/HTMLTokenizer.cpp:
3425         * loader/mac/FrameLoaderMac.mm:
3426         * page/PageState.cpp:
3427         * rendering/RenderApplet.cpp:
3428         * rendering/RenderBlock.cpp:
3429         * rendering/RenderLayer.cpp:
3430         * rendering/RenderObject.cpp:
3431         * rendering/RenderPartObject.cpp:
3432         * rendering/RenderTreeAsText.cpp:
3433         * xml/XSLTProcessor.cpp:
3434         Added includes as needed to keep compiling, since there are fewer
3435         includes in Frame.h.
3436
3437 2006-11-05  Alexey Proskuryakov  <ap@nypop.com>
3438
3439         Reviewed by Dave Harrison.
3440
3441         http://bugs.webkit.org/show_bug.cgi?id=11402
3442         REGRESSION: onChange does not work anymore for 1st item in popup
3443
3444         * html/HTMLSelectElement.cpp:
3445         (WebCore::HTMLSelectElement::HTMLSelectElement):
3446         (WebCore::HTMLSelectElement::reset):
3447         Set m_lastOnChangeIndex to -1.
3448
3449 2006-11-04  Darin Adler  <darin@apple.com>
3450
3451         Reviewed by Anders.
3452
3453         - fix http://bugs.webkit.org/show_bug.cgi?id=11453
3454           REGRESSION: Status bar always shows cancelled opening the page
3455
3456         * platform/network/mac/ResourceHandleMac.mm:
3457         (WebCore::ResourceHandle::~ResourceHandle): Removed call to cancel.
3458         Since the subresource owns the resource handle, there's no need to cancel.
3459         This arrangement is only temporary, anyway, since Maciej will soon change
3460         things so that the subresource loader uses the resource handle and the
3461         resource handle doesn't know anything about the subresource loader.
3462
3463 2006-11-04  Darin Adler  <darin@apple.com>
3464
3465         Reviewed by Maciej.
3466
3467         - converted more of the loader machinery to work with cross-platform
3468           data structures instead of Macintosh-specific ones
3469
3470           converted most uses of NSURL to KURL and NSEvent to DOM Event in
3471           loader classes
3472
3473           moved download function out of FrameLoader.h to avoid reference to
3474           NSURLConnection
3475
3476           added DOM Event parameters to various functions so that the handlers
3477           can use the DOM Event instead of the global "current NSEvent";
3478           includes Frame::submitForm, HTMLFormElement::prepareSubmit,
3479           HTMLFormElement::submit, FrameLoader::load
3480
3481           moved the setMainFrame call that hands ownership to the Page
3482           into one of the Frame constructors, and removed it from all
3483           the clients
3484
3485           removed const from Event parameter to the urlSelected function
3486           (we rarely use const with DOM elements)
3487
3488           removed some redundant includes and declarations from various
3489           header files
3490
3491           removed NSURL parameter from userAgent function -- if we need it we
3492           can add it back, but converting from NSURL to KURL and back is
3493           inefficient enough that it's best to have it out for now (since it's
3494           been unused for years) -- if we add it back, we can choose an
3495           appropriate parameter type that's always inexpensive to pass
3496
3497           did some basic cleanup in the IconLoader class, including removing
3498           an unnecessary loop that added icon data a byte at a time
3499
3500           renamed safeLoad to load, since it's no different from the other
3501           FrameLoader load functions, safety-wise
3502
3503           fixed some code that was trying to distinguish null frame name from
3504           empty string frame name -- both should be handled the same, but callers
3505           were doing it by checking for empty and turning it into null (in a way
3506           that was causing extra round trips between NSString and WebCore::String)
3507
3508           corrected all uses of "get" and "post" to be uppercase "GET" and "POST"
3509           and got rid of case-insensitive compares of methods
3510
3511         * WebCore.exp:
3512         * WebCore.xcodeproj/project.pbxproj:
3513         * bindings/js/kjs_navigator.cpp:
3514         (KJS::Navigator::getValueProperty):
3515         * bridge/mac/FrameMac.h:
3516         * bridge/mac/FrameMac.mm:
3517         (WebCore::FrameMac::submitForm):
3518         (WebCore::FrameMac::urlSelected):
3519         (WebCore::FrameMac::userAgent):
3520         * bridge/mac/FrameViewMac.mm:
3521         * bridge/mac/WebCoreAXObject.mm:
3522         (-[WebCoreAXObject rendererForView:]):
3523         * bridge/mac/WebCorePageBridge.h:
3524         * bridge/mac/WebCorePageBridge.mm:
3525         * bridge/mac/WebCoreSettings.mm:
3526         * bridge/win/FrameWin.cpp:
3527         (WebCore::FrameWin::urlSelected):
3528         (WebCore::FrameWin::submitForm):
3529         * bridge/win/FrameWin.h:
3530         * dom/MouseRelatedEvent.cpp:
3531         * dom/MouseRelatedEvent.h:
3532         * dom/UIEvent.cpp:
3533         (WebCore::UIEvent::~UIEvent):
3534         * dom/UIEvent.h:
3535         * dom/UIEventWithKeyState.h:
3536         * dom/XMLTokenizer.cpp:
3537         (WebCore::openFunc):
3538         * html/HTMLAnchorElement.cpp:
3539         (WebCore::HTMLAnchorElement::defaultEventHandler):
3540         * html/HTMLButtonElement.cpp:
3541         (WebCore::HTMLButtonElement::defaultEventHandler):
3542         * html/HTMLFormElement.cpp:
3543         (WebCore::HTMLFormElement::submitClick):
3544         (WebCore::HTMLFormElement::prepareSubmit):
3545         (WebCore::HTMLFormElement::submit):
3546         * html/HTMLFormElement.h:
3547         * html/HTMLInputElement.cpp:
3548         (WebCore::HTMLInputElement::defaultEventHandler):
3549         * html/HTMLSelectElement.cpp:
3550         (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
3551         * loader/DocumentLoader.h:
3552         * loader/FrameLoader.h:
3553         * loader/FrameLoaderClient.h:
3554         * loader/NavigationAction.h:
3555         (WebCore::NavigationAction::event):
3556         * loader/icon/IconLoader.cpp:
3557         (WebCore::IconLoader::create):
3558         (WebCore::IconLoader::startLoading):
3559         (WebCore::IconLoader::didReceiveData):
3560         (WebCore::IconLoader::didFinishLoading):
3561         * loader/icon/IconLoader.h:
3562         * loader/loader.cpp:
3563         * loader/mac/DocumentLoaderMac.mm:
3564         (WebCore::DocumentLoader::URL):
3565         (WebCore::DocumentLoader::unreachableURL):
3566         (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
3567         (WebCore::DocumentLoader::URLForHistory):
3568         * loader/mac/FrameLoaderMac.mm:
3569         (WebCore::FrameLoader::load):
3570         (WebCore::FrameLoader::willSendRequest):
3571         (WebCore::FrameLoader::clientRedirected):
3572         (WebCore::FrameLoader::shouldReload):
3573         (WebCore::FrameLoader::notifyIconChanged):
3574         (WebCore::FrameLoader::URL):
3575         (WebCore::FrameLoader::reloadAllowingStaleData):
3576         (WebCore::FrameLoader::reload):
3577         (WebCore::FrameLoader::didChangeTitle):
3578         (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
3579         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
3580         (WebCore::FrameLoader::post):
3581         (WebCore::FrameLoader::addExtraFieldsToRequest):
3582         (WebCore::FrameLoader::loadResourceSynchronously):
3583         * loader/mac/IconLoaderMac.mm:
3584         (WebCore::IconLoader::notifyIconChanged):
3585         * loader/mac/LoaderFunctionsMac.mm:
3586         * loader/mac/MainResourceLoaderMac.mm:
3587         (WebCore::shouldLoadAsEmptyDocument):
3588         (WebCore::MainResourceLoader::continueAfterContentPolicy):
3589         * loader/mac/NavigationActionMac.mm:
3590         (WebCore::navigationType):
3591         (WebCore::NavigationAction::NavigationAction):
3592         * loader/mac/ResourceLoaderMac.mm:
3593         * loader/mac/SubresourceLoaderMac.mm:
3594         * page/Frame.cpp:
3595         (WebCore::Frame::Frame):
3596         (WebCore::Frame::urlSelected):
3597         (WebCore::Frame::submitFormAgain):
3598         (WebCore::Frame::submitForm):
3599         (WebCore::Frame::endIfNotLoading):
3600         (WebCore::Frame::hitTestResultAtPoint):
3601         * page/Frame.h:
3602         * page/FramePrivate.h:
3603         * platform/gdk/FrameGdk.cpp:
3604         (WebCore::FrameGdk::FrameGdk):
3605         (WebCore::FrameGdk::submitForm):
3606         (WebCore::FrameGdk::urlSelected):
3607         * platform/gdk/FrameGdk.h:
3608         * platform/mac/TextFieldMac.mm:
3609         * platform/network/HTTPHeaderMap.h:
3610         * platform/network/ResourceHandle.h:
3611         * platform/network/ResourceHandleClient.h:
3612         * platform/network/ResourceHandleInternal.h:
3613         * platform/network/mac/ResourceHandleMac.mm:
3614         * platform/network/mac/ResourceResponseMac.h:
3615         * platform/network/mac/ResourceResponseMac.mm:
3616         (-[NSURLResponse WebCore]):
3617         * platform/network/win/ResourceHandleWin.cpp:
3618         * platform/qt/FrameQt.cpp:
3619         (WebCore::FrameQt::submitForm):
3620         (WebCore::FrameQt::urlSelected):
3621         * platform/qt/FrameQt.h:
3622         * rendering/RenderLineEdit.cpp:
3623         (WebCore::RenderLineEdit::returnPressed):
3624         * xml/XSLTProcessor.cpp:
3625         (WebCore::docLoaderFunc):
3626         * xml/xmlhttprequest.cpp:
3627
3628 2006-11-03  Maciej Stachowiak  <mjs@apple.com>
3629
3630         Reviewed by Adele.
3631
3632         - replaced receivedRedirect with new willSendRequest delegate
3633         - removed most mac-specific loader functions
3634         - use ResourceResponse more in loader code
3635
3636         * WebCore.xcodeproj/project.pbxproj: Add new files.
3637         * bridge/mac/WebCoreFrameBridge.mm:
3638         (-[WebCoreFrameBridge getData:andResponse:forURL:]): Adapted
3639         for CachedResource method renames.
3640         (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
3641         Ditto.
3642         * loader/CachedCSSStyleSheet.cpp:
3643         (WebCore::CachedCSSStyleSheet::checkNotify): simplified
3644         based on ResourceResponse
3645         * loader/CachedImage.cpp:
3646         (WebCore::CachedImage::createImage): adapt for ResourceResponse
3647         * loader/CachedResource.cpp:
3648         (WebCore::CachedResource::CachedResource): store a ResourceResponse;
3649         platform response is now called platformResponse and expiration date
3650         is removed.
3651         (WebCore::CachedResource::~CachedResource): ditto
3652         (WebCore::CachedResource::isExpired): ditto
3653         * loader/CachedResource.h:
3654         (WebCore::CachedResource::platformResponse): ditto
3655         (WebCore::CachedResource::setResponse): ditto
3656         (WebCore::CachedResource::canDelete): ditto
3657         * loader/LoaderFunctions.h:
3658         * loader/loader.cpp:
3659         (WebCore::Loader::receivedResponse): Adjusted for renames.
3660         (WebCore::Loader::didReceiveResponse): Store whole ResourceResponse
3661         in the CachedResource.
3662         * loader/loader.h:
3663         * loader/mac/FormDataStream.h:
3664         * loader/mac/FormDataStream.m:
3665         (WebCore::getStreamFormDatas): Rearranged things so it's
3666         possible to get a FormData back out of a form data stream.
3667         (WebCore::formCreate): ditto
3668         (WebCore::formFinalize): ditto
3669         (WebCore::httpBodyFromStream): ditto
3670         * loader/mac/ImageDocumentMac.mm:
3671         (WebCore::finishImageLoad): s/response/platformResponse/
3672         * loader/mac/LoaderFunctionsMac.mm:
3673         (WebCore::CheckCacheObjectStatus): ditto
3674         (WebCore::CachedResource::setPlatformResponse): ditto
3675         * loader/mac/SubresourceLoaderMac.mm:
3676         (WebCore::SubresourceLoader::willSendRequest): send redirect
3677         to client appropriately
3678         * platform/network/ResourceHandle.h:
3679         * platform/network/ResourceHandleClient.h:
3680         (WebCore::ResourceHandleClient::willSendRequest): new entry
3681         point for SubresourceLoader, dispatch to client.
3682         * platform/network/ResourceRequest.h:
3683         (WebCore::ResourceRequest::allowHTTPCookies): implemented
3684         (WebCore::ResourceRequest::setAllowHTTPCookies): ditto
3685         * platform/network/ResourceResponse.h:
3686         (WebCore::ResourceResponse::ResourceResponse): initialize expiration
3687         date(!)
3688         * platform/network/cf/FormDataStreamCFNet.cpp: Added.
3689         (WebCore::getStreamFormDatas): Added this, ported from NSURL version.
3690         (WebCore::openNextStream): ditto
3691         (WebCore::formCreate): ditto
3692         (WebCore::formFinalize): ditto
3693         (WebCore::formCanRead): ditto
3694         (WebCore::formEventCallback): ditto
3695         (WebCore::setHTTPBody): ditto
3696         (WebCore::httpBodyFromStream): ditto
3697         * platform/network/cf/FormDataStreamCFNet.h: Added.
3698         * platform/network/cf/ResourceHandleCFNet.cpp:
3699         (WebCore::willSendRequest): implemented
3700         (WebCore::ResourceHandle::start): use new ResourceRequest stuff
3701         * platform/network/cf/ResourceResponseCFNet.cpp:
3702         (WebCore::getResourceResponse): do nothing for a null response
3703         * platform/network/mac/ResourceHandleMac.mm:
3704         (WebCore::ResourceHandle::willSendRequest): Implemented; dispatch to client.
3705         * platform/network/mac/ResourceRequestMac.h: Added.
3706         * platform/network/mac/ResourceRequestMac.mm: Added.
3707         (WebCore::getResourceRequest): Added way to convert an NSURLRequest
3708         to a ResourceRequest.
3709         (WebCore::nsURLRequest): Opposite of the above.
3710         * platform/network/cf/ResourceRequestCFNet.h: Added.
3711         * platform/network/cf/ResourceRequestCFNet.cpp: Added.
3712         (WebCore::getResourceRequest): Added way to convert an CFURLRequest
3713         to a ResourceRequest.
3714         (WebCore::cfURLRequest): Opposite of the above.
3715         * xml/xmlhttprequest.cpp:
3716         (WebCore::XMLHttpRequest::willSendRequest): Renamed from receivedRedirect,
3717         adjusted.
3718         * xml/xmlhttprequest.h:
3719
3720 2006-11-04  Darin Adler  <darin@apple.com>
3721
3722         Change suggested by Mitz.
3723
3724         - fix http://bugs.webkit.org/show_bug.cgi?id=11514
3725           REGRESSION (r17438): Repro crash when opening a web archive
3726
3727         * bridge/mac/WebCorePageState.mm:
3728         (-[WebCorePageState dealloc]): Add null check.
3729         (-[WebCorePageState finalize]): Ditto.
3730
3731 2006-11-04  Bertrand Guiheneuf <guiheneuf@gmail.com>
3732
3733         Reviewed by Maciej, tweaked and landed by Alexey (using a patch by Don Gibson).
3734
3735         http://bugs.webkit.org/show_bug.cgi?id=11433
3736         Fixes to get WebKit to run on Windows; implemented AffineTransformCairo.
3737
3738         * WebCore.vcproj/WebCore/WebCore.vcproj:
3739         Added platform/graphics platform/network and platform/network/win to headers search paths
3740         Created platform/graphics and platform/network filters in hierarchy
3741         Moved GraphicsContext and GraphicsTypes to their respective filters
3742         Added EditorClient.h
3743         Added FrameLoader* files in loader/
3744         Added HitTest* files in rendering/
3745         Added Editor.* files in editing/
3746         Added DeleteButton.* and DeleteButtonController.* in editing/
3747
3748         * bridge/win/ChromeClientWin.h: Added.
3749         (WebCore::ChromeClientWin::~ChromeClientWin):
3750         * bridge/win/EditorClientWin.h: Added.
3751         (WebCore::EditorClientWin::~EditorClientWin):
3752
3753         * bridge/win/FrameWin.cpp:
3754         (WebCore::FrameWin::FrameWin):
3755         (WebCore::FrameWin::urlSelected):
3756         (WebCore::FrameWin::submitForm):
3757         (WebCore::FrameWin::createNewWindow):
3758         * bridge/win/FrameWin.h:
3759         Added EditorClient parameter to constructor
3760         Replace usage of FrameLoadRequest::m_request with FrameLoadRequest::resourceRequest()
3761         Removed openURL() and openURLRequest from class definition
3762
3763         * bridge/win/PageWin.cpp:
3764         * platform/AffineTransform.h:
3765         * platform/cairo/AffineTransformCairo.cpp: Added.
3766         (WebCore::AffineTransform::AffineTransform):
3767         (WebCore::AffineTransform::setMatrix):
3768         (WebCore::AffineTransform::map):
3769         (WebCore::AffineTransform::mapRect):
3770         (WebCore::AffineTransform::isIdentity):
3771         (WebCore::AffineTransform::m11):
3772         (WebCore::AffineTransform::m12):
3773         (WebCore::AffineTransform::m21):
3774         (WebCore::AffineTransform::m22):
3775         (WebCore::AffineTransform::dx):
3776         (WebCore::AffineTransform::dy):
3777         (WebCore::AffineTransform::reset):
3778         (WebCore::AffineTransform::scale):
3779         (WebCore::AffineTransform::rotate):
3780         (WebCore::AffineTransform::translate):
3781         (WebCore::AffineTransform::shear):
3782         (WebCore::AffineTransform::det):
3783         (WebCore::AffineTransform::invert):
3784         (WebCore::AffineTransform::operator cairo_matrix_t):
3785         (WebCore::AffineTransform::operator== ):
3786         (WebCore::AffineTransform::operator*= ):
3787         (WebCore::AffineTransform::operator* ):
3788         * platform/cairo/GraphicsContextCairo.cpp:
3789         (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
3790         * platform/network/win/ResourceHandleWin.cpp:
3791         (WebCore::ResourceHandle::onHandleCreated):
3792         (WebCore::ResourceHandle::start):
3793         (WebCore::ResourceHandle::fileLoadTimer):
3794         (WebCore::ResourceHandle::cancel):
3795         * platform/win/TemporaryLinkStubs.cpp:
3796         (WebCore::FrameWin::goBackOrForward):
3797         (WebCore::FrameWin::getHistoryLength):
3798         (WebCore::FrameWin::historyURL):
3799         (WebCore::ServeSynchronousRequest):
3800         (WebCore::ChromeClientWin::canRunModal):
3801         (WebCore::ChromeClientWin::runModal):
3802         (WebCore::EditorClientWin::shouldDeleteRange):
3803         (WebCore::EditorClientWin::shouldShowDeleteInterface):
3804         (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
3805         (WebCore::EditorClientWin::isGrammarCheckingEnabled):
3806         (WebCore::EditorClientWin::spellCheckerDocumentTag):
3807         (WebCore::Path::transform):
3808         (WebCore::PopupMenu::updateFromElement):
3809         (WebCore::ResourceLoader::loadsBlocked):
3810         (WebCore::systemBeep):
3811         * rendering/RenderThemeWin.cpp:
3812         (WebCore::RenderThemeWin::paintButton):
3813         (WebCore::RenderThemeWin::paintTextField):
3814
3815 2006-11-04  Alexey Proskuryakov  <ap@nypop.com>
3816
3817         Reviewed by Maciej.
3818
3819         http://bugs.webkit.org/show_bug.cgi?id=11448
3820         &lang; and &rang; entities are mapped to the incorrect Unicode codepoint
3821
3822         * html/HTMLEntityNames.gperf: Use canonical Unicode equivalents for these characters.
3823
3824 2006-11-03  Mark Rowe  <bdash@webkit.org>
3825
3826         Reviewed by Oliver.
3827
3828         Update Windows and Qt project files for file removals in r17585.
3829
3830         * CMakeLists.txt:
3831         * WebCore.vcproj/WebCore/WebCore.vcproj:
3832
3833 2006-11-03  Zack Rusin  <zack@kde.org>
3834
3835         Reviewed by Maciej.
3836
3837         The patch fixes text field drawing on the Qt platform.
3838
3839         * platform/qt/RenderThemeQt.cpp:
3840         (WebCore::RenderThemeQt::paintTextField): Use the style to correctly
3841         render the text field
3842
3843 2006-11-03  Oliver Hunt  <oliver@apple.com>
3844
3845         Reviewed by Tim.
3846
3847         Correct incorrect call to SetCursor
3848
3849         * rendering/RenderFrameSet.cpp:
3850         (WebCore::RenderFrameSet::userResize):
3851
3852 2006-11-03  Adele Peterson  <adele@apple.com>
3853
3854         Reviewed by Oliver.
3855
3856         Removed DeprecatedRenderSelect and ListBox classes.
3857
3858         * WebCore.xcodeproj/project.pbxproj:
3859         * css/html4.css:
3860         * html/HTMLOptionElement.h:
3861         * html/HTMLSelectElement.cpp:
3862         (WebCore::HTMLSelectElement::recalcStyle):
3863         (WebCore::HTMLSelectElement::isKeyboardFocusable):
3864         (WebCore::HTMLSelectElement::isMouseFocusable):
3865         (WebCore::HTMLSelectElement::createRenderer):
3866         (WebCore::HTMLSelectElement::setRecalcListItems):
3867         (WebCore::HTMLSelectElement::notifyOptionSelected):
3868         (WebCore::HTMLSelectElement::defaultEventHandler):
3869         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
3870         (WebCore::HTMLSelectElement::updateListBoxSelection):
3871         * html/HTMLSelectElement.h:
3872         * platform/ListBox.h: Removed.
3873         * platform/mac/FontCacheMac.mm:
3874         * platform/mac/ListBoxMac.mm: Removed.
3875         * platform/win/TemporaryLinkStubs.cpp:
3876         * rendering/DeprecatedRenderSelect.cpp: Removed.
3877         * rendering/DeprecatedRenderSelect.h: Removed.
3878
3879 2006-11-03  Maciej Stachowiak  <mjs@apple.com>
3880
3881         Not reviewed, fix for accidental commit.
3882
3883         - rolled back more of the accidentall commit that I forgot.
3884
3885         * platform/network/mac/ResourceRequestMac.h: Removed.
3886         * platform/network/mac/ResourceRequestMac.mm: Removed.
3887
3888 2006-11-03  Maciej Stachowiak  <mjs@apple.com>
3889
3890         Not reviewed, fix for accidental commit.
3891
3892         - roll back some network changes accidentally committed with a previous patch.
3893
3894         * WebCore.xcodeproj/project.pbxproj:
3895         * bridge/mac/WebCoreFrameBridge.mm:
3896         (-[WebCoreFrameBridge getData:andResponse:forURL:]):
3897         (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
3898         * loader/CachedCSSStyleSheet.cpp:
3899         (WebCore::CachedCSSStyleSheet::checkNotify):
3900         * loader/CachedImage.cpp:
3901         (WebCore::CachedImage::createImage):
3902         * loader/CachedResource.cpp:
3903         (WebCore::CachedResource::CachedResource):
3904         (WebCore::CachedResource::~CachedResource):
3905         (WebCore::CachedResource::setExpireDate):
3906         (WebCore::CachedResource::isExpired):
3907         * loader/CachedResource.h:
3908         (WebCore::CachedResource::response):
3909         * loader/LoaderFunctions.h:
3910         * loader/loader.cpp:
3911         (WebCore::Loader::receivedResponse):
3912         (WebCore::Loader::didReceivedResponse):
3913         * loader/loader.h:
3914         * loader/mac/FormDataStream.h:
3915         * loader/mac/FormDataStream.m:
3916         (WebCore::formCreate):
3917         (WebCore::formFinalize):
3918         * loader/mac/ImageDocumentMac.mm:
3919         (WebCore::finishImageLoad):
3920         * loader/mac/LoaderFunctionsMac.mm:
3921         (WebCore::CheckCacheObjectStatus):
3922         (WebCore::CachedResource::setResponse):
3923         * loader/mac/SubresourceLoaderMac.mm:
3924         (WebCore::SubresourceLoader::willSendRequest):
3925         * platform/network/ResourceHandle.h:
3926         * platform/network/ResourceHandleClient.h:
3927         (WebCore::ResourceHandleClient::receivedRedirect):
3928         * platform/network/ResourceRequest.h:
3929         * platform/network/ResourceResponse.h:
3930         (WebCore::ResourceResponse::ResourceResponse):
3931         * platform/network/mac/ResourceHandleMac.mm:
3932         (WebCore::ResourceHandle::redirectedToURL):
3933         * xml/xmlhttprequest.cpp:
3934         (WebCore::XMLHttpRequest::receivedRedirect):
3935         * xml/xmlhttprequest.h:
3936
3937 2006-11-03  Anders Carlsson  <acarlsson@apple.com>
3938
3939         Rubber-stamped by Oliver.
3940
3941         Remove these, they have been merged with SVGRenderTreeAsText.
3942         
3943         * rendering/SVGRenderAsText.cpp: Removed.
3944         * rendering/SVGRenderAsText.h: Removed.
3945
3946 2006-11-03  Anders Carlsson  <acarlsson@apple.com>
3947
3948         Build fix.
3949         
3950         * platform/network/cf/ResourceHandleCFNet.cpp:
3951         (WebCore::willSendRequest):
3952
3953 2006-11-02  Geoffrey Garen  <ggaren@apple.com>
3954
3955         Reviewed by Darin, Beth.
3956         
3957         First cut at factoring Page's UIDelegate-related functions into Chrome
3958         and ChromeClient.
3959
3960         Layout tests pass.
3961         
3962         * bridge/mac/PageMac.mm: Removed platform-specific constructor, added
3963         setBridge method to replace it.
3964         (WebCore::Page::setBridge):
3965
3966         * bridge/mac/WebCorePageBridge.h: Simplified some things based on the fact
3967         that WebCorePageBridge.h doesn't need to be included by ObjC-only files,
3968         and, now that it uses PassRefPtr, can't be.
3969         
3970         * page/Chrome.cpp: Added. Code copied and converted to c++ from WebCorePageBridge.mm.
3971
3972         * page/Page.h:
3973         (WebCore::Page::dragCaretController): Made this function non-const so that
3974         m_dragCaretController doesn't have to be mutable.
3975
3976 2006-11-03  Alexey Proskuryakov  <ap@nypop.com>
3977
3978         Reviewed by Adele.
3979
3980         http://bugs.webkit.org/show_bug.cgi?id=7323
3981         REGRESSION (10.4.4): ondrag* events don't fire on page in a frame
3982
3983         * bridge/mac/FrameMac.h: Moved drag source information to a static variable
3984         in FrameMac.mm. There can be only one drag active at any moment, and having 
3985         this information here was making sharing this information between 
3986         subframes hard.
3987
3988         * bridge/mac/FrameMac.mm:
3989         (WebCore::FrameMac::FrameMac): Initialize sharedDragInfo.
3990         (WebCore::FrameMac::freeClipboard):
3991         (WebCore::FrameMac::dragHysteresisExceeded):
3992         (WebCore::FrameMac::handleMouseMoveEvent):
3993         (WebCore::FrameMac::handleMouseReleaseEvent):
3994         (WebCore::FrameMac::mouseDown):
3995         (WebCore::FrameMac::dragSourceMovedTo):
3996         (WebCore::FrameMac::dragSourceEndedAt):
3997         (WebCore::FrameMac::dispatchDragSrcEvent):
3998         Access drag source info via sharedDragInfo - this fixes drag source even dispatching.
3999         Also removed some old code that was forwarding mouse events to subviews to make 
4000         HTML editing work in subframes.
4001
4002         * page/FrameView.cpp:
4003         (WebCore::FrameView::updateDragAndDrop):
4004         (WebCore::FrameView::cancelDragAndDrop):
4005         (WebCore::FrameView::performDragAndDrop):
4006         Forward events to subframes for dispatching - this fixes drag target events.
4007
4008 2006-11-03  Zack Rusin  <zack@kde.org>
4009
4010         Reviewed by Tim.
4011
4012         Fixing compile.
4013
4014         * platform/qt/LoaderFunctionsQt.cpp:
4015         (WebCore::CachedResource::setPlatformResponse): Renamed from setResponse
4016
4017 2006-11-01  Zack Rusin  <zack@kde.org>
4018
4019         Reviewed by Maciej.
4020
4021         Moving the word/sentence seperators into a file of their own
4022         and implementing findWordBoundary.
4023
4024         * CMakeLists.txt:
4025         * platform/qt/TemporaryLinkStubs.cpp:
4026         * platform/qt/TextBoundaries.cpp: Added.
4027         (WebCore::findNextSentenceFromIndex):
4028         (WebCore::findSentenceBoundary):
4029         (WebCore::findNextWordFromIndex):
4030         (WebCore::findWordBoundary):
4031
4032 2006-11-03  Zack Rusin  <zack@kde.org>
4033
4034         Reviewed by Maciej.
4035
4036         Compile on both KDE and Qt platforms
4037
4038         * CMakeLists.txt: add zlib explicitly
4039         * platform/network/qt/ResourceHandleManager.cpp:
4040         (WebCore::ResourceHandleManager::self):
4041         (WebCore::QtJob::QtJob):
4042         (WebCore::QtJob::timerEvent): Integrate both implementations
4043         so that moc can parse it
4044         (WebCore::ResourceHandleManager::deliverJobData):
4045         (WebCore::ResourceHandleManager::remove):
4046         * platform/network/qt/ResourceHandleManager.h:
4047
4048 2006-11-03  Maciej Stachowiak  <mjs@apple.com>
4049
4050         No review, suggested by Mitz.
4051
4052         - fix a #if to be #ifdef
4053
4054         * platform/graphics/svg/cg/SVGResourceImageCg.cpp:
4055
4056 2006-11-03  Zack Rusin  <zack@kde.org>
4057
4058         Reviewed and landed by Maciej.
4059         
4060         Compile on the Qt platform.
4061
4062         * ksvg2/misc/KCanvasRenderingStyle.h:
4063         * platform/qt/RenderThemeQt.cpp:
4064         (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
4065
4066 2006-11-03  Zack Rusin  <zack@kde.org>
4067
4068         Reviewed by Hyatt. Landed by Maciej.
4069
4070         Adding setPlatformPen/setPlatformFont/setPlatformFillColor
4071         to graphics context to be able to set consistant state
4072         on the platform specific painter without having to change
4073         fill/stroke/font on every operation. This fixes color/stroke/fill
4074         and font handling in the Qt port.
4075
4076         * platform/graphics/GraphicsContext.cpp:
4077         (WebCore::GraphicsContext::setFont):
4078         (WebCore::GraphicsContext::setPen):
4079         (WebCore::GraphicsContext::setFillColor):
4080         (WebCore::GraphicsContext::setPlatformPen):
4081         (WebCore::GraphicsContext::setPlatformFillColor):
4082         (WebCore::GraphicsContext::setPlatformFont):
4083         * platform/graphics/GraphicsContext.h:
4084         * platform/qt/GraphicsContextQt.cpp:
4085         (WebCore::toQtCompositionMode):
4086         (WebCore::toQtLineCap):
4087         (WebCore::toQtLineJoin):
4088         (WebCore::toQPenStyle):
4089         (WebCore::penToQPen):
4090         (WebCore::TransparencyLayer::TransparencyLayer):
4091         (WebCore::GraphicsContext::addRoundedRectClip):
4092         (WebCore::GraphicsContext::setPlatformFont):
4093         (WebCore::GraphicsContext::setPlatformPen):
4094         (WebCore::GraphicsContext::setPlatformFillColor):
4095         * platform/qt/ScrollViewCanvasQt.cpp:
4096         (WebCore::ScrollViewCanvasQt::ScrollViewCanvasQt):
4097         (WebCore::ScrollViewCanvasQt::paintEvent):
4098         (WebCore::ScrollViewCanvasQt::handleKeyEvent):
4099         * platform/qt/ScrollViewCanvasQt.h:
4100
4101 2006-11-02  Adele Peterson  <adele@apple.com>
4102
4103         Reviewed by Anders.
4104
4105         - Fix for http://bugs.webkit.org/show_bug.cgi?id=9581
4106         REGRESSION: The new NativeTextArea scrolls to the top when the control is unfocused.
4107
4108         Test: fast/forms/textarea-no-scroll-on-blur.html
4109
4110         * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::forwardEvent):
4111           On blur, only scroll back to the start for text fields.
4112
4113 2006-11-02  Anders Carlsson  <acarlsson@apple.com>
4114
4115         Another build fix.
4116         
4117         * rendering/RenderFileUploadControl.cpp:
4118         (WebCore::RenderFileUploadControl::paintObject):
4119
4120 2006-11-02  Anders Carlsson  <acarlsson@apple.com>
4121
4122         Build fix.
4123         
4124         * page/FramePrivate.h:
4125         (WebCore::FramePrivate::FramePrivate):
4126
4127 2006-11-02  Kevin Ollivier <kevino@theolliviers.com>
4128
4129         Reviewed by Geoff, landed by Anders.
4130         
4131         Fix dependency problems caused when running move-js-headers.sh
4132         
4133         * move-js-headers.sh:
4134         Use cp -p instead of just cp so that the modification time
4135         of the original files are used.
4136
4137 2006-11-02  Adam Roben  <aroben@apple.com>
4138
4139         Reviewed by Tim H, landed by Anders.
4140
4141         Fixes http://bugs.webkit.org/show_bug.cgi?id=10840
4142         REGRESSION: Shadow of file upload button is clipped
4143
4144         * rendering/RenderFileUploadControl.cpp:
4145         (WebCore::RenderFileUploadControl::paintObject): Add 2px to the clip
4146         height to keep from clipping in the shadow
4147
4148 2006-11-02  Eike Preuss  <mail@eikepreuss.de>
4149
4150         Reviewed by Maciej, landed by Anders.
4151
4152         * platform/qt/ScrollViewQt.cpp: Fix translation of coordinates between
4153         content and window. ScrollViewQt already receives correct content
4154         coordinates from QScrollArea.
4155         (WebCore::ScrollView::contentsToWindow):
4156         (WebCore::ScrollView::windowToContents):
4157
4158 2006-11-02  Simon Hausmann  <hausmann@kde.org>
4159
4160         Reviewed by Maciej, landed by Anders
4161
4162         * CMakeLists.txt: Make linkage against KDE libraries conditional
4163         * platform/network/qt/ResourceHandleManager.cpp: Added a simple
4164           Qt base resource handler that supports only requests to the
4165           local filesystem. Used when compiling without KDE support.
4166           ResourceHandleManager.cpp/h are to be split up into ResourceHandleManagerKDE
4167           and ResourceHandleManagerQt in the future, as well as QtJob.cpp/h.
4168         (WebCore::QtJob::QtJob):
4169         (WebCore::QtJob::timerEvent):
4170         (WebCore::ResourceHandleManager::ResourceHandleManager):
4171         (WebCore::ResourceHandleManager::~ResourceHandleManager):
4172         (WebCore::ResourceHandleManager::self):
4173         (WebCore::ResourceHandleManager::remove):
4174         (WebCore::ResourceHandleManager::add):
4175         (WebCore::ResourceHandleManager::cancel):
4176         (WebCore::ResourceHandleManager::deliverJobData):
4177         * platform/network/qt/ResourceHandleManager.h:
4178         * platform/qt/FrameQtClient.cpp:
4179         (WebCore::FrameQtClientDefault::runJavaScriptAlert):
4180         (WebCore::FrameQtClientDefault::runJavaScriptConfirm):
4181         (WebCore::FrameQtClientDefault::runJavaScriptPrompt):
4182         * platform/qt/LoaderFunctionsQt.cpp: Use the Qt messagebox and
4183           input dialog functions when compiling without KDE support
4184         (WebCore::ServeSynchronousRequest):
4185
4186 2006-11-02  David Carson  <dacarson@gmail.com>
4187
4188         Reviewed by Geoff, landed by Anders.
4189
4190         Fix for: http://bugs.webkit.org/show_bug.cgi?id=11471
4191         Initializing variable in constructor.
4192
4193         * page/FramePrivate.h:
4194         (WebCore::FramePrivate::FramePrivate):
4195
4196 2006-11-02  Anders Carlsson  <acarlsson@apple.com>
4197
4198         Reviewed by Geoff.
4199
4200         Use CFMutableURLRequestRef instead of CFHTTPMessageRef since not all URL requests are http requests.
4201         
4202         * platform/network/cf/ResourceHandleCFNet.cpp:
4203         (WebCore::addHeadersFromHashMap):
4204         Don't set all headers at once since that clears any previous headers set.
4205     &n