Versioning
[WebKit-https.git] / WebCore / ChangeLog
1 === Safari-521.31 ===
2
3 2006-11-17  Timothy Hatcher  <timothy@apple.com>
4
5         Reviewed by Harrison.
6
7         <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
8
9         Disable the delete button controller when cloning nodes, Mail does this before saving a draft.
10
11         * dom/ContainerNode.cpp:
12         (WebCore::ContainerNode::cloneChildNodes):
13         * editing/markup.cpp:
14         (WebCore::createFragmentFromNodes):
15
16 2006-11-17  Justin Garcia  <justin.garcia@apple.com>
17
18         Reviewed by harrison
19         
20         <rdar://problem/4237467> REGRESSION: Pasting word from quoted text quotes the destination
21         <rdar://problem/4017358> quoted text is wrong color, when pasted as quotation
22
23         * editing/ReplaceSelectionCommand.cpp:
24         (WebCore::isMailPasteAsQuotationNode): Added.  Checks for the node
25         that Mail wraps around an incoming fragment when it wants it to be pasted
26         with quoting (no merging should be done).
27         (WebCore::ReplaceSelectionCommand::removeNodePreservingChildren): Added
28         this virtual method in order to adjust the nodes that ReplaceSelectionCommand
29         tracks.
30         (WebCore::ReplaceSelectionCommand::shouldMerge): Don't merge from content
31         inside a Mail Paste as Quotation node.  Allow merging from Mail blockquotes.
32         (WebCore::ReplaceSelectionCommand::removeRedundantStyles): When pasting into
33         a Mail blockquote, we ignore the parts of the source document's default style
34         that are overriden by styles from the Mail blockquote.  This is necessary in order
35         for text that's black (because black is the source document's default font color) 
36         to appear blue/green/whatever when it's pasted into a Mail blockquote.
37         (WebCore::ReplaceSelectionCommand::handlePasteAsQuotationNode): Turn an inserted
38         Mail Paste as Quotation node into a normal Mail blockquote.  This will prevent
39         a copied blockquote that was inserted into the document using Paste as Quotation
40         from triggering Paste as Quotation behavior when it's pasted.
41         (WebCore::ReplaceSelectionCommand::doApply): Call the new/altered methods.
42         * editing/ReplaceSelectionCommand.h:
43         * editing/markup.cpp:
44         (WebCore::styleFromMatchedRulesForElement): Put this code into a subroutine.
45         (WebCore::removeEnclosingMailBlockquoteStyle): Added.
46         (WebCore::startMarkup): When wrapping text nodes in style spans, leave out
47         styles that Mail blockquotes contribute, so that Mail blockquote styles can
48         be differentiated from styles that the user has applied.  When creating markup
49         for elements, do the same thing.
50         (WebCore::createMarkup): Call the new subroutine.
51
52 2006-11-17  Rob Buis  <buis@kde.org>
53
54         Reviewed by Mitz.
55
56         http://bugs.webkit.org/show_bug.cgi?id=11635
57         Bug 11635: Fix potential issue with non-xslt build
58
59         Fix the issue and do style guideline corrections.
60
61         * dom/ProcessingInstruction.cpp:
62         (WebCore::ProcessingInstruction::checkStyleSheet):
63         (WebCore::ProcessingInstruction::sheetLoaded):
64         (WebCore::ProcessingInstruction::setCSSStyleSheet):
65         (WebCore::ProcessingInstruction::setXSLStyleSheet):
66         (WebCore::ProcessingInstruction::parseStyleSheet):
67
68 2006-11-17  Timothy Hatcher  <timothy@apple.com>
69
70         Reviewed by Harrison.
71
72         <rdar://problem/4843131> text entry is slow inside element that has the deletion rectangle around it
73
74         Only disable/enable the delete button inside applyCommand() to prevent slowing down typing.
75         This reintroduces <rdar://problem/4796657> table deletion outline does not always follow the table size as editing occurs inside
76
77         * editing/EditCommand.cpp:
78         (WebCore::EditCommand::apply):
79         (WebCore::EditCommand::unapply):
80         (WebCore::EditCommand::reapply):
81         (WebCore::applyCommand):
82         * editing/EditCommand.h:
83
84 2006-11-17  Zack Rusin  <zack@kde.org>
85
86         Reviewed by Mitz. Landed by Niko.
87
88         Making platform Qt/KDE compile and work after
89         the latest api changes. Reported as
90         http://bugs.webkit.org/show_bug.cgi?id=11617
91
92         * CMakeLists.txt:
93         * page/qt/EventHandlerQt.cpp: Added.
94         (WebCore::isKeyboardOptionTab):
95         (WebCore::EventHandler::tabsToLinks):
96         (WebCore::EventHandler::tabsToAllControls):
97         (WebCore::EventHandler::freeClipboard):
98         (WebCore::EventHandler::focusDocumentView):
99         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
100         (WebCore::EventHandler::passMouseDownEventToWidget):
101         (WebCore::EventHandler::lastEventIsMouseUp):
102         (WebCore::EventHandler::dragHysteresisExceeded):
103         (WebCore::EventHandler::handleDrag):
104         (WebCore::EventHandler::handleMouseUp):
105         (WebCore::EventHandler::passSubframeEventToSubframe):
106         (WebCore::EventHandler::passWheelEventToWidget):
107         (WebCore::EventHandler::shouldDragAutoNode):
108         (WebCore::EventHandler::dispatchDragSrcEvent):
109         (WebCore::EventHandler::passMousePressEventToSubframe):
110         (WebCore::EventHandler::passMouseMoveEventToSubframe):
111         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
112         (WebCore::EventHandler::passWheelEventToSubframe):
113         (WebCore::EventHandler::passMousePressEventToScrollbar):
114         * platform/ContextMenu.h:
115         * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
116         (WebCore::SVGResourceClipper::applyClip):
117         * platform/qt/ContextMenuClientQt.cpp: Added.
118         (WebCore::ContextMenuClientQt::addCustomContextMenuItems):
119         (WebCore::ContextMenuClientQt::ref):
120         (WebCore::ContextMenuClientQt::deref):
121         * platform/qt/ContextMenuClientQt.h: Added.
122         * platform/qt/ContextMenuQt.cpp: Added.
123         (WebCore::ContextMenu::appendItem):
124         (WebCore::ContextMenu::itemCount):
125         (WebCore::ContextMenu::insertItem):
126         (WebCore::ContextMenu::setPlatformMenuDescription):
127         * platform/qt/EditorClientQt.cpp:
128         (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
129         (WebCore::EditorClientQt::isEditable):
130         (WebCore::EditorClientQt::registerCommandForUndo):
131         (WebCore::EditorClientQt::registerCommandForRedo):
132         (WebCore::EditorClientQt::clearUndoRedoOperations):
133         (WebCore::EditorClientQt::canUndo):
134         (WebCore::EditorClientQt::canRedo):
135         (WebCore::EditorClientQt::undo):
136         (WebCore::EditorClientQt::redo):
137         * platform/qt/EditorClientQt.h:
138         * platform/qt/ScrollViewCanvasQt.cpp:
139         (WebCore::ScrollViewCanvasQt::mousePressEvent):
140         * platform/qt/TemporaryLinkStubs.cpp:
141         (FrameView::updateBorder):
142
143 2006-11-17  David Harrison  <harrison@apple.com>
144
145         Reviewed by Adele.
146
147         <rdar://problem/4799899> Frame::revealSelection() only scrolls the startContainer's layer
148
149         Replace an assert with a fixme that refers to this bug.
150         
151         * page/Frame.cpp:
152         (WebCore::Frame::revealSelection):
153
154 2006-11-16  Rob Buis  <buis@kde.org>
155
156         Reviewed and landed by Brady
157
158         Fixes http://bugs.webkit.org/show_bug.cgi?id=11590 -
159         REGRESSION (r17726-r17742): Wikipedia page intermittently loads but doesn't render
160         Fix the regression by setting m_loadCompleted correctly.
161
162         * css/CSSStyleSheet.cpp:
163         (WebCore::CSSStyleSheet::checkLoaded):
164         * dom/Node.h:
165         (WebCore::Node::sheetLoaded):
166         * dom/ProcessingInstruction.cpp:
167         (WebCore::ProcessingInstruction::sheetLoaded):
168         * dom/ProcessingInstruction.h:
169         * html/HTMLLinkElement.cpp:
170         (WebCore::HTMLLinkElement::sheetLoaded):
171         * html/HTMLLinkElement.h:
172         * html/HTMLStyleElement.cpp:
173         (WebCore::HTMLStyleElement::sheetLoaded):
174         * html/HTMLStyleElement.h:
175
176 2006-11-16  David Harrison  <harrison@apple.com>
177
178         Reviewed by Beth.
179
180         <rdar://problem/4056100> REGRESSION (Tiger): Deleting top part of reply email leaves fails to clear text at end of message
181
182         The problem was triggered by the fact that the parent div was changing both
183         in position and in height. The renderer normally bifurcates its logic for
184         x-position changes vs height changes.
185
186         Call repaintDuringLayoutIfMoved() with old rect (incl. width and height) instead of just the old position.
187
188         Test added:
189         * manual-tests/delete-into-nested-block.html
190         
191         * rendering/RenderBlock.cpp:
192         (WebCore::RenderBlock::layoutBlockChildren):
193         (WebCore::RenderBlock::positionNewFloats):
194         * rendering/RenderBox.cpp:
195         (WebCore::RenderBox::repaintDuringLayoutIfMoved):
196         * rendering/RenderBox.h:
197         * rendering/RenderFlexibleBox.cpp:
198         (WebCore::RenderFlexibleBox::placeChild):
199         * rendering/RenderObject.cpp:
200         (WebCore::RenderObject::repaintDuringLayoutIfMoved):
201         * rendering/RenderObject.h:
202         * rendering/RenderTableSection.cpp:
203         (WebCore::RenderTableSection::layoutRows):
204
205 2006-11-16  Adele Peterson  <adele@apple.com>
206
207         Reviewed by Adam.
208
209         Slider cleanup.  Let the theme set the size of the slider thumb.
210
211         * rendering/RenderSlider.cpp:
212         (WebCore::RenderSlider::setStyle): Moving the thumb's appearance adjustment to createThumbStyle.
213         (WebCore::RenderSlider::createThumbStyle):
214         (WebCore::RenderSlider::layout): Let the theme set the size of the thumb.
215         * rendering/RenderTheme.cpp: (WebCore::RenderTheme::adjustSliderThumbSize):  Added.
216         * rendering/RenderTheme.h: ditto.
217         * rendering/RenderThemeMac.h: ditto.
218         * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::adjustSliderThumbSize): ditto.
219
220 2006-11-15  Anders Carlsson  <acarlsson@apple.com>
221
222         Reviewed by Darin.
223
224         Use Vector instead of DeprecatedValueList in a few places.
225         
226         * bindings/js/kjs_dom.cpp:
227         (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
228         (KJS::DOMNamedNodesCollection::lengthGetter):
229         (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
230         * bindings/js/kjs_dom.h:
231         * bindings/js/kjs_html.cpp:
232         (KJS::JSHTMLDocument::namedItemGetter):
233         (KJS::JSHTMLElement::classInfo):
234         (KJS::JSHTMLElement::accessors):
235         (KJS::JSHTMLCollection::getNamedItems):
236         * bindings/objc/DOM.mm:
237         * bridge/mac/FrameMac.mm:
238         (WebCore::FrameMac::dashboardRegionsDictionary):
239         * css/CSSStyleDeclaration.cpp:
240         (WebCore::CSSStyleDeclaration::diff):
241         * html/HTMLCollection.cpp:
242         (WebCore::HTMLCollection::namedItems):
243         * html/HTMLCollection.h:
244         * kcanvas/KCanvasFilters.cpp:
245         (WebCore::KCanvasFilter::externalRepresentation):
246         * kcanvas/KCanvasFilters.h:
247         (WebCore::KCanvasFEColorMatrix::values):
248         (WebCore::KCanvasFEColorMatrix::setValues):
249         (WebCore::KCanvasFEConvolveMatrix::kernel):
250         (WebCore::KCanvasFEConvolveMatrix::setKernel):
251         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
252         (WebCore::KCanvasFilterQuartz::getCIFilterStack):
253         (WebCore::KCanvasFEColorMatrixQuartz::getCIFilter):
254         * ksvg2/svg/SVGFEColorMatrixElement.cpp:
255         (WebCore::SVGFEColorMatrixElement::filterEffect):
256         * platform/graphics/svg/SVGResourceClipper.h:
257         * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
258         (WebCore::SVGResourceClipper::applyClip):
259         * platform/network/FormData.h:
260         * rendering/RenderPath.h:
261         * rendering/SVGRenderTreeAsText.h:
262         (WebCore::operator<<):
263
264 2006-11-16  Anders Carlsson  <acarlsson@apple.com>
265
266         Reviewed by Tim.
267
268         * editing/markup.cpp:
269         (WebCore::createMarkup):
270         Add null-checks for the frame, it might not exist for all documents.
271         
272 2006-11-16  Don Gibson  <dgibson77@gmail.com>
273
274         Reviewed and landed by ap.
275
276         http://bugs.webkit.org/show_bug.cgi?id=11509:
277         Windows build bustage.
278
279         Also reorganizes WebCore.vcproj to add files whose absence wasn't
280         causing compile errors, but which should have been there, and to
281         make the include directory ordering (and contents) sane.
282         Also reorganizes TemporaryLinkStubs.cpp to put headers and
283         function groups in alphabetical order, and ensure that all functions
284         in the file call notImplemented().
285
286         * WebCore.vcproj/WebCore/WebCore.vcproj:
287         * bridge/win/ChromeClientWin.h:
288         (WebCore::ChromeClientWin::ref):
289         (WebCore::ChromeClientWin::deref):
290         * bridge/win/ContextMenuClientWin.h: Added.
291         (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
292         (WebCore::ContextMenuClientWin::ref):
293         (WebCore::ContextMenuClientWin::deref):
294         * bridge/win/EditorClientWin.h:
295         * bridge/win/FrameWin.cpp:
296         (WebCore::FrameWin::~FrameWin):
297         (WebCore::FrameWin::keyPress):
298         * bridge/win/FrameWin.h:
299         * bridge/win/PageWin.cpp: Removed.
300         * editing/EditCommand.h:
301         * loader/FormState.h:
302         * loader/FrameLoader.h:
303         * page/EventHandler.cpp:
304         * platform/MimeTypeRegistry.cpp:
305         (WebCore::initialiseSupportedImageMIMETypes):
306         * platform/graphics/win/ImageWin.cpp:
307         * platform/network/ResourceError.cpp:
308         * platform/network/ResourceHandleInternal.h:
309         * platform/network/win/ResourceHandleWin.cpp:
310         (WebCore::ResourceHandle::onHandleCreated):
311         (WebCore::ResourceHandle::onRequestRedirected):
312         (WebCore::ResourceHandle::start):
313         (WebCore::ResourceHandle::cancel):
314         * platform/win/ScreenWin.cpp:
315         (WebCore::monitorInfo):
316         (WebCore::screenRect):
317         (WebCore::screenAvailableRect):
318         (WebCore::screenDepth):
319         * platform/win/SoundWin.cpp: Added.
320         (WebCore::systemBeep):
321         * platform/win/TemporaryLinkStubs.cpp:
322         (WebCore::CacheObjectExpiresTime):
323         (WebCore::CheckCacheObjectStatus):
324         (WebCore::CheckIfReloading):
325         (WebCore::defaultLanguage):
326         (WebCore::fileButtonChooseFileLabel):
327         (WebCore::fileButtonNoFileSelectedLabel):
328         (WebCore::findNextSentenceFromIndex):
329         (WebCore::findNextWordFromIndex):
330         (WebCore::findSentenceBoundary):
331         (WebCore::findWordBoundary):
332         (WebCore::focusRingColor):
333         (WebCore::historyContains):
334         (WebCore::inputElementAltText):
335         (WebCore::IsResponseURLEqualToURL):
336         (WebCore::cellCursor):
337         (WebCore::contextMenuCursor):
338         (WebCore::moveCursor):
339         (WebCore::verticalTextCursor):
340         (WebCore::refreshPlugins):
341         (WebCore::resetButtonDefaultLabel):
342         (WebCore::ResponseIsMultipart):
343         (WebCore::ResponseMIMEType):
344         (WebCore::ResponseURL):
345         (WebCore::screenDepthPerComponent):
346         (WebCore::screenIsMonochrome):
347         (WebCore::searchableIndexIntroduction):
348         (WebCore::ServeSynchronousRequest):
349         (WebCore::setFocusRingColorChangeFunction):
350         (WebCore::submitButtonDefaultLabel):
351         (WebCore::CachedResource::setPlatformResponse):
352         (WebCore::CachedResource::setAllData):
353         (WebCore::ChromeClientWin::setWindowRect):
354         (WebCore::ChromeClientWin::windowRect):
355         (WebCore::ChromeClientWin::pageRect):
356         (WebCore::ChromeClientWin::scaleFactor):
357         (WebCore::ChromeClientWin::focus):
358         (WebCore::ChromeClientWin::unfocus):
359         (WebCore::ChromeClientWin::createWindow):
360         (WebCore::ChromeClientWin::createModalDialog):
361         (WebCore::ChromeClientWin::show):
362         (WebCore::ChromeClientWin::canRunModal):
363         (WebCore::ChromeClientWin::runModal):
364         (WebCore::ChromeClientWin::setToolbarsVisible):
365         (WebCore::ChromeClientWin::toolbarsVisible):
366         (WebCore::ChromeClientWin::setStatusbarVisible):
367         (WebCore::ChromeClientWin::statusbarVisible):
368         (WebCore::ChromeClientWin::setScrollbarsVisible):
369         (WebCore::ChromeClientWin::scrollbarsVisible):
370         (WebCore::ChromeClientWin::setMenubarVisible):
371         (WebCore::ChromeClientWin::menubarVisible):
372         (WebCore::ChromeClientWin::setResizable):
373         (WebCore::ContextMenu::appendItem):
374         (WebCore::ContextMenuClientWin::addCustomContextMenuItems):
375         (WebCore::DocumentLoader::setFrame):
376         (WebCore::DocumentLoader::frameLoader):
377         (WebCore::DocumentLoader::URL):
378         (WebCore::DocumentLoader::isStopping):
379         (WebCore::DocumentLoader::stopLoading):
380         (WebCore::DocumentLoader::setLoading):
381         (WebCore::DocumentLoader::updateLoading):
382         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
383         (WebCore::DocumentLoader::isLoadingInAPISense):
384         (WebCore::DocumentLoader::stopRecordingResponses):
385         (WebCore::EditorClientWin::shouldDeleteRange):
386         (WebCore::EditorClientWin::shouldShowDeleteInterface):
387         (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
388         (WebCore::EditorClientWin::isGrammarCheckingEnabled):
389         (WebCore::EditorClientWin::spellCheckerDocumentTag):
390         (WebCore::EventHandler::focusDocumentView):
391         (WebCore::EventHandler::handleDrag):
392         (WebCore::EventHandler::handleMouseUp):
393         (WebCore::EventHandler::lastEventIsMouseUp):
394         (WebCore::EventHandler::passMousePressEventToSubframe):
395         (WebCore::EventHandler::passMouseMoveEventToSubframe):
396         (WebCore::EventHandler::passMouseReleaseEventToSubframe):
397         (WebCore::EventHandler::passWheelEventToSubframe):
398         (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
399         (WebCore::EventHandler::passMousePressEventToScrollbar):
400         (WebCore::EventHandler::shouldDragAutoNode):
401         (WebCore::EventHandler::tabsToAllControls):
402         (WebCore::EventHandler::tabsToLinks):
403         (WebCore::Frame::setNeedsReapplyStyles):
404         (WebCore::FrameLoader::didFirstLayout):
405         (WebCore::FrameLoader::overrideMediaType):
406         (WebCore::FrameLoader::createJavaAppletWidget):
407         (WebCore::FrameLoader::redirectDataToPlugin):
408         (WebCore::FrameLoader::getHistoryLength):
409         (WebCore::FrameLoader::setTitle):
410         (WebCore::FrameLoader::referrer):
411         (WebCore::FrameLoader::saveDocumentState):
412         (WebCore::FrameLoader::restoreDocumentState):
413         (WebCore::FrameLoader::goBackOrForward):
414         (WebCore::FrameLoader::historyURL):
415         (WebCore::FrameLoader::urlSelected):
416         (WebCore::FrameLoader::createFrame):
417         (WebCore::FrameLoader::submitForm):
418         (WebCore::FrameLoader::partClearedInBegin):
419         (WebCore::FrameLoader::originalRequestURL):
420         (WebCore::FrameLoader::canGoBackOrForward):
421         (WebCore::FrameLoader::objectContentType):
422         (WebCore::FrameLoader::createPlugin):
423         (WebCore::FrameLoader::detachFromParent):
424         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
425         (WebCore::FrameView::updateBorder):
426         (WebCore::FrameWin::bindingRootObject):
427         (WebCore::FrameWin::canPaste):
428         (WebCore::FrameWin::issuePasteAndMatchStyleCommand):
429         (WebCore::FrameWin::markedTextRange):
430         (WebCore::FrameWin::passSubframeEventToSubframe):
431         (WebCore::FrameWin::lastEventIsMouseUp):
432         (WebCore::FrameWin::addMessageToConsole):
433         (WebCore::FrameWin::shouldChangeSelection):
434         (WebCore::FrameWin::respondToChangedSelection):
435         (WebCore::FrameWin::clearUndoRedoOperations):
436         (WebCore::FrameWin::markMisspellingsInAdjacentWords):
437         (WebCore::FrameWin::respondToChangedContents):
438         (WebCore::GraphicsContext::addRoundedRectClip):
439         (WebCore::GraphicsContext::setShadow):
440         (WebCore::GraphicsContext::clearShadow):
441         (WebCore::GraphicsContext::beginTransparencyLayer):
442         (WebCore::GraphicsContext::endTransparencyLayer):
443         (WebCore::GraphicsContext::clearRect):
444         (WebCore::GraphicsContext::strokeRect):
445         (WebCore::GraphicsContext::setLineWidth):
446         (WebCore::GraphicsContext::setLineCap):
447         (WebCore::GraphicsContext::setLineJoin):
448         (WebCore::GraphicsContext::setMiterLimit):
449         (WebCore::GraphicsContext::setAlpha):
450         (WebCore::GraphicsContext::setCompositeOperation):
451         (WebCore::GraphicsContext::clip):
452         (WebCore::GraphicsContext::rotate):
453         (WebCore::GraphicsContext::scale):
454         (WebCore::Icon::Icon):
455         (WebCore::Icon::~Icon):
456         (WebCore::Icon::newIconForFile):
457         (WebCore::Icon::paint):
458         (WebCore::IconDatabase::isIconExpiredForIconURL):
459         (WebCore::IconDatabase::hasEntryForIconURL):
460         (WebCore::IconDatabase::sharedIconDatabase):
461         (WebCore::IconDatabase::setIconURLForPageURL):
462         (WebCore::IconDatabase::setIconDataForIconURL):
463         (WebCore::Image::drawTiled):
464         (WebCore::Image::getHBITMAP):
465         (WebCore::Path::Path):
466         (WebCore::Path::~Path):
467         (WebCore::Path::contains):
468         (WebCore::Path::translate):
469         (WebCore::Path::boundingRect):
470         (WebCore::Path::operator=):
471         (WebCore::Path::clear):
472         (WebCore::Path::moveTo):
473         (WebCore::Path::addLineTo):
474         (WebCore::Path::addQuadCurveTo):
475         (WebCore::Path::addBezierCurveTo):
476         (WebCore::Path::addArcTo):
477         (WebCore::Path::closeSubpath):
478         (WebCore::Path::addArc):
479         (WebCore::Path::addRect):
480         (WebCore::Path::addEllipse):
481         (WebCore::Path::transform):
482         (WebCore::PlatformMouseEvent::PlatformMouseEvent):
483         (WebCore::PlatformScrollbar::PlatformScrollbar):
484         (WebCore::PlatformScrollbar::~PlatformScrollbar):
485         (WebCore::PlatformScrollbar::width):
486         (WebCore::PlatformScrollbar::height):
487         (WebCore::PlatformScrollbar::setEnabled):
488         (WebCore::PlatformScrollbar::paint):
489         (WebCore::PlatformScrollbar::updateThumbPosition):
490         (WebCore::PlatformScrollbar::updateThumbProportion):
491         (WebCore::PlatformScrollbar::setRect):
492         (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
493         (WebCore::PlugInInfoStore::pluginCount):
494         (WebCore::PlugInInfoStore::supportsMIMEType):
495         (WebCore::PolicyCheck::PolicyCheck):
496         (WebCore::PolicyCheck::clear):
497         (WebCore::PolicyCheck::clearRequest):
498         (WebCore::PolicyCheck::call):
499         (WebCore::RenderThemeWin::systemFont):
500         (WebCore::RenderThemeWin::paintMenuList):
501         (WebCore::RenderThemeWin::adjustMenuListStyle):
502         (WebCore::ResourceLoader::cancel):
503         (WebCore::ScrollView::addChild):
504         (WebCore::ScrollView::removeChild):
505         (WebCore::ScrollView::scrollPointRecursively):
506         (WebCore::ScrollView::inWindow):
507         (WebCore::ScrollView::paint):
508         (WebCore::ScrollView::wheelEvent):
509         (WebCore::ScrollView::themeChanged):
510         (WebCore::ScrollView::convertChildToSelf):
511         (WebCore::ScrollView::convertSelfToChild):
512         (WebCore::ScrollView::geometryChanged):
513         (WebCore::ScrollView::scrollbarUnderMouse):
514         (WebCore::ScrollView::setFrameGeometry):
515         (WebCore::ScrollView::windowResizerRect):
516         (WebCore::ScrollView::resizerOverlapsContent):
517         (WebCore::TextField::selectAll):
518         (WebCore::TextField::addSearchResult):
519         (WebCore::TextField::selectionStart):
520         (WebCore::TextField::hasSelectedText):
521         (WebCore::TextField::selectedText):
522         (WebCore::TextField::setAutoSaveName):
523         (WebCore::TextField::checksDescendantsForFocus):
524         (WebCore::TextField::setSelection):
525         (WebCore::TextField::setMaxResults):
526         (WebCore::TextField::edited):
527         (WebCore::TextField::focusPolicy):
528         (WebCore::TextField::TextField):
529         (WebCore::TextField::~TextField):
530         (WebCore::TextField::setFont):
531         (WebCore::TextField::setAlignment):
532         (WebCore::TextField::setWritingDirection):
533         (WebCore::TextField::maxLength):
534         (WebCore::TextField::setMaxLength):
535         (WebCore::TextField::text):
536         (WebCore::TextField::setText):
537         (WebCore::TextField::cursorPosition):
538         (WebCore::TextField::setCursorPosition):
539         (WebCore::TextField::setEdited):
540         (WebCore::TextField::setReadOnly):
541         (WebCore::TextField::setPlaceholderString):
542         (WebCore::TextField::setColors):
543         (WebCore::TextField::sizeForCharacterWidth):
544         (WebCore::TextField::baselinePosition):
545         (WebCore::TextField::setLiveSearch):
546         (WebCore::Widget::enableFlushDrawing):
547         (WebCore::Widget::isEnabled):
548         (WebCore::Widget::focusPolicy):
549         (WebCore::Widget::disableFlushDrawing):
550         (WebCore::Widget::removeFromParent):
551         (WebCore::Widget::lockDrawingFocus):
552         (WebCore::Widget::unlockDrawingFocus):
553         (WebCore::Widget::capturingMouse):
554         (WebCore::Widget::setCapturingMouse):
555         (WebCore::Widget::capturingTarget):
556         (WebCore::Widget::capturingChild):
557         (WebCore::Widget::setCapturingChild):
558         (WebCore::Widget::convertChildToSelf):
559         (WebCore::Widget::convertSelfToChild):
560         (WebCore::Widget::setParent):
561         (WebCore::Widget::parent):
562         (WebCore::Widget::setEnabled):
563         (WebCore::Widget::paint):
564         (WebCore::Widget::setIsSelected):
565         (WebCore::Widget::invalidate):
566         (WebCore::Widget::invalidateRect):
567         * platform/win/WidgetWin.cpp:
568         (WebCore::Widget::clearFocus):
569
570 2006-11-16  Timothy Hatcher  <timothy@apple.com>
571
572         Reviewed by Adam.
573
574         <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
575
576         * editing/markup.cpp:
577         (WebCore::createMarkup): disable the delete button so it's elements are not serialized into the markup
578
579 2006-11-16  George Staikos  <staikos@kde.org>
580
581         Rubberstamped by Maciej.
582
583         Making the code valgrind clean.
584
585         * rendering/RenderTableCell.cpp: initialize variable m_widthChanged
586         (WebCore::RenderTableCell::RenderTableCell):
587         * rendering/RenderTableCell.h: remove unused variable nWrap
588
589 2006-11-16  David Harrison  <harrison@apple.com>
590
591         Reviewed by Darin and Tim.
592
593         <rdar://problem/4799949> REGRESSION: Crash in FrameMac::eventMayStartDrag() by clicking on a page
594         
595         * page/mac/EventHandlerMac.mm:
596         (WebCore::EventHandler::eventMayStartDrag):
597         Add nil check of hitTest's result.innerNode().
598
599 2006-11-16  Timothy Hatcher  <timothy@apple.com>
600
601         Reviewed by Darin.
602
603         <rdar://problem/4836897> Deletion rectangle disappears when multiple list items are selected
604
605         Consider the container of the selection range for deletion before asking enclosingNodeOfType().
606
607         * editing/DeleteButtonController.cpp:
608         (WebCore::enclosingDeletableElement):
609
610 2006-11-16  Rob Buis  <buis@kde.org>
611
612         Reviewed by hyatt.
613
614         Removal of unused m_styleElement.
615
616         * dom/Node.cpp:
617         (WebCore::Node::Node):
618         (WebCore::Node::dump):
619         * dom/Node.h:
620         (WebCore::Node::isLink): should be styleElement, a bug?
621
622 2006-11-15  Adam Roben  <aroben@apple.com>
623
624         Build fix.
625
626         Rename the items in the ContextMenuAction enum so that they don't
627         conflict with WebKit names.
628
629         * WebCore.xcodeproj/project.pbxproj:
630         * platform/ContextMenu.cpp:
631         (WebCore::ContextMenu::populate):
632         * platform/ContextMenu.h:
633         (WebCore::):
634         (WebCore::ContextMenuItem::ContextMenuItem):
635
636 2006-11-15  Adam Roben  <aroben@apple.com>
637
638         Reviewed by Anders.
639
640         Change m_contextMenu to an OwnPtr.
641
642         * WebCore.xcodeproj/project.pbxproj:
643         * page/ContextMenuController.cpp:
644         (WebCore::ContextMenuController::handleContextMenuEvent):
645         * page/ContextMenuController.h:
646
647 2006-11-15  Adam Roben  <aroben@apple.com>
648
649         Reviewed by Anders.
650
651         Add new ContextMenuController and ContextMenuClient classes, and move
652         context menu responsibilities from Chrome and ChromeClient to them.
653
654         * WebCore.exp:
655         * WebCore.xcodeproj/project.pbxproj: Add new files to project, and
656         alphabetize some others.
657         * page/Chrome.cpp: Remove context menu-related code.
658         * page/Chrome.h: Ditto.
659         * page/ChromeClient.h:
660         * page/ContextMenuClient.h: Added.
661         * page/ContextMenuController.cpp: Added.
662         (WebCore::ContextMenuController::ContextMenuController):
663         (WebCore::ContextMenuController::~ContextMenuController):
664         (WebCore::ContextMenuController::handleContextMenuEvent):
665         (WebCore::ContextMenuController::contextMenuActionSelected):
666         * page/ContextMenuController.h: Added.
667         (WebCore::ContextMenuController::client):
668         * page/Page.cpp: Every Page now has a ContextMenuController.
669         (WebCore::Page::Page):
670         * page/Page.h: Made m_dragCaretController and m_chrome objects instead
671         of pointers to objects.
672         (WebCore::Page::contextMenuController):
673         * platform/ContextMenu.cpp:
674         (WebCore::ContextMenu::populate): Removed the call to Chrome to ask the
675         delegate to add its menu items, and moved the code from the static
676         addDefaultItems function into this method.
677         * platform/ContextMenu.h:
678         (WebCore::ContextMenu::show): Added an empty method body since this
679         method is now called from ContextMenuController (although no one calls
680         into ContextMenuController yet, so it's OK for this to be empty).
681         (WebCore::ContextMenu::hide): Ditto.
682
683 2006-11-15  Anders Carlsson  <acarlsson@apple.com>
684
685         Reviewed by Darin.
686
687         Add null checks on the node filter, they can be null if no filter was passed to the respective
688         create functions.
689         
690         * bindings/js/JSNodeIteratorCustom.cpp:
691         (WebCore::JSNodeIterator::mark):
692         * bindings/js/JSTreeWalkerCustom.cpp:
693         (WebCore::JSTreeWalker::mark):
694
695 2006-11-15  Oliver Hunt  <oliver@apple.com>
696
697         Reviewed by Anders.
698
699         Allow <embed> and <object> tags to include non-plugin
700         content when plugins are disabled
701
702         Fixes <rdar://problems/4839488>
703
704         * html/HTMLEmbedElement.cpp:
705         (WebCore::HTMLEmbedElement::rendererIsNeeded):
706         * html/HTMLObjectElement.cpp:
707         (WebCore::HTMLObjectElement::rendererIsNeeded):
708         * loader/FrameLoader.cpp:
709         (WebCore::FrameLoader::requestObject):
710
711 2006-11-15  Adele Peterson  <adele@apple.com>
712
713         Build fix.  Another type problem that I don't see locally.
714
715         * rendering/RenderSlider.cpp: (WebCore::RenderSlider::setPositionFromValue):
716
717 2006-11-15  Adele Peterson  <adele@apple.com>
718
719         Reviewed by Adam.
720
721         Adding MathExtras header.
722
723         * rendering/RenderSlider.cpp:
724
725 2006-11-15  Timothy Hatcher  <timothy@apple.com>
726
727         Reviewed by Harrison.
728
729         <rdar://problem/4832894> Crash deleting an element inside a list while deletion rectangle is visible (compareBoundaryPoints)
730
731         * Disable and hide the deletion UI for each editing command. This prevents editing commands from being affected
732           by the deletion UI elements we insert. The deletion UI is then shown after the editing commands are completely done.
733
734         * Multiple calls to DeleteButtonController's disable() needed to be paired with the same number of enable() calls before
735           the deletion UI is enabled again. This allows for nested editing commands to be called without thrashing the deletion UI.
736
737         * Make sure the the renderers are currently reflecting the latest style changes, so call updateLayoutIgnorePendingStylesheets().
738
739         * editing/DeleteButtonController.cpp:
740         (WebCore::DeleteButtonController::DeleteButtonController):
741         (WebCore::isDeletableElement):
742         (WebCore::DeleteButtonController::respondToChangedSelection): check the enabled state
743         (WebCore::DeleteButtonController::respondToChangedContents): check the enabled state
744         (WebCore::DeleteButtonController::show): call isDeletableElement() to make sure the element is allowed
745         (WebCore::DeleteButtonController::deleteTarget): check the enabled state
746         * editing/DeleteButtonController.h:
747         (WebCore::DeleteButtonController::disable):
748         (WebCore::DeleteButtonController::enable):
749         (WebCore::DeleteButtonController::enabled):
750         * editing/EditCommand.cpp:
751         (WebCore::EditCommand::apply): hide and disable the deletion UI, then show at the end
752         (WebCore::EditCommand::unapply): ditto
753         (WebCore::EditCommand::reapply): ditto
754
755 2006-11-15  Adele Peterson  <adele@apple.com>
756
757         Reviewed by Adam.
758
759         New implementation of slider control.
760
761         * WebCore.xcodeproj/project.pbxproj: Removed DeprecatedSlider and Slider classes, added RenderSlider class.
762         * rendering/DeprecatedSlider.cpp: Removed.
763         * rendering/DeprecatedSlider.h: Removed.
764         * platform/Slider.h: Removed.
765         * platform/mac/SliderMac.mm: Removed.
766         * platform/win/TemporaryLinkStubs.cpp:
767
768         * css/CSSSelector.h: (WebCore::CSSSelector::): Added PseudoElement for thumb, PseudoSliderThumb.
769         * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType): Added code for "-webkit-slider-thumb".
770         * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::checkOneSelector): 
771         * rendering/RenderStyle.cpp:
772         (WebCore::):
773         (WebCore::pseudoBit):
774         * rendering/RenderStyle.h: (WebCore::RenderStyle::):
775
776         * css/html4.css: Added style for input[type="range"] and input[type="range"]::-webkit-slider-thumb
777
778         * html/HTMLInputElement.cpp:
779         (WebCore::HTMLInputElement::createRenderer): Create RenderSlider for input type="range" elements.
780         (WebCore::HTMLInputElement::defaultEventHandler): Allow the renderer to forward events, and set thumb position when click occurs on the track.
781
782         * 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
783           continue to capture mouse move events during the drag, even though those events aren't directly over the slider.
784         (WebCore::EventHandler::EventHandler):
785         (WebCore::EventHandler::setCapturingMouseEventsNode):
786         (WebCore::EventHandler::dispatchMouseEvent): If the capturingMouseEventsNode is set, then dispatch all mouse events to that node.
787         * page/EventHandler.h:
788
789         * rendering/RenderSlider.cpp: Added.
790         (WebCore::HTMLSliderThumbElement::isShadowNode):
791         (WebCore::HTMLSliderThumbElement::shadowParentNode):
792         (WebCore::HTMLSliderThumbElement::inDragMode): Keeps track of whether or not the thumb is in drag mode.
793         (WebCore::HTMLSliderThumbElement::HTMLSliderThumbElement):
794         (WebCore::HTMLSliderThumbElement::defaultEventHandler): Handles positioning of slider thumb during drag.
795         (WebCore::RenderSlider::RenderSlider):
796         (WebCore::RenderSlider::~RenderSlider):
797         (WebCore::RenderSlider::baselinePosition):
798         (WebCore::RenderSlider::calcMinMaxWidth):
799         (WebCore::RenderSlider::setStyle):
800         (WebCore::RenderSlider::createThumbStyle):
801         (WebCore::RenderSlider::layout): Positions the thumb to be centered on the track.
802         (WebCore::RenderSlider::updateFromElement):
803         (WebCore::RenderSlider::mouseEventIsInThumb):
804         (WebCore::RenderSlider::setValueForPosition):
805         (WebCore::RenderSlider::setPositionFromValue):
806         (WebCore::RenderSlider::positionForOffset):
807         (WebCore::RenderSlider::valueChanged):
808         (WebCore::RenderSlider::currentPosition):
809         (WebCore::RenderSlider::setCurrentPosition):
810         (WebCore::RenderSlider::trackSize):
811         (WebCore::RenderSlider::forwardEvent):
812         (WebCore::RenderSlider::inDragMode):
813         * rendering/RenderSlider.h: Added.
814         (WebCore::RenderSlider::renderName):
815
816          * rendering/RenderTheme.cpp: Added drawing code for slider track and thumb.
817         (WebCore::RenderTheme::adjustStyle):
818         (WebCore::RenderTheme::paint):
819         (WebCore::RenderTheme::paintBorderOnly):
820         (WebCore::RenderTheme::paintDecorations):
821         (WebCore::RenderTheme::adjustSliderTrackStyle):
822         (WebCore::RenderTheme::adjustSliderThumbStyle):
823         * rendering/RenderTheme.h:
824         (WebCore::RenderTheme::paintSliderTrack):
825         (WebCore::RenderTheme::paintSliderThumb):
826         * rendering/RenderThemeMac.h:
827         * rendering/RenderThemeMac.mm:
828         (WebCore::RenderThemeMac::RenderThemeMac):
829         (WebCore::TrackGradientInterpolate):
830         (WebCore::RenderThemeMac::paintSliderTrack):
831         (WebCore::RenderThemeMac::paintSliderThumb):
832         (WebCore::RenderThemeMac::adjustSliderTrackStyle):
833         (WebCore::RenderThemeMac::adjustSliderThumbStyle):
834
835 2006-11-15  Beth Dakin  <bdakin@apple.com>
836
837         Reviewed by Adam.
838
839         Oops! Forgot to add this!
840
841         * platform/mac/ContextMenuMac.mm: Added.
842         (-[MenuTarget forwardContextMenuAction:initWithContextMenu:WebCore::]):
843         (-[MenuTarget WebCore::]):
844         (-[MenuTarget setMenu:WebCore::]):
845         (-[MenuTarget forwardContextMenuAction:]):
846         (getNSMenuItem):
847         (ContextMenu::appendItem):
848         (ContextMenu::itemCount):
849         (ContextMenu::insertItem):
850         (ContextMenu::setPlatformMenuDescription):
851
852 2006-11-15  Beth Dakin  <bdakin@apple.com>
853         &   Adam Roben  <aroben@apple.com>
854
855         Reviewed by Adam and Beth.
856
857         Initial cut at pushing Context Menus into WebCore. Nobody actually 
858         calls this code just yet.
859
860         * WebCore.exp:
861         * WebCore.xcodeproj/project.pbxproj:
862         * page/Chrome.cpp:
863         (WebCore::Chrome::addCustomContextMenuItems): Use the chrome to 
864         call into addContextMenuItems on the UIDelegate.
865         * page/Chrome.h:
866         * page/ChromeClient.h:
867         * platform/ContextMenu.cpp: Added.
868         (WebCore::addDefaultItems):
869         (WebCore::ContextMenu::populate):
870         * platform/ContextMenu.h: Added.
871         (WebCore::):
872         (WebCore::ContextMenuItem::ContextMenuItem):
873         (WebCore::ContextMenu::ContextMenu):
874         (WebCore::ContextMenu::hitTestResult):
875         (WebCore::ContextMenu::platformMenuDescription):
876
877 2006-11-15  Adele Peterson  <adele@apple.com>
878
879         Reviewed by Hyatt.
880
881         - Fix for <rdar://problem/4780306> REGRESSION: clicking in textarea does not set selection at PunBB.org
882
883         * css/html4.css: Removed "-webkit-user-select: ignore" for labels.
884
885 2006-11-15  David Harrison  <harrison@apple.com>
886
887         Reviewed by Darin.
888
889         <rdar://problem/4836034> REGRESSION: Hang while spell-checking (advanceToNextMisspelling)
890
891         Test:
892         * manual-tests/keep_spelling_markers.html:
893         Updated to include checking for this bug.
894         
895         * bridge/mac/FrameMac.mm:
896         (WebCore::FrameMac::advanceToNextMisspelling):
897         it.advance() even when current string is a single space.
898
899 2006-11-15  Brady Eidson  <beidson@apple.com>
900
901         Reviewed by lamadio
902
903         Backing out macro expansion
904
905         * WebCore.xcodeproj/project.pbxproj:
906         * html/HTMLElement.cpp:
907         (WebCore::HTMLElement::isRecognizedTagName):
908         * ksvg2/scripts/make_names.pl:
909
910 2006-11-15  David Harrison  <harrison@apple.com>
911
912         Reviewed by Darin.
913
914         <rdar://problem/4770453> VO not honoring secure edit fields in web pages
915
916         The remaining problem was the password fields would return their contents
917         even though they did not advertise that they could. Apparently, VoiceOver
918         does not read the ads.
919
920         * bridge/mac/WebCoreAXObject.mm:
921         (isPasswordFieldElement):
922         (-[WebCoreAXObject isPasswordField]):
923         (-[WebCoreAXObject textMarkerForVisiblePosition:]):
924         (-[WebCoreAXObject accessibilityAttributeValue:]):
925         (-[WebCoreAXObject doAXStringForRange:]):
926
927 2006-11-13  Lou Amadio  <lamadio@apple.com>
928
929         Reviewed by Darin Adler, Maciej Stachowiak
930
931         Cleanup: Expanded macros in generated files
932
933         * html/HTMLElement.cpp:
934         (WebCore::HTMLElement::isRecognizedTagName):
935         * ksvg2/scripts/make_names.pl:
936
937 2006-11-16  Anders Carlsson  <acarlsson@apple.com>
938
939         Reviewed by Geoff.
940
941         Use Vector instead of DeprecatedPtrList.
942         
943         * editing/ApplyStyleCommand.cpp:
944         (WebCore::ApplyStyleCommand::applyBlockStyle):
945         * editing/BreakBlockquoteCommand.cpp:
946         * rendering/RenderFlow.cpp:
947         (WebCore::RenderFlow::paintOutline):
948
949 2006-11-15  Adam Roben  <aroben@apple.com>
950
951         Build fix.
952
953         * page/EventHandler.h:
954
955 2006-11-14  Beth Dakin  <bdakin@apple.com>
956
957         Reviewed by Geoff.
958
959         Move things off the bridge, and move sendContextMenuEvent() from 
960         EventHandlerMac to EventHandler.
961
962         * WebCore.exp:
963         * WebCore.xcodeproj/project.pbxproj:
964         * bridge/EditorClient.h:
965         * bridge/mac/WebCoreFrameBridge.h:
966         * editing/Editor.cpp:
967         (WebCore::Editor::selectWordBeforeMenuEvent):
968         (WebCore::Editor::clientIsEditable):
969         * editing/Editor.h:
970         * page/EventHandler.cpp:
971         (WebCore::EventHandler::sendContextMenuEvent):
972         * page/EventHandler.h:
973         * page/mac/EventHandlerMac.mm:
974
975 2006-11-14  Timothy Hatcher  <timothy@apple.com>
976
977         Reviewed by Harrison.
978
979         <rdar://problem/4766635> Safari should never follow links in editable areas (add a WebKitEditableLinkNeverLive option)
980
981         Adds an EditableLinkNeverLive setting that will make links in editable areas always dead.
982
983         * bridge/mac/WebCoreSettings.mm:
984         (-[WebCoreSettings setEditableLinkBehavior:]):
985         * html/HTMLAnchorElement.cpp:
986         (WebCore::HTMLAnchorElement::defaultEventHandler):
987         (WebCore::HTMLAnchorElement::setActive):
988         (WebCore::HTMLAnchorElement::isLiveLink):
989         * page/FrameView.cpp:
990         (WebCore::selectCursor):
991         * page/Settings.h:
992         (WebCore::Settings::):
993
994 2006-11-14  Mark Rowe  <bdash@webkit.org>
995
996         Reviewed by Oliver.
997
998         Build fix
999
1000         * bindings/scripts/CodeGenerator.pm:
1001
1002 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
1003
1004         Turns out I wasn't forcing DWARF on the world at all, 
1005         it's now the default!
1006
1007         * WebCore.xcodeproj/project.pbxproj:
1008
1009 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
1010
1011         I must stop trying to force DWARF on the world.
1012         
1013         * WebCore.xcodeproj/project.pbxproj:
1014
1015 2006-11-13  Justin Garcia  <justin.garcia@apple.com>
1016
1017         Reviewed by harrison
1018         
1019         <rdar://problem/4806874>
1020         Missing background image after paste
1021         
1022         * editing/markup.cpp:
1023         (WebCore::createMarkup): If the body is fully selected, add a 
1024         div with its CSS properties to the markup.  Migrated a use of 
1025         enclosingBlockFlowElement to enclosingBlock to fix an infinite 
1026         loop when pasting <div><input></div>.
1027
1028 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
1029
1030         Reviewed by Adam.
1031
1032         Add Undo/Redo to execCommand.
1033         
1034         * editing/Editor.cpp:
1035         (WebCore::execRedo):
1036         (WebCore::execUndo):
1037         (WebCore::canRedo):
1038         (WebCore::canUndo):
1039         (WebCore::CommandEntry::):
1040
1041 2006-11-14  Darin Adler  <darin@apple.com>
1042
1043         Reviewed by Anders.
1044
1045         - created EventHandler class, moved event handling code from both
1046           Frame and FrameView in there
1047
1048         - added ScrollTypes.h header so you can include the scroller-related
1049           enums without all of Scrollbar.h
1050
1051         * page/EventHandler.cpp: Added.
1052         * page/EventHandler.h: Added.
1053         * page/mac/EventHandlerMac.mm: Added.
1054
1055         * platform/ScrollBarMode.h: Removed.
1056         * platform/ScrollTypes.h: Added.
1057
1058         * WebCore.exp:
1059         * WebCore.xcodeproj/project.pbxproj:
1060         * bridge/mac/FrameMac.h:
1061         * bridge/mac/FrameMac.mm:
1062         (WebCore::FrameMac::FrameMac):
1063         (WebCore::FrameMac::~FrameMac):
1064         (WebCore::FrameMac::bridgeForWidget):
1065         (WebCore::FrameMac::imageFromRect):
1066         * bridge/mac/FrameViewMac.mm:
1067         * bridge/mac/WebCoreFrameBridge.mm:
1068         (-[WebCoreFrameBridge scrollOverflowInDirection:granularity:]):
1069         (-[WebCoreFrameBridge nextKeyView]):
1070         (-[WebCoreFrameBridge previousKeyView]):
1071         (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]):
1072         (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):
1073         (-[WebCoreFrameBridge _visiblePositionForPoint:]):
1074         (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
1075         (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
1076         (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
1077         (-[WebCoreFrameBridge dragSourceMovedTo:]):
1078         (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
1079         * dom/Document.cpp:
1080         (WebCore::Document::hoveredNodeDetached):
1081         * dom/Element.h:
1082         * dom/EventTargetNode.cpp:
1083         (WebCore::EventTargetNode::defaultEventHandler):
1084         * editing/SelectionController.cpp:
1085         (WebCore::SelectionController::SelectionController):
1086         * editing/SelectionController.h:
1087         (WebCore::SelectionController::setCaretBlinkingSuspended):
1088         (WebCore::SelectionController::isCaretBlinkingSuspended):
1089         * html/HTMLAnchorElement.cpp:
1090         (WebCore::HTMLAnchorElement::isKeyboardFocusable):
1091         * html/HTMLFrameElementBase.cpp:
1092         (WebCore::HTMLFrameElementBase::setFocus):
1093         * html/HTMLFrameElementBase.h:
1094         * html/HTMLGenericFormElement.cpp:
1095         (WebCore::HTMLGenericFormElement::isKeyboardFocusable):
1096         * html/HTMLInputElement.cpp:
1097         (WebCore::HTMLInputElement::defaultEventHandler):
1098         * html/HTMLSelectElement.cpp:
1099         (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
1100         * loader/FrameLoader.cpp:
1101         (WebCore::FrameLoader::clear):
1102         (WebCore::FrameLoader::open):
1103
1104         * page/Frame.cpp:
1105         (WebCore::Frame::caretBlinkTimerFired):
1106         (WebCore::Frame::frameForWidget):
1107         (WebCore::Frame::eventHandler):
1108         (WebCore::Frame::setProhibitsScrolling):
1109         (WebCore::FramePrivate::FramePrivate):
1110         * page/Frame.h:
1111         * page/FramePrivate.h:
1112         * page/FrameView.cpp:
1113         (WebCore::FrameViewPrivate::FrameViewPrivate):
1114         (WebCore::FrameViewPrivate::reset):
1115         (WebCore::FrameView::FrameView):
1116         (WebCore::FrameView::~FrameView):
1117         (WebCore::FrameView::clear):
1118         (WebCore::FrameView::adjustViewSize):
1119         (WebCore::FrameView::addRepaintInfo):
1120         (WebCore::FrameView::layout):
1121         (WebCore::FrameView::scrollPointRecursively):
1122         (WebCore::FrameView::setContentsPos):
1123         (WebCore::FrameView::scheduleRelayoutOfSubtree):
1124         (WebCore::FrameView::scheduleEvent):
1125         (WebCore::FrameView::updateOverflowStatus):
1126         (WebCore::FrameView::dispatchScheduledEvents):
1127         (WebCore::FrameView::windowClipRectForLayer):
1128         (WebCore::FrameView::handleMouseMoveEvent):
1129         (WebCore::FrameView::handleMouseReleaseEvent):
1130         * page/FrameView.h:
1131         * page/PageState.cpp:
1132         (WebCore::PageState::PageState):
1133         (WebCore::PageState::restore):
1134         * page/PageState.h:
1135         * platform/ScrollBar.h:
1136         * platform/ScrollView.h:
1137         * platform/mac/ClipboardMac.mm:
1138         * platform/mac/PopupMenuMac.mm:
1139         (WebCore::PopupMenu::show):
1140         * platform/mac/SliderMac.mm:
1141         (-[WebCoreSlider becomeFirstResponder]):
1142         (-[WebCoreSlider nextKeyView]):
1143         (-[WebCoreSlider previousKeyView]):
1144         (-[WebCoreSlider canBecomeKeyView]):
1145         (Slider::focusPolicy):
1146         * platform/mac/WebCoreTextField.mm:
1147         (-[WebCoreTextFieldController textView:shouldHandleEvent:]):
1148         (-[WebCoreTextFieldController setHasFocus:]):
1149         (-[WebCoreSearchField nextKeyView]):
1150         (-[WebCoreSearchField previousKeyView]):
1151         (-[WebCoreSearchFieldCell _addStringToRecentSearches:]):
1152         * platform/mac/WidgetMac.mm:
1153         (WebCore::Widget::hasFocus):
1154         (WebCore::Widget::clearFocus):
1155         * rendering/RenderFrameSet.cpp:
1156         (WebCore::RenderFrameSet::setResizing):
1157         * rendering/RenderLayer.cpp:
1158         (WebCore::RenderLayer::autoscroll):
1159         (WebCore::RenderLayer::resize):
1160         (WebCore::RenderLayer::updateOverflowStatus):
1161         * rendering/RenderLayer.h:
1162         * rendering/RenderListBox.cpp:
1163         (WebCore::RenderListBox::autoscroll):
1164         * rendering/RenderObject.cpp:
1165         (WebCore::RenderObject::draggableNode):
1166         (WebCore::RenderObject::destroy):
1167         * rendering/RenderObject.h:
1168         (WebCore::RenderObject::RepaintInfo::RepaintInfo):
1169         * rendering/RenderPartObject.cpp:
1170         (WebCore::RenderPartObject::viewCleared):
1171
1172 2006-11-14  Anders Carlsson  <acarlsson@apple.com>
1173
1174         Reviewed by Darin.
1175
1176         Let the editor client handle undo/redo.
1177         
1178         * WebCore.exp:
1179         * WebCore.xcodeproj/project.pbxproj:
1180         * bridge/EditorClient.h:
1181         * bridge/mac/FrameMac.h:
1182         * bridge/mac/FrameMac.mm:
1183         (WebCore::FrameMac::canUndo):
1184         (WebCore::FrameMac::canRedo):
1185         * bridge/mac/WebCoreEditCommand.h: Removed.
1186         * bridge/mac/WebCoreEditCommand.mm: Removed.
1187         * bridge/mac/WebCoreFrameBridge.h:
1188         * bridge/mac/WebCoreFrameBridge.mm:
1189         * editing/Editor.cpp:
1190         (WebCore::Editor::appliedEditing):
1191         (WebCore::Editor::unappliedEditing):
1192         (WebCore::Editor::reappliedEditing):
1193         * editing/JSEditor.cpp:
1194         * loader/FrameLoader.cpp:
1195         (WebCore::FrameLoader::closeURL):
1196         * page/Frame.cpp:
1197         * page/Frame.h:
1198         * rendering/RenderTextControl.cpp:
1199         (WebCore::RenderTextControl::updateFromElement):
1200
1201 2006-11-14  Nikolas Zimmermann  <zimmermann@kde.org>
1202
1203         Reviewed and landed by Brady
1204
1205         Fix Qt/Linux build.
1206
1207         * ChangeLog:
1208         * loader/qt/FrameLoaderQt.cpp:
1209         (WebCore::FrameLoader::submitForm):
1210         * platform/network/qt/ResourceHandleManager.cpp:
1211         (WebCore::ResourceHandleManager::add):
1212         * platform/qt/FrameQtClient.cpp:
1213         (WebCore::FrameQtClientDefault::submitForm):
1214         * platform/qt/FrameQtClient.h:
1215
1216 2006-11-14  Brady Eidson  <beidson@apple.com>
1217
1218         Reviewed by Anders
1219
1220         Cleanup of my patch last night and merging with aroben-style changes from this morning
1221         (More ref-counted FormData stuff)
1222
1223         * html/HTMLFormElement.cpp:
1224         (WebCore::HTMLFormElement::submit):
1225         * loader/FrameLoader.cpp:
1226         (WebCore::FrameLoader::submitForm):
1227         * platform/network/ResourceHandle.cpp:
1228         (WebCore::ResourceHandle::postData):
1229         * platform/network/ResourceHandle.h:
1230         * platform/network/cf/FormDataStreamCFNet.cpp:
1231         (WebCore::setHTTPBody):
1232         * platform/network/mac/FormDataStreamMac.h:
1233         * platform/network/mac/FormDataStreamMac.mm:
1234         (WebCore::getStreamFormDatas):
1235         (WebCore::formCreate):
1236         (WebCore::formFinalize):
1237         (WebCore::setHTTPBody):
1238         (WebCore::httpBodyFromStream):
1239         * platform/network/mac/ResourceRequestMac.mm:
1240         (WebCore::getResourceRequest):
1241
1242 2006-11-14  Rob Buis  <buis@kde.org>
1243
1244         Reviewed by Darin.
1245
1246         http://bugs.webkit.org/show_bug.cgi?id=11575
1247         Bug 11575: REGRESSION: WebCore crash in CSSParser/HTMLTokenizer
1248
1249         Test: fast/css/css-imports.html
1250
1251         * css/CSSImportRule.cpp:
1252         (WebCore::CSSImportRule::insertedIntoParent):
1253         Fix the crash by testing for null pointer.
1254
1255 2006-11-14  Alexey Proskuryakov  <ap@webkit.org>
1256
1257         Reviewed by Tim H.
1258
1259         Test for http://bugs.webkit.org/show_bug.cgi?id=3387
1260         Redundant keydown, keypress, keyup events sent for arrow keys
1261
1262         * manual-tests/arrow-key-events.html: Added.
1263
1264 2006-11-14  Darin Adler  <darin@apple.com>
1265
1266         Reviewed by Adam.
1267
1268         Fix up usages of FormData within CFNet loader code.
1269
1270         * platform/network/ResourceRequest.h:
1271         (WebCore::ResourceRequest::httpBody):
1272         * platform/network/cf/FormDataStreamCFNet.cpp:
1273         (WebCore::getStreamFormDatas): Store RefPtr<FormData>s in the
1274         streamFormDatas HashMap.
1275         (WebCore::formCreate):
1276         (WebCore::formFinalize): Removed delete because the remove() will deref
1277         and delete if necessary.
1278         (WebCore::setHTTPBody): Changed parameter to PassRefPtr.
1279         (WebCore::httpBodyFromStream):
1280         * platform/network/cf/FormDataStreamCFNet.h: Fix declarations.
1281         * platform/network/cf/ResourceRequestCFNet.cpp:
1282         (WebCore::getResourceRequest):
1283
1284 2006-11-14  Greg Jackson  <gjspanner@gmail.com>
1285
1286         Reviewed by Darin.
1287
1288         Preserves any pre-existing value for WEBCORE_NAVIGATOR_PLATFORM
1289         rather than overriding it based on platform detection.
1290
1291         * bindings/js/kjs_navigator.cpp:
1292
1293 2006-11-13  Brady Eidson  <beidson@apple.com>
1294
1295         Reviewed by Maciej
1296
1297         Made FormData Shared, and pass it around as such.
1298
1299         * WebCore.xcodeproj/project.pbxproj: Reordered some items
1300         * html/HTMLFormElement.cpp:
1301         (WebCore::HTMLFormElement::formData):
1302         (WebCore::HTMLFormElement::submit):
1303         * html/HTMLFormElement.h:
1304         * loader/FrameLoader.cpp:
1305         (WebCore::FormSubmission::FormSubmission):
1306         (WebCore::FrameLoader::submitForm):
1307         * loader/FrameLoader.h:
1308         * loader/mac/FrameLoaderMac.mm:
1309         (WebCore::FrameLoader::post):
1310         (WebCore::FrameLoader::loadResourceSynchronously):
1311         * loader/mac/SubresourceLoaderMac.mm:
1312         (WebCore::SubresourceLoader::create):
1313         * platform/network/FormData.h: Made FormData shared
1314         * platform/network/ResourceHandle.h:
1315         * platform/network/ResourceHandle.cpp:
1316         (WebCore::ResourceHandle::postData): 
1317         * platform/network/ResourceRequest.h:
1318         (WebCore::ResourceRequest::httpBody):
1319         (WebCore::ResourceRequest::setHTTPBody): 
1320         * platform/network/mac/ResourceRequestMac.mm:
1321         (WebCore::getResourceRequest):
1322         (WebCore::nsURLRequest): 
1323
1324         * platform/network/mac/FormDataStreamMac.h:
1325         * platform/network/mac/FormDataStreamMac.mm:
1326         (WebCore::getStreamFormDatas): Hash Streams to RefPtr<FormData>s
1327         (WebCore::formCreate):
1328         (WebCore::formFinalize):
1329         (WebCore::setHTTPBody):
1330         (WebCore::httpBodyFromStream):
1331
1332         * xml/xmlhttprequest.cpp:
1333         (WebCore::XMLHttpRequest::send):
1334
1335 2006-11-13  Justin Garcia  <justin.garcia@apple.com>
1336
1337         Reviewed by harrison
1338         
1339         <rdar://problem/4828264>
1340         In Mail, a crash occurs at WebCore::Selection::toRange() when selecting this web content (http://www.cnet.com/)
1341         
1342         The start of the selection is in an editable area, and the end is in an 
1343         input field inside that editable area.  The code that should pull the end
1344         of such a selection outside the input field didn't escape shadow nodes,
1345         it would leave a dangling end, causing the crash in toRange.
1346         
1347         * editing/Selection.cpp:
1348         (WebCore::Selection::adjustForEditableContent):  Added an ASSERT and a fixup
1349         to prevent crashes like this in future Release builds.
1350         * editing/htmlediting.cpp:
1351         (WebCore::firstEditablePositionAfterPositionInRoot): Let this function 
1352         escape shadow nodes.  We might eventually push this code down into 
1353         next/previous{VisuallyDistinct}Canditate.
1354         (WebCore::lastEditablePositionBeforePositionInRoot): Ditto.
1355
1356 2006-11-13  Justin Garcia  <justin.garcia@apple.com>
1357
1358         Reviewed by darin
1359         
1360         * editing/DeleteSelectionCommand.cpp:
1361         (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor):
1362         * editing/Editor.cpp:
1363         (WebCore::Editor::appliedEditing):
1364         * editing/Editor.h:
1365         (WebCore::Editor::setRemovedAnchor): Pass a PassRefPtr.
1366
1367 2006-11-10  Justin Garcia  <justin.garcia@apple.com>
1368
1369         Reviewed by Oliver
1370         
1371         <rdar://problem/4820026>
1372         copy/paste of news.google.com yields text from hidden select element options
1373
1374         We were adding descendants of unrendered select elements. 
1375
1376         * editing/markup.cpp:
1377         (WebCore::createMarkup): Don't traverse into nodes without renderers, unless 
1378         they are grandfathered in by a rendered select element.
1379         
1380 2006-11-12  Simon Hausmann  <hausmann@kde.org>
1381
1382         Reviewed by Sam Weinig.
1383
1384         Fix Qt build. Missing AbstractShared implementation.
1385         http://bugs.webkit.org/show_bug.cgi?id=11581
1386
1387         * loader/qt/FrameLoaderClientQt.cpp:
1388         (WebCore::FrameLoaderClientQt::ref):
1389         (WebCore::FrameLoaderClientQt::deref):
1390         * loader/qt/FrameLoaderClientQt.h:
1391         * platform/qt/ChromeClientQt.cpp:
1392         (WebCore::ChromeClientQt::ref):
1393         (WebCore::ChromeClientQt::deref):
1394         * platform/qt/ChromeClientQt.h:
1395         * platform/qt/EditorClientQt.cpp:
1396         (WebCore::EditorClientQt::ref):
1397         (WebCore::EditorClientQt::deref):
1398         * platform/qt/EditorClientQt.h:
1399
1400 2006-11-13  Mark Rowe  <bdash@webkit.org>
1401
1402         Reviewed by Mitz.
1403
1404         Fix some Linux/Gdk build issues noted by Alp Toker.
1405
1406         * Projects/gdk/webcore-gdk.bkl:
1407         * WebCoreSources.bkl:
1408         * platform/graphics/gdk/ImageGdk.cpp:
1409         (WebCore::Image::loadPlatformResource):
1410
1411 2006-11-12  Brady Eidson <beidson@apple.com>
1412
1413         Reviewed by Anders
1414
1415         Logging channel plumbing for future work
1416
1417         * platform/Logging.cpp:
1418         (WebCore::):
1419         * platform/Logging.h:
1420         * platform/mac/LoggingMac.mm:
1421         (WebCore::InitializeLoggingChannelsIfNecessary):
1422
1423 2006-11-12  Mark Rowe  <bdash@webkit.org>
1424
1425         Reviewed by Mitz.
1426
1427         Linux/Gdk compilation fixes, and bakefile cleanups.  Based on patches by
1428         Alp Toker.
1429
1430         * Projects/gdk/webcore-gdk.bkl:
1431         * WebCoreSources.bkl:
1432         * page/PageState.cpp:
1433         * platform/gdk/ChromeClientGdk.h:
1434         (WebCore::ChromeClientGdk::ref):
1435         (WebCore::ChromeClientGdk::deref):
1436         * platform/gdk/FrameGdk.cpp:
1437         (WebCore::FrameGdkClientDefault::openURL):
1438         (WebCore::FrameGdkClientDefault::didReceiveData):
1439         (WebCore::FrameGdkClientDefault::receivedAllData):
1440         (WebCore::FrameGdk::FrameGdk):
1441         (WebCore::FrameGdk::~FrameGdk):
1442         * platform/gdk/FrameGdk.h:
1443         * platform/gdk/KeyEventGdk.cpp:
1444         (WebCore::keyIdentifierForGdkKeyCode):
1445         * platform/gdk/ScreenClientGdk.h: Removed.
1446         * platform/gdk/TemporaryLinkStubs.cpp:
1447         (FrameGdk::canPaste):
1448         (FrameGdk::originalRequestURL):
1449         (TextField::TextField):
1450         * platform/network/gdk/ResourceHandleManager.cpp:
1451         (WebCore::ResourceHandleManager::downloadTimerCallback):
1452         (WebCore::ResourceHandleManager::add):
1453         (WebCore::ResourceHandleManager::cancel):
1454         * webcore-base.bkl:
1455
1456 2006-11-11  Geoffrey Garen  <ggaren@apple.com>
1457
1458         Reviewed by Maciej Stachowiak.
1459         
1460         - Fixed loader crash by clarifying ownership of WebKit client objects. 
1461         WebCore objects own their WebKit clients, and ref and deref through 
1462         virtual methods, leaving WebKit free to use whatever client / reference-counting 
1463         implementation it likes.
1464         
1465         * WebCore.exp:
1466         * WebCore.xcodeproj/project.pbxproj:
1467         * bridge/EditorClient.h: Fixed up function prototypes for style.
1468         * loader/FrameLoader.cpp: Removed detachFrameLoader, since its real purpose
1469         was to implement an alternative ownership model.
1470         (WebCore::FrameLoader::~FrameLoader): Removed empty destructor.
1471         (WebCore::FrameLoader::setClient): This function now takes ownership
1472         (WebCore::FrameLoader::client):
1473         * loader/FrameLoader.h:
1474         * loader/FrameLoaderClient.h:
1475         * page/ChromeClient.h:
1476         * platform/AbstractShared.h: Added. This is the virtual function-based refcounting
1477         complement to Shared.
1478         (WebCore::AbstractShared::~AbstractShared):
1479
1480 2006-11-11  George Staikos  <staikos@kde.org>
1481
1482         Reviewed by Maciej.
1483
1484         Fix uninitialized variable.
1485
1486         * rendering/RenderStyle.h:
1487
1488 2006-11-11  Nikolas Zimmermann  <zimmermann@kde.org>
1489
1490         Reviewed/landed by Adam.
1491
1492         Complete cleanup of the CMakeLists.txt.
1493         Now all files to be built are sorted in alphabetic order.
1494
1495         General style cleanup, remove all tabs etc.
1496
1497         * CMakeLists.txt:
1498
1499 2006-11-11  Geoffrey Garen  <ggaren@apple.com>
1500
1501         Reviewed by Maciej Stachowiak.
1502         
1503         Added missing initializer to ResourceRequest -- fixes some loader crashes
1504         due to assuming a request always has a non-null httpMethod.
1505
1506         * platform/network/ResourceRequest.h:
1507         (WebCore::ResourceRequest::ResourceRequest):
1508
1509 2006-11-11  Brady Eidson <beidson@apple.com>
1510
1511         Reviewed by Maciej
1512
1513         Fixed header guard
1514
1515         * loader/FrameLoaderClient.h:
1516
1517 2006-11-11  Darin Adler  <darin@apple.com>
1518
1519         - attempt to fix Qt build
1520
1521         * platform/qt/CursorQt.cpp:
1522         (WebCore::verticalTextCursor): Added. Just returns pointer cursor.
1523         (WebCore::cellCursor): Ditto.
1524         (WebCore::contextMenuCursor): Ditto.
1525
1526 2006-11-11  Rob Buis  <buis@kde.org>
1527
1528         Reviewed by hyatt.
1529
1530         http://bugs.webkit.org/show_bug.cgi?id=10893
1531         InsertRule can not handle @import statements
1532
1533         Allow @import as part of a css rule.
1534
1535         * css/CSSGrammar.y:
1536         * css/CSSImportRule.cpp:
1537         (WebCore::CSSImportRule::insertedIntoParent):
1538         * css/CSSStyleSheet.cpp:
1539         (WebCore::CSSStyleSheet::CSSStyleSheet):
1540         (WebCore::CSSStyleSheet::checkLoaded):
1541         * css/CSSStyleSheet.h:
1542         (WebCore::CSSStyleSheet::loadCompleted):
1543
1544 2006-11-11  Alexey Proskuryakov  <ap@webkit.org>
1545
1546         Attempt to fix Qt build.
1547
1548         * CMakeLists.txt: PathQt.cpp is in graphics/qt now.
1549
1550 2006-11-11  Lars Naesbye Christensen  <larsnaesbye@stud.ku.dk>
1551
1552         Tortured by Sam Weinig, Tim H., Maciej, Mitz and Alexey :-)
1553
1554         [CSS 3] support for vertical-text, cell and context-menu cursors
1555         http://bugs.webkit.org/show_bug.cgi?id=11494
1556
1557         * Resources/cellCursor.png: Added.
1558         * Resources/contextMenuCursor.png: Added.
1559         * Resources/verticalTextCursor.png: Added.
1560         * WebCore.xcodeproj/project.pbxproj:
1561         * css/CSSComputedStyleDeclaration.cpp:
1562         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1563         * css/CSSValueKeywords.in:
1564         * manual-tests/cursor.html:
1565         * page/FrameView.cpp:
1566         (WebCore::selectCursor):
1567         * platform/Cursor.h:
1568         * platform/mac/CursorMac.mm:
1569         (WebCore::verticalTextCursor):
1570         (WebCore::cellCursor):
1571         (WebCore::contextMenuCursor):
1572         * rendering/RenderStyle.h:
1573         (WebCore::):
1574
1575 2006-11-11  Nikolas Zimmermann  <zimmermann@kde.org>
1576
1577         Reviewed by aroben and ap, landed by ap.
1578
1579         Fixes: http://bugs.webkit.org/show_bug.cgi?id=11468
1580
1581         Group graphics related files in platform/graphics.
1582         Move certain files from certain subdirectories
1583         into platform/graphics/{win,mac,cg,gdk,qt}
1584
1585         * CMakeLists.txt:
1586         * WebCore.xcodeproj/project.pbxproj:
1587         * platform/AffineTransform.cpp: Removed.
1588         * platform/AffineTransform.h: Removed.
1589         * platform/Color.cpp: Removed.
1590         * platform/Color.h: Removed.
1591         * platform/FloatPoint.cpp: Removed.
1592         * platform/FloatPoint.h: Removed.
1593         * platform/FloatRect.cpp: Removed.
1594         * platform/FloatRect.h: Removed.
1595         * platform/FloatSize.cpp: Removed.
1596         * platform/FloatSize.h: Removed.
1597         * platform/Icon.h: Removed.
1598         * platform/Image.cpp: Removed.
1599         * platform/Image.h: Removed.
1600         * platform/ImageSource.h: Removed.
1601         * platform/IntPoint.h: Removed.
1602         * platform/IntRect.cpp: Removed.
1603         * platform/IntRect.h: Removed.
1604         * platform/IntSize.h: Removed.
1605         * platform/IntSizeHash.h: Removed.
1606         * platform/Path.cpp: Removed.
1607         * platform/Path.h: Removed.
1608         * platform/Pen.cpp: Removed.
1609         * platform/Pen.h: Removed.
1610         * platform/cairo/AffineTransformCairo.cpp: Removed.
1611         * platform/cairo/GraphicsContextCairo.cpp: Removed.
1612         * platform/cairo/ImageCairo.cpp: Removed.
1613         * platform/cairo/ImageSourceCairo.cpp: Removed.
1614         * platform/cairo/cairo/AUTHORS: Removed.
1615         * platform/cairo/cairo/COPYING: Removed.
1616         * platform/cairo/cairo/COPYING-LGPL-2.1: Removed.
1617         * platform/cairo/cairo/COPYING-MPL-1.1: Removed.
1618         * platform/cairo/cairo/INSTALL: Removed.
1619         * platform/cairo/cairo/NEWS: Removed.
1620         * platform/cairo/cairo/README: Removed.
1621         * platform/cairo/cairo/TODO: Removed.
1622         * platform/cairo/cairo/src/Makefile.in: Removed.
1623         * platform/cairo/cairo/src/cairo-arc-private.h: Removed.
1624         * platform/cairo/cairo/src/cairo-arc.c: Removed.
1625         * platform/cairo/cairo/src/cairo-array.c: Removed.
1626         * platform/cairo/cairo/src/cairo-atsui-font.c: Removed.
1627         * platform/cairo/cairo/src/cairo-atsui.h: Removed.
1628         * platform/cairo/cairo/src/cairo-beos-surface.cpp: Removed.
1629         * platform/cairo/cairo/src/cairo-beos.h: Removed.
1630         * platform/cairo/cairo/src/cairo-cache-private.h: Removed.
1631         * platform/cairo/cairo/src/cairo-cache.c: Removed.
1632         * platform/cairo/cairo/src/cairo-clip-private.h: Removed.
1633         * platform/cairo/cairo/src/cairo-clip.c: Removed.
1634         * platform/cairo/cairo/src/cairo-color.c: Removed.
1635         * platform/cairo/cairo/src/cairo-debug.c: Removed.
1636         * platform/cairo/cairo/src/cairo-debug.h: Removed.
1637         * platform/cairo/cairo/src/cairo-directfb-surface.c: Removed.
1638         * platform/cairo/cairo/src/cairo-directfb.h: Removed.
1639         * platform/cairo/cairo/src/cairo-features.h: Removed.
1640         * platform/cairo/cairo/src/cairo-features.h.in: Removed.
1641         * platform/cairo/cairo/src/cairo-fixed.c: Removed.
1642         * platform/cairo/cairo/src/cairo-font-options.c: Removed.
1643         * platform/cairo/cairo/src/cairo-font-subset-private.h: Removed.
1644         * platform/cairo/cairo/src/cairo-font-subset.c: Removed.
1645         * platform/cairo/cairo/src/cairo-font.c: Removed.
1646         * platform/cairo/cairo/src/cairo-ft-font.c: Removed.
1647         * platform/cairo/cairo/src/cairo-ft-private.h: Removed.
1648         * platform/cairo/cairo/src/cairo-ft.h: Removed.
1649         * platform/cairo/cairo/src/cairo-glitz-surface.c: Removed.
1650         * platform/cairo/cairo/src/cairo-glitz.h: Removed.
1651         * platform/cairo/cairo/src/cairo-gstate-private.h: Removed.
1652         * platform/cairo/cairo/src/cairo-gstate.c: Removed.
1653         * platform/cairo/cairo/src/cairo-hash-private.h: Removed.
1654         * platform/cairo/cairo/src/cairo-hash.c: Removed.
1655         * platform/cairo/cairo/src/cairo-hull.c: Removed.
1656         * platform/cairo/cairo/src/cairo-image-surface.c: Removed.
1657         * platform/cairo/cairo/src/cairo-matrix.c: Removed.
1658         * platform/cairo/cairo/src/cairo-meta-surface-private.h: Removed.
1659         * platform/cairo/cairo/src/cairo-meta-surface.c: Removed.
1660         * platform/cairo/cairo/src/cairo-output-stream.c: Removed.
1661         * platform/cairo/cairo/src/cairo-paginated-surface-private.h: Removed.
1662         * platform/cairo/cairo/src/cairo-paginated-surface.c: Removed.
1663         * platform/cairo/cairo/src/cairo-path-bounds.c: Removed.
1664         * platform/cairo/cairo/src/cairo-path-data-private.h: Removed.
1665         * platform/cairo/cairo/src/cairo-path-data.c: Removed.
1666         * platform/cairo/cairo/src/cairo-path-fill.c: Removed.
1667         * platform/cairo/cairo/src/cairo-path-fixed-private.h: Removed.
1668         * platform/cairo/cairo/src/cairo-path-stroke.c: Removed.
1669         * platform/cairo/cairo/src/cairo-path.c: Removed.
1670         * platform/cairo/cairo/src/cairo-pattern.c: Removed.
1671         * platform/cairo/cairo/src/cairo-pdf-surface.c: Removed.
1672         * platform/cairo/cairo/src/cairo-pdf.h: Removed.
1673         * platform/cairo/cairo/src/cairo-pen.c: Removed.
1674         * platform/cairo/cairo/src/cairo-platform.h: Removed.
1675         * platform/cairo/cairo/src/cairo-png.c: Removed.
1676         * platform/cairo/cairo/src/cairo-polygon.c: Removed.
1677         * platform/cairo/cairo/src/cairo-private.h: Removed.
1678         * platform/cairo/cairo/src/cairo-ps-surface.c: Removed.
1679         * platform/cairo/cairo/src/cairo-ps.h: Removed.
1680         * platform/cairo/cairo/src/cairo-quartz-private.h: Removed.
1681         * platform/cairo/cairo/src/cairo-quartz-surface.c: Removed.
1682         * platform/cairo/cairo/src/cairo-quartz.h: Removed.
1683         * platform/cairo/cairo/src/cairo-quartz2-surface.c: Removed.
1684         * platform/cairo/cairo/src/cairo-quartz2.h: Removed.
1685         * platform/cairo/cairo/src/cairo-region.c: Removed.
1686         * platform/cairo/cairo/src/cairo-scaled-font.c: Removed.
1687         * platform/cairo/cairo/src/cairo-slope.c: Removed.
1688         * platform/cairo/cairo/src/cairo-spline.c: Removed.
1689         * platform/cairo/cairo/src/cairo-stroke-style.c: Removed.
1690         * platform/cairo/cairo/src/cairo-surface-fallback-private.h: Removed.
1691         * platform/cairo/cairo/src/cairo-surface-fallback.c: Removed.
1692         * platform/cairo/cairo/src/cairo-surface.c: Removed.
1693         * platform/cairo/cairo/src/cairo-svg-surface.c: Removed.
1694         * platform/cairo/cairo/src/cairo-svg.h: Removed.
1695         * platform/cairo/cairo/src/cairo-traps.c: Removed.
1696         * platform/cairo/cairo/src/cairo-unicode.c: Removed.
1697         * platform/cairo/cairo/src/cairo-wideint.c: Removed.
1698         * platform/cairo/cairo/src/cairo-wideint.h: Removed.
1699         * platform/cairo/cairo/src/cairo-win32-font.c: Removed.
1700         * platform/cairo/cairo/src/cairo-win32-private.h: Removed.
1701         * platform/cairo/cairo/src/cairo-win32-surface.c: Removed.
1702         * platform/cairo/cairo/src/cairo-win32.h: Removed.
1703         * platform/cairo/cairo/src/cairo-xcb-surface.c: Removed.
1704         * platform/cairo/cairo/src/cairo-xcb-xrender.h: Removed.
1705         * platform/cairo/cairo/src/cairo-xcb.h: Removed.
1706         * platform/cairo/cairo/src/cairo-xlib-private.h: Removed.
1707         * platform/cairo/cairo/src/cairo-xlib-screen.c: Removed.
1708         * platform/cairo/cairo/src/cairo-xlib-surface.c: Removed.
1709         * platform/cairo/cairo/src/cairo-xlib-test.h: Removed.
1710         * platform/cairo/cairo/src/cairo-xlib-xrender.h: Removed.
1711         * platform/cairo/cairo/src/cairo-xlib.h: Removed.
1712         * platform/cairo/cairo/src/cairo.c: Removed.
1713         * platform/cairo/cairo/src/cairo.h: Removed.
1714         * platform/cairo/cairo/src/cairoint.h: Removed.
1715         * platform/cairo/cairo/src/test-fallback-surface.c: Removed.
1716         * platform/cairo/cairo/src/test-fallback-surface.h: Removed.
1717         * platform/cairo/cairo/src/test-meta-surface.c: Removed.
1718         * platform/cairo/cairo/src/test-meta-surface.h: Removed.
1719         * platform/cairo/cairo/src/test-paginated-surface.c: Removed.
1720         * platform/cairo/cairo/src/test-paginated-surface.h: Removed.
1721         * platform/cairo/pixman/AUTHORS: Removed.
1722         * platform/cairo/pixman/COPYING: Removed.
1723         * platform/cairo/pixman/README: Removed.
1724         * platform/cairo/pixman/src/Makefile.in: Removed.
1725         * platform/cairo/pixman/src/fbcompose.c: Removed.
1726         * platform/cairo/pixman/src/fbedge.c: Removed.
1727         * platform/cairo/pixman/src/fbedgeimp.h: Removed.
1728         * platform/cairo/pixman/src/fbmmx.c: Removed.
1729         * platform/cairo/pixman/src/fbmmx.h: Removed.
1730         * platform/cairo/pixman/src/fbpict.c: Removed.
1731         * platform/cairo/pixman/src/fbpict.h: Removed.
1732         * platform/cairo/pixman/src/fbtrap.c: Removed.
1733         * platform/cairo/pixman/src/icblt.c: Removed.
1734         * platform/cairo/pixman/src/icbltone.c: Removed.
1735         * platform/cairo/pixman/src/iccolor.c: Removed.
1736         * platform/cairo/pixman/src/icformat.c: Removed.
1737         * platform/cairo/pixman/src/icimage.c: Removed.
1738         * platform/cairo/pixman/src/icimage.h: Removed.
1739         * platform/cairo/pixman/src/icint.h: Removed.
1740         * platform/cairo/pixman/src/icpixels.c: Removed.
1741         * platform/cairo/pixman/src/icrect.c: Removed.
1742         * platform/cairo/pixman/src/icrop.h: Removed.
1743         * platform/cairo/pixman/src/icstipple.c: Removed.
1744         * platform/cairo/pixman/src/ictransform.c: Removed.
1745         * platform/cairo/pixman/src/ictrap.c: Removed.
1746         * platform/cairo/pixman/src/ictri.c: Removed.
1747         * platform/cairo/pixman/src/icutil.c: Removed.
1748         * platform/cairo/pixman/src/pixman-remap.h: Removed.
1749         * platform/cairo/pixman/src/pixman-xserver-compat.h: Removed.
1750         * platform/cairo/pixman/src/pixman.h: Removed.
1751         * platform/cairo/pixman/src/pixregion.c: Removed.
1752         * platform/cairo/pixman/src/pixregionint.h: Removed.
1753         * platform/cairo/pixman/src/renderedge.c: Removed.
1754         * platform/cairo/pixman/src/renderedge.h: Removed.
1755         * platform/cairo/pixman/src/slim_internal.h: Removed.
1756         * platform/cairo/rgb24-hacks.txt: Removed.
1757         * platform/cairo/scale-removal.txt: Removed.
1758         * platform/cg/AffineTransformCG.cpp: Removed.
1759         * platform/cg/FloatPointCG.cpp: Removed.
1760         * platform/cg/FloatRectCG.cpp: Removed.
1761         * platform/cg/FloatSizeCG.cpp: Removed.
1762         * platform/cg/GraphicsContextCG.cpp: Removed.
1763         * platform/cg/GraphicsContextPlatformPrivate.h: Removed.
1764         * platform/cg/ImageCG.cpp: Removed.
1765         * platform/cg/ImageSourceCG.cpp: Removed.
1766         * platform/cg/IntPointCG.cpp: Removed.
1767         * platform/cg/IntRectCG.cpp: Removed.
1768         * platform/cg/IntSizeCG.cpp: Removed.
1769         * platform/cg/PDFDocumentImage.cpp: Removed.
1770         * platform/cg/PDFDocumentImage.h: Removed.
1771         * platform/cg/PathCG.cpp: Removed.
1772         * platform/gdk/ImageGdk.cpp: Removed.
1773         * platform/mac/ColorMac.mm: Removed.
1774         * platform/mac/FloatPointMac.mm: Removed.
1775         * platform/mac/FloatRectMac.mm: Removed.
1776         * platform/mac/FloatSizeMac.mm: Removed.
1777         * platform/mac/GraphicsContextMac.mm:
1778         * platform/mac/IconMac.mm: Removed.
1779         * platform/mac/ImageMac.mm: Removed.
1780         * platform/mac/IntPointMac.mm: Removed.
1781         * platform/mac/IntRectMac.mm: Removed.
1782         * platform/mac/IntSizeMac.mm: Removed.
1783         * platform/qt/AffineTransformQt.cpp: Removed.
1784         * platform/qt/ColorQt.cpp: Removed.
1785         * platform/qt/FloatPointQt.cpp: Removed.
1786         * platform/qt/FloatRectQt.cpp: Removed.
1787         * platform/qt/IconQt.cpp: Removed.
1788         * platform/qt/ImageQt.cpp: Removed.
1789         * platform/qt/ImageSourceQt.cpp: Removed.
1790         * platform/qt/IntPointQt.cpp: Removed.
1791         * platform/qt/IntRectQt.cpp: Removed.
1792         * platform/qt/IntSizeQt.cpp: Removed.
1793         * platform/qt/PathQt.cpp: Removed.
1794         * platform/win/ImageWin.cpp: Removed.
1795         * platform/win/IntPointWin.cpp: Removed.
1796         * platform/win/IntRectWin.cpp: Removed.
1797         * platform/win/IntSizeWin.cpp: Removed.
1798
1799 2006-11-11  Graham Dennis  <graham.dennis@gmail.com>
1800
1801         Reviewed by hyatt.
1802
1803         A layout test was added when this bug was fixed, so none needed now.
1804         
1805         Cleanup after:
1806         REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
1807         http://bugs.webkit.org/show_bug.cgi?id=11570
1808         
1809         * rendering/RenderStyle.h:
1810         (WebCore::RenderStyle::isSpace): Removed.
1811         * rendering/RenderText.cpp:
1812         (WebCore::isSpace): Added.
1813         (WebCore::RenderText::calcMinMaxWidth): Use inline function instead of polluting RenderStyle.
1814
1815 2006-11-11  Graham Dennis  <graham.dennis@gmail.com>
1816
1817         Reviewed by mitz.
1818         
1819         REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
1820         http://bugs.webkit.org/show_bug.cgi?id=11570
1821
1822         * rendering/RenderStyle.h:
1823         (WebCore::RenderStyle::isSpace): Added.
1824         * rendering/RenderText.cpp:
1825         (WebCore::RenderText::calcMinMaxWidth): For the purposes of calculating the line widths, 
1826         treat non-breaking spaces the same as normal spaces if -webkit-nbsp-mode is 'space'
1827
1828 2006-11-10  Zalan Bujtas <zalan.bujtas@nokia.com>
1829
1830         Reviewed by Maciej.
1831
1832         Added basic types for symbian platform.
1833         http://bugs.webkit.org/show_bug.cgi?id=11540
1834
1835         * config.h:
1836         * platform/AtomicString.h:
1837         (WebCore::AtomicString::AtomicString):
1838         (WebCore::AtomicString::operator TPtrC):
1839         * platform/DeprecatedString.cpp:
1840         (WebCore::initializeHandleNodeBlock):
1841         * platform/DeprecatedString.h: char _internalBuffer has to be in front of
1842           the bitfields as Codewarrior (3.2.5 build 461) compiler cannot cope with
1843           bitfields and breaks byte aligment
1844         * platform/FloatPoint.h:
1845         * platform/FloatRect.h:
1846         * platform/IntPoint.h:
1847         * platform/IntRect.h:
1848         * platform/IntSize.h:
1849         * platform/PlatformString.h:
1850         (WebCore::String::operator TPtrC):
1851         (WebCore::String::des):
1852         * platform/StringImpl.h:
1853         * platform/symbian/DeprecatedStringSymbian.cpp: Added.
1854         (WebCore::DeprecatedString::setBufferFromDes):
1855         (WebCore::DeprecatedString::fromDes):
1856         (WebCore::DeprecatedString::des):
1857         (WebCore::DeprecatedString::des8):
1858         * platform/symbian/FloatPointSymbian.cpp: Added.
1859         (WebCore::FloatPoint::FloatPoint):
1860         (WebCore::FloatPoint::operator TPoint):
1861         * platform/symbian/FloatRectSymbian.cpp: Added.
1862         (WebCore::FloatRect::FloatRect):
1863         (WebCore::FloatRect::operator TRect):
1864         (WebCore::FloatRect::rect):
1865         * platform/symbian/IntPointSymbian.cpp: Added.
1866         (WebCore::IntPoint::IntPoint):
1867         (WebCore::IntPoint::operator TPoint):
1868         * platform/symbian/IntRectSymbian.cpp: Added.
1869         (WebCore::IntRect::IntRect):
1870         (WebCore::IntRect::operator TRect):
1871         (WebCore::IntRect::Rect):
1872         * platform/symbian/IntSizeSymbian.cpp: Added.
1873         (WebCore::IntSize::IntSize):
1874         (WebCore::IntSize::operator TSize):
1875         * platform/symbian/StringImplSymbian.cpp: Added.
1876         (WebCore::StringImpl::StringImpl):
1877         (WebCore::StringImpl::des):
1878         * platform/symbian/StringSymbian.cpp: Added.
1879         (WebCore::String::String):
1880
1881 2006-11-10  Zack Rusin  <zack@kde.org>
1882
1883         Reviewed by Anders.
1884
1885         Adjust to the changes Brady made in the Qt code.
1886
1887         * loader/qt/FrameLoaderClientQt.cpp:
1888         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
1889         * loader/qt/FrameLoaderClientQt.h:
1890
1891 2006-11-10  Justin Garcia  <justin.garcia@apple.com>
1892
1893         Reviewed by harrison
1894         
1895         <rdar://problem/4069359>
1896         Deleting hyperlink text, then typing uses link typing style but loses the link itself
1897         
1898         The removed anchor element needs to stick around temporarily, in the same way
1899         that the typing style hangs off the caret until the user moves it.  Also text
1900         insertion around anchors didn't match TextEdit.
1901
1902         * editing/DeleteSelectionCommand.cpp:
1903         (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor): Added.
1904         (WebCore::DeleteSelectionCommand::doApply): Call saveFullySelectedAnchor.
1905         * editing/DeleteSelectionCommand.h:
1906         * editing/EditCommand.cpp:
1907         (WebCore::EditCommand::apply): Clear the removed anchor after any top level
1908         editing command that doesn't preserve the typing style (matches TextEdit).
1909         * editing/Editor.cpp:
1910         (WebCore::Editor::appliedEditing): Added a fixme: we shouldn't call 
1911         setSelection with a message telling it to clear the typing style 
1912         (and the saved anchor) here.  Save/restore the saved anchor because of this.
1913         * editing/Editor.h:
1914         (WebCore::Editor::removedAnchor): Getter.
1915         (WebCore::Editor::setRemovedAnchor): Setter.
1916         * editing/InsertTextCommand.cpp:
1917         (WebCore::InsertTextCommand::prepareForTextInsertion): Insert the saved anchor
1918         if one exists.
1919         * editing/SelectionController.cpp:
1920         (WebCore::SelectionController::setSelection): Clear the removed anchor whenever
1921         we make a selection change that clears the typing style.
1922         (WebCore::SelectionController::nodeWillBeRemoved): Removed an old outdated FIXME.
1923         * editing/htmlediting.cpp:
1924         (WebCore::positionAvoidingSpecialElementBoundary): Cleaned up and
1925         made some changes to match TextEdit's behavior.  First, insert content
1926         inside the anchor when the caret is after it, unless the caret is at the
1927         end of the document, or if the caret is before it and at the start of a 
1928         paragraph.
1929
1930 === Safari-521.30 ===
1931
1932 2006-11-10  Timothy Hatcher  <timothy@apple.com>
1933
1934         Reviewed by Hyatt.
1935
1936         Check for BHIDDEN in isVisible() also.
1937
1938         * rendering/RenderStyle.h:
1939         (WebCore::BorderValue::isVisible):
1940
1941 2006-11-10  Timothy Hatcher  <timothy@apple.com>
1942
1943         Reviewed by Adam.
1944
1945         <rdar://problem/4821423> element deletion UI appears for Mail blockquote and others with less than three visible borders
1946
1947         Added a new function to BorderValue called isVisible(). This checks nonZero() and !isTransparent().
1948
1949         * editing/DeleteButtonController.cpp:
1950         (WebCore::isDeletableElement):
1951         * rendering/RenderStyle.h:
1952         (WebCore::BorderValue::isVisible):
1953
1954 2006-11-10  Adam Roben  <aroben@apple.com>
1955
1956         Rubberstamped by Anders.
1957
1958         Back out some accidentally-committed changes from r17711.
1959
1960         * page/Frame.cpp:
1961         (WebCore::Frame::command):
1962         (WebCore::FramePrivate::FramePrivate):
1963         * page/Frame.h:
1964         * page/FramePrivate.h:
1965
1966 2006-11-10  Anders Carlsson  <acarlsson@apple.com>
1967
1968         Reviewed by Geoff.
1969
1970         Add more commands, make toggleBold and toggleItalic executable commands.
1971
1972         * WebCore.exp:
1973         * editing/Editor.cpp:
1974         (WebCore::execCopy):
1975         (WebCore::execCut):
1976         (WebCore::execDelete):
1977         (WebCore::execForwardDelete):
1978         (WebCore::execPaste):
1979         (WebCore::execSelectAll):
1980         (WebCore::execToggleBold):
1981         (WebCore::execToggleItalic):
1982         (WebCore::enabled):
1983         (WebCore::canPaste):
1984         (WebCore::hasEditableSelection):
1985         (WebCore::hasEditableRangeSelection):
1986         (WebCore::hasRangeSelection):
1987         (WebCore::hasRichlyEditableSelection):
1988         (WebCore::CommandEntry::):
1989         * editing/Editor.h:
1990
1991 2006-11-10  Anders Carlsson  <acarlsson@apple.com>
1992
1993         Reviewed by Maciej, Geoff.
1994
1995         Added an execCommand method to Editor. The idea is that this should replace the CommandByName object. Get rid of
1996         the alterCurrentSelection method in the bridge. WebKit can just call execCommand directly.
1997
1998         * WebCore.exp:
1999         * bridge/mac/WebCoreFrameBridge.h:
2000         * bridge/mac/WebCoreFrameBridge.mm:
2001         * editing/Editor.cpp:
2002         (WebCore::execMoveBackward):
2003         (WebCore::execMoveBackwardAndModifySelection):
2004         (WebCore::execMoveDown):
2005         (WebCore::execMoveDownAndModifySelection):
2006         (WebCore::execMoveForward):
2007         (WebCore::execMoveForwardAndModifySelection):
2008         (WebCore::execMoveLeft):
2009         (WebCore::execMoveLeftAndModifySelection):
2010         (WebCore::execMoveRight):
2011         (WebCore::execMoveRightAndModifySelection):
2012         (WebCore::execMoveToBeginningOfDocument):
2013         (WebCore::execMoveToBeginningOfDocumentAndModifySelection):
2014         (WebCore::execMoveToBeginningOfSentence):
2015         (WebCore::execMoveToBeginningOfSentenceAndModifySelection):
2016         (WebCore::execMoveToBeginningOfLine):
2017         (WebCore::execMoveToBeginningOfLineAndModifySelection):
2018         (WebCore::execMoveToBeginningOfParagraph):
2019         (WebCore::execMoveToBeginningOfParagraphAndModifySelection):
2020         (WebCore::execMoveToEndOfDocument):
2021         (WebCore::execMoveToEndOfDocumentAndModifySelection):
2022         (WebCore::execMoveToEndOfSentence):
2023         (WebCore::execMoveToEndOfSentenceAndModifySelection):
2024         (WebCore::execMoveToEndOfLine):
2025         (WebCore::execMoveToEndOfLineAndModifySelection):
2026         (WebCore::execMoveToEndOfParagraph):
2027         (WebCore::execMoveToEndOfParagraphAndModifySelection):
2028         (WebCore::execMoveParagraphBackwardAndModifySelection):
2029         (WebCore::execMoveParagraphForwardAndModifySelection):
2030         (WebCore::execMoveUp):
2031         (WebCore::execMoveUpAndModifySelection):
2032         (WebCore::execMoveWordBackward):
2033         (WebCore::execMoveWordBackwardAndModifySelection):
2034         (WebCore::execMoveWordForward):
2035         (WebCore::execMoveWordForwardAndModifySelection):
2036         (WebCore::execMoveWordLeft):
2037         (WebCore::execMoveWordLeftAndModifySelection):
2038         (WebCore::execMoveWordRight):
2039         (WebCore::execMoveWordRightAndModifySelection):
2040         (WebCore::enabledAnySelection):
2041         (WebCore::createCommandMap):
2042         (WebCore::CommandEntry::):
2043         (WebCore::Editor::execCommand):
2044         * editing/Editor.h:
2045
2046 2006-11-10  Brady Eidson  <beidson@apple.com>
2047
2048         Reviewed by Darin
2049
2050         Took out WebIconDatabaseBridge and made WebKit call IconDatabase directly
2051
2052         * WebCore.exp:
2053         * WebCore.xcodeproj/project.pbxproj:
2054         * bridge/mac/WebCoreIconDatabaseBridge.h: Removed.
2055         * bridge/mac/WebCoreIconDatabaseBridge.mm: Removed.
2056         * loader/FrameLoaderClient.h:
2057         * loader/icon/IconDatabase.cpp:
2058         (WebCore::IconDatabase::sharedIconDatabase):
2059         (WebCore::IconDatabase::~IconDatabase):
2060         * loader/icon/IconDatabase.h:
2061         (WebCore::IconDatabase::isPrivateBrowsingEnabled):
2062         (WebCore::IconDatabase::enabled):
2063         * loader/icon/IconLoader.cpp:
2064         (WebCore::IconLoader::finishLoading):
2065         * loader/mac/FrameLoaderMac.mm:
2066
2067 2006-11-10  Zack Rusin  <zack@kde.org>
2068
2069         Reviewed and landed by Anders.
2070
2071         Adjust platform Qt/KDE code to the recent loader
2072         changes. 
2073
2074         * CMakeLists.txt:
2075         * loader/DocumentLoader.h:
2076         * loader/FrameLoader.cpp:
2077         (WebCore::FrameLoader::createEmptyDocument):
2078         * loader/FrameLoader.h:
2079         * loader/FrameLoaderClient.h:
2080         * loader/qt/DocumentLoaderQt.cpp: Added.
2081         (WebCore::canonicalizedTitle):
2082         (WebCore::DocumentLoader::DocumentLoader):
2083         (WebCore::DocumentLoader::frameLoader):
2084         (WebCore::DocumentLoader::~DocumentLoader):
2085         (WebCore::DocumentLoader::URL):
2086         (WebCore::DocumentLoader::unreachableURL):
2087         (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
2088         (WebCore::DocumentLoader::isStopping):
2089         (WebCore::DocumentLoader::clearErrors):
2090         (WebCore::DocumentLoader::stopLoading):
2091         (WebCore::DocumentLoader::setupForReplace):
2092         (WebCore::DocumentLoader::commitIfReady):
2093         (WebCore::DocumentLoader::finishedLoading):
2094         (WebCore::DocumentLoader::setCommitted):
2095         (WebCore::DocumentLoader::isCommitted):
2096         (WebCore::DocumentLoader::setLoading):
2097         (WebCore::DocumentLoader::isLoading):
2098         (WebCore::DocumentLoader::doesProgressiveLoad):
2099         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
2100         (WebCore::DocumentLoader::updateLoading):
2101         (WebCore::DocumentLoader::setFrame):
2102         (WebCore::DocumentLoader::attachToFrame):
2103         (WebCore::DocumentLoader::detachFromFrame):
2104         (WebCore::DocumentLoader::prepareForLoadStart):
2105         (WebCore::DocumentLoader::loadingStartedTime):
2106         (WebCore::DocumentLoader::setIsClientRedirect):
2107         (WebCore::DocumentLoader::isClientRedirect):
2108         (WebCore::DocumentLoader::setPrimaryLoadComplete):
2109         (WebCore::DocumentLoader::isLoadingInAPISense):
2110         (WebCore::DocumentLoader::stopRecordingResponses):
2111         (WebCore::DocumentLoader::title):
2112         (WebCore::DocumentLoader::triggeringAction):
2113         (WebCore::DocumentLoader::setTriggeringAction):
2114         (WebCore::DocumentLoader::setOverrideEncoding):
2115         (WebCore::DocumentLoader::overrideEncoding):
2116         (WebCore::DocumentLoader::setTitle):
2117         (WebCore::DocumentLoader::URLForHistory):
2118         * loader/qt/FrameLoaderClientQt.cpp: Added.
2119         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2120         (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
2121         (WebCore::FrameLoaderClientQt::detachFrameLoader):
2122         (WebCore::FrameLoaderClientQt::hasWebView):
2123         (WebCore::FrameLoaderClientQt::hasFrameView):
2124         (WebCore::FrameLoaderClientQt::hasBackForwardList):
2125         (WebCore::FrameLoaderClientQt::resetBackForwardList):
2126         (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
2127         (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
2128         (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
2129         (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
2130         (WebCore::FrameLoaderClientQt::makeDocumentView):
2131         (WebCore::FrameLoaderClientQt::makeRepresentation):
2132         (WebCore::FrameLoaderClientQt::forceLayout):
2133         (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
2134         (WebCore::FrameLoaderClientQt::updateHistoryForCommit):
2135         (WebCore::FrameLoaderClientQt::updateHistoryForBackForwardNavigation):
2136         (WebCore::FrameLoaderClientQt::updateHistoryForReload):
2137         (WebCore::FrameLoaderClientQt::updateHistoryForStandardLoad):
2138         (WebCore::FrameLoaderClientQt::updateHistoryForInternalLoad):
2139         (WebCore::FrameLoaderClientQt::updateHistoryAfterClientRedirect):
2140         (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
2141         (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
2142         (WebCore::FrameLoaderClientQt::resetAfterLoadError):
2143         (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
2144         (WebCore::FrameLoaderClientQt::willCloseDocument):
2145         (WebCore::FrameLoaderClientQt::detachedFromParent1):
2146         (WebCore::FrameLoaderClientQt::detachedFromParent2):
2147         (WebCore::FrameLoaderClientQt::detachedFromParent3):
2148         (WebCore::FrameLoaderClientQt::detachedFromParent4):
2149         (WebCore::FrameLoaderClientQt::loadedFromPageCache):
2150         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
2151         (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
2152         (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
2153         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2154         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
2155         (WebCore::FrameLoaderClientQt::dispatchWillClose):
2156         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2157         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2158         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
2159         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
2160         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
2161         (WebCore::FrameLoaderClientQt::dispatchShow):
2162         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
2163         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
2164         (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
2165         (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
2166         (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
2167         (WebCore::FrameLoaderClientQt::revertToProvisionalState):
2168         (WebCore::FrameLoaderClientQt::clearUnarchivingState):
2169         (WebCore::FrameLoaderClientQt::progressStarted):
2170         (WebCore::FrameLoaderClientQt::progressCompleted):
2171         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
2172         (WebCore::FrameLoaderClientQt::willChangeTitle):
2173         (WebCore::FrameLoaderClientQt::didChangeTitle):
2174         (WebCore::FrameLoaderClientQt::finishedLoading):
2175         (WebCore::FrameLoaderClientQt::finalSetupForReplace):
2176         (WebCore::FrameLoaderClientQt::setDefersLoading):
2177         (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
2178         (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
2179         (WebCore::FrameLoaderClientQt::clearArchivedResources):
2180         (WebCore::FrameLoaderClientQt::canShowMIMEType):
2181         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
2182         (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
2183         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
2184         (WebCore::FrameLoaderClientQt::restoreScrollPositionAndViewState):
2185         (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
2186         (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
2187         (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
2188         (WebCore::FrameLoaderClientQt::didFinishLoad):
2189         (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
2190         (WebCore::FrameLoaderClientQt::setTitle):
2191         (WebCore::FrameLoaderClientQt::userAgent):
2192         * loader/qt/FrameLoaderClientQt.h: Added.
2193         * loader/qt/FrameLoaderQt.cpp:
2194         (WebCore::FrameLoader::submitForm):
2195         (WebCore::FrameLoader::overrideMediaType):
2196         (WebCore::FrameLoader::getHistoryLength):
2197         (WebCore::FrameLoader::referrer):
2198         (WebCore::FrameLoader::detachFromParent):
2199         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
2200         (WebCore::FrameLoader::goBackOrForward):
2201         (WebCore::FrameLoader::historyURL):
2202         (WebCore::FrameLoader::didFirstLayout):
2203         (WebCore::FrameLoader::canGoBackOrForward):
2204         (WebCore::FrameLoader::partClearedInBegin):
2205         (WebCore::FrameLoader::saveDocumentState):
2206         (WebCore::FrameLoader::restoreDocumentState):
2207         (WebCore::FrameLoader::didChangeTitle):
2208         (WebCore::FrameLoader::redirectDataToPlugin):
2209         (WebCore::PolicyCheck::PolicyCheck):
2210         (WebCore::PolicyCheck::clear):
2211         (WebCore::PolicyCheck::set):
2212         (WebCore::PolicyCheck::call):
2213         (WebCore::PolicyCheck::clearRequest):
2214         * loader/qt/NavigationActionQt.cpp: Added.
2215         (WebCore::navigationType):
2216         (WebCore::NavigationAction::NavigationAction):
2217         * loader/qt/ResourceLoaderQt.cpp: Added.
2218         (WebCore::ResourceLoader::ResourceLoader):
2219         (WebCore::ResourceLoader::~ResourceLoader):
2220         (WebCore::ResourceLoader::setDefersLoading):
2221         (WebCore::ResourceLoader::cancel):
2222         (WebCore::ResourceLoader::loadsBlocked):
2223         * platform/MimeTypeRegistry.cpp:
2224         (WebCore::initialiseSupportedImageMIMETypes):
2225         * platform/network/qt/ResourceHandleManager.cpp:
2226         (WebCore::ResourceHandleManager::slotResult):
2227         (WebCore::ResourceHandleManager::cancel):
2228         * platform/qt/ChromeClientQt.cpp: Added.
2229         (WebCore::rootWindowForFrame):
2230         (WebCore::ChromeClientQt::ChromeClientQt):
2231         (WebCore::ChromeClientQt::~ChromeClientQt):
2232         (WebCore::ChromeClientQt::setWindowRect):
2233         (WebCore::ChromeClientQt::windowRect):
2234         (WebCore::ChromeClientQt::pageRect):
2235         (WebCore::ChromeClientQt::scaleFactor):
2236         (WebCore::ChromeClientQt::focus):
2237         (WebCore::ChromeClientQt::unfocus):
2238         (WebCore::ChromeClientQt::createWindow):
2239         (WebCore::ChromeClientQt::createModalDialog):
2240         (WebCore::ChromeClientQt::show):
2241         (WebCore::ChromeClientQt::canRunModal):
2242         (WebCore::ChromeClientQt::runModal):
2243         (WebCore::ChromeClientQt::setToolbarsVisible):
2244         (WebCore::ChromeClientQt::toolbarsVisible):
2245         (WebCore::ChromeClientQt::setStatusbarVisible):
2246         (WebCore::ChromeClientQt::statusbarVisible):
2247         (WebCore::ChromeClientQt::setScrollbarsVisible):
2248         (WebCore::ChromeClientQt::scrollbarsVisible):
2249         (WebCore::ChromeClientQt::setMenubarVisible):
2250         (WebCore::ChromeClientQt::menubarVisible):
2251         (WebCore::ChromeClientQt::setResizable):
2252         * platform/qt/ChromeClientQt.h: Added.
2253         * platform/qt/EditorClientQt.cpp:
2254         (WebCore::EditorClientQt::shouldBeginEditing):
2255         (WebCore::EditorClientQt::shouldEndEditing):
2256         (WebCore::EditorClientQt::shouldApplyStyle):
2257         (WebCore::EditorClientQt::didBeginEditing):
2258         (WebCore::EditorClientQt::respondToChangedContents):
2259         (WebCore::EditorClientQt::didEndEditing):
2260         * platform/qt/EditorClientQt.h:
2261         * platform/qt/FrameQt.cpp:
2262         (WebCore::FrameQt::FrameQt):
2263         (WebCore::FrameQt::~FrameQt):
2264         (WebCore::FrameQt::keyEvent):
2265         * platform/qt/FrameQt.h:
2266         * platform/qt/FrameQtClient.cpp:
2267         (WebCore::FrameQtClientDefault::openURL):
2268         (WebCore::FrameQtClientDefault::didReceiveData):
2269         (WebCore::FrameQtClientDefault::receivedAllData):
2270         * platform/qt/ImageQt.cpp:
2271         * platform/qt/MimeTypeRegistryQt.cpp: Added.
2272         (WebCore::getMIMETypeForUTI):
2273         (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
2274         * platform/qt/PageQt.cpp:
2275         * platform/qt/PlatformKeyboardEventQt.cpp:
2276         (WebCore::keyIdentifierForQtKeyCode):
2277         * platform/qt/ScreenQt.cpp:
2278         * platform/qt/TemporaryLinkStubs.cpp:
2279         (WebCore::TextField::TextField):
2280         (WebCore::screenDepth):
2281         (WebCore::screenDepthPerComponent):
2282         (WebCore::screenIsMonochrome):
2283         (WebCore::screenRect):
2284         (WebCore::screenAvailableRect):
2285
2286 2006-11-10  Brady Eidson <beidson@apple.com>
2287
2288         Reviewed by Mitz
2289
2290         http://bugs.webkit.org/show_bug.cgi?id=11554
2291         Fix the above bug (in didFinishLoading) and also another potential bug in didFailWithError
2292         in case the icon load fails after some data has been received. 
2293
2294         * loader/icon/IconLoader.cpp:
2295         (WebCore::IconLoader::didFailWithError): Clear the buffer so half-an-image isn't commited to the DB
2296         on error.  Also, as a loader re-factoring sanity check, added an assertion
2297         (WebCore::IconLoader::didFinishLoading): If an icon loader resulted in an error-response, the icon 
2298         is already committed to the DB.  Skip doing that step twice.
2299
2300 2006-11-09  Oliver Hunt  <oliver@apple.com>
2301
2302         Reviewed by Brady.
2303
2304         Pulled MIME type handling out of WebFrameBridge and added
2305         a general C++ class to store/query MIME info
2306         Added an Obj-C bridge to provide WebKit with access to the
2307         MimeTypeRegistry for non-Obj-C++ classes.
2308         
2309         * WebCore.exp:
2310         * WebCore.xcodeproj/project.pbxproj:
2311         * bridge/mac/WebCoreFrameBridge.h:
2312         * bridge/mac/WebCoreFrameBridge.mm:
2313         * bridge/mac/WebMimeTypeRegistryBridge.h: Added.
2314         * bridge/mac/WebMimeTypeRegistryBridge.mm: Added.
2315         (+[WebMimeTypeRegistryBridge supportsImageWithMIMEType:]):
2316         (+[WebMimeTypeRegistryBridge supportsNonImageWithMIMEType:]):
2317         (+[WebMimeTypeRegistryBridge supportedNonImageMIMETypes]):
2318         (+[WebMimeTypeRegistryBridge supportedImageMIMETypes]):
2319         (+[WebMimeTypeRegistryBridge supportedImageResourceMIMETypes]):
2320         * platform/Image.cpp:
2321         (WebCore::Image::supportsType):
2322         * platform/Image.h:
2323         * platform/MimeTypeRegistry.cpp: Added.
2324         (WebCore::initialiseSupportedImageMIMETypes):
2325         (WebCore::initialiseSupportedNonImageMimeTypes):
2326         (WebCore::initialiseMimeTypeRegistry):
2327         (WebCore::MimeTypeRegistry::isSupportedImageMIMEType):
2328         (WebCore::MimeTypeRegistry::isSupportedImageResourceMIMEType):
2329         (WebCore::MimeTypeRegistry::isSupportedNonImageMIMEType):
2330         (WebCore::MimeTypeRegistry::getSupportedImageMIMETypes):
2331         (WebCore::MimeTypeRegistry::getSupportedImageResourceMIMETypes):
2332         (WebCore::MimeTypeRegistry::getSupportedNonImageMIMETypes):
2333         * platform/MimeTypeRegistry.h: Added.
2334         * platform/mac/ImageMac.mm:
2335         * platform/mac/MimeTypeRegistryMac.mm: Added.
2336         (WebCore::getMIMETypeForUTI):
2337         (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
2338
2339 2006-11-09  Maciej Stachowiak  <mjs@apple.com>
2340
2341         Reviewed by Oliver.
2342
2343         - rename String::sprintf and DeprecatedString::sprintf to ...::format to avoid needlessly tweaking a search
2344         for insecure functions. Neither of these has risk of buffer overruns since they calculate the buffer size
2345         for you and use vsnprintf.
2346
2347         * bindings/js/kjs_window.cpp:
2348         (KJS::Window::isSafeScript):
2349         * css/cssparser.cpp:
2350         (WebCore::CSSParser::parseColorFromValue):
2351         * dom/StyledElement.cpp:
2352         (WebCore::StyledElement::addCSSColor):
2353         * dom/XMLTokenizer.cpp:
2354         (WebCore::XMLTokenizer::handleError):
2355         * ksvg2/css/SVGCSSParser.cpp:
2356         (WebCore::CSSParser::parseSVGPaint):
2357         (WebCore::CSSParser::parseSVGColor):
2358         * ksvg2/svg/SVGPathSegArc.h:
2359         (WebCore::SVGPathSegArcAbs::toString):
2360         (WebCore::SVGPathSegArcRel::toString):
2361         * ksvg2/svg/SVGPathSegCurvetoCubic.h:
2362         (WebCore::SVGPathSegCurvetoCubicAbs::toString):
2363         (WebCore::SVGPathSegCurvetoCubicRel::toString):
2364         * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
2365         (WebCore::SVGPathSegCurvetoCubicSmoothAbs::toString):
2366         (WebCore::SVGPathSegCurvetoCubicSmoothRel::toString):
2367         * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
2368         (WebCore::SVGPathSegCurvetoQuadraticAbs::toString):
2369         (WebCore::SVGPathSegCurvetoQuadraticRel::toString):
2370         * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
2371         (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::toString):
2372         (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::toString):
2373         * ksvg2/svg/SVGPathSegLineto.h:
2374         (WebCore::SVGPathSegLinetoAbs::toString):
2375         (WebCore::SVGPathSegLinetoRel::toString):
2376         * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
2377         (WebCore::SVGPathSegLinetoHorizontalAbs::toString):
2378         (WebCore::SVGPathSegLinetoHorizontalRel::toString):
2379         * ksvg2/svg/SVGPathSegLinetoVertical.h:
2380         (WebCore::SVGPathSegLinetoVerticalAbs::toString):
2381         (WebCore::SVGPathSegLinetoVerticalRel::toString):
2382         * ksvg2/svg/SVGPathSegMoveto.h:
2383         (WebCore::SVGPathSegMovetoAbs::toString):
2384         (WebCore::SVGPathSegMovetoRel::toString):
2385         * ksvg2/svg/SVGPolyElement.cpp:
2386         (WebCore::SVGPolyElement::notifyAttributeChange):
2387         * ksvg2/svg/SVGUseElement.cpp:
2388         (WebCore::SVGUseElement::closeRenderer):
2389         * loader/icon/IconDatabase.cpp:
2390         (WebCore::IconDatabase::forgetIconForIconURLFromDatabase):
2391         * loader/icon/SQLDatabase.cpp:
2392         (WebCore::SQLDatabase::setSynchronous):
2393         * platform/Color.cpp:
2394         (WebCore::Color::name):
2395         * platform/DeprecatedString.cpp:
2396         (WebCore::DeprecatedString::setNum):
2397         (WebCore::DeprecatedString::format):
2398         * platform/DeprecatedString.h:
2399         * platform/PlatformString.h:
2400         * platform/String.cpp:
2401         (WebCore::String::format):
2402         (WebCore::String::number):
2403         * platform/mac/KeyEventMac.mm:
2404         (WebCore::keyIdentifierForKeyEvent):
2405         * platform/win/KeyEventWin.cpp:
2406         (WebCore::keyIdentifierForWindowsKeyCode):
2407         * rendering/RenderListMarker.cpp:
2408         (WebCore::RenderListMarker::calcMinMaxWidth):
2409
2410 2006-11-09  Maciej Stachowiak  <mjs@apple.com>
2411
2412         Reviewed by Anders.
2413
2414         - fixed "Regression: Can't log into gmail.com"
2415         - fixed "iBench doesn't report results - tests run but no number is recorded"
2416         
2417         * platform/network/cf/FormDataStreamCFNet.cpp:
2418         (WebCore::setHTTPBody): Removed extra ! character.
2419
2420 2006-11-09  Beth Dakin  <bdakin@apple.com>
2421
2422         Reviewed by Hyatt.
2423
2424         Fix for <rdar://problem/4805409> REGRESSION: Reproducible crash in 
2425         WebCore::RenderBlock::skipWhitespace
2426
2427         Note that this will still crash on Debug builds because it will hit 
2428         an assertion failure in editing. (One of the reasons there is no 
2429         layout test along with this fix.) There is definitely some editing 
2430         wackiness happening. See http://bugs.webkit.org/show_bug.cgi?
2431         id=10144 for updates on the assertion failure bug.
2432
2433         * rendering/RootInlineBox.cpp:
2434         (WebCore::RootInlineBox::childRemoved): It is possible for a 
2435         prevRootBox and its prevRootBox to share a lineBreakObj. So instead 
2436         of just clearing the lineBreakObj of the prevRootBox, cycle through 
2437         all prevRootBoxs with the same lineBreakObj. 
2438
2439 2006-11-09  Adam Roben  <aroben@apple.com>
2440
2441         Reviewed by Geoff.
2442
2443         Fix the change in behavior I caused in r17680 with my build fix.
2444
2445         * rendering/RenderObject.cpp:
2446         (WebCore::RenderObject::maxTopMargin):
2447         (WebCore::RenderObject::maxBottomMargin):
2448
2449 2006-11-09  Anders Carlsson  <acarlsson@apple.com>
2450
2451         Reviewed by Adam, Oliver.
2452
2453         Move more functions to Editor.
2454
2455         * bridge/EditorClient.h:
2456         * bridge/mac/FrameMac.h:
2457         * bridge/mac/FrameMac.mm:
2458         * bridge/mac/WebCoreFrameBridge.h:
2459         * editing/EditCommand.cpp:
2460         (WebCore::EditCommand::apply):
2461         (WebCore::EditCommand::unapply):
2462         (WebCore::EditCommand::reapply):
2463         * editing/Editor.cpp:
2464         (WebCore::Editor::respondToChangedContents):
2465         (WebCore::dispatchEditableContentChangedEvents):
2466         (WebCore::Editor::appliedEditing):
2467         (WebCore::Editor::unappliedEditing):
2468         (WebCore::Editor::reappliedEditing):
2469         * editing/Editor.h:
2470         * editing/TypingCommand.cpp:
2471         (WebCore::TypingCommand::typingAddedToOpenCommand):
2472         * page/Frame.cpp:
2473         * page/Frame.h:
2474
2475 2006-11-09  Darin Adler  <darin@apple.com>
2476
2477         * rendering/RenderObject.h: Oops! Fixed accidentally checked-in ifdef.
2478
2479 2006-11-09  Alice Liu  <alice.liu@apple.com>
2480
2481         Reviewed by Beth Dakin.
2482
2483         Fixed <rdar://problem/4808720> Hamachi test tool crashes Safari in WebCore::HTMLTableSectionElement::deleteRow
2484         All existing layout tests pass
2485
2486         * html/HTMLTableElement.cpp:
2487         (WebCore::HTMLTableElement::deleteRow):
2488         check lastSection before deleting row
2489
2490 2006-11-09  Darin Adler  <darin@apple.com>
2491
2492         - improved version of last night's build fix (should not do using namespace in a header)
2493
2494         * rendering/RenderObject.h:
2495         * rendering/RenderObject.cpp:
2496         (WebCore::RenderObject::maxTopMargin):
2497         (WebCore::RenderObject::maxBottomMargin):
2498
2499 2006-11-08  Maciej Stachowiak  <mjs@apple.com>
2500
2501         Reviewed by Geoff.
2502         
2503         - added ResourceError class and didFailWithError client method
2504
2505         * WebCore.xcodeproj/project.pbxproj:
2506         * loader/icon/IconLoader.cpp:
2507         (WebCore::IconLoader::didFailWithError):
2508         (WebCore::IconLoader::didFinishLoading):
2509         * loader/icon/IconLoader.h:
2510         * loader/loader.cpp:
2511         (WebCore::Loader::receivedAllData):
2512         (WebCore::Loader::didFailWithError):
2513         * loader/loader.h:
2514         * loader/mac/SubresourceLoaderMac.mm:
2515         (WebCore::SubresourceLoader::didFail):
2516         (WebCore::SubresourceLoader::didCancel):
2517         * platform/cf/RetainPtr.h:
2518         (WebCore::):
2519         (WebCore::adoptCFReference):
2520         (WebCore::RetainPtr::RetainPtr):
2521         (WebCore::::adopt):
2522         * platform/network/ResourceError.cpp: Added.
2523         * platform/network/ResourceError.h: Added.
2524         (WebCore::ResourceError::ResourceError):
2525         (WebCore::ResourceError::domain):
2526         (WebCore::ResourceError::errorCode):
2527         (WebCore::ResourceError::failingURL):
2528         (WebCore::ResourceError::localizedDescription):
2529         (WebCore::ResourceError::unpackPlatformErrorIfNeeded):
2530         * platform/network/ResourceHandle.cpp:
2531         * platform/network/ResourceHandle.h:
2532         * platform/network/ResourceHandleClient.h:
2533         (WebCore::ResourceHandleClient::didFailWithError):
2534         * platform/network/cf/ResourceHandleCFNet.cpp:
2535         (WebCore::didFail):
2536         (WebCore::ResourceHandle::cancel):
2537         * platform/network/mac/ResourceErrorMac.mm: Added.
2538         (-[NSError WebCore]):
2539         * platform/network/mac/ResourceHandleMac.mm:
2540         (WebCore::ResourceHandle::reportError):
2541         * xml/xmlhttprequest.cpp:
2542         (WebCore::XMLHttpRequest::didFailWithError):
2543         (WebCore::XMLHttpRequest::didFinishLoading):
2544         * xml/xmlhttprequest.h:
2545
2546 2006-11-08  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
2547
2548         Reviewed by Maciej.
2549
2550         Linux\Gdk fixes.
2551
2552         * platform/gdk/ChromeClientGdk.h:
2553         (WebCore::ChromeClientGdk::~ChromeClientGdk):
2554         * platform/gdk/CursorGdk.cpp:
2555         (WebCore::Cursor::Cursor):
2556         (WebCore::moveCursor):
2557         * platform/gdk/FrameGdk.cpp:
2558         (WebCore::FrameGdk::FrameGdk):
2559         (WebCore::FrameGdk::submitForm):
2560         (WebCore::FrameGdk::urlSelected):
2561         * platform/gdk/PageGdk.cpp:
2562         * platform/gdk/ScreenClientGdk.h: Added.
2563         (WebCore::ScreenClientGdk::~ScreenClientGdk):
2564         * platform/gdk/ScreenGdk.cpp:
2565         (WebCore::ScreenClientGdk::depth):
2566         (WebCore::ScreenClientGdk::depthPerComponent):
2567         (WebCore::ScreenClientGdk::isMonochrome):
2568         (WebCore::ScreenClientGdk::rect):
2569         (WebCore::ScreenClientGdk::usableRect):
2570         * platform/gdk/TemporaryLinkStubs.cpp:
2571         (FrameGdk::historyURL):
2572         (ChromeClientGdk::windowRect):
2573         (ChromeClientGdk::setWindowRect):
2574         (ChromeClientGdk::pageRect):
2575         (ChromeClientGdk::scaleFactor):
2576         (ChromeClientGdk::focus):
2577         (ChromeClientGdk::unfocus):
2578         (ChromeClientGdk::createWindow):
2579         (ChromeClientGdk::createModalDialog):
2580         (ChromeClientGdk::show):
2581         (ChromeClientGdk::canRunModal):
2582         (ChromeClientGdk::runModal):
2583         (ChromeClientGdk::setToolbarsVisible):
2584         (ChromeClientGdk::toolbarsVisible):
2585         (ChromeClientGdk::setStatusbarVisible):
2586         (ChromeClientGdk::statusbarVisible):
2587         (ChromeClientGdk::setScrollbarsVisible):
2588         (ChromeClientGdk::scrollbarsVisible):
2589         (ChromeClientGdk::setMenubarVisible):
2590         (ChromeClientGdk::menubarVisible):
2591         (ChromeClientGdk::setResizable):
2592         * platform/network/ResourceHandleInternal.h:
2593         (WebCore::ResourceHandleInternal::client):
2594         * platform/network/gdk/ResourceHandleManager.cpp:
2595         (WebCore::writeCallback):
2596         (WebCore::ResourceHandleManager::downloadTimerCallback):
2597         (WebCore::ResourceHandleManager::remove):
2598
2599 2006-11-08  Adam Roben  <aroben@apple.com>
2600
2601         Build fix.
2602
2603         * rendering/RenderObject.h:
2604         (WebCore::RenderObject::maxTopMargin):
2605         (WebCore::RenderObject::maxBottomMargin):
2606
2607 2006-11-08  Geoffrey Garen  <ggaren@apple.com>
2608
2609         Reviewed by Anders Carlsson.
2610
2611         Made Screen a good platform citizen by removing its reference to Page. This
2612         made a class unnecessary, so all screen fuctions are stand-alone now.
2613
2614         * bindings/js/kjs_window.cpp: Removed unnecessary subtractions
2615         when computing the screen's available dimensions.
2616
2617 2006-11-08  Sam Weinig  <sam.weinig@gmail.com>
2618
2619         Reviewed by Mitz.
2620
2621         Fix for http://bugs.webkit.org/show_bug.cgi?id=11506
2622         Cleanup RenderObject
2623
2624         * rendering/RenderObject.cpp:
2625         (WebCore::RenderObject::operator delete):
2626         (WebCore::RenderObject::createObject):
2627         (WebCore::RenderObjectCounter::~RenderObjectCounter):
2628         (WebCore::RenderObject::RenderObject):
2629         (WebCore::RenderObject::isDescendantOf):
2630         (WebCore::RenderObject::isRoot):
2631         (WebCore::RenderObject::addChild):
2632         (WebCore::RenderObject::removeChildNode):
2633         (WebCore::RenderObject::removeChild):
2634         (WebCore::RenderObject::appendChildNode):
2635         (WebCore::RenderObject::insertChildNode):
2636         (WebCore::RenderObject::nextInPreOrder):
2637         (WebCore::RenderObject::nextInPreOrderAfterChildren):
2638         (WebCore::RenderObject::previousInPreOrder):
2639         (WebCore::RenderObject::isEditable):
2640         (WebCore::RenderObject::nextEditable):
2641         (WebCore::RenderObject::previousEditable):
2642         (WebCore::RenderObject::firstLeafChild):
2643         (WebCore::RenderObject::lastLeafChild):
2644         (WebCore::RenderObject::addLayers):
2645         (WebCore::RenderObject::removeLayers):
2646         (WebCore::RenderObject::moveLayers):
2647         (WebCore::RenderObject::findNextLayer):
2648         (WebCore::RenderObject::enclosingLayer):
2649         (WebCore::RenderObject::updateFirstLetter):
2650         (WebCore::RenderObject::offsetParent):
2651         (WebCore::RenderObject::scroll):
2652         (WebCore::RenderObject::hasStaticX):
2653         (WebCore::RenderObject::setNeedsLayout):
2654         (WebCore::RenderObject::setChildNeedsLayout):
2655         (WebCore::RenderObject::markContainingBlocksForLayout):
2656         (WebCore::RenderObject::containingBlock):
2657         (WebCore::RenderObject::containingBlockWidth):
2658         (WebCore::RenderObject::containingBlockHeight):
2659         (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
2660         (WebCore::RenderObject::drawBorderArc):
2661         (WebCore::RenderObject::drawBorder):
2662         (WebCore::RenderObject::paintBorderImage):
2663         (WebCore::RenderObject::paintBorder):
2664         (WebCore::RenderObject::absoluteRects):
2665         (WebCore::RenderObject::addPDFURLRect):
2666         (WebCore::RenderObject::addFocusRingRects):
2667         (WebCore::RenderObject::paintOutline):
2668         (WebCore::RenderObject::repaint):
2669         (WebCore::RenderObject::repaintRectangle):
2670         (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
2671         (WebCore::RenderObject::repaintObjectsBeforeLayout):
2672         (WebCore::RenderObject::getAbsoluteRepaintRectWithOutline):
2673         (WebCore::RenderObject::information):
2674         (WebCore::RenderObject::dump):
2675         (WebCore::selectStartNode):
2676         (WebCore::RenderObject::shouldSelect):
2677         (WebCore::RenderObject::draggableNode):
2678         (WebCore::RenderObject::createAnonymousBlock):
2679         (WebCore::RenderObject::handleDynamicFloatPositionChange):
2680         (WebCore::RenderObject::setStyle):
2681         (WebCore::RenderObject::setStyleInternal):
2682         (WebCore::RenderObject::updateBackgroundImages):
2683         (WebCore::RenderObject::absolutePosition):
2684         (WebCore::RenderObject::caretRect):
2685         (WebCore::RenderObject::paddingTop):
2686         (WebCore::RenderObject::paddingBottom):
2687         (WebCore::RenderObject::paddingLeft):
2688         (WebCore::RenderObject::paddingRight):
2689         (WebCore::RenderObject::tabWidth):
2690         (WebCore::RenderObject::container):
2691         (WebCore::RenderObject::removeFromObjectLists):
2692         (WebCore::RenderObject::destroy):
2693         (WebCore::RenderObject::arenaDelete):
2694         (WebCore::RenderObject::hitTest):
2695         (WebCore::RenderObject::setInnerNode):
2696         (WebCore::RenderObject::nodeAtPoint):
2697         (WebCore::RenderObject::verticalPositionHint):
2698         (WebCore::RenderObject::getVerticalPosition):
2699         (WebCore::RenderObject::lineHeight):
2700         (WebCore::RenderObject::invalidateVerticalPositions):
2701         (WebCore::RenderObject::recalcMinMaxWidths):
2702         (WebCore::RenderObject::scheduleRelayout):
2703         (WebCore::RenderObject::setInlineBoxWrapper):
2704         (WebCore::RenderObject::firstLineStyle):
2705         (WebCore::RenderObject::getPseudoStyle):
2706         (WebCore::RenderObject::getTextDecorationColors):
2707         (WebCore::RenderObject::addDashboardRegions):
2708         (WebCore::RenderObject::collectDashboardRegions):
2709         (WebCore::RenderObject::avoidsFloats):
2710         (WebCore::RenderObject::findCounter):
2711         (WebCore::RenderObject::backslashAsCurrencySymbol):
2712         (WebCore::RenderObject::imageChanged):
2713         (WebCore::RenderObject::previousOffset):
2714         (WebCore::RenderObject::nextOffset):
2715         (WebCore::RenderObject::inlineBox):
2716         * rendering/RenderObject.h:
2717         (WebCore::):
2718         (WebCore::RenderObject::renderName):
2719         (WebCore::RenderObject::parent):
2720         (WebCore::RenderObject::previousSibling):
2721         (WebCore::RenderObject::nextSibling):
2722         (WebCore::RenderObject::firstChild):
2723         (WebCore::RenderObject::lastChild):
2724         (WebCore::RenderObject::getOverflowClipRect):
2725         (WebCore::RenderObject::getClipRect):
2726         (WebCore::RenderObject::getBaselineOfFirstLineBox):
2727         (WebCore::RenderObject::setEdited):
2728         (WebCore::RenderObject::setStaticX):
2729         (WebCore::RenderObject::setStaticY):
2730         (WebCore::RenderObject::setPreviousSibling):
2731         (WebCore::RenderObject::setNextSibling):
2732         (WebCore::RenderObject::setParent):
2733         (WebCore::RenderObject::isInlineBlockOrInlineTable):
2734         (WebCore::RenderObject::isRenderView):
2735         (WebCore::RenderObject::childrenInline):
2736         (WebCore::RenderObject::setChildrenInline):
2737         (WebCore::RenderObject::isAnonymousBlock):
2738         (WebCore::RenderObject::isDragging):
2739         (WebCore::RenderObject::needsLayout):
2740         (WebCore::RenderObject::setMinMaxKnown):
2741         (WebCore::RenderObject::setNeedsLayoutAndMinMaxRecalc):
2742         (WebCore::RenderObject::setPositioned):
2743         (WebCore::RenderObject::setRelPositioned):
2744         (WebCore::RenderObject::setFloating):
2745         (WebCore::RenderObject::setInline):
2746         (WebCore::RenderObject::setShouldPaintBackgroundOrBorder):
2747         (WebCore::RenderObject::setReplaced):
2748         (WebCore::RenderObject::PaintInfo::PaintInfo):
2749         (WebCore::RenderObject::paintBackgroundExtended):
2750         (WebCore::RenderObject::calcWidth):
2751         (WebCore::RenderObject::updateFromElement):
2752         (WebCore::RenderObject::RepaintInfo::RepaintInfo):
2753         (WebCore::RenderObject::setOverrideSize):
2754         (WebCore::RenderObject::setPos):
2755         (WebCore::RenderObject::setWidth):
2756         (WebCore::RenderObject::setHeight):
2757         (WebCore::RenderObject::absolutePositionForContent):
2758         (WebCore::RenderObject::overflowHeight):
2759         (WebCore::RenderObject::overflowWidth):
2760         (WebCore::RenderObject::setOverflowHeight):
2761         (WebCore::RenderObject::setOverflowWidth):
2762         (WebCore::RenderObject::overflowLeft):
2763         (WebCore::RenderObject::overflowTop):
2764         (WebCore::RenderObject::overflowRect):
2765         (WebCore::RenderObject::stopAutoscroll):
2766         (WebCore::RenderObject::collapsedMarginTop):
2767         (WebCore::RenderObject::collapsedMarginBottom):
2768         (WebCore::RenderObject::maxTopMargin):
2769         (WebCore::RenderObject::maxBottomMargin):
2770         (WebCore::RenderObject::):
2771         (WebCore::RenderObject::setTable):
2772         (WebCore::RenderObject::isFloatingOrPositioned):
2773         (WebCore::RenderObject::containsFloat):
2774         (WebCore::RenderObject::setSelectionState):
2775         (WebCore::RenderObject::SelectionInfo::SelectionInfo):
2776         (WebCore::RenderObject::lowestPosition):
2777         (WebCore::RenderObject::rightmostPosition):
2778         (WebCore::RenderObject::leftmostPosition):
2779         (WebCore::RenderObject::calcVerticalMargins):
2780         (WebCore::RenderObject::font):
2781
2782 2006-11-08  Darin Adler  <darin@apple.com>
2783
2784         Reviewed by Anders.
2785
2786         - added event parameters to focus-related functions so we can
2787           implement the "option-tab to all links" behavior without relying
2788           on a global "current event" -- also makes it work with DOM events
2789
2790         * page/Frame.h: Removed unneeded includes. Moved some functions
2791         that were misplaced into the appropriate sections.
2792         * page/Frame.cpp:
2793         (WebCore::Frame::doTextFieldCommandFromEvent): Changed parameter from
2794         PlatformKeyboardEvent to the DOM keyboard event class.
2795         (WebCore::Frame::tabsToLinks): Added event parameter.
2796         (WebCore::Frame::tabsToAllControls): Ditto.
2797         (WebCore::scanForForm): Fixed code that incorrectly assumes
2798         that an iframe is an HTMLFrameElement (no longer true since Geoff
2799         changed the class hierarchy a bit).
2800         (WebCore::Frame::hitTestResultAtPoint): Ditto.
2801
2802         * bridge/mac/FrameMac.h: Removed unneeded includes. Moved some functions
2803         that were misplaced into the appropriate sections.
2804         * bridge/mac/FrameMac.mm:
2805         (WebCore::selectorForKeyEvent): Changed to use a DOM event instead of
2806         a PlatformKeyboardEvent.
2807         (WebCore::FrameMac::nextKeyViewInFrame): Changed to use currentKeyboardEvent()
2808         and pass event into next/previousFocusNode.
2809         (WebCore::FrameMac::currentKeyboardEvent): Added. Creates a DOM event from
2810         the AppKit current event, if it's a keyboard event. Really just a hack that's
2811         needed to preserve some code we can remove once we deal with the last NSView-
2812         based form control.
2813         (WebCore::isKeyboardOptionTab): Added.
2814         (WebCore::FrameMac::tabsToLinks): Added event parameter, used to check if the
2815         option (alt) key is down.
2816         (WebCore::FrameMac::tabsToAllControls): Ditto.
2817         (WebCore::FrameMac::keyEvent): Changed call to prepareForUserAction() to just
2818         call resetMultipleFormSubmissionProtection() explicitly instead.
2819         (WebCore::FrameMac::mouseDown): Ditto.
2820
2821         * bridge/mac/WebCoreAXObject.mm:
2822         (-[WebCoreAXObject accessibilityDescription]): Fixed code that incorrectly
2823         assumes that an iframe is an HTMLFrameElement (no longer true since Geoff
2824         changed the class hierarchy a bit).
2825         (-[WebCoreAXObject accessibilityPerformAction:]): Changed call to
2826         prepareForUserAction() to call resetMultipleFormSubmissionProtection()
2827         explicitly instead.
2828
2829         * page/FrameView.h:
2830         * page/FrameView.cpp:
2831         (WebCore::FrameView::advanceFocus): Changed function to take an
2832         event parameter, and decide the direction based on the shift key
2833         modifier instead of a passed-in boolean.
2834
2835         * dom/Document.h:
2836         * dom/Document.cpp:
2837         (WebCore::Document::nextFocusNode): Added event parameter.
2838         (WebCore::Document::previousFocusNode): Ditto.
2839         * dom/Node.h:
2840         * dom/Node.cpp:
2841         (WebCore::Node::isKeyboardFocusable): Ditto.
2842         * html/HTMLAnchorElement.h:
2843         * html/HTMLAnchorElement.cpp:
2844         (WebCore::HTMLAnchorElement::isKeyboardFocusable): Ditto.
2845         * html/HTMLGenericFormElement.h:
2846         * html/HTMLGenericFormElement.cpp:
2847         (WebCore::HTMLGenericFormElement::isKeyboardFocusable): Ditto.
2848         * html/HTMLInputElement.h:
2849         * html/HTMLInputElement.cpp:
2850         (WebCore::HTMLInputElement::isKeyboardFocusable): Ditto.
2851         (WebCore::HTMLInputElement::defaultEventHandler): Ditto.
2852         * html/HTMLSelectElement.h:
2853         * html/HTMLSelectElement.cpp:
2854         (WebCore::HTMLSelectElement::isKeyboardFocusable): Ditto.
2855         * html/HTMLTextAreaElement.h:
2856         * html/HTMLTextAreaElement.cpp:
2857         (WebCore::HTMLTextAreaElement::isKeyboardFocusable): Ditto.
2858
2859         * dom/EventTargetNode.cpp:
2860         (WebCore::EventTargetNode::defaultEventHandler): Pass event to the
2861         advanceFocus function.
2862
2863         * platform/TextField.h:
2864         * platform/mac/TextFieldMac.mm: Removed the non-search field code.
2865
2866         * platform/mac/WebCoreTextField.h:
2867         * platform/mac/WebCoreTextField.mm: Removed the non-search field code.
2868         (-[WebCoreTextFieldController controlTextDidChange:]): Removed the
2869         call to FrameMac::handleKeyboardOptionTabInView, which is no longer
2870         needed since the default handler in HTMLInputElement takes care of
2871         option-tab.
2872
2873         * platform/mac/SliderMac.mm:
2874         (-[WebCoreSlider canBecomeKeyView]): Changed to use currentKeyboardEvent()
2875         and pass event into tabsToAllControls.
2876         (Slider::focusPolicy): Ditto.
2877
2878         * rendering/RenderLineEdit.cpp:
2879         (WebCore::RenderLineEdit::RenderLineEdit): Removed the non-search field code.
2880         (WebCore::RenderLineEdit::updateFromElement): Ditto.
2881
2882 2006-11-08  Brady Eidson  <beidson@apple.com>
2883
2884         Reviewed by Dave Harrison, Oliver, and Darin 
2885         (oh my!  where was superkevin on this one?)
2886
2887         <rdar://problem/4816196> "Xcode Help" crashes in WebCore::DocumentLoader::setPrimaryLoadComplete(bool)
2888
2889         More "free nil checking" we lost in the transition from ObjC to C++
2890
2891         * loader/mac/FrameLoaderMac.mm:
2892         (WebCore::FrameLoader::startLoading): Null check m_provisionalDocumentLoader and bail early.
2893         (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Ditto
2894
2895 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
2896
2897         Reviewed by Adam.
2898
2899         Move more code into editor.
2900         
2901         * WebCore.exp:
2902         * bridge/EditorClient.h:
2903         * bridge/mac/FrameMac.h:
2904         * bridge/mac/FrameMac.mm:
2905         * bridge/mac/WebCoreFrameBridge.h:
2906         * dom/Document.cpp:
2907         (WebCore::Document::relinquishesEditingFocus):
2908         (WebCore::Document::acceptsEditingFocus):
2909         (WebCore::Document::didBeginEditing):
2910         (WebCore::Document::didEndEditing):
2911         * editing/Editor.cpp:
2912         (WebCore::Editor::indent):
2913         (WebCore::Editor::outdent):
2914         * editing/Editor.h:
2915         * page/Frame.cpp:
2916         * page/Frame.h:
2917
2918 2006-11-08  Beth Dakin  <bdakin@apple.com>
2919
2920         Reviewed by Adam.
2921
2922         Add ability to HitTestResult to ask if the inner non-shared node is 
2923         content editable.
2924
2925         * WebCore.exp: Export HitTestResult::isContentEditable()
2926         * rendering/HitTestResult.cpp:
2927         (WebCore::HitTestResult::isContentEditable):
2928         * rendering/HitTestResult.h:
2929
2930 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
2931
2932         Build fix.
2933         
2934         * WebCore.xcodeproj/project.pbxproj:
2935         Add DOMCSSStyleDeclarationInternal.h to the "Copy Generated Headers" build phase.
2936
2937 2006-11-08  Timothy Hatcher  <timothy@apple.com>
2938
2939         Reviewed by Darin.
2940
2941         <rdar://problem/4713280> Would like to get an array of bounding rects rather than just the union of them for a DOMRange
2942         <rdar://problem/4804317> Would like SPI to get bounding box for a DOM range without having to change the selection
2943
2944         Added lineBoxRects and boundingBox to Range and DOMRange. These methods correspond to the DOMNode methods.
2945
2946         * bindings/objc/DOM.mm:
2947         (WebCore::kit):
2948         (-[DOMNode lineBoxRects]):
2949         (-[DOMRange boundingBox]):
2950         (-[DOMRange lineBoxRects]):
2951         * bindings/objc/DOMPrivate.h:
2952         * dom/Range.cpp:
2953         (WebCore::Range::boundingBox):
2954         (WebCore::Range::addLineBoxRects):
2955         * dom/Range.h:
2956         * rendering/RenderContainer.cpp:
2957         (WebCore::RenderContainer::addLineBoxRects):
2958         * rendering/RenderContainer.h:
2959         * rendering/RenderObject.cpp:
2960         (WebCore::RenderObject::addLineBoxRects):
2961         * rendering/RenderObject.h:
2962         * rendering/RenderText.cpp:
2963         (WebCore::RenderText::addLineBoxRects):
2964         * rendering/RenderText.h:
2965
2966 2006-11-08  Anders Carlsson  <acarlsson@apple.com>
2967
2968         Reviewed by Oliver.
2969         
2970         Move methods from the bridge and frame into editor.
2971         
2972         * WebCore.exp:
2973         * bridge/EditorClient.h:
2974         * bridge/mac/WebCoreFrameBridge.h:
2975         * bridge/mac/WebCoreFrameBridge.mm:
2976         * editing/Editor.cpp:
2977         (WebCore::Editor::removeFormattingAndStyle):
2978         (WebCore::Editor::applyStyle):
2979         (WebCore::Editor::applyParagraphStyle):
2980         (WebCore::Editor::applyStyleToSelection):
2981         (WebCore::Editor::applyParagraphStyleToSelection):
2982         (WebCore::Editor::toggleBold):
2983         (WebCore::Editor::toggleItalic):
2984         (WebCore::Editor::selectionStartHasStyle):
2985         * editing/Editor.h:
2986         * editing/JSEditor.cpp:
2987         * page/Frame.cpp:
2988         * page/Frame.h:
2989
2990 2006-11-08  Geoffrey Garen  <ggaren@apple.com>
2991
2992         Reviewed by Beth.
2993         
2994         Fixed regression in fast/events/objc-event-api. DumpRenderTree expects to
2995         be able to dispatch user events even when off-screen, so we have to support
2996         off-screen windows when handling mouse events.
2997
2998         * platform/Screen.h:
2999         * platform/mac/PlatformMouseEventMac.mm:
3000         (WebCore::globalPoint): Grab the best screen instead of the screen you're
3001         on, since you might be off-screen.
3002         * platform/mac/ScreenMac.mm:
3003         (WebCore::screenForWindow):
3004
3005 2006-11-08  Darin Adler  <darin@apple.com>
3006
3007         - fix bug caused by last-minute change to my check-in last night
3008           that is causing layout tests to hang
3009
3010         * dom/Document.cpp: (WebCore::Document::completeURL): Added comments.
3011         * loader/FrameLoader.cpp: (WebCore::FrameLoader::submitForm): Turn
3012         a null string into an empty string before calling completeURL.
3013
3014 2006-11-08  Brady Eidson <beidson@apple.com>
3015
3016         Reviewed by Maciej
3017
3018         If the request has already been aborted, bail out of didFinishLoading()
3019         immediately.  This prevents state change notifications that aren't
3020         needed.
3021
3022         * xml/xmlhttprequest.cpp:
3023         (WebCore::XMLHttpRequest::didFinishLoading):
3024
3025 2006-11-08  Darin Adler  <darin@apple.com>
3026
3027         - another attempt to fix Qt build
3028
3029         * loader/qt/FrameLoaderQt.cpp: Added missing include of FrameLoader.h.
3030
3031 2006-11-08  Darin Adler  <darin@apple.com>
3032
3033         Reviewed by Geoff.
3034
3035         - stray bits of my FrameLoader patch that I left out by accident
3036
3037         * loader/FrameLoader.cpp:
3038         (WebCore::FrameLoader::createWindow): Use m_outgoingReferrer instead of outgoingReferrer()
3039         inside the FrameLoader class.
3040         (WebCore::FrameLoader::requestFrame): Use less DeprecatedString.
3041         (WebCore::FrameLoader::clear): Stop the redirection timer.
3042         (WebCore::FrameLoader::receivedFirstData): Added an early return instead of nesting the
3043         entire function in an if statement. Use less DeprecatedString.
3044         (WebCore::FrameLoader::scheduleLocationChange): Fix backwards ? : operator.
3045         (WebCore::FrameLoader::scheduleRefresh): Ditto.
3046         (WebCore::FrameLoader::urlSelected): Use m_outgoingReferrer instead of outgoingReferrer()
3047         inside the FrameLoader class.
3048         * loader/mac/FrameLoaderMac.mm:
3049         (WebCore::FrameLoader::load): Ditto.
3050         (WebCore::FrameLoader::loadResourceSynchronously): Ditto.
3051
3052 2006-11-07  Beth Dakin  <bdakin@apple.com>
3053
3054         Reviewed by Hyatt.
3055
3056         Another go at fix for <rdar://problem/4820814> A crash occurs at 
3057         WebCore::HitTestResult::spellingToolTip() when mousing down on 
3058         iframe at www.macsurfer.com
3059
3060         The fix from yesterday caused a layout test regression which 
3061         exposed an existing bug. The existing bug was that we allowed text 
3062         nodes to stay in the head tag, but other browsers move them to the 
3063         body. The previous fix also caused a performance regression, which 
3064         was seemingly easy to fix by moving the new clause in 
3065         HTMLParser::handleError() to be below the HTMLElement case.
3066
3067         * html/HTMLDocument.cpp:
3068         (WebCore::HTMLDocument::childAllowed): Don't allow comment nodes to 
3069         be the child of the document.
3070         * html/HTMLHeadElement.cpp:
3071         (WebCore::HTMLHeadElement::childAllowed): Do not allow non-
3072         whitespace text nodes to be children of the head.
3073         * html/HTMLHeadElement.h:
3074         * html/HTMLParser.cpp:
3075         (WebCore::HTMLParser::handleError): Error case for comment nodes.
3076         * page/FrameView.cpp:
3077         (WebCore::FrameView::handleMousePressEvent): Safety-net null check 
3078         for the original crash. 
3079
3080 2006-11-07  Darin Adler  <darin@apple.com>
3081
3082         - another attempt to fix Qt build
3083
3084         * loader/icon/IconLoader.h: Added missing include.
3085
3086 2006-11-06  Geoffrey Garen  <ggaren@apple.com>
3087
3088         Reviewed by Tim Hatcher.
3089         
3090         Removed ScreenClient. It was highly unpopular, risking my midterm re-election.
3091         
3092         None of Screen's responsibilities require up-calls to WebKit or delegates, 
3093         so WebCore can handle it all.
3094         
3095         Moved Screen back from page/ to platform/ because it's a platform
3096         abstraction again.
3097
3098         Merged scaling and flipping functions into 'toUserSpace' and 'toDeviceSpace',
3099         since the two were always used together.
3100         
3101         Changed pixel depth queries to query the deepest screen. Darin mentioned
3102         that it might have been a feature, not a bug, to use the main/menubar screen
3103         regardless of the screen you were on. For scaling and flipping that's not
3104         the case, but for querying pixel depth I think it is. You want to know
3105         about the highest pixel depth your content may display on.
3106         
3107         Tests still pass.
3108
3109         * WebCore.exp:
3110         * WebCore.xcodeproj/project.pbxproj:
3111         * page/Page.cpp:
3112         (WebCore::Page::Page):
3113         * page/Page.h:
3114         * page/Screen.cpp: Removed.
3115         * page/Screen.h: Removed.
3116         * page/ScreenClient.h: Removed.
3117         * platform/mac/PlatformMouseEventMac.mm:
3118         (WebCore::globalPoint):
3119         * platform/mac/ScreenMac.mm:
3120         (WebCore::window):
3121         (WebCore::bestScreen):
3122         (WebCore::Screen::depth):
3123         (WebCore::Screen::depthPerComponent):
3124         (WebCore::Screen::isMonochrome):
3125         (WebCore::Screen::rect):
3126         (WebCore::Screen::usableRect):
3127         (WebCore::toUserSpace):
3128         (WebCore::toDeviceSpace):
3129
3130 2006-11-07  Darin Adler  <darin@apple.com>
3131
3132         - try to fix Qt build
3133
3134         * CMakeLists.txt: Updated for some file changes.
3135         * WebCoreSources.bkl: Ditto.
3136
3137 2006-11-07  Darin Adler  <darin@apple.com>
3138
3139         Reviewed by Geoff.
3140
3141         - moved loader code from Frame/FrameMac to FrameLoader
3142
3143         * WebCore.exp:
3144         * WebCore.xcodeproj/project.pbxproj:
3145         * bindings/js/JSXSLTProcessor.h:
3146         * bindings/js/kjs_events.cpp:
3147         (KJS::JSLazyEventListener::parseCode):
3148         * bindings/js/kjs_html.cpp:
3149         (KJS::JSHTMLDocument::putValueProperty):
3150         * bindings/js/kjs_navigator.cpp:
3151         (KJS::Navigator::getValueProperty):
3152         * bindings/js/kjs_proxy.cpp:
3153         (WebCore::KJSProxy::initScriptIfNeeded):
3154         * bindings/js/kjs_window.cpp:
3155         (KJS::Screen::Screen):
3156         (KJS::createNewWindow):
3157         (KJS::Window::getValueProperty):
3158         (KJS::Window::put):
3159         (KJS::Window::isSafeScript):
3160         (KJS::WindowFunc::callAsFunction):
3161         (KJS::ScheduledAction::execute):
3162         (KJS::Location::getValueProperty):
3163         (KJS::Location::put):
3164         (KJS::Location::toString):
3165         (KJS::LocationFunc::callAsFunction):
3166         (KJS::History::getValueProperty):
3167         (KJS::HistoryFunc::callAsFunction):
3168         * bindings/objc/DOM.mm:
3169         (+[DOMNode _nodeWith:WebCore::]):
3170         * bridge/mac/FrameMac.h:
3171         * bridge/mac/FrameMac.mm:
3172         (WebCore::FrameMac::~FrameMac):
3173         (WebCore::FrameMac::setView):
3174         (WebCore::FrameMac::setStatusBarText):
3175         * bridge/mac/WebCoreFrameBridge.h:
3176         * bridge/mac/WebCoreFrameBridge.mm:
3177         (-[WebCoreFrameBridge close]):
3178         (-[WebCoreFrameBridge addData:]):
3179         (-[WebCoreFrameBridge createFrameViewWithNSView:marginWidth:marginHeight:]):
3180         (-[WebCoreFrameBridge reapplyStylesForDeviceType:]):
3181         (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
3182         (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]):
3183         (-[WebCoreFrameBridge baseURL]):
3184         (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
3185         (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
3186         (-[WebCoreFrameBridge canProvideDocumentSource]):
3187         (-[WebCoreFrameBridge receivedData:textEncodingName:]):
3188         * css/cssparser.cpp:
3189         (WebCore::CSSParser::parseContent):
3190         * dom/DOMImplementation.cpp:
3191         (WebCore::DOMImplementation::createDocument):
3192         (WebCore::DOMImplementation::createHTMLDocument):
3193         * dom/DOMImplementation.h:
3194         * dom/Document.cpp:
3195         (WebCore::Document::readyState):
3196         (WebCore::Document::updateTitle):
3197         (WebCore::Document::open):
3198         (WebCore::Document::close):
3199         (WebCore::Document::implicitClose):
3200         (WebCore::Document::processHttpEquiv):
3201         (WebCore::Document::referrer):
3202         (WebCore::Document::finishedParsing):
3203         * dom/ProcessingInstruction.cpp:
3204         (WebCore::ProcessingInstruction::checkStyleSheet):
3205         * dom/XMLTokenizer.cpp:
3206         (WebCore::XMLTokenizer::endElementNs):
3207         (WebCore::ignorableWhitespaceHandler):
3208         (WebCore::XMLTokenizer::notifyFinished):
3209         * editing/TextIterator.cpp:
3210         (WebCore::TextIterator::rangeFromLocationAndLength):
3211         * html/HTMLAnchorElement.cpp:
3212         (WebCore::HTMLAnchorElement::defaultEventHandler):
3213         * html/HTMLBaseElement.cpp:
3214         (WebCore::HTMLBaseElement::process):
3215         * html/HTMLDocument.cpp:
3216         (WebCore::HTMLDocument::lastModified):
3217         * html/HTMLFormElement.cpp:
3218         (WebCore::HTMLFormElement::formData):
3219         (WebCore::HTMLFormElement::submit):
3220         * html/HTMLFrameElementBase.cpp:
3221         (WebCore::HTMLFrameElementBase::isURLAllowed):
3222         (WebCore::HTMLFrameElementBase::openURL):
3223         (WebCore::HTMLFrameElementBase::willRemove):
3224         * html/HTMLInputElement.cpp:
3225         (WebCore::HTMLInputElement::setValueFromRenderer):
3226         * html/HTMLLinkElement.cpp:
3227         (WebCore::HTMLLinkElement::process):
3228         * html/HTMLParser.cpp:
3229         (WebCore::HTMLParser::handleError):
3230         (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
3231         * html/HTMLPreElement.idl:
3232         * html/HTMLScriptElement.cpp:
3233         (WebCore::HTMLScriptElement::parseMappedAttribute):
3234         (WebCore::HTMLScriptElement::insertedIntoDocument):
3235         * html/HTMLTokenizer.cpp:
3236         (WebCore::HTMLTokenizer::scriptExecution):
3237         (WebCore::HTMLTokenizer::parseTag):
3238         (WebCore::HTMLTokenizer::write):
3239         (WebCore::HTMLTokenizer::stopParsing):
3240         (WebCore::HTMLTokenizer::timerFired):
3241         * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
3242         (WebCore::KCanvasFilterQuartz::prepareFilter):
3243         * ksvg2/svg/SVGAElement.cpp:
3244         (WebCore::SVGAElement::defaultEventHandler):
3245         * ksvg2/svg/SVGElement.cpp:
3246         (WebCore::SVGElement::sendSVGLoadEventIfPossible):
3247         * loader/DocLoader.cpp:
3248         (WebCore::DocLoader::setLoadInProgress):
3249         * loader/FrameLoader.cpp:
3250         (WebCore::FormSubmission::FormSubmission):
3251         (WebCore::ScheduledRedirection::):
3252         (WebCore::ScheduledRedirection::ScheduledRedirection):
3253         (WebCore::cancelAll):
3254         (WebCore::getString):
3255         (WebCore::isBackForwardLoadType):
3256         (WebCore::numRequests):
3257         (WebCore::FrameLoader::FrameLoader):
3258         (WebCore::FrameLoader::~FrameLoader):
3259         (WebCore::FrameLoader::createWindow):
3260         (WebCore::FrameLoader::changeLocation):
3261         (WebCore::FrameLoader::urlSelected):
3262         (WebCore::FrameLoader::requestFrame):
3263         (WebCore::FrameLoader::loadSubframe):
3264         (WebCore::FrameLoader::submitFormAgain):
3265         (WebCore::FrameLoader::submitForm):
3266         (WebCore::FrameLoader::stopLoading):
3267         (WebCore::FrameLoader::stop):
3268         (WebCore::FrameLoader::closeURL):
3269         (WebCore::FrameLoader::cancelRedirection):
3270         (WebCore::FrameLoader::iconURL):
3271         (WebCore::FrameLoader::didOpenURL):
3272         (WebCore::FrameLoader::didExplicitOpen):
3273         (WebCore::FrameLoader::replaceContentsWithScriptResult):
3274         (WebCore::FrameLoader::executeScript):
3275         (WebCore::FrameLoader::cancelAndClear):
3276         (WebCore::FrameLoader::clear):
3277         (WebCore::FrameLoader::receivedFirstData):
3278         (WebCore::FrameLoader::responseMIMEType):
3279         (WebCore::FrameLoader::setResponseMIMEType):
3280         (WebCore::FrameLoader::begin):
3281         (WebCore::FrameLoader::write):
3282         (WebCore::FrameLoader::end):
3283         (WebCore::FrameLoader::endIfNotLoading):
3284         (WebCore::FrameLoader::startIconLoader):
3285         (WebCore::FrameLoader::commitIconURLToIconDatabase):
3286         (WebCore::FrameLoader::gotoAnchor):
3287         (WebCore::FrameLoader::finishedParsing):
3288         (WebCore::FrameLoader::loadDone):
3289         (WebCore::FrameLoader::checkCompleted):
3290         (WebCore::FrameLoader::checkEmitLoadEvent):
3291         (WebCore::FrameLoader::baseURL):
3292         (WebCore::FrameLoader::baseTarget):
3293         (WebCore::FrameLoader::completeURL):
3294         (WebCore::FrameLoader::scheduleRedirection):
3295         (WebCore::FrameLoader::scheduleLocationChange):
3296         (WebCore::FrameLoader::scheduleRefresh):
3297         (WebCore::FrameLoader::isScheduledLocationChangePending):
3298         (WebCore::FrameLoader::scheduleHistoryNavigation):
3299         (WebCore::FrameLoader::redirectionTimerFired):
3300         (WebCore::FrameLoader::encoding):
3301         (WebCore::FrameLoader::requestObject):
3302         (WebCore::FrameLoader::shouldUsePlugin):
3303         (WebCore::FrameLoader::loadPlugin):
3304         (WebCore::FrameLoader::clearRecordedFormValues):
3305         (WebCore::FrameLoader::recordFormValue):
3306         (WebCore::FrameLoader::parentCompleted):
3307         (WebCore::FrameLoader::outgoingReferrer):
3308         (WebCore::FrameLoader::lastModified):
3309         (WebCore::FrameLoader::opener):
3310         (WebCore::FrameLoader::setOpener):
3311         (WebCore::FrameLoader::openedByJavaScript):
3312         (WebCore::FrameLoader::setOpenedByJavaScript):
3313         (WebCore::FrameLoader::handleFallbackContent):
3314         (WebCore::FrameLoader::provisionalLoadStarted):
3315         (WebCore::FrameLoader::userGestureHint):
3316         (WebCore::FrameLoader::didNotOpenURL):
3317         (WebCore::FrameLoader::resetMultipleFormSubmissionProtection):
3318         (WebCore::FrameLoader::setEncoding):
3319         (WebCore::FrameLoader::addData):
3320         (WebCore::FrameLoader::canCachePage):
3321         (WebCore::FrameLoader::updatePolicyBaseURL):
3322         (WebCore::FrameLoader::setPolicyBaseURL):
3323         (WebCore::FrameLoader::scrollToAnchor):
3324         (WebCore::FrameLoader::isComplete):
3325         (WebCore::FrameLoader::isLoadingMainResource):
3326         (WebCore::FrameLoader::url):
3327         (WebCore::FrameLoader::startRedirectionTimer):
3328         (WebCore::FrameLoader::stopRedirectionTimer):
3329         (WebCore::FrameLoader::updateBaseURLForEmptyDocument):
3330         (WebCore::FrameLoader::completed):
3331         (WebCore::FrameLoader::started):
3332         (WebCore::FrameLoader::containsPlugins):
3333         (WebCore::FrameLoader::prepareForLoadStart):
3334         (WebCore::FrameLoader::setupForReplace):
3335         (WebCore::FrameLoader::setupForReplaceByMIMEType):
3336         (WebCore::FrameLoader::finalSetupForReplace):
3337         (WebCore::FrameLoader::load):
3338         (WebCore::FrameLoader::canTarget):
3339         (WebCore::FrameLoader::stopLoadingPlugIns):
3340         (WebCore::FrameLoader::stopLoadingSubresources):
3341         (WebCore::FrameLoader::stopLoadingSubframes):
3342         (WebCore::FrameLoader::stopAllLoaders):
3343         (WebCore::FrameLoader::cancelMainResourceLoad):
3344         (WebCore::FrameLoader::cancelPendingArchiveLoad):
3345         (WebCore::FrameLoader::activeDocumentLoader):
3346         (WebCore::FrameLoader::addPlugInStreamLoader):
3347         (WebCore::FrameLoader::removePlugInStreamLoader):
3348         (WebCore::FrameLoader::hasMainResourceLoader):
3349         (WebCore::FrameLoader::isLoadingSubresources):
3350         (WebCore::FrameLoader::isLoadingPlugIns):
3351         (WebCore::FrameLoader::isLoading):
3352         (WebCore::FrameLoader::addSubresourceLoader):
3353         (WebCore::FrameLoader::removeSubresourceLoader):
3354         (WebCore::FrameLoader::releaseMainResourceLoader):
3355         (WebCore::FrameLoader::setDocumentLoader):
3356         (WebCore::FrameLoader::documentLoader):
3357         (WebCore::FrameLoader::setPolicyDocumentLoader):
3358         (WebCore::FrameLoader::provisionalDocumentLoader):
3359         (WebCore::FrameLoader::setProvisionalDocumentLoader):
3360         (WebCore::FrameLoader::state):
3361         (WebCore::FrameLoader::timeOfLastCompletedLoad):
3362         (WebCore::FrameLoader::setState):
3363         (WebCore::FrameLoader::clearProvisionalLoad):
3364         (WebCore::FrameLoader::markLoadComplete):
3365         (WebCore::FrameLoader::commitProvisionalLoad):
3366         (WebCore::FrameLoader::privateBrowsingEnabled):
3367         (WebCore::FrameLoader::clientRedirectCancelledOrFinished):
3368         (WebCore::FrameLoader::clientRedirected):
3369         (WebCore::FrameLoader::shouldReload):
3370         (WebCore::FrameLoader::closeOldDataSources):
3371         (WebCore::FrameLoader::open):
3372         (WebCore::FrameLoader::isStopping):
3373         (WebCore::FrameLoader::finishedLoading):
3374         (WebCore::FrameLoader::URL):
3375         (WebCore::FrameLoader::isArchiveLoadPending):
3376         (WebCore::FrameLoader::isHostedByObjectElement):
3377         (WebCore::FrameLoader::isLoadingMainFrame):
3378         (WebCore::FrameLoader::canShowMIMEType):
3379         (WebCore::FrameLoader::representationExistsForURLScheme):
3380         (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
3381         (WebCore::FrameLoader::cancelContentPolicyCheck):
3382         (WebCore::FrameLoader::didReceiveServerRedirectForProvisionalLoadForFrame):
3383         (WebCore::FrameLoader::finishedLoadingDocument):
3384         (WebCore::FrameLoader::isReplacing):
3385         (WebCore::FrameLoader::setReplacing):
3386         (WebCore::FrameLoader::revertToProvisional):
3387         (WebCore::FrameLoader::subframeIsLoading):
3388         (WebCore::FrameLoader::willChangeTitle):
3389         (WebCore::FrameLoader::loadType):
3390         (WebCore::FrameLoader::stopPolicyCheck):
3391         (WebCore::FrameLoader::continueAfterContentPolicy):
3392         (WebCore::FrameLoader::continueAfterWillSubmitForm):
3393         (WebCore::FrameLoader::didFirstLayout):
3394         (WebCore::FrameLoader::frameLoadCompleted):
3395         (WebCore::FrameLoader::firstLayoutDone):
3396         (WebCore::FrameLoader::isQuickRedirectComing):
3397         (WebCore::FrameLoader::closeDocument):
3398         (WebCore::FrameLoader::detachChildren):
3399         (WebCore::FrameLoader::checkLoadComplete):
3400         (WebCore::FrameLoader::numPendingOrLoadingRequests):
3401         (WebCore::FrameLoader::setClient):
3402         (WebCore::FrameLoader::client):
3403         (WebCore::FrameLoader::userAgent):
3404         (WebCore::FrameLoader::createEmptyDocument):
3405         (WebCore::FrameLoader::tokenizerProcessedData):
3406         (WebCore::FrameLoader::didTellBridgeAboutLoad):
3407         (WebCore::FrameLoader::haveToldBridgeAboutLoad):
3408         (WebCore::FrameLoader::handledOnloadEvents):
3409         (WebCore::FrameLoader::frameDetached):
3410         (WebCore::FrameLoader::setTitle):
3411         (WebCore::FrameLoaderClient::~FrameLoaderClient):
3412         * loader/FrameLoader.h:
3413         (WebCore::):
3414         * loader/FrameLoaderClient.h:
3415         * loader/PluginDocument.cpp:
3416         (WebCore::PluginTokenizer::createDocumentStructure):
3417         (WebCore::PluginTokenizer::writeRawData):
3418         * loader/ResourceLoader.h:
3419         * loader/TextResourceDecoder.cpp:
3420         (WebCore::TextResourceDecoder::checkForHeadCharset):
3421         * loader/icon/IconLoader.cpp:
3422         (WebCore::IconLoader::startLoading):
3423         (WebCore::IconLoader::finishLoading):
3424         * loader/loader.cpp:
3425         (WebCore::Loader::didReceiveResponse):
3426         * loader/mac/DocumentLoaderMac.mm:
3427         (WebCore::DocumentLoader::~DocumentLoader):
3428         (WebCore::DocumentLoader::stopLoading):
3429         (WebCore::DocumentLoader::finishedLoading):
3430         (WebCore::DocumentLoader::setupForReplaceByMIMEType):
3431         (WebCore::DocumentLoader::setPrimaryLoadComplete):
3432         * loader/mac/FrameLoaderMac.mm:
3433         (WebCore::FrameLoader::load):
3434         (WebCore::FrameLoader::startLoading):
3435         (WebCore::FrameLoader::cancelMainResourceLoad):
3436         (WebCore::FrameLoader::receivedMainResourceError):
3437         (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
3438         (WebCore::FrameLoader::commitProvisionalLoad):
3439         (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
3440         (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
3441         (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
3442         (WebCore::FrameLoader::detachFromParent):
3443         (WebCore::FrameLoader::addExtraFieldsToRequest):
3444         (WebCore::FrameLoader::loadResourceSynchronously):
3445         (WebCore::FrameLoader::createFrame):
3446         (WebCore::FrameLoader::objectContentType):
3447         (WebCore::nsArray):
3448         (WebCore::FrameLoader::createPlugin):
3449         (WebCore::FrameLoader::redirectDataToPlugin):
3450         (WebCore::FrameLoader::createJavaAppletWidget):
3451         (WebCore::FrameLoader::partClearedInBegin):
3452         (WebCore::FrameLoader::saveDocumentState):
3453         (WebCore::FrameLoader::restoreDocumentState):
3454         (WebCore::FrameLoader::overrideMediaType):
3455         (WebCore::FrameLoader::mainResourceData):
3456         (WebCore::FrameLoader::canGoBackOrForward):
3457         (WebCore::FrameLoader::originalRequestURL):
3458         (WebCore::FrameLoader::getHistoryLength):
3459         (WebCore::FrameLoader::goBackOrForward):
3460         (WebCore::FrameLoader::historyURL):
3461         (WebCore::FrameLoader::didFinishLoad):
3462         * loader/mac/LoaderFunctionsMac.mm:
3463         (WebCore::ServeSynchronousRequest):
3464         (WebCore::CheckCacheObjectStatus):
3465         * loader/mac/ResourceLoaderMac.mm:
3466         (WebCore::ResourceLoader::cancel):
3467         * loader/mac/SubresourceLoaderMac.mm:
3468         (WebCore::SubresourceLoader::create):
3469         * loader/qt/FrameLoaderQt.cpp: Added.
3470         (WebCore::FrameLoader::submitForm):
3471         (WebCore::FrameLoader::urlSelected):
3472         (WebCore::FrameLoader::setTitle):
3473         (WebCore::FrameLoader::createFrame):
3474         (WebCore::FrameLoader::objectContentType):
3475         (WebCore::FrameLoader::createPlugin):
3476         (WebCore::FrameLoader::createJavaAppletWidget):
3477         (WebCore::FrameLoader::originalRequestURL):
3478         * page/DOMWindow.cpp:
3479         (WebCore::DOMWindow::document):
3480         * page/Frame.cpp:
3481         (WebCore::Frame::~Frame):
3482         (WebCore::Frame::reparseConfiguration):
3483         (WebCore::Frame::shouldDragAutoNode):
3484         (WebCore::Frame::prepareForUserAction):
3485         (WebCore::FramePrivate::FramePrivate):
3486         (WebCore::FramePrivate::~FramePrivate):
3487         * page/Frame.h:
3488         * page/FramePrivate.h:
3489         * page/FrameView.cpp:
3490         (WebCore::FrameView::layout):
3491         (WebCore::FrameView::mediaType):
3492         * page/FrameView.h:
3493         * page/PageState.cpp:
3494         (WebCore::PageState::PageState):
3495         (WebCore::PageState::restoreJavaScriptState):
3496         * platform/mac/CookieJar.mm:
3497         (WebCore::setCookies):
3498         * platform/mac/TextCodecMac.cpp:
3499         * platform/mac/WebFontCache.mm:
3500         (+[WebFontCache fontWithFamily:traits:size:]):
3501         * platform/network/cf/ResourceHandleCFNet.cpp:
3502         (WebCore::ResourceHandle::start):
3503         * platform/network/mac/ResourceHandleMac.mm:
3504         (WebCore::ResourceHandle::start):
3505         * platform/qt/FrameQt.cpp:
3506         * platform/qt/FrameQt.h:
3507         * rendering/RenderApplet.cpp:
3508         (WebCore::RenderApplet::createWidgetIfNecessary):
3509         * rendering/RenderBlock.h:
3510         * rendering/RenderPartObject.cpp:
3511         (WebCore::isURLAllowed):
3512         (WebCore::RenderPartObject::updateWidget):
3513         * xml/DOMParser.cpp:
3514         (WebCore::DOMParser::parseFromString):
3515         * xml/XSLTProcessor.cpp:
3516         (WebCore::XSLTProcessor::createDocumentFromSource):
3517         * xml/xmlhttprequest.cpp:
3518         (WebCore::XMLHttpRequest::getResponseXML):
3519
3520 2006-11-07  Anders Carlsson  <acarlsson@apple.com>
3521
3522         Reviewed by Geoff.
3523
3524         Get rid of some duplicate editing enums. Also rename EAlter to EAlteration.
3525         
3526         * bridge/mac/FrameMac.mm:
3527         (WebCore::FrameMac::registerCommandForUndoOrRedo):
3528         * bridge/mac/WebCoreFrameBridge.h:
3529         * bridge/mac/WebCoreFrameBridge.mm:
3530         (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
3531         (-[WebCoreFrameBridge alterCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
3532         (-[WebCoreFrameBridge alterCurrentSelection:SelectionController::verticalDistance:]):
3533         (-[WebCoreFrameBridge selectionGranularity]):
3534         (-[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:]):
3535         (-[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:]):
3536         (-[WebCoreFrameBridge setTypingStyle:withUndoAction:]):
3537         (-[WebCoreFrameBridge applyStyle:withUndoAction:]):
3538         (-[WebCoreFrameBridge applyParagraphStyle:withUndoAction:]):
3539         * editing/SelectionController.cpp:
3540         (WebCore::SelectionController::setModifyBias):
3541         (WebCore::SelectionController::modify):
3542         * editing/SelectionController.h:
3543         (WebCore::SelectionController::):
3544         * editing/TextGranularity.h:
3545
3546 2006-11-07  Brady Eidson  <beidson@apple.com>
3547
3548         Reviewed by Maciej
3549
3550         Changed the check for "top level frame" to something much more valid
3551
3552         * page/Frame.cpp:
3553         (WebCore::Frame::endIfNotLoading):
3554
3555 2006-11-07  Beth Dakin  <bdakin@apple.com>
3556
3557         Reviewed by Hyatt (yesterday).
3558
3559         Here is part of my patch from yesterday that is safe to roll back 
3560         in. It will make the BuildBot happy.
3561
3562         * rendering/HitTestResult.cpp:
3563         (WebCore::HitTestResult::spellingToolTip): Null-check 
3564         m_innerNonSharedNode.
3565
3566 2006-11-07  Darin Adler  <darin@apple.com>
3567
3568         * loader/icon/IconLoader.cpp: (WebCore::IconLoader::didReceiveResponse):
3569    &nbs