1. 16 Jun, 2008 1 commit
    • darin@apple.com's avatar
      WebCore: · 60d3e9f9
      darin@apple.com authored
      2008-06-15  Darin Adler  <darin@apple.com>
      
              - give Frame object functions shorter names: scriptProxy() -> script(),
                selectionController() -> selection(), animationController() -> animation()
      
              * WebCore.base.exp:
              * bindings/js/JSCustomSQLStatementCallback.cpp:
              (WebCore::JSCustomSQLStatementCallback::handleEvent):
              * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
              (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
              * bindings/js/JSCustomSQLTransactionCallback.cpp:
              (WebCore::JSCustomSQLTransactionCallback::handleEvent):
              * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
              (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
              * bindings/js/JSCustomVoidCallback.cpp:
              (WebCore::JSCustomVoidCallback::handleEvent):
              * bindings/js/JSCustomXPathNSResolver.cpp:
              (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
              * bindings/js/JSDOMWindowBase.cpp:
              (WebCore::JSDOMWindowBase::~JSDOMWindowBase):
              (WebCore::allowPopUp):
              (WebCore::createWindow):
              (WebCore::windowProtoFuncOpen):
              (WebCore::toJS):
              (WebCore::toJSDOMWindow):
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::setLocation):
              * bindings/js/JSDOMWindowShell.cpp:
              (WebCore::toJS):
              (WebCore::toJSDOMWindowShell):
              * bindings/js/JSDocumentCustom.cpp:
              (WebCore::JSDocument::setLocation):
              * bindings/js/JSLocationCustom.cpp:
              (WebCore::navigateIfAllowed):
              (WebCore::JSLocation::reload):
              * bindings/js/JSNodeFilterCondition.cpp:
              (WebCore::JSNodeFilterCondition::acceptNode):
              * bindings/js/ScheduledAction.cpp:
              (WebCore::ScheduledAction::execute):
              * bindings/js/kjs_events.cpp:
              (WebCore::JSAbstractEventListener::handleEvent):
              (WebCore::JSLazyEventListener::parseCode):
              * bindings/js/kjs_html.cpp:
              (WebCore::runtimeObjectImplementsCall):
              * bindings/objc/DOMInternal.mm:
              (-[WebScriptObject _initializeScriptDOMNodeImp]):
              * bridge/jni/jni_jsobject.mm:
              (createRootObject):
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector):
              * dom/Document.cpp:
              (WebCore::Document::nodeWillBeRemoved):
              (WebCore::Document::createHTMLEventListener):
              * dom/Element.cpp:
              (WebCore::Element::updateFocusAppearance):
              * dom/EventTarget.cpp:
              (WebCore::EventTarget::dispatchGenericEvent):
              * dom/XMLTokenizer.cpp:
              (WebCore::XMLTokenizer::startElementNs):
              * editing/DeleteButtonController.cpp:
              (WebCore::DeleteButtonController::respondToChangedSelection):
              (WebCore::DeleteButtonController::enable):
              (WebCore::DeleteButtonController::deleteTarget):
              * editing/EditCommand.cpp:
              (WebCore::EditCommand::EditCommand):
              * editing/Editor.cpp:
              (WebCore::Editor::selectionForCommand):
              (WebCore::Editor::canEdit):
              (WebCore::Editor::canEditRichly):
              (WebCore::Editor::canDHTMLCut):
              (WebCore::Editor::canDHTMLCopy):
              (WebCore::Editor::canCopy):
              (WebCore::Editor::canDelete):
              (WebCore::Editor::deleteWithDirection):
              (WebCore::Editor::deleteSelectionWithSmartDelete):
              (WebCore::Editor::replaceSelectionWithFragment):
              (WebCore::Editor::selectedRange):
              (WebCore::Editor::tryDHTMLCopy):
              (WebCore::Editor::tryDHTMLCut):
              (WebCore::Editor::fontForSelection):
              (WebCore::Editor::selectionUnorderedListState):
              (WebCore::Editor::selectionOrderedListState):
              (WebCore::Editor::increaseSelectionListLevel):
              (WebCore::Editor::increaseSelectionListLevelOrdered):
              (WebCore::Editor::increaseSelectionListLevelUnordered):
              (WebCore::Editor::decreaseSelectionListLevel):
              (WebCore::Editor::dispatchCPPEvent):
              (WebCore::Editor::applyStyle):
              (WebCore::Editor::applyParagraphStyle):
              (WebCore::Editor::applyStyleToSelection):
              (WebCore::Editor::applyParagraphStyleToSelection):
              (WebCore::Editor::selectionHasStyle):
              (WebCore::Editor::appliedEditing):
              (WebCore::Editor::unappliedEditing):
              (WebCore::Editor::reappliedEditing):
              (WebCore::Editor::insertLineBreak):
              (WebCore::Editor::insertParagraphSeparator):
              (WebCore::Editor::paste):
              (WebCore::Editor::selectComposition):
              (WebCore::Editor::confirmComposition):
              (WebCore::Editor::setComposition):
              (WebCore::Editor::advanceToNextMisspelling):
              (WebCore::Editor::isSelectionUngrammatical):
              (WebCore::Editor::guessesForUngrammaticalSelection):
              (WebCore::Editor::getCompositionSelection):
              (WebCore::Editor::transpose):
              * editing/EditorCommand.cpp:
              (WebCore::expandSelectionToGranularity):
              (WebCore::executeDeleteToMark):
              (WebCore::executeMoveBackward):
              (WebCore::executeMoveBackwardAndModifySelection):
              (WebCore::executeMoveDown):
              (WebCore::executeMoveDownAndModifySelection):
              (WebCore::executeMoveForward):
              (WebCore::executeMoveForwardAndModifySelection):
              (WebCore::executeMoveLeft):
              (WebCore::executeMoveLeftAndModifySelection):
              (WebCore::executeMovePageDown):
              (WebCore::executeMovePageDownAndModifySelection):
              (WebCore::executeMovePageUp):
              (WebCore::executeMovePageUpAndModifySelection):
              (WebCore::executeMoveRight):
              (WebCore::executeMoveRightAndModifySelection):
              (WebCore::executeMoveToBeginningOfDocument):
              (WebCore::executeMoveToBeginningOfDocumentAndModifySelection):
              (WebCore::executeMoveToBeginningOfLine):
              (WebCore::executeMoveToBeginningOfLineAndModifySelection):
              (WebCore::executeMoveToBeginningOfParagraph):
              (WebCore::executeMoveToBeginningOfParagraphAndModifySelection):
              (WebCore::executeMoveToBeginningOfSentence):
              (WebCore::executeMoveToBeginningOfSentenceAndModifySelection):
              (WebCore::executeMoveToEndOfDocument):
              (WebCore::executeMoveToEndOfDocumentAndModifySelection):
              (WebCore::executeMoveToEndOfSentence):
              (WebCore::executeMoveToEndOfSentenceAndModifySelection):
              (WebCore::executeMoveToEndOfLine):
              (WebCore::executeMoveToEndOfLineAndModifySelection):
              (WebCore::executeMoveToEndOfParagraph):
              (WebCore::executeMoveToEndOfParagraphAndModifySelection):
              (WebCore::executeMoveParagraphBackwardAndModifySelection):
              (WebCore::executeMoveParagraphForwardAndModifySelection):
              (WebCore::executeMoveUp):
              (WebCore::executeMoveUpAndModifySelection):
              (WebCore::executeMoveWordBackward):
              (WebCore::executeMoveWordBackwardAndModifySelection):
              (WebCore::executeMoveWordForward):
              (WebCore::executeMoveWordForwardAndModifySelection):
              (WebCore::executeMoveWordLeft):
              (WebCore::executeMoveWordLeftAndModifySelection):
              (WebCore::executeMoveWordRight):
              (WebCore::executeMoveWordRightAndModifySelection):
              (WebCore::executeSelectAll):
              (WebCore::executeSelectToMark):
              (WebCore::executeSetMark):
              (WebCore::executeSwapWithMark):
              (WebCore::executeUnselect):
              (WebCore::enabledAnySelection):
              (WebCore::enabledAnySelectionAndMark):
              (WebCore::enabledInRichlyEditableText):
              (WebCore::enabledRangeInEditableText):
              (WebCore::enabledRangeInRichlyEditableText):
              * editing/ModifySelectionListLevel.cpp:
              (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel):
              (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel):
              * editing/RemoveFormatCommand.cpp:
              (WebCore::RemoveFormatCommand::doApply):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::setSelection):
              (WebCore::SelectionController::selectFrameElementInParentIfFullySelected):
              * editing/TypingCommand.cpp:
              (WebCore::TypingCommand::deleteSelection):
              (WebCore::TypingCommand::insertText):
              (WebCore::TypingCommand::deleteKeyPressed):
              (WebCore::TypingCommand::forwardDeleteKeyPressed):
              * history/CachedPage.cpp:
              (WebCore::CachedPage::CachedPage):
              (WebCore::CachedPage::restore):
              * html/HTMLAnchorElement.cpp:
              (WebCore::HTMLAnchorElement::defaultEventHandler):
              (WebCore::HTMLAnchorElement::setActive):
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::defaultEventHandler):
              * html/HTMLPlugInElement.cpp:
              (WebCore::HTMLPlugInElement::createNPObject):
              * html/HTMLScriptElement.cpp:
              (WebCore::HTMLScriptElement::evaluateScript):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::parseTag):
              (WebCore::HTMLTokenizer::processToken):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::executeScript):
              (WebCore::FrameLoader::clear):
              (WebCore::FrameLoader::userGestureHint):
              (WebCore::FrameLoader::open):
              (WebCore::FrameLoader::dispatchWindowObjectAvailable):
              (WebCore::FrameLoader::switchOutLowBandwidthDisplayIfReady):
              * loader/archive/cf/LegacyWebArchive.cpp:
              (WebCore::LegacyWebArchive::createFromSelection):
              * page/AccessibilityRenderObject.cpp:
              (WebCore::AccessibilityRenderObject::selection):
              (WebCore::AccessibilityRenderObject::setSelectedTextRange):
              (WebCore::AccessibilityRenderObject::isFocused):
              (WebCore::AccessibilityRenderObject::doAXTextMarkerRangeForLine):
              (WebCore::AccessibilityRenderObject::doSetAXSelectedTextMarkerRange):
              (WebCore::AccessibilityRenderObject::doAXRangeForLine):
              (WebCore::AccessibilityRenderObject::handleActiveDescendantChanged):
              * page/ContextMenuController.cpp:
              (WebCore::ContextMenuController::contextMenuItemSelected):
              * page/DOMSelection.cpp:
              (WebCore::DOMSelection::anchorNode):
              (WebCore::DOMSelection::baseNode):
              (WebCore::DOMSelection::anchorOffset):
              (WebCore::DOMSelection::baseOffset):
              (WebCore::DOMSelection::focusNode):
              (WebCore::DOMSelection::extentNode):
              (WebCore::DOMSelection::focusOffset):
              (WebCore::DOMSelection::extentOffset):
              (WebCore::DOMSelection::isCollapsed):
              (WebCore::DOMSelection::type):
              (WebCore::DOMSelection::rangeCount):
              (WebCore::DOMSelection::collapse):
              (WebCore::DOMSelection::collapseToEnd):
              (WebCore::DOMSelection::collapseToStart):
              (WebCore::DOMSelection::empty):
              (WebCore::DOMSelection::setBaseAndExtent):
              (WebCore::DOMSelection::setPosition):
              (WebCore::DOMSelection::modify):
              (WebCore::DOMSelection::extend):
              (WebCore::DOMSelection::getRangeAt):
              (WebCore::DOMSelection::removeAllRanges):
              (WebCore::DOMSelection::addRange):
              (WebCore::DOMSelection::deleteFromDocument):
              (WebCore::DOMSelection::containsNode):
              (WebCore::DOMSelection::toString):
              * page/DragController.cpp:
              (WebCore::DragController::dragIsMove):
              (WebCore::DragController::tryDocumentDrag):
              (WebCore::setSelectionToDragCaret):
              (WebCore::DragController::concludeDrag):
              (WebCore::prepareClipboardForImageDrag):
              (WebCore::DragController::startDrag):
              * page/EventHandler.cpp:
              (WebCore::EventHandler::selectClosestWordFromMouseEvent):
              (WebCore::EventHandler::selectClosestWordOrLinkFromMouseEvent):
              (WebCore::EventHandler::handleMousePressEventDoubleClick):
              (WebCore::EventHandler::handleMousePressEventTripleClick):
              (WebCore::EventHandler::handleMousePressEventSingleClick):
              (WebCore::EventHandler::handleMousePressEvent):
              (WebCore::EventHandler::updateSelectionForMouseDrag):
              (WebCore::EventHandler::handleMouseReleaseEvent):
              (WebCore::nodeIsNotBeingEdited):
              (WebCore::EventHandler::selectCursor):
              (WebCore::EventHandler::dispatchMouseEvent):
              (WebCore::EventHandler::sendContextMenuEvent):
              (WebCore::EventHandler::handleKeyboardSelectionMovement):
              (WebCore::EventHandler::handleDrag):
              * page/FocusController.cpp:
              (WebCore::FocusController::setFocusedFrame):
              (WebCore::clearSelectionIfNeeded):
              (WebCore::FocusController::setActive):
              * page/Frame.cpp:
              (WebCore::Frame::~Frame):
              (WebCore::Frame::script):
              (WebCore::Frame::setDocument):
              (WebCore::Frame::selectedText):
              (WebCore::Frame::selection):
              (WebCore::Frame::animation):
              (WebCore::Frame::notifyRendererOfSelectionChange):
              (WebCore::Frame::invalidateSelection):
              (WebCore::Frame::clearCaretRectIfNeeded):
              (WebCore::Frame::setFocusedNodeIfNeeded):
              (WebCore::Frame::selectionLayoutChanged):
              (WebCore::Frame::caretBlinkTimerFired):
              (WebCore::Frame::paintCaret):
              (WebCore::Frame::shouldChangeSelection):
              (WebCore::Frame::updateSecureKeyboardEntryIfActive):
              (WebCore::Frame::computeAndSetTypingStyle):
              (WebCore::Frame::selectionComputedStyle):
              (WebCore::Frame::bindingRootObject):
              (WebCore::Frame::windowScriptNPObject):
              (WebCore::Frame::clearScriptController):
              (WebCore::Frame::selectionTextRects):
              (WebCore::Frame::currentForm):
              (WebCore::Frame::revealSelection):
              (WebCore::Frame::revealCaret):
              (WebCore::Frame::clearTimers):
              (WebCore::Frame::styleForSelectionStart):
              (WebCore::Frame::setSelectionFromNone):
              (WebCore::Frame::findString):
              (WebCore::Frame::pageDestroyed):
              (WebCore::Frame::respondToChangedSelection):
              (WebCore::FramePrivate::FramePrivate):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/InspectorController.cpp:
              (WebCore::canPassNodeToJavaScript):
              (WebCore::InspectorController::windowScriptObjectAvailable):
              * page/JavaScriptDebugServer.cpp:
              (WebCore::JavaScriptDebugServer::setJavaScriptPaused):
              * page/Page.cpp:
              (WebCore::Page::findString):
              (WebCore::Page::selection):
              (WebCore::Page::setDebugger):
              * page/mac/FrameMac.mm:
              (WebCore::Frame::baseWritingDirectionForSelectionStart):
              (WebCore::Frame::dragImageForSelection):
              (WebCore::Frame::createScriptInstanceForWidget):
              (WebCore::Frame::windowScriptObject):
              * page/win/FrameWin.cpp:
              (WebCore::Frame::dragImageForSelection):
              * platform/ContextMenu.cpp:
              (WebCore::selectionContainsPossibleWord):
              (WebCore::ContextMenu::populate):
              (WebCore::ContextMenu::checkOrEnableIfNeeded):
              * plugins/PluginView.cpp:
              (WebCore::PluginView::performRequest):
              (WebCore::PluginView::bindingInstance):
              * rendering/HitTestResult.cpp:
              (WebCore::HitTestResult::isSelected):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::paintCaret):
              * rendering/RenderListBox.cpp:
              (WebCore::RenderListBox::paintItemForeground):
              (WebCore::RenderListBox::paintItemBackground):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::selectionBackgroundColor):
              (WebCore::RenderObject::selectionForegroundColor):
              (WebCore::RenderObject::setAnimatableStyle):
              (WebCore::RenderObject::destroy):
              (WebCore::RenderObject::animation):
              * rendering/RenderObject.h:
              * rendering/RenderTextControl.cpp:
              (WebCore::RenderTextControl::selectionStart):
              (WebCore::RenderTextControl::selectionEnd):
              (WebCore::RenderTextControl::setSelectionRange):
              (WebCore::RenderTextControl::selectionChanged):
              (WebCore::RenderTextControl::capsLockStateMayHaveChanged):
              * rendering/RenderTheme.cpp:
              (WebCore::RenderTheme::isFocused):
              * rendering/RenderTreeAsText.cpp:
              (WebCore::writeSelection):
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::destroy):
              * svg/SVGDocumentExtensions.cpp:
              (WebCore::SVGDocumentExtensions::createSVGEventListener):
              * svg/SVGSVGElement.cpp:
              (WebCore::SVGSVGElement::deselectAll):
              * svg/SVGTextContentElement.cpp:
              (WebCore::SVGTextContentElement::selectSubString):
      
      WebKit/gtk:
      
      2008-06-15  Darin Adler  <darin@apple.com>
      
              - give Frame object functions shorter names: scriptProxy() -> script(),
                selectionController() -> selection(), animationController() -> animation()
      
              * WebCoreSupport/EditorClientGtk.cpp:
              (WebKit::EditorClient::handleKeyboardEvent):
              * WebCoreSupport/FrameLoaderClientGtk.cpp:
              (WebKit::FrameLoaderClient::windowObjectCleared):
              * webkit/webkitwebframe.cpp:
              * webkit/webkitwebview.cpp:
      
      WebKit/mac:
      
      2008-06-15  Darin Adler  <darin@apple.com>
      
              - give Frame object functions shorter names: scriptProxy() -> script(),
                selectionController() -> selection(), animationController() -> animation()
      
              * Plugins/WebPluginController.mm:
              (-[WebPluginController webPlugInContainerSelectionColor]):
              * WebView/WebFrame.mm:
              (-[WebFrame _attachScriptDebugger]):
              (-[WebFrame _hasSelection]):
              (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
              (-[WebFrame _rangeByAlteringCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
              (-[WebFrame _convertToNSRange:]):
              (-[WebFrame _convertToDOMRange:]):
              (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
              (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
              (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
              (-[WebFrame _selectedNSRange]):
              (-[WebFrame _selectNSRange:]):
              (-[WebFrame globalContext]):
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView _selectedRange]):
              (-[WebHTMLView _hasSelection]):
              (-[WebHTMLView _hasSelectionOrInsertionPoint]):
              (-[WebHTMLView _hasInsertionPoint]):
              (-[WebHTMLView _isEditable]):
              (-[WebHTMLView _updateFocusedAndActiveState]):
              (-[WebHTMLView readSelectionFromPasteboard:]):
              (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
              (-[WebHTMLView maintainsInactiveSelection]):
              (-[WebHTMLView paste:]):
              (isTextInput):
              (-[WebHTMLView inputContext]):
              (-[WebTextCompleteController doCompletion]):
              (-[WebHTMLView selectAll]):
              (-[WebHTMLView deselectAll]):
              (-[WebHTMLView selectedAttributedString]):
              * WebView/WebView.mm:
              (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
              (-[WebView setSelectedDOMRange:affinity:]):
              (-[WebView selectedDOMRange]):
              (-[WebView selectionAffinity]):
      
      WebKit/qt:
      
      2008-06-15  Darin Adler  <darin@apple.com>
      
              - give Frame object functions shorter names: scriptProxy() -> script(),
                selectionController() -> selection(), animationController() -> animation()
      
              * Api/qwebframe.cpp:
              (QWebFrame::evaluateJavaScript):
              * Api/qwebpage.cpp:
              (QWebPagePrivate::focusInEvent):
              (QWebPagePrivate::focusOutEvent):
              (QWebPage::inputMethodQuery):
              * WebCoreSupport/EditorClientQt.cpp:
              (WebCore::EditorClientQt::handleKeyboardEvent):
      
      WebKit/win:
      
      2008-06-15  Darin Adler  <darin@apple.com>
      
              - give Frame object functions shorter names: scriptProxy() -> script(),
                selectionController() -> selection(), animationController() -> animation()
      
              * WebFrame.cpp:
              (WebFrame::globalContext):
              (WebFrame::windowObjectCleared):
              * WebView.cpp:
              (WebView::handleContextMenuEvent):
              (WebViewWndProc):
              (WebView::updateFocusedAndActiveState):
              (WebView::hasSelectedRange):
              (WebView::replaceSelectionWithText):
              (WebView::clearSelection):
              (WebView::prepareCandidateWindow):
              (WebView::onIMERequestCharPosition):
              (WebView::onIMERequestReconvertString):
      
      WebKit/wx:
      
      2008-06-15  Darin Adler  <darin@apple.com>
      
              - give Frame object functions shorter names: scriptProxy() -> script(),
                selectionController() -> selection(), animationController() -> animation()
      
              * WebKitSupport/EditorClientWx.cpp:
              (WebCore::EditorClientWx::handleKeyboardEvent):
              * WebView.cpp:
              (wxWebView::RunScript):
              (wxWebView::OnSetFocus):
              (wxWebView::OnKillFocus):
      
      WebKitTools:
      
      2008-06-15  Darin Adler  <darin@apple.com>
      
              * Scripts/do-webcore-rename: Updated for the latest round of renaming.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34589 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60d3e9f9
  2. 14 Jun, 2008 1 commit
    • darin@apple.com's avatar
      WebCore: · 48ac3c40
      darin@apple.com authored
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Reviewed by Sam.
      
              - more work on https://bugs.webkit.org/show_bug.cgi?id=17257
                start ref counts at 1 instead of 0 for speed
      
              * WebCore.base.exp:
              * bindings/js/JSSVGMatrixCustom.cpp:
              (WebCore::JSSVGMatrix::multiply):
              (WebCore::JSSVGMatrix::inverse):
              (WebCore::JSSVGMatrix::translate):
              (WebCore::JSSVGMatrix::scale):
              (WebCore::JSSVGMatrix::scaleNonUniform):
              (WebCore::JSSVGMatrix::rotate):
              (WebCore::JSSVGMatrix::rotateFromVector):
              (WebCore::JSSVGMatrix::flipX):
              (WebCore::JSSVGMatrix::flipY):
              (WebCore::JSSVGMatrix::skewX):
              (WebCore::JSSVGMatrix::skewY):
              * bindings/js/JSSVGPODTypeWrapper.h:
              (WebCore::JSSVGPODTypeWrapperCreatorReadWrite::create):
              (WebCore::JSSVGPODTypeWrapperCreatorReadWrite::JSSVGPODTypeWrapperCreatorReadWrite):
              (WebCore::JSSVGPODTypeWrapperCreatorReadOnly::create):
              (WebCore::JSSVGPODTypeWrapperCreatorReadOnly::JSSVGPODTypeWrapperCreatorReadOnly):
              (WebCore::JSSVGPODTypeWrapperCreatorForList::create):
              (WebCore::JSSVGPODTypeWrapperCreatorForList::JSSVGPODTypeWrapperCreatorForList):
              (WebCore::JSSVGPODTypeWrapperCache::lookupOrCreateWrapper):
              (WebCore::JSSVGPODTypeWrapperCache::forgetWrapper):
              * bindings/js/JSSVGPointListCustom.cpp:
              (WebCore::finishGetter):
              (WebCore::finishSetter):
              (WebCore::finishSetterReadOnlyResult):
              (WebCore::JSSVGPointList::clear):
              (WebCore::JSSVGPointList::initialize):
              (WebCore::JSSVGPointList::getItem):
              (WebCore::JSSVGPointList::insertItemBefore):
              (WebCore::JSSVGPointList::replaceItem):
              (WebCore::JSSVGPointList::removeItem):
              (WebCore::JSSVGPointList::appendItem):
              * bindings/js/JSSVGTransformListCustom.cpp:
              (WebCore::finishGetter):
              (WebCore::finishSetter):
              (WebCore::finishSetterReadOnlyResult):
              (WebCore::JSSVGTransformList::clear):
              (WebCore::JSSVGTransformList::initialize):
              (WebCore::JSSVGTransformList::getItem):
              (WebCore::JSSVGTransformList::insertItemBefore):
              (WebCore::JSSVGTransformList::replaceItem):
              (WebCore::JSSVGTransformList::removeItem):
              (WebCore::JSSVGTransformList::appendItem):
              * bindings/scripts/CodeGeneratorJS.pm:
              * css/CSSFontSelector.cpp:
              (WebCore::CSSFontSelector::CSSFontSelector):
              (WebCore::CSSFontSelector::~CSSFontSelector):
              * css/CSSFontSelector.h:
              (WebCore::CSSFontSelector::create):
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::CSSStyleSelector):
              (WebCore::CSSStyleSelector::applyProperty):
              * dom/Attribute.cpp:
              (WebCore::Attribute::clone):
              * dom/Attribute.h:
              (WebCore::Attribute::create):
              (WebCore::Attribute::Attribute):
              * dom/BeforeTextInsertedEvent.h:
              (WebCore::BeforeTextInsertedEvent::create):
              * dom/BeforeUnloadEvent.h:
              (WebCore::BeforeUnloadEvent::create):
              * dom/CharacterData.cpp:
              (WebCore::CharacterData::dispatchModifiedEvent):
              * dom/ClipboardEvent.cpp:
              (WebCore::ClipboardEvent::ClipboardEvent):
              * dom/ClipboardEvent.h:
              (WebCore::ClipboardEvent::create):
              * dom/ContainerNode.cpp:
              (WebCore::ContainerNode::removeChild):
              (WebCore::dispatchChildInsertionEvents):
              (WebCore::dispatchChildRemovalEvents):
              * dom/Document.cpp:
              (WebCore::Document::createTextNode):
              (WebCore::Document::createComment):
              (WebCore::Document::createCDATASection):
              (WebCore::Document::createProcessingInstruction):
              (WebCore::Document::createEntityReference):
              (WebCore::Document::createEditingTextNode):
              (WebCore::Document::createEvent):
              (WebCore::Document::createAttributeNS):
              (WebCore::Document::finishedParsing):
              * dom/Document.h:
              * dom/Element.cpp:
              (WebCore::Element::createAttribute):
              * dom/Element.h:
              * dom/Event.cpp:
              (WebCore::Event::Event):
              * dom/Event.h:
              (WebCore::Event::create):
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dispatchSubtreeModifiedEvent):
              (WebCore::EventTargetNode::dispatchWindowEvent):
              (WebCore::EventTargetNode::dispatchUIEvent):
              (WebCore::EventTargetNode::dispatchKeyEvent):
              (WebCore::EventTargetNode::dispatchMouseEvent):
              (WebCore::EventTargetNode::dispatchWheelEvent):
              (WebCore::EventTargetNode::dispatchHTMLEvent):
              (WebCore::EventTargetNode::dispatchProgressEvent):
              (WebCore::EventTargetNode::dispatchStorageEvent):
              * dom/KeyboardEvent.h:
              (WebCore::KeyboardEvent::create):
              * dom/MappedAttribute.cpp:
              (WebCore::MappedAttribute::clone):
              * dom/MappedAttribute.h:
              (WebCore::MappedAttribute::create):
              (WebCore::MappedAttribute::setDecl):
              (WebCore::MappedAttribute::MappedAttribute):
              * dom/MessageEvent.cpp:
              (WebCore::MessageEvent::MessageEvent):
              * dom/MessageEvent.h:
              (WebCore::MessageEvent::create):
              * dom/MouseEvent.cpp:
              (WebCore::MouseEvent::MouseEvent):
              (WebCore::MouseEvent::initMouseEvent):
              * dom/MouseEvent.h:
              (WebCore::MouseEvent::create):
              * dom/MouseRelatedEvent.cpp:
              (WebCore::MouseRelatedEvent::MouseRelatedEvent):
              * dom/MouseRelatedEvent.h:
              * dom/MutationEvent.cpp:
              (WebCore::MutationEvent::MutationEvent):
              (WebCore::MutationEvent::initMutationEvent):
              * dom/MutationEvent.h:
              (WebCore::MutationEvent::create):
              * dom/OverflowEvent.h:
              (WebCore::OverflowEvent::create):
              * dom/ProgressEvent.h:
              (WebCore::ProgressEvent::create):
              * dom/StyledElement.cpp:
              (WebCore::StyledElement::getMappedAttributeDecl):
              (WebCore::StyledElement::setMappedAttributeDecl):
              (WebCore::StyledElement::removeMappedAttributeDecl):
              (WebCore::StyledElement::createAttribute):
              * dom/StyledElement.h:
              * dom/TextEvent.cpp:
              (WebCore::TextEvent::TextEvent):
              (WebCore::TextEvent::initTextEvent):
              * dom/TextEvent.h:
              (WebCore::TextEvent::create):
              * dom/UIEvent.cpp:
              (WebCore::UIEvent::UIEvent):
              (WebCore::UIEvent::initUIEvent):
              * dom/UIEvent.h:
              (WebCore::UIEvent::create):
              * dom/UIEventWithKeyState.h:
              (WebCore::UIEventWithKeyState::ctrlKey):
              (WebCore::UIEventWithKeyState::shiftKey):
              (WebCore::UIEventWithKeyState::altKey):
              (WebCore::UIEventWithKeyState::metaKey):
              (WebCore::UIEventWithKeyState::UIEventWithKeyState):
              * dom/WheelEvent.cpp:
              (WebCore::WheelEvent::WheelEvent):
              (WebCore::WheelEvent::initWheelEvent):
              * dom/WheelEvent.h:
              (WebCore::WheelEvent::create):
              * editing/AppendNodeCommand.cpp:
              (WebCore::AppendNodeCommand::AppendNodeCommand):
              * editing/AppendNodeCommand.h:
              (WebCore::AppendNodeCommand::create):
              * editing/ApplyStyleCommand.cpp:
              (WebCore::ApplyStyleCommand::applyBlockStyle):
              * editing/ApplyStyleCommand.h:
              (WebCore::ApplyStyleCommand::create):
              * editing/BreakBlockquoteCommand.h:
              (WebCore::BreakBlockquoteCommand::create):
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::applyStyle):
              (WebCore::CompositeEditCommand::applyStyledElement):
              (WebCore::CompositeEditCommand::removeStyledElement):
              (WebCore::CompositeEditCommand::insertParagraphSeparator):
              (WebCore::CompositeEditCommand::insertLineBreak):
              (WebCore::CompositeEditCommand::insertNodeBefore):
              (WebCore::CompositeEditCommand::appendNode):
              (WebCore::CompositeEditCommand::removeNode):
              (WebCore::CompositeEditCommand::removeNodePreservingChildren):
              (WebCore::CompositeEditCommand::splitTextNode):
              (WebCore::CompositeEditCommand::splitElement):
              (WebCore::CompositeEditCommand::mergeIdenticalElements):
              (WebCore::CompositeEditCommand::wrapContentsInDummySpan):
              (WebCore::CompositeEditCommand::splitTextNodeContainingElement):
              (WebCore::CompositeEditCommand::joinTextNodes):
              (WebCore::CompositeEditCommand::inputText):
              (WebCore::CompositeEditCommand::insertTextIntoNode):
              (WebCore::CompositeEditCommand::deleteTextFromNode):
              (WebCore::CompositeEditCommand::replaceTextInNode):
              (WebCore::CompositeEditCommand::deleteSelection):
              (WebCore::CompositeEditCommand::removeCSSProperty):
              (WebCore::CompositeEditCommand::removeNodeAttribute):
              (WebCore::CompositeEditCommand::setNodeAttribute):
              (WebCore::CompositeEditCommand::appendBlockPlaceholder):
              (WebCore::CompositeEditCommand::insertBlockPlaceholder):
              (WebCore::CompositeEditCommand::addBlockPlaceholderIfNeeded):
              (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
              (WebCore::CompositeEditCommand::moveParagraphs):
              (WebCore::CompositeEditCommand::splitTreeToNode):
              * editing/CompositeEditCommand.h:
              (WebCore::CompositeEditCommand::isFirstCommand):
              * editing/CreateLinkCommand.h:
              (WebCore::CreateLinkCommand::create):
              * editing/DeleteButtonController.cpp:
              (WebCore::DeleteButtonController::deleteTarget):
              * editing/DeleteFromTextNodeCommand.cpp:
              (WebCore::DeleteFromTextNodeCommand::DeleteFromTextNodeCommand):
              * editing/DeleteFromTextNodeCommand.h:
              (WebCore::DeleteFromTextNodeCommand::create):
              * editing/DeleteSelectionCommand.h:
              (WebCore::DeleteSelectionCommand::create):
              * editing/EditCommand.h:
              (WebCore::SimpleEditCommand::SimpleEditCommand):
              * editing/Editor.cpp:
              (WebCore::Editor::deleteSelectionWithSmartDelete):
              (WebCore::Editor::replaceSelectionWithFragment):
              (WebCore::Editor::removeFormattingAndStyle):
              (WebCore::Editor::clearLastEditCommand):
              (WebCore::Editor::dispatchCPPEvent):
              (WebCore::Editor::applyStyle):
              (WebCore::Editor::applyParagraphStyle):
              (WebCore::Editor::indent):
              (WebCore::Editor::outdent):
              (WebCore::dispatchEditableContentChangedEvents):
              * editing/Editor.h:
              * editing/EditorCommand.cpp:
              (WebCore::executeInsertFragment):
              (WebCore::executeCreateLink):
              (WebCore::executeFormatBlock):
              (WebCore::executeIndent):
              (WebCore::executeInsertOrderedList):
              (WebCore::executeInsertUnorderedList):
              (WebCore::executeOutdent):
              (WebCore::executeUnlink):
              * editing/FormatBlockCommand.h:
              (WebCore::FormatBlockCommand::create):
              * editing/IndentOutdentCommand.cpp:
              (WebCore::IndentOutdentCommand::indentRegion):
              (WebCore::IndentOutdentCommand::outdentParagraph):
              * editing/IndentOutdentCommand.h:
              (WebCore::IndentOutdentCommand::create):
              * editing/InsertIntoTextNodeCommand.cpp:
              (WebCore::InsertIntoTextNodeCommand::InsertIntoTextNodeCommand):
              * editing/InsertIntoTextNodeCommand.h:
              (WebCore::InsertIntoTextNodeCommand::create):
              * editing/InsertLineBreakCommand.h:
              (WebCore::InsertLineBreakCommand::create):
              * editing/InsertListCommand.cpp:
              (WebCore::InsertListCommand::doApply):
              * editing/InsertListCommand.h:
              (WebCore::InsertListCommand::create):
              * editing/InsertNodeBeforeCommand.cpp:
              (WebCore::InsertNodeBeforeCommand::InsertNodeBeforeCommand):
              * editing/InsertNodeBeforeCommand.h:
              (WebCore::InsertNodeBeforeCommand::create):
              * editing/InsertParagraphSeparatorCommand.cpp:
              (WebCore::InsertParagraphSeparatorCommand::doApply):
              * editing/InsertParagraphSeparatorCommand.h:
              (WebCore::InsertParagraphSeparatorCommand::create):
              * editing/InsertTextCommand.h:
              (WebCore::InsertTextCommand::create):
              * editing/JoinTextNodesCommand.cpp:
              (WebCore::JoinTextNodesCommand::JoinTextNodesCommand):
              * editing/JoinTextNodesCommand.h:
              (WebCore::JoinTextNodesCommand::create):
              * editing/MergeIdenticalElementsCommand.cpp:
              (WebCore::MergeIdenticalElementsCommand::MergeIdenticalElementsCommand):
              * editing/MergeIdenticalElementsCommand.h:
              (WebCore::MergeIdenticalElementsCommand::create):
              * editing/ModifySelectionListLevel.cpp:
              (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelWithType):
              * editing/MoveSelectionCommand.cpp:
              (WebCore::MoveSelectionCommand::doApply):
              * editing/MoveSelectionCommand.h:
              (WebCore::MoveSelectionCommand::create):
              * editing/RemoveCSSPropertyCommand.cpp:
              (WebCore::RemoveCSSPropertyCommand::RemoveCSSPropertyCommand):
              * editing/RemoveCSSPropertyCommand.h:
              (WebCore::RemoveCSSPropertyCommand::create):
              * editing/RemoveFormatCommand.h:
              (WebCore::RemoveFormatCommand::create):
              * editing/RemoveNodeAttributeCommand.cpp:
              (WebCore::RemoveNodeAttributeCommand::RemoveNodeAttributeCommand):
              * editing/RemoveNodeAttributeCommand.h:
              (WebCore::RemoveNodeAttributeCommand::create):
              * editing/RemoveNodeCommand.cpp:
              (WebCore::RemoveNodeCommand::RemoveNodeCommand):
              * editing/RemoveNodeCommand.h:
              (WebCore::RemoveNodeCommand::create):
              * editing/RemoveNodePreservingChildrenCommand.cpp:
              (WebCore::RemoveNodePreservingChildrenCommand::RemoveNodePreservingChildrenCommand):
              (WebCore::RemoveNodePreservingChildrenCommand::doApply):
              * editing/RemoveNodePreservingChildrenCommand.h:
              (WebCore::RemoveNodePreservingChildrenCommand::create):
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::):
              (WebCore::ReplacementFragment::hasInterchangeNewlineAtStart):
              (WebCore::ReplacementFragment::hasInterchangeNewlineAtEnd):
              (WebCore::ReplacementFragment::ReplacementFragment):
              * editing/ReplaceSelectionCommand.h:
              (WebCore::ReplaceSelectionCommand::create):
              * editing/SetNodeAttributeCommand.cpp:
              (WebCore::SetNodeAttributeCommand::SetNodeAttributeCommand):
              * editing/SetNodeAttributeCommand.h:
              (WebCore::SetNodeAttributeCommand::create):
              * editing/SplitElementCommand.cpp:
              (WebCore::SplitElementCommand::SplitElementCommand):
              * editing/SplitElementCommand.h:
              (WebCore::SplitElementCommand::create):
              * editing/SplitTextNodeCommand.cpp:
              (WebCore::SplitTextNodeCommand::SplitTextNodeCommand):
              * editing/SplitTextNodeCommand.h:
              (WebCore::SplitTextNodeCommand::create):
              * editing/SplitTextNodeContainingElementCommand.cpp:
              (WebCore::SplitTextNodeContainingElementCommand::SplitTextNodeContainingElementCommand):
              * editing/SplitTextNodeContainingElementCommand.h:
              (WebCore::SplitTextNodeContainingElementCommand::create):
              * editing/TypingCommand.cpp:
              (WebCore::TypingCommand::deleteSelection):
              (WebCore::TypingCommand::deleteKeyPressed):
              (WebCore::TypingCommand::forwardDeleteKeyPressed):
              (WebCore::TypingCommand::insertText):
              (WebCore::TypingCommand::insertLineBreak):
              (WebCore::TypingCommand::insertParagraphSeparatorInQuotedContent):
              (WebCore::TypingCommand::insertParagraphSeparator):
              (WebCore::TypingCommand::insertTextRunWithoutNewlines):
              * editing/TypingCommand.h:
              (WebCore::TypingCommand::create):
              (WebCore::TypingCommand::smartDelete):
              * editing/UnlinkCommand.h:
              (WebCore::UnlinkCommand::create):
              * editing/WrapContentsInDummySpanCommand.cpp:
              (WebCore::WrapContentsInDummySpanCommand::WrapContentsInDummySpanCommand):
              * editing/WrapContentsInDummySpanCommand.h:
              (WebCore::WrapContentsInDummySpanCommand::create):
              * html/HTMLTableElement.cpp:
              (WebCore::HTMLTableElement::additionalAttributeStyleDecls):
              (WebCore::HTMLTableElement::addSharedCellBordersDecl):
              (WebCore::HTMLTableElement::addSharedCellPaddingDecl):
              (WebCore::HTMLTableElement::addSharedGroupDecls):
              * html/HTMLTokenizer.cpp:
              (WebCore::Token::addAttribute):
              * html/HTMLViewSourceDocument.cpp:
              (WebCore::HTMLViewSourceDocument::createContainingTable):
              (WebCore::HTMLViewSourceDocument::addSpanWithClassName):
              (WebCore::HTMLViewSourceDocument::addLine):
              (WebCore::HTMLViewSourceDocument::addLink):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::didOpenURL):
              * loader/appcache/DOMApplicationCache.cpp:
              (WebCore::DOMApplicationCache::callListener):
              * page/ContextMenuController.cpp:
              (WebCore::ContextMenuController::contextMenuItemSelected):
              * page/DOMWindow.cpp:
              (WebCore::PostMessageTimer::PostMessageTimer):
              (WebCore::PostMessageTimer::fired):
              (WebCore::DOMWindow::postMessage):
              * page/DragController.cpp:
              (WebCore::DragController::concludeDrag):
              * page/EventHandler.cpp:
              (WebCore::EventHandler::dispatchDragEvent):
              (WebCore::EventHandler::keyEvent):
              (WebCore::EventHandler::handleTextInputEvent):
              * page/Frame.cpp:
              (WebCore::Frame::computeAndSetTypingStyle):
              (WebCore::Frame::shouldClose):
              * page/FrameView.cpp:
              (WebCore::FrameView::updateOverflowStatus):
              * page/mac/EventHandlerMac.mm:
              (WebCore::EventHandler::currentKeyboardEvent):
              * page/mac/FrameMac.mm:
              * platform/DeprecatedValueListImpl.cpp:
              (WebCore::DeprecatedValueListImpl::Private::Private):
              (WebCore::DeprecatedValueListImpl::DeprecatedValueListImpl):
              (WebCore::DeprecatedValueListImpl::copyOnWrite):
              * platform/graphics/FontSelector.h:
              * platform/graphics/GlyphPageTreeNode.cpp:
              (WebCore::GlyphPageTreeNode::initializePage):
              * platform/graphics/GlyphPageTreeNode.h:
              (WebCore::GlyphPage::create):
              (WebCore::GlyphPage::GlyphPage):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::scrollToOffset):
              (WebCore::RenderLayer::updateOverflowStatus):
              (WebCore::RenderLayer::updateReflectionStyle):
              * rendering/style/RenderStyle.h:
              (WebCore::TransformOperation::~TransformOperation):
              (WebCore::ScaleTransformOperation::create):
              (WebCore::ScaleTransformOperation::ScaleTransformOperation):
              (WebCore::RotateTransformOperation::create):
              (WebCore::RotateTransformOperation::RotateTransformOperation):
              (WebCore::SkewTransformOperation::create):
              (WebCore::SkewTransformOperation::operator==):
              (WebCore::SkewTransformOperation::SkewTransformOperation):
              (WebCore::TranslateTransformOperation::create):
              (WebCore::TranslateTransformOperation::operator==):
              (WebCore::TranslateTransformOperation::TranslateTransformOperation):
              (WebCore::MatrixTransformOperation::create):
              (WebCore::MatrixTransformOperation::MatrixTransformOperation):
              (WebCore::StyleReflection::create):
              (WebCore::StyleReflection::StyleReflection):
              * storage/StorageEvent.cpp:
              (WebCore::StorageEvent::StorageEvent):
              (WebCore::StorageEvent::initStorageEvent):
              * storage/StorageEvent.h:
              (WebCore::StorageEvent::create):
              (WebCore::StorageEvent::StorageEvent):
              * svg/SVGAngle.cpp:
              (WebCore::SVGAngle::SVGAngle):
              * svg/SVGAngle.h:
              (WebCore::SVGAngle::create):
              * svg/SVGAnimatedTemplate.h:
              (WebCore::SVGAnimatedTemplate::SVGAnimatedTemplate):
              (WebCore::lookupOrCreateWrapper):
              * svg/SVGElement.cpp:
              (WebCore::SVGElement::sendSVGLoadEventIfPossible):
              * svg/SVGElement.h:
              * svg/SVGMarkerElement.cpp:
              (WebCore::SVGMarkerElement::SVGMarkerElement):
              (WebCore::SVGMarkerElement::parseMappedAttribute):
              (WebCore::SVGMarkerElement::setOrientToAngle):
              * svg/SVGMarkerElement.h:
              * svg/SVGSVGElement.cpp:
              (WebCore::SVGSVGElement::createSVGAngle):
              * svg/SVGSVGElement.h:
              * svg/SVGZoomEvent.h:
              (WebCore::SVGZoomEvent::create):
              * svg/graphics/SVGImage.cpp:
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::callReadyStateChangeListener):
              (WebCore::XMLHttpRequest::dispatchProgressEvent):
              * xml/XMLHttpRequestProgressEvent.cpp:
              * xml/XMLHttpRequestProgressEvent.h:
              (WebCore::XMLHttpRequestProgressEvent::create):
              (WebCore::XMLHttpRequestProgressEvent::position):
              (WebCore::XMLHttpRequestProgressEvent::totalSize):
              (WebCore::XMLHttpRequestProgressEvent::XMLHttpRequestProgressEvent):
      
      WebKit/mac:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Reviewed by Sam.
      
              - more work on https://bugs.webkit.org/show_bug.cgi?id=17257
                start ref counts at 1 instead of 0 for speed
      
              * WebView/WebFrame.mm:
              (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
              * WebView/WebPDFView.mm:
              (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      48ac3c40
  3. 27 Apr, 2007 1 commit
    • harrison's avatar
      WebCore: · 218a3991
      harrison authored
              Reviewed by Darin.
      
              <rdar://problem/5160627> Export JS list creation support as ObjC SPI for Mail
      
              * WebCore.exp:
              * editing/Editor.h:
              * editing/Editor.cpp:
              (WebCore::Editor::insertOrderedList):
              (WebCore::Editor::insertUnorderedList):
              (WebCore::Editor::canIncreaseSelectionListLevel):
              (WebCore::Editor::canDecreaseSelectionListLevel):
              (WebCore::Editor::increaseSelectionListLevel):
              (WebCore::Editor::increaseSelectionListLevelOrdered):
              (WebCore::Editor::increaseSelectionListLevelUnordered):
              (WebCore::Editor::decreaseSelectionListLevel):
              Add insertOrderedList() and insertUnorderedList().
              Move existing list management functions from WebCoreFrameBridge.
              The level increasing functions now return a PassRefPtr<Node> instead of Node.
              Add check for canEditRichly.
              
              - in many other functions, condense the check for nil client().
              
              * editing/InsertListCommand.h:
              * editing/InsertListCommand.cpp:
              (WebCore::InsertListCommand::insertList):
              (WebCore::InsertListCommand::fixOrphanedListChild):
              (WebCore::InsertListCommand::doApply):
              Add insertList(), which returns the new list element.
              Don't set the list element's ID if the specified ID was an empty string.
                      
              * editing/ModifySelectionListLevel.h:
              * editing/ModifySelectionListLevel.cpp:
              (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelWithType):
              (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevel):
              (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelOrdered):
              (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelUnordered):
              Return PassRefPtr<Node> instead of Node.
      
              * page/mac/WebCoreFrameBridge.h:
              * page/mac/WebCoreFrameBridge.mm:
              Move list management functions to Editor.h and Editor.cpp.
      
      WebKit:
      
              Reviewed by Darin.
      
              <rdar://problem/5160627> Export JS list creation support as ObjC SPI for Mail
      
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView _selectedRange]):
              (-[WebHTMLView _shouldDeleteRange:]):
              (-[WebHTMLView _canEdit]):
              (-[WebHTMLView _canEditRichly]):
              (-[WebHTMLView _hasSelection]):
              (-[WebHTMLView _hasSelectionOrInsertionPoint]):
              (-[WebHTMLView _hasInsertionPoint]):
              (-[WebHTMLView _isEditable]):
              Condense the check for nil [self frame].
              Remove canEditRichly checks and rely on the editor to do the check instead.
              
              (-[WebHTMLView _insertOrderedList]):
              (-[WebHTMLView _insertUnorderedList]):
              New.
              
              (-[WebHTMLView _canIncreaseSelectionListLevel]):
              (-[WebHTMLView _canDecreaseSelectionListLevel]):
              (-[WebHTMLView _increaseSelectionListLevel]):
              (-[WebHTMLView _increaseSelectionListLevelOrdered]):
              (-[WebHTMLView _increaseSelectionListLevelUnordered]):
              (-[WebHTMLView _decreaseSelectionListLevel]):
              Moved from bridge to frame editor.
      
              * WebView/WebHTMLViewPrivate.h:
              Add _insertOrderedList and _insertUnorderedList to WebHTMLView(WebPrivate)
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21157 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      218a3991
  4. 05 Sep, 2006 1 commit
    • justing's avatar
      LayoutTests: · 397edaa4
      justing authored
              Reviewed by thatcher
              
              Setup for <rdar://problem/4344550> Misspellings aren't marked after undo delete
      
              Fixed:
              * editing/pasteboard/4641033-expected.checksum:
              * editing/pasteboard/4641033-expected.png:
              * editing/execCommand/outdent-selection-expected.checksum:
              * editing/execCommand/outdent-selection-expected.png:
      
              Added a didChangeSelection notification that was absent before:
              * editing/deleting/collapse-whitespace-3587601-fix-expected.txt:
              * editing/deleting/delete-3608430-fix-expected.txt:
              * editing/deleting/delete-3608462-fix-expected.txt:
              * editing/deleting/delete-3775172-fix-expected.txt:
              * editing/deleting/delete-3800834-fix-expected.txt:
              * editing/deleting/delete-3857753-fix-expected.txt:
              * editing/deleting/delete-3865854-fix-expected.txt:
              * editing/deleting/delete-3928305-fix-expected.txt:
              * editing/deleting/delete-3959464-fix-expected.txt:
              * editing/deleting/delete-4038408-fix-expected.txt:
              * editing/deleting/delete-all-text-in-text-field-assertion-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-001-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-002-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-003-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-004-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-005-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-006-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-007-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-009-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-010-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-011-expected.txt:
              * editing/deleting/delete-block-contents-001-expected.txt:
              * editing/deleting/delete-block-contents-002-expected.txt:
              * editing/deleting/delete-block-contents-003-expected.txt:
              * editing/deleting/delete-block-merge-contents-001-expected.txt:
              * editing/deleting/delete-block-merge-contents-002-expected.txt:
              * editing/deleting/delete-block-merge-contents-003-expected.txt:
              * editing/deleting/delete-block-merge-contents-004-expected.txt:
              * editing/deleting/delete-block-merge-contents-005-expected.txt:
              * editing/deleting/delete-block-merge-contents-006-expected.txt:
              * editing/deleting/delete-block-merge-contents-007-expected.txt:
              * editing/deleting/delete-block-merge-contents-008-expected.txt:
              * editing/deleting/delete-block-merge-contents-009-expected.txt:
              * editing/deleting/delete-block-merge-contents-010-expected.txt:
              * editing/deleting/delete-block-merge-contents-012-expected.txt:
              * editing/deleting/delete-block-merge-contents-013-expected.txt:
              * editing/deleting/delete-block-merge-contents-014-expected.txt:
              * editing/deleting/delete-block-merge-contents-015-expected.txt:
              * editing/deleting/delete-block-merge-contents-016-expected.txt:
              * editing/deleting/delete-block-merge-contents-017-expected.txt:
              * editing/deleting/delete-block-merge-contents-018-expected.txt:
              * editing/deleting/delete-block-merge-contents-019-expected.txt:
              * editing/deleting/delete-block-merge-contents-020-expected.txt:
              * editing/deleting/delete-block-merge-contents-021-expected.txt:
              * editing/deleting/delete-block-merge-contents-022-expected.txt:
              * editing/deleting/delete-block-merge-contents-023-expected.txt:
              * editing/deleting/delete-block-merge-contents-024-expected.txt:
              * editing/deleting/delete-block-table-expected.txt:
              * editing/deleting/delete-br-008-expected.txt:
              * editing/deleting/delete-br-010-expected.txt:
              * editing/deleting/delete-br-011-expected.txt:
              * editing/deleting/delete-first-list-item-expected.txt:
              * editing/deleting/delete-image-001-expected.txt:
              * editing/deleting/delete-image-002-expected.txt:
              * editing/deleting/delete-image-003-expected.txt:
              * editing/deleting/delete-image-004-expected.txt:
              * editing/deleting/delete-line-001-expected.txt:
              * editing/deleting/delete-line-002-expected.txt:
              * editing/deleting/delete-line-003-expected.txt:
              * editing/deleting/delete-line-004-expected.txt:
              * editing/deleting/delete-line-005-expected.txt:
              * editing/deleting/delete-line-006-expected.txt:
              * editing/deleting/delete-line-007-expected.txt:
              * editing/deleting/delete-line-008-expected.txt:
              * editing/deleting/delete-line-009-expected.txt:
              * editing/deleting/delete-line-010-expected.txt:
              * editing/deleting/delete-line-011-expected.txt:
              * editing/deleting/delete-line-012-expected.txt:
              * editing/deleting/delete-line-013-expected.txt:
              * editing/deleting/delete-line-014-expected.txt:
              * editing/deleting/delete-line-015-expected.txt:
              * editing/deleting/delete-line-016-expected.txt:
              * editing/deleting/delete-line-017-expected.txt:
              * editing/deleting/delete-listitem-001-expected.txt:
              * editing/deleting/delete-listitem-002-expected.txt:
              * editing/deleting/delete-mixed-editable-content-001-expected.txt:
              * editing/deleting/delete-select-all-001-expected.txt:
              * editing/deleting/delete-select-all-002-expected.txt:
              * editing/deleting/delete-select-all-003-expected.txt:
              * editing/deleting/merge-different-styles-expected.txt:
              * editing/deleting/merge-endOfParagraph-expected.txt:
              * editing/deleting/merge-no-br-expected.txt:
              * editing/deleting/pruning-after-merge-1-expected.txt:
              * editing/deleting/pruning-after-merge-2-expected.txt:
              * editing/deleting/table-cells-expected.txt:
              * editing/execCommand/boldSelection-expected.txt:
              * editing/execCommand/create-list-from-range-selection-expected.txt:
              * editing/execCommand/createLink-expected.txt:
              * editing/execCommand/format-block-expected.txt:
              * editing/execCommand/format-block-from-range-selection-expected.txt:
              * editing/execCommand/format-block-with-braces-expected.txt:
              * editing/execCommand/format-block-with-trailing-br-expected.txt:
              * editing/execCommand/hilitecolor-expected.txt:
              * editing/execCommand/indent-list-item-expected.txt:
              * editing/execCommand/indent-selection-expected.txt:
              * editing/execCommand/insert-list-and-stitch-expected.txt:
              * editing/execCommand/insert-list-with-id-expected.txt:
              * editing/execCommand/insertHTML-expected.txt:
              * editing/execCommand/insertHorizontalRule-expected.txt:
              * editing/execCommand/remove-formatting-expected.txt:
              * editing/execCommand/remove-list-from-range-selection-expected.txt:
              * editing/execCommand/remove-list-items-expected.txt:
              * editing/execCommand/strikethroughSelection-expected.txt:
              * editing/execCommand/switch-list-type-expected.txt:
              * editing/execCommand/unlink-expected.txt:
              * editing/input/text-input-controller-expected.txt:
              * editing/inserting/insert-3654864-fix-expected.txt:
              * editing/inserting/insert-3659587-fix-expected.txt:
              * editing/inserting/insert-3775316-fix-expected.txt:
              * editing/inserting/insert-3851164-fix-expected.txt:
              * editing/inserting/insert-3907422-fix-expected.txt:
              * editing/inserting/insert-after-delete-001-expected.txt:
              * editing/inserting/insert-div-001-expected.txt:
              * editing/inserting/insert-div-002-expected.txt:
              * editing/inserting/insert-div-003-expected.txt:
              * editing/inserting/insert-div-005-expected.txt:
              * editing/inserting/insert-div-007-expected.txt:
              * editing/inserting/insert-div-009-expected.txt:
              * editing/inserting/insert-div-010-expected.txt:
              * editing/inserting/insert-div-020-expected.txt:
              * editing/inserting/insert-div-023-expected.txt:
              * editing/inserting/insert-div-024-expected.txt:
              * editing/inserting/insert-div-025-expected.txt:
              * editing/inserting/insert-div-026-expected.txt:
              * editing/inserting/multiple-lines-selected-expected.txt:
              * editing/inserting/paragraph-separator-03-expected.txt:
              * editing/inserting/paragraph-separator-in-table-2-expected.txt:
              * editing/inserting/redo-expected.txt:
              * editing/inserting/return-key-with-selection-001-expected.txt:
              * editing/inserting/return-key-with-selection-002-expected.txt:
              * editing/inserting/return-key-with-selection-003-expected.txt:
              * editing/pasteboard/3976872-expected.txt:
              * editing/pasteboard/4076267-3-expected.txt:
              * editing/pasteboard/4076267-expected.txt:
              * editing/pasteboard/4700297-expected.txt:
              * editing/pasteboard/8145-3-expected.txt:
              * editing/pasteboard/block-wrappers-necessary-expected.txt:
              * editing/pasteboard/copy-paste-bidi-expected.txt:
              * editing/pasteboard/displaced-generic-placeholder-expected.txt:
              * editing/pasteboard/displaced-placeholder-expected.txt:
              * editing/pasteboard/display-block-on-spans-expected.txt:
              * editing/pasteboard/drag-drop-modifies-page-expected.txt:
              * editing/pasteboard/interchange-newline-2-expected.txt:
              * editing/pasteboard/merge-after-delete-1-expected.txt:
              * editing/pasteboard/merge-after-delete-2-expected.txt:
              * editing/pasteboard/merge-after-delete-expected.txt:
              * editing/pasteboard/merge-end-3-expected.txt:
              * editing/pasteboard/merge-end-5-expected.txt:
              * editing/pasteboard/merge-end-blockquote-expected.txt:
              * editing/pasteboard/merge-end-list-expected.txt:
              * editing/pasteboard/merge-end-table-expected.txt:
              * editing/pasteboard/paste-4035648-fix-expected.txt:
              * editing/pasteboard/paste-4039777-fix-expected.txt:
              * editing/pasteboard/paste-line-endings-001-expected.txt:
              * editing/pasteboard/paste-line-endings-006-expected.txt:
              * editing/pasteboard/paste-match-style-001-expected.txt:
              * editing/pasteboard/paste-match-style-002-expected.txt:
              * editing/pasteboard/paste-pre-001-expected.txt:
              * editing/pasteboard/paste-pre-002-expected.txt:
              * editing/pasteboard/paste-table-002-expected.txt:
              * editing/pasteboard/paste-table-003-expected.txt:
              * editing/pasteboard/paste-text-006-expected.txt:
              * editing/pasteboard/paste-text-007-expected.txt:
              * editing/pasteboard/paste-text-010-expected.txt:
              * editing/pasteboard/paste-text-011-expected.txt:
              * editing/pasteboard/paste-text-015-expected.txt:
              * editing/pasteboard/paste-text-016-expected.txt:
              * editing/pasteboard/paste-text-017-expected.txt:
              * editing/pasteboard/paste-text-018-expected.txt:
              * editing/pasteboard/prevent-block-nesting-01-expected.txt:
              * editing/pasteboard/smart-paste-003-expected.txt:
              * editing/pasteboard/smart-paste-004-expected.txt:
              * editing/pasteboard/smart-paste-005-expected.txt:
              * editing/pasteboard/smart-paste-006-expected.txt:
              * editing/pasteboard/smart-paste-007-expected.txt:
              * editing/pasteboard/smart-paste-008-expected.txt:
              * editing/pasteboard/testcase-9507-expected.txt:
              * editing/pasteboard/undoable-fragment-removes-expected.txt:
              * editing/selection/expanding-selections-expected.txt:
              * editing/selection/expanding-selections2-expected.txt:
              * editing/selection/node-removal-1-expected.txt:
              * editing/selection/node-removal-2-expected.txt:
              * editing/selection/select-all-iframe-expected.txt:
              * editing/selection/skip-non-editable-1-expected.txt:
              * editing/selection/triple-click-in-pre-expected.txt:
              * editing/style/apple-style-editable-mix-expected.txt:
              * editing/style/block-style-004-expected.txt:
              * editing/style/block-style-005-expected.txt:
              * editing/style/block-style-006-expected.txt:
              * editing/style/create-block-for-style-001-expected.txt:
              * editing/style/create-block-for-style-002-expected.txt:
              * editing/style/create-block-for-style-003-expected.txt:
              * editing/style/create-block-for-style-004-expected.txt:
              * editing/style/create-block-for-style-007-expected.txt:
              * editing/style/create-block-for-style-009-expected.txt:
              * editing/style/create-block-for-style-010-expected.txt:
              * editing/style/create-block-for-style-011-expected.txt:
              * editing/style/create-block-for-style-012-expected.txt:
              * editing/style/create-block-for-style-013-expected.txt:
              * editing/style/designmode-expected.txt:
              * editing/style/relative-font-size-change-001-expected.txt:
              * editing/style/relative-font-size-change-002-expected.txt:
              * editing/style/remove-underline-across-paragraph-expected.txt:
              * editing/style/remove-underline-across-paragraph-in-bold-expected.txt:
              * editing/style/remove-underline-after-paragraph-expected.txt:
              * editing/style/remove-underline-after-paragraph-in-bold-expected.txt:
              * editing/style/remove-underline-from-stylesheet-expected.txt:
              * editing/style/smoosh-styles-001-expected.txt:
              * editing/style/smoosh-styles-002-expected.txt:
              * editing/style/smoosh-styles-003-expected.txt:
              * editing/style/style-3681552-fix-001-expected.txt:
              * editing/style/style-3681552-fix-002-expected.txt:
              * editing/style/style-3690704-fix-expected.txt:
              * editing/style/style-3998892-fix-expected.txt:
              * editing/style/style-boundary-001-expected.txt:
              * editing/style/style-boundary-003-expected.txt:
              * editing/style/style-boundary-004-expected.txt:
              * editing/style/typing-style-001-expected.txt:
              * editing/style/typing-style-003-expected.txt:
              * editing/undo/undo-misspellings-expected.txt:
              * editing/unsupported-content/list-delete-001-expected.txt:
              * editing/unsupported-content/list-delete-002-expected.txt:
              * editing/unsupported-content/list-delete-003-expected.txt:
              * editing/unsupported-content/table-delete-001-expected.txt:
              * editing/unsupported-content/table-delete-002-expected.txt:
              * editing/unsupported-content/table-delete-003-expected.txt:
              * fast/forms/attributed-strings-expected.txt:
              * fast/forms/cursor-position-expected.txt:
              * fast/forms/drag-into-textarea-expected.txt:
              * fast/forms/input-appearance-maxlength-expected.txt:
              * fast/forms/input-paste-undo-expected.txt:
              * fast/forms/input-selection-restore-expected.txt:
              * fast/forms/input-text-paste-maxlength-expected.txt:
              * fast/forms/selection-functions-expected.txt:
              * fast/forms/text-field-setvalue-crash-expected.txt:
              * fast/forms/textarea-paste-newline-expected.txt:
      
      WebCore:
      
              Reviewed by thatcher
              
              Setup for <rdar://problem/4344550> Misspellings aren't marked after undo delete
              
              Fixes:
              <http://bugzilla.opendarwin.org/show_bug.cgi?id=6498>
              SelectionController's setters should notify delegates of selection changes
              
              Moved setSelection from Frame to SelectionController.
              I haven't moved any of the work that's done as a result of a 
              Selection change to SelectionController yet.
              Make fewer uses of SelectionControllers.  They're now only used for 
              the Frame's selection, the Page's drag caret, and functions that
              need to do Selection expansion.
      
              * bindings/js/kjs_window.cpp:
              (KJS::Selection::getValueProperty):
              (KJS::Selection::toString):
              (KJS::SelectionFunc::callAsFunction):
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::advanceToNextMisspelling):
              (WebCore::FrameMac::dispatchCPPEvent):
              (WebCore::FrameMac::fontForSelection):
              (WebCore::FrameMac::baseWritingDirectionForSelectionStart):
              (WebCore::FrameMac::markMisspellingsInAdjacentWords):
              (WebCore::FrameMac::markMisspellings):
              (WebCore::FrameMac::respondToChangedSelection):
              (WebCore::FrameMac::shouldChangeSelection):
              (WebCore::FrameMac::shouldDeleteSelection):
              (WebCore::FrameMac::respondToChangedContents):
              * bridge/mac/PageMac.mm:
              (WebCore::Page::Page):
              * bridge/mac/WebCoreAXObject.mm:
              (-[WebCoreAXObject accessibilityAttributeValue:]):
              (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
              (-[WebCoreAXObject doAXBoundsForTextMarkerRange:]):
              (-[WebCoreAXObject doAXTextMarkerRangeForUnorderedTextMarkers:]):
              (-[WebCoreAXObject doSetAXSelectedTextMarkerRange:]):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge isSelectionEditable]):
              (-[WebCoreFrameBridge isSelectionRichlyEditable]):
              (-[WebCoreFrameBridge selectionState]):
              (-[WebCoreFrameBridge deselectText]):
              (-[WebCoreFrameBridge selectedAttributedString]):
              (-[WebCoreFrameBridge rangeByExpandingSelectionWithGranularity:]):
              (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:direction:granularity:]):
              (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
              (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:verticalDistance:]):
              (-[WebCoreFrameBridge alterCurrentSelection:verticalDistance:]):
              (-[WebCoreFrameBridge setSelectedDOMRange:affinity:closeTyping:]):
              (-[WebCoreFrameBridge selectedDOMRange]):
              (-[WebCoreFrameBridge selectNSRange:]):
              (-[WebCoreFrameBridge selectedNSRange]):
              (-[WebCoreFrameBridge selectionAffinity]):
              (-[WebCoreFrameBridge replaceSelectionWithText:selectReplacement:smartReplace:]):
              (-[WebCoreFrameBridge setSelectionToDragCaret]):
              (-[WebCoreFrameBridge moveSelectionToDragCaret:smartMove:]):
              (-[WebCoreFrameBridge moveDragCaretToPoint:]):
              (-[WebCoreFrameBridge removeDragCaret]):
              (-[WebCoreFrameBridge dragCaretDOMRange]):
              (-[WebCoreFrameBridge isDragCaretRichlyEditable]):
              (-[WebCoreFrameBridge editableDOMRangeForPoint:]):
              (-[WebCoreFrameBridge ensureSelectionVisible]):
              (-[WebCoreFrameBridge rangeOfCharactersAroundCaret]):
              * bridge/win/PageWin.cpp:
              (WebCore::Page::Page):
              * dom/Document.cpp:
              (WebCore::Document::updateSelection):
              (WebCore::Document::clearSelectionIfNeeded):
              (WebCore::Document::notifyBeforeNodeRemoval):
              * dom/Element.cpp:
              (WebCore::Element::updateFocusAppearance):
              * editing/EditCommand.cpp:
              (WebCore::EditCommand::EditCommand):
              * editing/JSEditor.cpp:
              * editing/ModifySelectionListLevel.cpp:
              (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel):
              (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel):
              * editing/Selection.cpp:
              (WebCore::Selection::setBase):
              (WebCore::Selection::setExtent):
              * editing/Selection.h:
              (WebCore::Selection::extent):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::SelectionController):
              (WebCore::SelectionController::moveTo):
              (WebCore::SelectionController::setSelection):
              (WebCore::SelectionController::nodeWillBeRemoved):
              (WebCore::SelectionController::modify):
              (WebCore::SelectionController::clear):
              (WebCore::SelectionController::setBase):
              (WebCore::SelectionController::setExtent):
              * editing/SelectionController.h:
              * editing/TypingCommand.cpp:
              (WebCore::TypingCommand::insertText):
              (WebCore::TypingCommand::deleteKeyPressed):
              (WebCore::TypingCommand::forwardDeleteKeyPressed):
              * editing/VisiblePosition.cpp:
              (WebCore::VisiblePosition::caretRect):
              * editing/VisiblePosition.h:
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::defaultEventHandler):
              * page/Frame.cpp:
              (WebCore::Frame::selectedText):
              (WebCore::Frame::hasSelection):
              (WebCore::Frame::selectionController):
              (WebCore::Frame::dragCaretController):
              (WebCore::Frame::notifyRendererOfSelectionChange):
              (WebCore::Frame::invalidateSelection):
              (WebCore::Frame::clearCaretRectIfNeeded):
              (WebCore::Frame::setFocusNodeIfNeeded):
              (WebCore::Frame::selectionLayoutChanged):
              (WebCore::Frame::caretBlinkTimerFired):
              (WebCore::Frame::paintCaret):
              (WebCore::Frame::paintDragCaret):
              (WebCore::Frame::isPointInsideSelection):
              (WebCore::Frame::selectClosestWordFromMouseEvent):
              (WebCore::Frame::handleMousePressEventDoubleClick):
              (WebCore::Frame::handleMousePressEventTripleClick):
              (WebCore::Frame::handleMousePressEventSingleClick):
              (WebCore::Frame::handleMouseMoveEvent):
              (WebCore::Frame::handleMouseReleaseEvent):
              (WebCore::Frame::selectAll):
              (WebCore::Frame::selectContentsOfNode):
              (WebCore::Frame::shouldChangeSelection):
              (WebCore::Frame::shouldDeleteSelection):
              (WebCore::Frame::isSelectionInPasswordField):
              (WebCore::Frame::appliedEditing):
              (WebCore::Frame::unappliedEditing):
              (WebCore::Frame::reappliedEditing):
              (WebCore::Frame::computeAndSetTypingStyle):
              (WebCore::Frame::applyStyle):
              (WebCore::Frame::applyParagraphStyle):
              (WebCore::Frame::selectionListState):
              (WebCore::Frame::selectionHasStyle):
              (WebCore::Frame::selectionComputedStyle):
              (WebCore::Frame::selectFrameElementInParentIfFullySelected):
              (WebCore::Frame::currentForm):
              (WebCore::Frame::revealSelection):
              (WebCore::Frame::centerSelectionInVisibleArea):
              (WebCore::Frame::styleForSelectionStart):
              (WebCore::Frame::setSelectionFromNone):
              (WebCore::Frame::findString):
              * page/Frame.h:
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              * page/FrameView.cpp:
              (WebCore::FrameView::clear):
              * page/Page.cpp:
              (WebCore::Page::dragCaretController):
              * page/Page.h:
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::paintCaret):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::autoscroll):
              * rendering/RenderTextControl.cpp:
              (WebCore::RenderTextControl::selectionStart):
              (WebCore::RenderTextControl::selectionEnd):
              (WebCore::RenderTextControl::setSelectionRange):
              (WebCore::RenderTextControl::selectionChanged):
              * rendering/RenderTreeAsText.cpp:
              (WebCore::writeSelection):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16237 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      397edaa4
  5. 24 Aug, 2006 1 commit
    • darin's avatar
      LayoutTests: · 35384069
      darin authored
              Reviewed by Justin.
      
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=10169
                REGRESSION: NativeTextArea: Text dragged from <input type=text> to textarea disappears
      
              * fast/forms/drag-into-textarea-expected.txt: Added.
              * fast/forms/drag-into-textarea.html: Added.
      
      WebCore:
      
              Reviewed by Justin.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10169
                REGRESSION: NativeTextArea: Text dragged from <input type=text> to textarea disappears
              - eliminate the EditCommandPtr class from editing; use PassRefPtr and RefPtr instead
              - other editing-related cleanup
      
              Test: fast/forms/drag-into-textarea.html
      
              * bridge/mac/FrameMac.h: Changed EditCommandPtr parameters to use PassRefPtr<EditCommand> instead.
              * bridge/win/FrameWin.h: Ditto.
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::registerCommandForUndoOrRedo): Ditto.
              (WebCore::FrameMac::registerCommandForUndo): Ditto.
              (WebCore::FrameMac::registerCommandForRedo): Ditto.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
              Use applyCommand instead of EditCommandPtr. Also remove now-unneeded document parameter.
              (-[WebCoreFrameBridge moveSelectionToDragCaret:smartMove:]): Ditto.
              (-[WebCoreFrameBridge deleteSelectionWithSmartDelete:]): Ditto.
      
              * editing/AppendNodeCommand.h: Removed document parameter from constructor. Changed new child
              parameter to be a PassRefPtr. Reversed order of child and parent parameters.
              * editing/AppendNodeCommand.cpp:
              (WebCore::AppendNodeCommand::AppendNodeCommand): Ditto.
              (WebCore::AppendNodeCommand::doApply): Ditto.
              (WebCore::AppendNodeCommand::doUnapply): Ditto.
      
              * editing/ApplyStyleCommand.h: Removed document parameter from constructor.
              * editing/ApplyStyleCommand.cpp: (WebCore::ApplyStyleCommand::ApplyStyleCommand): Ditto.
      
              * editing/BreakBlockquoteCommand.h: Removed unneeded include of DeprecatedPtrList.h.
              * editing/BreakBlockquoteCommand.cpp: Moved the include of DeprecatedPtrList.h here.
              (WebCore::BreakBlockquoteCommand::doApply): Changed code to construct a Selection explicitly
              since setEndingSelection is no longer overloaded for Position.
      
              * editing/CompositeEditCommand.h: Added isFirstCommand function. Changed m_cmds from
              a DeprecatedValueList<EditCommandPtr> to a Vector<RefPtr<EditCommand>> and renamed it
              m_commands and made both doUnapply and doReapply private.
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::doUnapply): Rewrote to use m_commands.
              (WebCore::CompositeEditCommand::doReapply): Ditto.
              (WebCore::CompositeEditCommand::applyCommandToComposite): Removed code to explicitly set up
              starting and ending selection -- now done inside setParent. Rewrote to use m_commands.
              (WebCore::CompositeEditCommand::applyStyle): Changed to not use EditCommandPtr.
              (WebCore::CompositeEditCommand::applyStyledElement): Ditto.
              (WebCore::CompositeEditCommand::removeStyledElement): Ditto.
              (WebCore::CompositeEditCommand::insertParagraphSeparator): Ditto.
              (WebCore::CompositeEditCommand::insertNodeBefore): Ditto.
              (WebCore::CompositeEditCommand::appendNode): Ditto.
              (WebCore::CompositeEditCommand::removeNode): Ditto.
              (WebCore::CompositeEditCommand::removeNodePreservingChildren): Ditto.
              (WebCore::CompositeEditCommand::splitTextNode): Ditto.
              (WebCore::CompositeEditCommand::splitElement): Ditto.
              (WebCore::CompositeEditCommand::mergeIdenticalElements): Ditto.
              (WebCore::CompositeEditCommand::wrapContentsInDummySpan): Ditto.
              (WebCore::CompositeEditCommand::splitTextNodeContainingElement): Ditto.
              (WebCore::CompositeEditCommand::joinTextNodes): Ditto.
              (WebCore::CompositeEditCommand::inputText): Ditto.
              (WebCore::CompositeEditCommand::insertTextIntoNode): Ditto.
              (WebCore::CompositeEditCommand::deleteTextFromNode): Ditto.
              (WebCore::CompositeEditCommand::replaceTextInNode): Ditto.
              (WebCore::CompositeEditCommand::deleteSelection): Ditto.
              (WebCore::CompositeEditCommand::removeCSSProperty): Ditto.
              (WebCore::CompositeEditCommand::removeNodeAttribute): Ditto. Also fixed a bug where the code
              would not remove an empty attribute -- will not come up in practice, but wrong in theory.
              (WebCore::CompositeEditCommand::setNodeAttribute): Changed to not use EditCommandPtr.
              (WebCore::CompositeEditCommand::rebalanceWhitespaceAt): Ditto.
              (WebCore::CompositeEditCommand::deleteInsignificantText): Rewrote to use a for loop.
              (WebCore::CompositeEditCommand::moveParagraphs): Changed to not use EditCommandPtr.
              (WebCore::CompositeEditCommand::breakOutOfEmptyListItem): Changed code to construct a
              Selection explicitly since setEndingSelection is no longer overloaded for Position.
              (WebCore::createBlockPlaceholderElement): Collapsed this code so that the
              block placeholder class string is no longer spread across multiple functions.
              Perhaps we can get rid of this altogether at some point.
      
              * editing/DeleteFromTextNodeCommand.h: Removed unneeded document parameter from one constructor.
              Also removed unneeded destructor.
              * editing/DeleteFromTextNodeCommand.cpp:
              (WebCore::DeleteFromTextNodeCommand::DeleteFromTextNodeCommand): Ditto.
      
              * editing/DeleteSelectionCommand.h: Removed unneeded document parameter from one constructor.
              * editing/DeleteSelectionCommand.cpp: (WebCore::DeleteSelectionCommand::DeleteSelectionCommand): Ditto.
      
              * editing/EditCommand.h: Removed ECommandState, isCompositeStep(), parent(), state(), setState(),
              and most overloads of setStartingSelection() and setEndingSelection(). Made document() protected
              and non-virtual. Made setStartingSelection() setEndingSelection(), and styleAtPosition() protected.
              Made doApply(), doUnapply(), and doReapply() private. Added startingRootEditableElement(),
              endingRootEditableElement(), m_startingRootEditableElement, and m_endingRootEditableElement, which
              are needed so we can determine which editable elements an editing operation affects. Changed setParent()
              and m_parent to use CompositeEditCommand instead of EditCommand. Removed EditCommandPtr. Added
              applyCommand() function that's convenient to use on a newly-created command.
              * editing/EditCommand.cpp:
              (WebCore::EditCommand::EditCommand): Removed initialization for m_state, and added it for starting
              and ending root editable elements.
              (WebCore::EditCommand::apply): Simplified check for top level by just checking m_parent. Removed
              code to assert and set m_start. Eliminated use of EditCommandPtr.
              (WebCore::EditCommand::unapply): Ditto.
              (WebCore::EditCommand::reapply): Ditto.
              (WebCore::EditCommand::setStartingSelection): Changed to set root editable element too. Also made this
              not change the starting selection of the parent unless this is the first command in the parent -- didn't
              make sense the way it was.
              (WebCore::EditCommand::setEndingSelection): Changed to set root editable element too.
              (WebCore::EditCommand::setParent): Added code to set the starting and ending selection on the child
              based on the ending selection of the parent, formerly done by callers.
              (WebCore::applyCommand): Added.
      
              * editing/FormatBlockCommand.h: Tweaked formatting.
              * editing/FormatBlockCommand.cpp: (WebCore::FormatBlockCommand::FormatBlockCommand): Ditto.
              * editing/InsertLineBreakCommand.h: Ditto.
              * editing/InsertLineBreakCommand.cpp: (WebCore::InsertLineBreakCommand::doApply):
      
              * editing/IndentOutdentCommand.cpp:
              (WebCore::IndentOutdentCommand::splitTreeToNode): Removed use of EditCommandPtr.
              (WebCore::IndentOutdentCommand::outdentParagraph): Updated for change to list type enum.
              (WebCore::IndentOutdentCommand::outdentRegion): Removed use of EditCommandPtr.
      
              * editing/InsertIntoTextNodeCommand.h: Removed unneeded document parameter to constructor.
              * editing/InsertIntoTextNodeCommand.cpp:
              (WebCore::InsertIntoTextNodeCommand::InsertIntoTextNodeCommand): Ditto.
      
              * editing/InsertListCommand.h: Renamed EListType to EList, and took the "Type" suffix off
              the constants.
              * editing/InsertListCommand.cpp:
              (WebCore::InsertListCommand::InsertListCommand): Ditto.
              (WebCore::InsertListCommand::doApply): Ditto.
      
              * editing/InsertNodeBeforeCommand.h: Removed unneeded document parameter from constructor
              and changed the parameter of the node to insert to a PassRefPtr.
              * editing/InsertNodeBeforeCommand.cpp:
              (WebCore::InsertNodeBeforeCommand::InsertNodeBeforeCommand): Ditto.
      
              * editing/InsertParagraphSeparatorCommand.cpp:
              (WebCore::InsertParagraphSeparatorCommand::doApply): Remvoed use of EditCommandPtr.
      
              * editing/InsertTextCommand.h: Changed insertTab to take const Position&.
              * editing/InsertTextCommand.cpp:
              (WebCore::InsertTextCommand::input): Ditto.
              (WebCore::InsertTextCommand::insertTab): Ditto.
      
              * editing/JSEditor.h: Tweaked formatting and names.
              * editing/JSEditor.cpp: Ditto. Also changed places that use EditCommandPtr.
      
              * editing/JoinTextNodesCommand.h: Removed unneeeded document pointer
              * editing/JoinTextNodesCommand.cpp:
              (WebCore::JoinTextNodesCommand::JoinTextNodesCommand): Ditto.
              * editing/MergeIdenticalElementsCommand.h: Ditto.
              * editing/MergeIdenticalElementsCommand.cpp:
              (WebCore::MergeIdenticalElementsCommand::MergeIdenticalElementsCommand): Ditto.
      
              * editing/ModifySelectionListLevel.h: Changed EListType to be named Type and be a member of
              IncreaseSelectionListLevelCommand. Also changed m_listElement to be a RefPtr<Node>.
              * editing/ModifySelectionListLevel.cpp:
              (WebCore::getStartEndListChildren): Changed parameters to be references instead of pointers.
              (WebCore::IncreaseSelectionListLevelCommand::IncreaseSelectionListLevelCommand):
              Changed to use Type instead of EListType.
              (WebCore::canIncreaseListLevel): Changed parameters to be references instead of pointers.
              (WebCore::IncreaseSelectionListLevelCommand::doApply): Updated for change to canIncreaseListLevel.
              (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel): Ditto.
              (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelWithType):
              Changed to not use EditCommandPtr.
              (WebCore::canDecreaseListLevel): Changed parameters to be references instead of pointers.
              (WebCore::DecreaseSelectionListLevelCommand::doApply): Updated for change to canDecreaseListLevel.
              (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel): Ditto.
              (WebCore::DecreaseSelectionListLevelCommand::decreaseSelectionListLevel): Changed to not use
              EditCommandPtr.
      
              * editing/MoveSelectionCommand.h: Removed unnecessary document parameter and changed the fragment
              parameter to be a PassRefPtr.
              * editing/MoveSelectionCommand.cpp:
              (WebCore::MoveSelectionCommand::MoveSelectionCommand): Ditto.
              (WebCore::MoveSelectionCommand::doApply): Got rid of use of EditCommandPtr.
      
              * editing/RebalanceWhitespaceCommand.h: Removed unnecessary document parameter.
              * editing/RebalanceWhitespaceCommand.cpp:
              (WebCore::RebalanceWhitespaceCommand::RebalanceWhitespaceCommand): Ditto.
              (WebCore::RebalanceWhitespaceCommand::doApply): Got rid of use of EditCommandPtr.
      
              * editing/RemoveCSSPropertyCommand.h: Tweaked formatting.
      
              * editing/RemoveNodeAttributeCommand.h: Removed unnecessary document parameter.
              * editing/RemoveNodeAttributeCommand.cpp:
              (WebCore::RemoveNodeAttributeCommand::RemoveNodeAttributeCommand): Ditto.
      
              * editing/RemoveNodeCommand.h: Removed unnecessary document parameter.
              * editing/RemoveNodeCommand.cpp:
              (WebCore::RemoveNodeCommand::RemoveNodeCommand): Ditto.
      
              * editing/RemoveNodePreservingChildrenCommand.h: Removed unnecessary document parameter.
              * editing/RemoveNodePreservingChildrenCommand.cpp:
              (WebCore::RemoveNodePreservingChildrenCommand::RemoveNodePreservingChildrenCommand): Ditto.
      
              * editing/ReplaceSelectionCommand.h: Change fragment parameter to a PassRefPtr.
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplacementFragment::ReplacementFragment): Ditto.
              (WebCore::ReplaceSelectionCommand::ReplaceSelectionCommand): Ditto.
              (WebCore::ReplaceSelectionCommand::doApply): Ditto.
              (WebCore::ReplaceSelectionCommand::completeHTMLReplacement): Ditto.
      
              * editing/Selection.h: Changed SEL_DEFAULT_AFFINITY to be a constant rather than
              a macro. Added constructors that take visible positions. Changed setBase and
              setExtent to take const Position& for better efficiency.
              * editing/Selection.cpp:
              (WebCore::Selection::Selection): Removed unnecessary double initialization of m_state
              and m_baseIsFirst in existing constructors. Added VisiblePosition-based constructors.
      
              * editing/SetNodeAttributeCommand.h: Removed unnneeded document parameter.
              * editing/SetNodeAttributeCommand.cpp:
              (WebCore::SetNodeAttributeCommand::SetNodeAttributeCommand): Ditto.
      
              * editing/SplitElementCommand.h: Removed unnneeded document parameter.
              * editing/SplitElementCommand.cpp:
              (WebCore::SplitElementCommand::SplitElementCommand): Ditto.
      
              * editing/SplitTextNodeCommand.h: Removed unnneeded document parameter.
              * editing/SplitTextNodeCommand.cpp:
              (WebCore::SplitTextNodeCommand::SplitTextNodeCommand): Ditto.
      
              * editing/SplitTextNodeContainingElementCommand.h: Removed unnneeded document parameter.
              * editing/SplitTextNodeContainingElementCommand.cpp:
              (WebCore::SplitTextNodeContainingElementCommand::SplitTextNodeContainingElementCommand): Ditto.
      
              * editing/TypingCommand.h: Replaced uses of EditCommandPtr with EditCommand*.
              Renamed openForMoveTyping() with isOpenForMoreTyping().
              * editing/TypingCommand.cpp:
              (WebCore::TypingCommand::deleteKeyPressed): Updated to remove use of EditCommandPtr.
              (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
              (WebCore::TypingCommand::insertText): Ditto.
              (WebCore::TypingCommand::insertLineBreak): Ditto.
              (WebCore::TypingCommand::insertParagraphSeparatorInQuotedContent): Ditto.
              (WebCore::TypingCommand::insertParagraphSeparator): Ditto.
              (WebCore::TypingCommand::isOpenForMoreTypingCommand): Ditto.
              (WebCore::TypingCommand::closeTyping): Ditto.
              (WebCore::TypingCommand::typingAddedToOpenCommand): Ditto.
              (WebCore::TypingCommand::insertTextRunWithoutNewlines): Ditto.
      
              * editing/WrapContentsInDummySpanCommand.h: Removed unnneeded document parameter.
              * editing/WrapContentsInDummySpanCommand.cpp:
              (WebCore::WrapContentsInDummySpanCommand::WrapContentsInDummySpanCommand): Ditto.
      
              * editing/htmlediting.h: Changed type of NON_BREAKING_SPACE to UChar instead of
              unsigned short.
      
              * page/Frame.h: Changed lastEditCommand() to return an EditCommand* and changed
              appliedEditing(), unappliedEditing(), reappliedEditing(), registerCommandForUndo(),
              and registerCommandForRedo() to take PassRefPtr<EditCommand>.
              * page/FramePrivate.h: Changed m_lastEditCommand to be a RefPtr<EditCommand>.
              * page/Frame.cpp:
              (WebCore::Frame::didOpenURL): Fixed for change to m_lastEditCommand.
              (WebCore::Frame::setFocusNodeIfNeeded): Call the rootEditableElement function
              from Selection to simplify the code.
              (WebCore::Frame::selectAll): Ditto.
              (WebCore::Frame::lastEditCommand): Updated for change to m_lastEditCommand.
              (WebCore::dispatchEditableContentChangedEvents): Added. This sends an event to
              both of the root editable elements involved in a change -- the start selection
              might be in a different element than the end selection.
              (WebCore::Frame::appliedEditing): Changed to call dispatchEditableContentChangedEvents,
              and to do it before setting the ending selection. Also update to use PassRefPtr instead
              of EditCommandPtr and change the order of setting m_lastEditCommand since passing it
              to registerCommandForUndo will take ownership and set it to 0.
              (WebCore::Frame::unappliedEditing): Ditto.
              (WebCore::Frame::reappliedEditing): Ditto.
              (WebCore::Frame::computeAndSetTypingStyle): Updated for removal of EditCommandPtr.
              (WebCore::Frame::applyStyle): Ditto.
              (WebCore::Frame::applyParagraphStyle): Ditto.
      
              * platform/gdk/FrameGdk.h: Updated for above changes.
              * platform/gdk/TemporaryLinkStubs.cpp: Updated for above changes.
              * platform/win/TemporaryLinkStubs.cpp: Updated for above changes.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16026 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      35384069
  6. 26 May, 2006 1 commit
    • harrison's avatar
      Reviewed by John Sullivan. · c4c0f605
      harrison authored
              <rdar://problem/4514529> Add a list type parameter and a return value to _increaseSelectionListLevel
              
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              - Renamed ModifySelectionListLevelCommand .cpp and .h to ModifySelectionListLevel .cpp and .h
              
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge canIncreaseSelectionListLevel]):
              (-[WebCoreFrameBridge canDecreaseSelectionListLevel]):
              (-[WebCoreFrameBridge increaseSelectionListLevel]):
              (-[WebCoreFrameBridge decreaseSelectionListLevel]):
              - Call functions in IncreaseSelectionListLevelCommand or DecreaseSelectionListLevelCommand instead
              of ModifySelectionListLevelCommand.
              
              (-[WebCoreFrameBridge increaseSelectionListLevelOrdered]):
              (-[WebCoreFrameBridge increaseSelectionListLevelUnordered]):
              - Added.
              
              * editing/ModifySelectionListLevel.cpp: Added.
              - Renamed from ModifySelectionListLevelCommand.cpp
              - Made ModifySelectionListLevelCommand class into a useful base class for new
              classes IncreaseSelectionListLevelCommand and DecreaseSelectionListLevelCommand.
              
              (WebCore::ModifySelectionListLevelCommand::ModifySelectionListLevelCommand):
              (WebCore::getStartEndListChildren):
              (WebCore::ModifySelectionListLevelCommand::insertSiblingNodeRangeBefore):
              (WebCore::ModifySelectionListLevelCommand::appendSiblingNodeRange):
              - ModifySelectionListLevelCommand is base class for IncreaseSelectionListLevelCommand and DecreaseSelectionListLevelCommand
              
              (WebCore::IncreaseSelectionListLevelCommand::IncreaseSelectionListLevelCommand):
              (WebCore::IncreaseSelectionListLevelCommand::listElement):
              (WebCore::canIncreaseListLevel):
              (WebCore::IncreaseSelectionListLevelCommand::doApply):
              (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel):
              (WebCore::increaseSelectionListLevelWithType):
              (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevel):
              (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelOrdered):
              (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelUnordered):
              - Now a subclass of ModifySelectionListLevelCommand
              - Added Ordered and Unordered increaser functions
              - Increaser functions return the list element that the items were moved into
              
              (WebCore::DecreaseSelectionListLevelCommand::DecreaseSelectionListLevelCommand):
              (WebCore::canDecreaseListLevel):
              (WebCore::DecreaseSelectionListLevelCommand::doApply):
              (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel):
              (WebCore::DecreaseSelectionListLevelCommand::decreaseSelectionListLevel):
              - No functional changes other than to become a subclass of ModifySelectionListLevelCommand
      
              * editing/ModifySelectionListLevel.h: Added.
              (WebCore::):
               - Renamed from ModifySelectionListLevelCommand.cpp
             
              * editing/ModifySelectionListLevelCommand.cpp: Removed.
              - Renamed to ModifySelectionListLevel.cpp
              
              * editing/ModifySelectionListLevelCommand.h: Removed.
              - Renamed to ModifySelectionListLevel.h
      
              * editing/htmlediting.cpp:
              (WebCore::createOrderedListElement):
              (WebCore::createUnorderedListElement):
              * editing/htmlediting.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c4c0f605
  7. 11 Apr, 2006 1 commit
    • darin's avatar
      JavaScriptCore: · 36d1136a
      darin authored
              Rubber-stamped by John Sullivan.
      
              - switched from a shell script to a makefile for generated files
              - removed lots of unneeded includes
              - added new Forward.h and HashForward.h headers that allow compiling with
                fewer unneeded templates
      
              * DerivedSources.make: Added.
              * generate-derived-sources: Removed.
              * JavaScriptCore.xcodeproj/project.pbxproj: Added new files, changed to use
              DerivedSources.make.
      
              * kxmlcore/Forward.h: Added.
              * kxmlcore/HashForward.h: Added.
      
              * kxmlcore/HashCountedSet.h: Include HashForward for default args.
              * kxmlcore/HashMap.h: Ditto.
              * kxmlcore/HashSet.h: Ditto.
      
              * kjs/object.h:
              * kjs/object.cpp:
              Moved KJS_MAX_STACK into the .cpp file.
      
              * bindings/NP_jsobject.cpp:
              * bindings/c/c_instance.h:
              * bindings/jni/jni_class.h:
              * bindings/jni/jni_runtime.h:
              * bindings/jni/jni_utility.h:
              * bindings/objc/WebScriptObject.mm:
              * bindings/objc/WebScriptObjectPrivate.h:
              * bindings/objc/objc_class.h:
              * bindings/objc/objc_class.mm:
              * bindings/objc/objc_instance.h:
              * bindings/objc/objc_instance.mm:
              * bindings/objc/objc_runtime.mm:
              * bindings/objc/objc_utility.mm:
              * bindings/runtime.h:
              * bindings/runtime_array.cpp:
              * bindings/runtime_array.h:
              * bindings/runtime_method.cpp:
              * bindings/runtime_method.h:
              * bindings/runtime_object.cpp:
              * bindings/runtime_root.h:
              * kjs/JSImmediate.cpp:
              * kjs/Parser.h:
              * kjs/array_object.cpp:
              * kjs/array_object.h:
              * kjs/bool_object.cpp:
              * kjs/bool_object.h:
              * kjs/collector.h:
              * kjs/context.h:
              * kjs/debugger.cpp:
              * kjs/error_object.h:
              * kjs/function_object.h:
              * kjs/internal.h:
              * kjs/lexer.cpp:
              * kjs/math_object.cpp:
              * kjs/math_object.h:
              * kjs/nodes.cpp:
              * kjs/nodes.h:
              * kjs/number_object.cpp:
              * kjs/number_object.h:
              * kjs/object_object.cpp:
              * kjs/operations.cpp:
              * kjs/protected_reference.h:
              * kjs/reference.h:
              * kjs/reference_list.h:
              * kjs/regexp_object.h:
              * kjs/string_object.cpp:
              * kjs/string_object.h:
              * kjs/testkjs.cpp:
              * kjs/value.cpp:
              * kjs/value.h:
              * kxmlcore/HashTable.h:
              * kxmlcore/ListRefPtr.h:
              * kxmlcore/TCPageMap.h:
              * kxmlcore/Vector.h:
              Removed unneeded header includes.
      
      JavaScriptGlue:
      
              Rubber-stamped by John Sullivan.
      
              - added forwarding headers for the new Forward.h and HashForward.h files
      
              * kxmlcore/Forward.h: Added.
              * kxmlcore/HashForward.h: Added.
      
      WebCore:
      
              Rubber-stamped by John Sullivan (except for pbxproj change).
      
              - updated to use the new Forward.h and HashForward.h headers
              - moved the showTree debugging functions out of the WebCore
                namespace so they are easier to call from gdb, and renamed
                the showTree member functions so they don't get in the way;
                now you can do "call showTree(x)" in gdb and it just works
              - removed a lot of unneeded includes
      
              * WebCore.xcodeproj/project.pbxproj: Fixed a lot of paths that
              were not relative to the enclosing group.
      
              * ForwardingHeaders/kxmlcore/Forward.h: Added.
              * ForwardingHeaders/kxmlcore/HashForward.h: Added.
              * bindings/js/JSCanvasRenderingContext2DBase.cpp:
              * bindings/js/JSXMLHttpRequest.cpp:
              * bindings/js/JSXMLHttpRequest.h:
              * bindings/js/JSXSLTProcessor.h:
              * bindings/js/kjs_binding.h:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_events.h:
              * bindings/js/kjs_html.cpp:
              * bindings/js/kjs_navigator.cpp:
              * bindings/js/kjs_navigator.h:
              * bindings/js/kjs_proxy.cpp:
              * bindings/js/kjs_traversal.h:
              * bindings/js/kjs_window.cpp:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOM.mm:
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMCore.h:
              * bindings/objc/DOMEvents.mm:
              * bindings/objc/DOMHTML.mm:
              * bindings/objc/DOMImplementationFront.h:
              * bindings/objc/DOMInternal.mm:
              * bindings/objc/DOMUtility.mm:
              * bindings/objc/DOMViews.mm:
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.mm:
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * bridge/mac/WebCoreFrameNamespaces.mm:
              * bridge/mac/WebCoreJavaScript.mm:
              * bridge/win/PageWin.cpp:
              * css/CSSComputedStyleDeclaration.cpp:
              * css/css_base.h:
              * css/css_ruleimpl.h:
              * css/css_valueimpl.cpp:
              * css/cssparser.cpp:
              * css/cssparser.h:
              * css/cssstyleselector.cpp:
              * css/cssstyleselector.h:
              * dom/AbstractView.h:
              * dom/AtomicStringList.h:
              * dom/Attribute.cpp:
              * dom/Attribute.h:
              * dom/Comment.cpp:
              * dom/ContainerNode.cpp:
              * dom/DOMImplementation.cpp:
              * dom/DOMImplementation.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/Element.h:
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dump):
              (WebCore::forbidEventDispatch):
              (WebCore::allowEventDispatch):
              (WebCore::eventDispatchForbidden):
              * dom/EventTargetNode.h:
              (WebCore::EventTargetNode::postDispatchEventHandler):
              * dom/NamedAttrMap.h:
              * dom/Node.cpp:
              (WebCore::Node::showNode):
              (WebCore::Node::showTree):
              (WebCore::Node::showTreeAndMark):
              (showTree):
              * dom/Node.h:
              * dom/NodeList.cpp:
              * dom/NodeList.h:
              * dom/Position.cpp:
              (showTree):
              * dom/Position.h:
              * dom/Range.cpp:
              * dom/Range.h:
              * dom/StyledElement.cpp:
              * dom/StyledElement.h:
              * dom/dom2_eventsimpl.cpp:
              * dom/dom2_eventsimpl.h:
              * dom/dom2_traversalimpl.h:
              * dom/dom_xmlimpl.cpp:
              * dom/xml_tokenizer.cpp:
              * dom/xml_tokenizer.h:
              * editing/AppendNodeCommand.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/ApplyStyleCommand.h:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/CreateLinkCommand.cpp:
              * editing/DeleteFromTextNodeCommand.cpp:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.cpp:
              * editing/EditCommand.cpp:
              * editing/EditCommand.h:
              * editing/HTMLInterchange.cpp:
              * editing/InsertIntoTextNodeCommand.cpp:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.cpp:
              * editing/InsertNodeBeforeCommand.cpp:
              * editing/InsertParagraphSeparatorCommand.cpp:
              * editing/InsertTextCommand.cpp:
              * editing/JSEditor.cpp:
              * editing/JoinTextNodesCommand.cpp:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/ModifySelectionListLevelCommand.cpp:
              * editing/MoveSelectionCommand.cpp:
              * editing/RebalanceWhitespaceCommand.h:
              * editing/RemoveCSSPropertyCommand.h:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/ReplaceSelectionCommand.h:
              * editing/Selection.cpp:
              (WebCore::Selection::formatForDebugger):
              (WebCore::Selection::showTree):
              (showTree):
              * editing/Selection.h:
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::formatForDebugger):
              (WebCore::SelectionController::showTree):
              (showTree):
              * editing/SelectionController.h:
              * editing/TextIterator.cpp:
              * editing/TextIterator.h:
              * editing/TypingCommand.cpp:
              * editing/TypingCommand.h:
              * editing/UnlinkCommand.cpp:
              * editing/VisiblePosition.cpp:
              (WebCore::isEqualIgnoringAffinity):
              (WebCore::VisiblePosition::formatForDebugger):
              (WebCore::VisiblePosition::showTree):
              (showTree):
              * editing/VisiblePosition.h:
              (WebCore::VisiblePosition::VisiblePosition):
              (WebCore::operator==):
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/htmlediting.h:
              * editing/markup.cpp:
              * editing/markup.h:
              (WebCore::):
              * editing/visible_units.cpp:
              * html/CanvasGradient.cpp:
              * html/CanvasRenderingContext2D.h:
              * html/CanvasStyle.cpp:
              * html/CanvasStyle.h:
              * html/FormDataList.cpp:
              * html/FormDataList.h:
              * html/HTMLCollection.cpp:
              * html/HTMLCollection.h:
              * html/HTMLDocument.cpp:
              * html/HTMLDocument.h:
              * html/HTMLElement.cpp:
              * html/HTMLElementFactory.cpp:
              * html/HTMLElementFactory.h:
              * html/HTMLFormCollection.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLInputElement.cpp:
              * html/HTMLParser.cpp:
              * html/HTMLSelectElement.cpp:
              * html/HTMLSelectElement.h:
              * html/HTMLTokenizer.cpp:
              * html/HTMLTokenizer.h:
              * html/html_baseimpl.cpp:
              * html/html_headimpl.h:
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasFilters.h:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/RenderPath.cpp:
              * kcanvas/RenderPath.h:
              * kcanvas/device/KRenderingDevice.h:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerPattern.h:
              * kcanvas/device/KRenderingPaintServerSolid.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
              * khtml/misc/decoder.cpp:
              * khtml/misc/decoder.h:
              * khtml/xsl/XSLStyleSheet.cpp:
              * khtml/xsl/XSLTProcessor.cpp:
              * khtml/xsl/XSLTProcessor.h:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/ecma/GlobalObject.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.h:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimateColorElement.h:
              * ksvg2/svg/SVGAnimatedColor.h:
              * ksvg2/svg/SVGAnimatedLengthList.h:
              * ksvg2/svg/SVGAnimatedNumberList.h:
              * ksvg2/svg/SVGAnimatedString.h:
              * ksvg2/svg/SVGAnimatedTransformList.h:
              * ksvg2/svg/SVGAnimationElement.h:
              * ksvg2/svg/SVGColor.h:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGHelper.h:
              * ksvg2/svg/SVGLength.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGPaint.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPatternElement.h:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGStringList.h:
              * ksvg2/svg/SVGTransform.h:
              * kwq/AccessibilityObjectCache.mm:
              * kwq/ClipboardMac.mm:
              * kwq/JavaAppletWidget.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQEditCommand.mm:
              * kwq/KWQFileButton.mm:
              * kwq/KWQKHTMLSettings.h:
              * kwq/KWQKSSLKeyGen.mm:
              * kwq/KWQLoader.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQTextEdit.mm:
              * kwq/RegularExpression.h:
              * kwq/RenderTreeAsText.cpp:
              * kwq/RenderTreeAsText.h:
              * kwq/WebCoreAXObject.mm:
              * loader/Cache.cpp:
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedObject.h:
              * loader/CachedScript.cpp:
              * loader/CachedXBLDocument.cpp:
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.cpp:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameTree.cpp:
              * page/FrameTree.h:
              * page/FrameView.cpp:
              * page/FrameView.h:
              * page/Page.cpp:
              * page/Page.h:
              * page/Plugin.h:
              (WebCore::Plugin::Plugin):
              (WebCore::Plugin::view):
              * platform/Color.cpp:
              * platform/FloatRect.h:
              * platform/Font.cpp:
              * platform/Font.h:
              * platform/FontFamily.cpp:
              * platform/GraphicsContext.cpp:
              * platform/Image.cpp:
              * platform/Image.h:
              * platform/IntRect.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/StreamingTextDecoder.cpp:
              * platform/StringImpl.cpp:
              * platform/StringImpl.h:
              * platform/TextEncoding.h:
              * platform/Timer.cpp:
              * platform/Timer.h:
              * platform/TransferJob.cpp:
              * platform/TransferJob.h:
              * platform/TransferJobInternal.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              * platform/cairo/ImageCairo.cpp:
              * platform/cairo/ImageSourceCairo.cpp:
              * platform/image-decoders/gif/GIFImageReader.cpp:
              * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
              * platform/mac/FontFamilyMac.mm:
              * platform/mac/FontMac.mm:
              * platform/mac/ImageMac.mm:
              * platform/mac/TextEncodingMac.cpp:
              * platform/mac/TransferJobMac.mm:
              * platform/win/FontPlatformDataWin.cpp:
              * platform/win/TransferJobWin.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              * rendering/RenderBox.h:
              * rendering/RenderCanvas.cpp:
              * rendering/RenderCanvas.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFlexibleBox.h:
              * rendering/RenderFlow.cpp:
              * rendering/RenderFlow.h:
              * rendering/RenderImage.cpp:
              * rendering/RenderImage.h:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayer.h:
              * rendering/RenderObject.cpp:
              (showTree):
              * rendering/RenderObject.h:
              * rendering/RenderTableCell.h:
              * rendering/RenderTableSection.h:
              * rendering/RenderText.cpp:
              * rendering/RenderText.h:
              * rendering/RenderTextField.cpp:
              * rendering/RenderTextFragment.h:
              * rendering/RenderTheme.h:
              * rendering/RenderThemeMac.mm:
              * rendering/RenderThemeWin.cpp:
              * rendering/bidi.cpp:
              * rendering/render_form.h:
              * rendering/render_line.cpp:
              (showTree):
              * rendering/render_line.h:
              * rendering/render_list.cpp:
              * rendering/render_replaced.cpp:
              * rendering/render_replaced.h:
              * rendering/render_style.cpp:
              * rendering/render_style.h:
              * xml/xmlhttprequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36d1136a
  8. 25 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-25 Eric Seidel <eseidel@apple.com> · 40eb1b9d
      eseidel authored
              Reviewed by andersca.
      
              Split dom_elementimpl.* into multiple files (one per class).
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7978
      
              * ForwardingHeaders/kdom/core/Attr.h: Removed.
              * ForwardingHeaders/kdom/core/Element.h: Removed.
              * ForwardingHeaders/kdom/core/XMLElement.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOM.mm:
              * bindings/objc/DOMHTML.mm:
              * bindings/scripts/CodeGeneratorJS.pm:
              * dom/AbstractView.cpp:
              * dom/Attr.cpp: Added.
              * dom/Attr.h: Added.
              * dom/Attribute.cpp: Added.
              * dom/Attribute.h: Added.
              * dom/CSSMappedAttributeDeclaration.cpp: Added.
              * dom/CSSMappedAttributeDeclaration.h: Added.
              * dom/DOMImplementation.cpp:
              * dom/Document.h:
              * dom/DocumentType.cpp:
              * dom/Element.cpp: Added.
              (WebCore::Element::Element):
              (WebCore::Element::~Element):
              * dom/Element.h: Added.
              * dom/EventNames.cpp:
              * dom/EventTargetNode.cpp:
              * dom/MappedAttribute.cpp: Added.
              * dom/MappedAttribute.h: Added.
              * dom/MappedAttributeEntry.h: Added.
              (WebCore::):
              * dom/NameNodeList.cpp:
              (WebCore::NameNodeList::NameNodeList):
              (WebCore::NameNodeList::item):
              (WebCore::NameNodeList::nodeMatches):
              * dom/NamedAttrMap.cpp: Added.
              * dom/NamedAttrMap.h: Added.
              * dom/NamedMappedAttrMap.cpp: Added.
              (WebCore::NamedMappedAttrMap::NamedMappedAttrMap):
              * dom/NamedMappedAttrMap.h: Added.
              * dom/Node.cpp:
              * dom/NodeList.cpp:
              * dom/Position.cpp:
              * dom/StyledElement.cpp: Added.
              * dom/StyledElement.h: Added.
              * dom/dom_elementimpl.cpp: Removed.
              * dom/dom_elementimpl.h: Removed.
              * editing/BreakBlockquoteCommand.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/DeleteFromTextNodeCommand.cpp:
              * editing/DeleteSelectionCommand.cpp:
              * editing/InsertLineBreakCommand.cpp:
              * editing/InsertParagraphSeparatorCommand.cpp:
              * editing/InsertTextCommand.cpp:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/ModifySelectionListLevelCommand.cpp:
              * editing/MoveSelectionCommand.cpp:
              * editing/RemoveCSSPropertyCommand.cpp:
              * editing/RemoveNodeAttributeCommand.cpp:
              * editing/Selection.cpp:
              * editing/SelectionController.cpp:
              * editing/SetNodeAttributeCommand.cpp:
              * editing/SplitElementCommand.cpp:
              * editing/SplitTextNodeContainingElementCommand.cpp:
              * editing/TextIterator.cpp:
              * editing/TypingCommand.cpp:
              * editing/VisiblePosition.cpp:
              * editing/visible_units.cpp:
              * html/HTMLElement.h:
              * html/HTMLTokenizer.h:
              * html/html_baseimpl.cpp:
              * kcanvas/RenderSVGImage.cpp:
              * khtml/ecma/kjs_views.cpp:
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::getValueProperty):
              * khtml/xbl/xbl_binding_manager.cpp:
              * khtml/xbl/xbl_tokenizer.cpp:
              * ksvg2/misc/SVGImageLoader.cpp:
              * ksvg2/svg/SVGAElement.cpp:
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              * ksvg2/svg/SVGAnimationElement.cpp:
              * ksvg2/svg/SVGCircleElement.cpp:
              * ksvg2/svg/SVGClipPathElement.cpp:
              * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
              * ksvg2/svg/SVGCursorElement.cpp:
              * ksvg2/svg/SVGElement.cpp:
              (WebCore::SVGElement::SVGElement):
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGEllipseElement.cpp:
              * ksvg2/svg/SVGExternalResourcesRequired.cpp:
              * ksvg2/svg/SVGFEBlendElement.cpp:
              * ksvg2/svg/SVGFEColorMatrixElement.cpp:
              * ksvg2/svg/SVGFEComponentTransferElement.cpp:
              * ksvg2/svg/SVGFECompositeElement.cpp:
              * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
              * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
              * ksvg2/svg/SVGFEFloodElement.cpp:
              * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
              * ksvg2/svg/SVGFEImageElement.cpp:
              * ksvg2/svg/SVGFELightElement.cpp:
              * ksvg2/svg/SVGFEMergeElement.cpp:
              * ksvg2/svg/SVGFEMergeNodeElement.cpp:
              * ksvg2/svg/SVGFEOffsetElement.cpp:
              * ksvg2/svg/SVGFESpecularLightingElement.cpp:
              * ksvg2/svg/SVGFETileElement.cpp:
              * ksvg2/svg/SVGFETurbulenceElement.cpp:
              * ksvg2/svg/SVGFilterElement.cpp:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
              * ksvg2/svg/SVGFitToViewBox.cpp:
              * ksvg2/svg/SVGGradientElement.cpp:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGLangSpace.cpp:
              * ksvg2/svg/SVGLineElement.cpp:
              * ksvg2/svg/SVGLinearGradientElement.cpp:
              * ksvg2/svg/SVGMarkerElement.cpp:
              * ksvg2/svg/SVGMaskElement.cpp:
              * ksvg2/svg/SVGPathElement.cpp:
              * ksvg2/svg/SVGPatternElement.cpp:
              * ksvg2/svg/SVGPolyElement.cpp:
              * ksvg2/svg/SVGRadialGradientElement.cpp:
              * ksvg2/svg/SVGRectElement.cpp:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGScriptElement.cpp:
              * ksvg2/svg/SVGStopElement.cpp:
              * ksvg2/svg/SVGStyledElement.cpp:
              * ksvg2/svg/SVGStyledTransformableElement.cpp:
              * ksvg2/svg/SVGSwitchElement.cpp:
              * ksvg2/svg/SVGTests.cpp:
              * ksvg2/svg/SVGTextContentElement.cpp:
              * ksvg2/svg/SVGTextPositioningElement.cpp:
              * ksvg2/svg/SVGTransformable.cpp:
              * ksvg2/svg/SVGURIReference.cpp:
              * ksvg2/svg/SVGUseElement.cpp:
              * ksvg2/svg/SVGViewElement.cpp:
              * ksvg2/svg/SVGZoomAndPan.cpp:
              * kwq/WebCoreTextArea.mm:
              * platform/Widget.h:
              * rendering/RenderBlock.cpp:
              * rendering/RenderCanvas.cpp:
              * rendering/RenderContainer.cpp:
              * rendering/RenderObject.cpp:
              * rendering/RenderTextField.cpp:
              * rendering/RenderThemeMac.mm:
              * rendering/bidi.cpp:
              * rendering/render_replaced.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13480 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      40eb1b9d
  9. 19 Mar, 2006 1 commit
  10. 09 Mar, 2006 1 commit
    • justing's avatar
      Reviewed by harrison · 7c677c67
      justing authored
          
              Fixed formatting and changed functions to take in 
              a const Selection& instead of a Selection.
      
              * editing/ModifySelectionListLevelCommand.cpp:
              (WebCore::ModifySelectionListLevelCommand::canIncreaseSelectionListLevel):
              (WebCore::ModifySelectionListLevelCommand::canDecreaseSelectionListLevel):
              (WebCore::ModifySelectionListLevelCommand::increaseSelectionListLevel):
              (WebCore::ModifySelectionListLevelCommand::decreaseSelectionListLevel):
              (WebCore::modifySelectionListLevel):
              (WebCore::getStartEndListChildren):
              (WebCore::canIncreaseListLevel):
              (WebCore::canDecreaseListLevel):
              (WebCore::ModifySelectionListLevelCommand::increaseListLevel):
              (WebCore::ModifySelectionListLevelCommand::decreaseListLevel):
              * editing/ModifySelectionListLevelCommand.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13235 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c677c67
  11. 01 Mar, 2006 1 commit
    • harrison's avatar
      Reviewed by Justin. · 99e6fb4d
      harrison authored
              <rdar://problem/4359736> Support outlining ability with lists
      
              Added Mail SPI for list level changes.  It is SPI because it is not complete support
              for outlining.  See <rdar://problem/4457070> "API for html lists as note outlines".
              Additional support is to end a list when return is typed on empty list item.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              Added ModifySelectionListLevelCommand.cpp and ModifySelectionListLevelCommand.h
              
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge canIncreaseSelectionListLevel]):
              (-[WebCoreFrameBridge canDecreaseSelectionListLevel]):
              (-[WebCoreFrameBridge increaseSelectionListLevel]):
              (-[WebCoreFrameBridge decreaseSelectionListLevel]):
              Supply list level calls in the bridge.
              
              * editing/InsertParagraphSeparatorCommand.cpp:
              (WebCore::createListItemElement):
              New.  Creates an li.
              
              (WebCore::InsertParagraphSeparatorCommand::doApply):
              - slight logic cleanup
              - on empty list item, end the list
              
              * editing/ModifySelectionListLevelCommand.cpp: Added.
              (WebCore::ModifySelectionListLevelCommand::ModifySelectionListLevelCommand):
              (WebCore::ModifySelectionListLevelCommand::preservesTypingStyle):
              (WebCore::ModifySelectionListLevelCommand::doApply):
              (WebCore::ModifySelectionListLevelCommand::canIncreaseSelectionListLevel):
              (WebCore::ModifySelectionListLevelCommand::canDecreaseSelectionListLevel):
              (WebCore::ModifySelectionListLevelCommand::increaseSelectionListLevel):
              (WebCore::ModifySelectionListLevelCommand::decreaseSelectionListLevel):
              (WebCore::modifySelectionListLevel):
              (WebCore::getStartEndListChildren):
              (WebCore::canIncreaseListLevel):
              (WebCore::canDecreaseListLevel):
              (WebCore::ModifySelectionListLevelCommand::insertSiblingNodeRangeBefore):
              (WebCore::ModifySelectionListLevelCommand::insertSiblingNodeRangeAfter):
              (WebCore::ModifySelectionListLevelCommand::appendSiblingNodeRange):
              (WebCore::ModifySelectionListLevelCommand::increaseListLevel):
              (WebCore::ModifySelectionListLevelCommand::decreaseListLevel):
              * editing/ModifySelectionListLevelCommand.h: Added.
              New editing command for adjusting the list level.
              
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplaceSelectionCommand::doApply):
              Slight logic cleanup
      
              * editing/htmlediting.cpp:
              (WebCore::isListElement):
              (WebCore::enclosingListChild):
              New helpers.
              
              (WebCore::isTableElement):
              Allow caller to pass 0... return false in that case.
              
              * editing/htmlediting.h:
              New helpers.
              
              * rendering/RenderContainer.cpp:
              (WebCore::updateListMarkerNumbers):
              Allow for list children that are not li nodes.  Ignore and continue rather than stopping.
              
              (WebCore::RenderContainer::addChild):
              Allow for nil beforeChild, meaning "add at end".
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      99e6fb4d