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. 15 Jun, 2008 1 commit
  3. 14 Jun, 2008 2 commits
    • darin@apple.com's avatar
      JavaScriptCore: · d5ceaf86
      darin@apple.com authored
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Reviewed by Sam.
      
              - more of https://bugs.webkit.org/show_bug.cgi?id=17257
                start ref counts at 1 instead of 0 for speed
      
              * kjs/nodes.cpp:
              (KJS::ParserRefCounted::hasOneRef): Added. Replaces refcount.
              * kjs/nodes.h: Replaced refcount with hasOneRef.
      
              * wtf/ListRefPtr.h:
              (WTF::ListRefPtr::~ListRefPtr): Changed to use hasOneRef instead of
              refcount, so this class can be used with the RefCounted template.
      
              * wtf/RefCounted.h:
              (WTF::RefCounted::hasOneRef): Made const, since there's no reason for
              it to be non-const.
      
      WebCore:
      
      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: Added some new exports needed for functions that are now
              non-virtual.
      
              * WebCore.xcodeproj/project.pbxproj: Moved the "icon" group to the correct
              location in the project. Before it was inside "appcache"!
      
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * dom/Clipboard.cpp:
              (WebCore::Clipboard::Clipboard):
              * editing/mac/EditorMac.mm:
              (WebCore::Editor::newGeneralClipboard):
              * editing/qt/EditorQt.cpp:
              (WebCore::Editor::newGeneralClipboard):
              * editing/wx/EditorWx.cpp:
              (WebCore::Editor::newGeneralClipboard):
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::DocumentLoader):
              * loader/DocumentLoader.h:
              (WebCore::DocumentLoader::create):
              * loader/icon/IconDatabase.cpp:
              (WebCore::IconDatabase::defaultIcon):
              (WebCore::IconDatabase::setIconDataForIconURL):
              (WebCore::IconDatabase::setIconURLForPageURL):
              (WebCore::IconDatabase::getOrCreateIconRecord):
              (WebCore::IconDatabase::performURLImport):
              * loader/icon/IconDatabase.h:
              * loader/icon/IconRecord.cpp:
              (WebCore::IconRecord::IconRecord):
              * loader/icon/IconRecord.h:
              (WebCore::IconRecord::create):
              * page/EventHandler.h:
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              * page/Frame.h:
              (WebCore::Frame::create):
              * page/gtk/EventHandlerGtk.cpp:
              (WebCore::EventHandler::createDraggingClipboard):
              * page/mac/EventHandlerMac.mm:
              (WebCore::EventHandler::createDraggingClipboard):
              * page/qt/EventHandlerQt.cpp:
              (WebCore::EventHandler::createDraggingClipboard):
              * page/win/EventHandlerWin.cpp:
              (WebCore::EventHandler::createDraggingClipboard):
              * page/wx/EventHandlerWx.cpp:
              (WebCore::EventHandler::createDraggingClipboard):
              * platform/Cursor.h:
              (WebCore::SharedCursor::create):
              (WebCore::SharedCursor::~SharedCursor):
              (WebCore::SharedCursor::SharedCursor):
              * platform/DragData.h:
              * platform/PopupMenu.h:
              (WebCore::PopupMenu::create):
              (WebCore::PopupMenu::isActive):
              * platform/ScrollBar.cpp:
              (WebCore::Scrollbar::Scrollbar):
              * platform/SearchPopupMenu.h:
              (WebCore::SearchPopupMenu::create):
              * platform/graphics/FontFamily.cpp:
              (WebCore::FontFamily::FontFamily):
              (WebCore::operator==):
              * platform/graphics/FontFamily.h:
              (WebCore::FontFamily::FontFamily):
              (WebCore::SharedFontFamily::create):
              (WebCore::SharedFontFamily::SharedFontFamily):
              (WebCore::operator!=):
              (WebCore::FontFamily::next):
              (WebCore::FontFamily::appendFamily):
              (WebCore::FontFamily::releaseNext):
              * platform/graphics/Icon.h:
              * platform/graphics/gtk/IconGtk.cpp:
              (WebCore::Icon::Icon):
              (WebCore::Icon::~Icon):
              (WebCore::Icon::newIconForFile):
              * platform/graphics/mac/IconMac.mm:
              (WebCore::Icon::Icon):
              (WebCore::Icon::newIconForFile):
              * platform/graphics/qt/IconQt.cpp:
              (WebCore::Icon::Icon):
              (WebCore::Icon::newIconForFile):
              * platform/graphics/win/IconWin.cpp:
              (WebCore::Icon::Icon):
              (WebCore::Icon::~Icon):
              (WebCore::Icon::newIconForFile):
              * platform/gtk/ClipboardGtk.cpp:
              (WebCore::Editor::newGeneralClipboard):
              * platform/gtk/ClipboardGtk.h:
              (WebCore::ClipboardGtk::create):
              * platform/gtk/PlatformScrollBar.h:
              (WebCore::PlatformScrollbar::create):
              * platform/gtk/PopupMenuGtk.cpp:
              (WebCore::PopupMenu::PopupMenu):
              * platform/gtk/ScrollViewGtk.cpp:
              (WebCore::ScrollViewScrollbar::create):
              (WebCore::ScrollView::ScrollViewPrivate::setHasHorizontalScrollbar):
              (WebCore::ScrollView::ScrollViewPrivate::setHasVerticalScrollbar):
              * platform/mac/ClipboardMac.h:
              (WebCore::ClipboardMac::create):
              * platform/mac/DragDataMac.mm:
              (WebCore::DragData::createClipboard):
              (WebCore::DragData::containsCompatibleContent):
              * platform/mac/PlatformScrollBar.h:
              (WebCore::PlatformScrollbar::create):
              (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
              (WebCore::PlatformScrollbar::verticalScrollbarWidth):
              * platform/mac/PopupMenuMac.mm:
              (WebCore::PopupMenu::PopupMenu):
              * platform/qt/ClipboardQt.h:
              (WebCore::ClipboardQt::create):
              * platform/qt/DragDataQt.cpp:
              (WebCore::DragData::createClipboard):
              * platform/qt/PlatformScrollBar.h:
              (WebCore::PlatformScrollbar::create):
              * platform/qt/PopupMenuQt.cpp:
              (WebCore::PopupMenu::PopupMenu):
              * platform/qt/ScrollViewQt.cpp:
              (WebCore::ScrollView::ScrollViewPrivate::setHasHorizontalScrollbar):
              (WebCore::ScrollView::ScrollViewPrivate::setHasVerticalScrollbar):
              * platform/win/ClipboardWin.h:
              (WebCore::ClipboardWin::create):
              * platform/win/CursorWin.cpp:
              (WebCore::Cursor::Cursor):
              (WebCore::loadSharedCursor):
              * platform/win/DragDataWin.cpp:
              (WebCore::DragData::createClipboard):
              * platform/win/EditorWin.cpp:
              (WebCore::Editor::newGeneralClipboard):
              * platform/win/PlatformScrollBar.h:
              (WebCore::PlatformScrollbar::create):
              * platform/win/PopupMenuWin.cpp:
              (WebCore::PopupMenu::PopupMenu):
              (WebCore::PopupMenu::show):
              * platform/win/ScrollViewWin.cpp:
              (WebCore::ScrollView::ScrollViewPrivate::setHasHorizontalScrollbar):
              (WebCore::ScrollView::ScrollViewPrivate::setHasVerticalScrollbar):
              * platform/wx/ClipboardWx.h:
              (WebCore::ClipboardWx::create):
              * platform/wx/PlatformScrollBar.h:
              (WebCore::PlatformScrollbar::create):
              * platform/wx/PopupMenuWx.cpp:
              (WebCore::PopupMenu::PopupMenu):
              * platform/wx/TemporaryLinkStubs.cpp:
              (Icon::Icon):
              (Icon::newIconForFile):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::createScrollbar):
              * rendering/RenderListBox.cpp:
              (WebCore::RenderListBox::updateFromElement):
              * svg/graphics/SVGImage.cpp:
              (WebCore::SVGImage::dataChanged):
              * svg/graphics/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyFrameLoaderClient::createDocumentLoader):
      
      WebKit/gtk:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Reviewed by Sam.
      
              - more https://bugs.webkit.org/show_bug.cgi?id=17257
                start ref counts at 1 instead of 0 for speed
      
              * WebCoreSupport/FrameLoaderClientGtk.cpp:
              (WebKit::FrameLoaderClient::createDocumentLoader): Use create instead of new.
              * webkit/webkitwebframe.cpp:
              (webkit_web_frame_new): Ditto.
              (webkit_web_frame_init_with_web_view): Ditto.
      
      WebKit/mac:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Reviewed by Sam.
      
              - more of https://bugs.webkit.org/show_bug.cgi?id=17257
                start ref counts at 1 instead of 0 for speed
      
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::createDocumentLoader): Use create instead of new.
              (WebFrameLoaderClient::createFrame): Remove now-obsolete adoptRef that was balanced by
              a ref call inside the Frame constructor. The lifetime rules for Frame are now the
              conventional ones without a special case.
      
              * WebView/WebDataSource.mm:
              (-[WebDataSource _initWithDocumentLoader:]): Changed argument to be a PassRefPtr, since
              this function takes ownership of the DocumentLoader.
              (-[WebDataSource initWithRequest:]): Use create instead of new.
              * WebView/WebDataSourceInternal.h: Changed _initWithDocumentLoader argument to be a
              PassRefPtr and also cleaned up the header a bit.
      
              * WebView/WebDocumentLoaderMac.h:
              (WebDocumentLoaderMac::create): Added. Also made the constructor and a couple of virtual
              functions private.
      
              * WebView/WebFrame.mm:
              (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]): Use create instead
              of new.
      
      WebKit/qt:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Reviewed by Sam.
      
              - more https://bugs.webkit.org/show_bug.cgi?id=17257
                start ref counts at 1 instead of 0 for speed
      
              * Api/qwebframe.cpp:
              (QWebFramePrivate::init): Use create instead of new.
              * WebCoreSupport/FrameLoaderClientQt.cpp:
              (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto.
      
      WebKit/win:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Reviewed by Sam.
      
              - more of https://bugs.webkit.org/show_bug.cgi?id=17257
                start ref counts at 1 instead of 0 for speed
      
              * WebCoreSupport/WebFrameLoaderClient.cpp:
              (WebFrameLoaderClient::createFrame): Remove now-obsolete adoptRef that was balanced by
              a ref call inside the Frame constructor. The lifetime rules for Frame are now the
              conventional ones without a special case.
      
              * WebFrame.cpp:
              (WebFrame::init): Renamed function from initWithWebFrameView and removed the unused
              IWebFrameView argument (every caller was passing 0). Also changed this to return the
              WebCore Frame object, which is needed to straighten out the lifetime and ownership
              issues.
              * WebFrame.h: Ditto.
      
              * WebView.cpp:
              (WebView::initWithFrame): Changed to call new init function and use the return value.
      
      WebKit/wx:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Reviewed by Sam.
      
              - more https://bugs.webkit.org/show_bug.cgi?id=17257
                start ref counts at 1 instead of 0 for speed
      
              * WebKitSupport/FrameLoaderClientWx.cpp:
              (WebCore::FrameLoaderClientWx::createDocumentLoader): Use create function
              instead of new.
      
      LayoutTests:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Reviewed by Maciej.
      
              - test for https://bugs.webkit.org/show_bug.cgi?id=19538
                <rdar://problem/5957595> Reading transition property from the style JS gives the wrong value
      
              * fast/dom/CSSStyleDeclaration/resources/transition-property-names.js: Added.
              * fast/dom/CSSStyleDeclaration/transition-property-names-expected.txt: Added.
              * fast/dom/CSSStyleDeclaration/transition-property-names.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34544 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d5ceaf86
    • 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
  4. 22 May, 2008 1 commit
  5. 21 May, 2008 2 commits
    • mrowe@apple.com's avatar
      Merge squirrelfish branch into trunk. · 2f6dfdf7
      mrowe@apple.com authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33979 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2f6dfdf7
    • andersca@apple.com's avatar
      2008-05-21 Anders Carlsson <andersca@apple.com> · f3330d64
      andersca@apple.com authored
              Reviewed by Mitz.
      
              Add IconFetcher implementation.
      
              * WebCore.base.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * html/HTMLLinkElement.h:
              (WebCore::HTMLLinkElement::isIcon):
              * loader/icon/IconFetcher.cpp: Added.
              (WebCore::IconLinkEntry::):
              (WebCore::IconLinkEntry::IconLinkEntry):
              (WebCore::IconLinkEntry::type):
              (WebCore::IconLinkEntry::url):
              (WebCore::IconLinkEntry::buffer):
              (WebCore::parseIconLink):
              (WebCore::IconFetcher::create):
              (WebCore::IconFetcher::IconFetcher):
              (WebCore::IconFetcher::~IconFetcher):
              (WebCore::IconFetcher::cancel):
              (WebCore::IconFetcher::createIcon):
              (WebCore::IconFetcher::loadEntry):
              (WebCore::IconFetcher::loadFailed):
              (WebCore::IconFetcher::didReceiveResponse):
              (WebCore::IconFetcher::didReceiveData):
              (WebCore::IconFetcher::didFinishLoading):
              (WebCore::IconFetcher::didFail):
              * loader/icon/IconFetcher.h: Added.
              (WebCore::IconFetcherClient::~IconFetcherClient):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33978 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f3330d64
  6. 16 May, 2008 1 commit
  7. 15 May, 2008 3 commits
    • slewis@apple.com's avatar
      2008-05-15 Stephanie Lewis <slewis@apple.com> · dc11b3fb
      slewis@apple.com authored
              Reviewed by Anders.
      
              Turn on fast teardown.  I added a preference for using full teardown because 
              the LEAKS output will be useless without a full teardown.  
      
              preference for fullteardown
              * WebView/WebPreferenceKeysPrivate.h:
              * WebView/WebPreferences.m:
              (-[WebPreferences setFullDocumentTeardownEnabled:]):
              (-[WebPreferences fullDocumentTeardownEnabled]):
              * WebView/WebPreferencesPrivate.h:
              
              on application quit dispatch unload events and destroy plugins then exit
              * WebView/WebView.mm:
              (-[WebView closeWithFastTeardown]):
              (-[WebView _close]):
              * WebView/WebViewPrivate.h:
      
             export a symbol needed for fast teardown
      
              * WebCore.base.exp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33504 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc11b3fb
    • slewis@apple.com's avatar
      2008-05-15 Stephanie Lewis <slewis@apple.com> · 930e76d0
      slewis@apple.com authored
              Reviewed by Anders.
      
              Keep track on pending unload event counts
      
              No change in behavior so no new tests, but I am dumping the 
              unload event count to track the new variable.
      
              * WebCore.base.exp:
      
              increment/decrement the count when an event is added/removed
              * dom/Document.cpp:
              (WebCore::Document::removeHTMLWindowEventListener):
              (WebCore::Document::addWindowEventListener):
              (WebCore::Document::removeWindowEventListener):
              (WebCore::Document::setPendingFrameUnloadEventCount):
              * dom/Document.h:
      
              set the count to 0 for each frame after the unload event has been dispatched
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::stopLoading):
      
              keep track of the number of pending unload events for the eventHandler's frame
              * page/EventHandler.cpp:
              (WebCore::EventHandler::EventHandler):
             (WebCore::EventHandler::pendingFrameUnloadEventCount):
              (WebCore::EventHandler::setPendingFrameUnloadEventCount):
              * page/EventHandler.h:
      
              keep track of the total number of pending unload events for all of the frames
              * page/Page.cpp:
              (WebCore::Page::Page):
              (WebCore::Page::pendingUnloadEventCount):
              (WebCore::Page::setPendingUnloadEventCount):
                 age/Page.h:
      
              get the pending frame unload count from WebCore
      
              * WebView/WebFrame.mm:
              (-[WebFrame _pendingFrameUnloadEventCount]):
              * WebView/WebFramePrivate.h:
      
              Dump the unload count for a frame after parsing is finished.
      
              * DumpRenderTree/mac/FrameLoadDelegate.mm:
              (-[FrameLoadDelegate webView:didFinishDocumentLoadForFrame:]):
      
              Dump unload event counts for frames.
      
              * fast/dom/Window/get-set-properties-expected.txt:
              * fast/events/onunload-expected.txt:
              * fast/events/onunload-not-on-body-expected.txt:
              * fast/events/onunload-window-property-expected.txt:
              * fast/forms/button-state-restore-expected.txt:
              * fast/history/history_reload-expected.txt:
              * fast/loader/onunload-form-submit-crash-2-expected.txt:
              * fast/loader/onunload-form-submit-crash-expected.txt:
              * http/tests/xmlhttprequest/xhr-onunload-expected.txt:
              * platform/mac/fast/loader/start-load-in-unload-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      930e76d0
    • ap@webkit.org's avatar
      2008-05-15 Adele Peterson <adele@apple.com> · 495c54a4
      ap@webkit.org authored
              Reviewed and landed by Alexey.
      
              Use TextIterator in +[NSAttributedString _web_attributedStringFromRange:].
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      495c54a4
  8. 12 May, 2008 2 commits
    • mitz@apple.com's avatar
      WebCore: · bdb9ed5e
      mitz@apple.com authored
              Reviewed by Ada Chan and Sam Weinig.
      
              - WebCore changes for https://bugs.webkit.org/show_bug.cgi?id=17097
                <rdar://problem/5715471> CGFontRefs (and HFONTs on Windows) leak because FontCache grows without bound
      
              Added a way for clients to let the cache know that they no longer need
              font data, which lets the cache release it. Changed clients to track
              most of the font data they get from the cache so that they can later
              release it. Some instances of font data -- namely, those used for system
              font fallback -- are still not tracked and will therefore remain in the
              cache indefinitely.
      
              * WebCore.base.exp: Added exports for WebCoreStatistics in WebKit.
      
              * platform/graphics/Font.cpp:
              (WebCore::Font::Font): Changed to use FontFallbackList::create().
              (WebCore::Font::update): Ditto.
      
              * platform/graphics/FontCache.cpp:
              (WebCore::FontCache::getCachedFontData): Added code to track the number
              of times a SimpleFontData instance has been requested from the cache,
              remove requested instances from the inactive list, and purge inactive
              font data if the inactive list has grown above its maximum allowed size.
              (WebCore::FontCache::releaseFontData): Added. Called by clients to let
              the cache know that they no longer need the font data. Adds the font
              data to the inactive list if the last client has released it.
              (WebCore::FontCache::purgeInactiveFontData): Added. Removes inactive
              font data from the cache (and the inactive list).
              (WebCore::FontCache::fontDataCount): Added to provide statistics.
              (WebCore::FontCache::inactiveFontDataCount): Ditto.
      
              * platform/graphics/FontCache.h:
      
              * platform/graphics/FontData.h:
              (WebCore::FontData::FontData): Added a member variable to store the
              highest glyph page tree level in which there is a node for this FontData.
              This is used to limit the depth of the search when pruning glyph page
              trees.
              (WebCore::FontData::setMaxGlyphPageTreeLevel): Added this accessor.
              (WebCore::FontData::maxGlyphPageTreeLevel): Ditto.
      
              * platform/graphics/FontFallbackList.cpp:
              (WebCore::FontFallbackList::FontFallbackList): Changed to start with a
              refcount of 1.
              (WebCore::FontFallbackList::invalidate): Added a call to
              releaseFontData().
              (WebCore::FontFallbackList::releaseFontData): Added. Lets the font cache
              know that we no longer need the FontData in our font list.
              (WebCore::FontFallbackList::fontDataAt): Changed to record in the font
              list whether the font data is a custom font data or not.
              (WebCore::FontFallbackList::setPlatformFont): Ditto.
      
              * platform/graphics/FontFallbackList.h:
              (WebCore::FontFallbackList::create): Added and made the constructor
              private.
              (WebCore::FontFallbackList::~FontFallbackList): Added a call to
              releaseFontData().
      
              * platform/graphics/GlyphPageTreeNode.cpp:
              (WebCore::GlyphPageTreeNode::treeGlyphPageCount): Added to provide
              statistics.
              (WebCore::GlyphPageTreeNode::pageCount): Ditto.
      
              (WebCore::GlyphPageTreeNode::pruneTreeFontData): Added.
              (WebCore::GlyphPageTreeNode::getChild): Added code to update the font
              data's maximum glyph page tree level.
              (WebCore::GlyphPageTreeNode::pruneFontData): Added.
      
              * platform/graphics/GlyphPageTreeNode.h:
      
              * platform/graphics/SimpleFontData.cpp:
              (WebCore::SimpleFontData::~SimpleFontData): Added code to let the font
              cache know that we no longer need the small caps font data and to prune
              the glyph page trees.
      
      WebKit/mac:
      
              Reviewed by Ada Chan.
      
              - WebKit/mac changes for https://bugs.webkit.org/show_bug.cgi?id=17097
                <rdar://problem/5715471> CGFontRefs (and HFONTs on Windows) leak because FontCache grows without bound
      
              Added font cache statistics and a function to purge inactive font data.
      
              * Misc/WebCoreStatistics.h:
              * Misc/WebCoreStatistics.mm:
              (+[WebCoreStatistics cachedFontDataCount]):
              (+[WebCoreStatistics cachedFontDataInactiveCount]):
              (+[WebCoreStatistics purgeInactiveFontData]):
              (+[WebCoreStatistics glyphPageCount]):
      
      WebKit/win:
      
              Reviewed by Ada Chan.
      
              - WebKit/win changes for https://bugs.webkit.org/show_bug.cgi?id=17097
                <rdar://problem/5715471> CGFontRefs (and HFONTs on Windows) leak because FontCache grows without bound
      
              Added font cache statistics and a function to purge inactive font data.
      
              * Interfaces/IWebCoreStatistics.idl:
              * WebCoreStatistics.cpp:
              (WebCoreStatistics::cachedFontDataCount):
              (WebCoreStatistics::cachedFontDataInactiveCount):
              (WebCoreStatistics::purgeInactiveFontData):
              (WebCoreStatistics::glyphPageCount):
              * WebCoreStatistics.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33056 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bdb9ed5e
    • andersca@apple.com's avatar
      WebCore: · 8990786b
      andersca@apple.com authored
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Alexey.
      
              Add ApplicationCacheStorage::empty() method which will empty
              the application cache database.
              
              * WebCore.base.exp:
              * loader/appcache/ApplicationCache.cpp:
              (WebCore::ApplicationCache::clearStorageID):
              * loader/appcache/ApplicationCache.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::clearStorageID):
              * loader/appcache/ApplicationCacheGroup.h:
              * loader/appcache/ApplicationCacheResource.h:
              (WebCore::ApplicationCacheResource::clearStorageID):
              * loader/appcache/ApplicationCacheStorage.cpp:
              (WebCore::ApplicationCacheStorage::empty):
              * loader/appcache/ApplicationCacheStorage.h:
      
      WebKit/mac:
      
      2008-05-12  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Alexey.
      
              Empty the application cache when changing the cache model.
              
              * WebView/WebView.mm:
              (+[WebView _setCacheModel:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8990786b
  9. 06 May, 2008 2 commits
    • beidson@apple.com's avatar
      WebCore: · 18ed1cdf
      beidson@apple.com authored
      2008-05-06  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin Adler
      
              Preparation for upcoming work making LocalStorage persistent.
      
              When the application terminates, all pending local storage writes need to be
              sync'ed out to disk.
              This works n combination with platform specific code in WebKit that calls it.
      
              * WebCore.base.exp:
      
              * page/PageGroup.cpp:
              (WebCore::PageGroup::closeLocalStorage): Close all open LocalStorage objects
              * page/PageGroup.h:
      
              * storage/LocalStorage.cpp:
              (WebCore::LocalStorage::close): Placeholder for what will sync and terminate the
                local storage thread in the future.
              * storage/LocalStorage.h:
      
      WebKit/mac:
      
      2008-05-06  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin Adler
      
              Preparation for upcoming work making LocalStorage persistent.
      
              When the application terminates, all LocalStorage areas must be sync'ed out to disk first.
      
              * WebView/WebView.mm:
              (+[WebView _applicationWillTerminate]):  Close all LocalStorage areas before quitting.
      
      WebKit/win:
      
      2008-05-06  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin Adler
      
              Preparation for upcoming work making LocalStorage persistent.
      
              When the application terminates, all LocalStorage areas must be sync'ed out to disk first.
      
              * WebKitDLL.cpp:
              (shutDownWebKit): Close all LocalStorage areas before quitting.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      18ed1cdf
    • beidson@apple.com's avatar
      2008-05-06 Brady Eidson <beidson@apple.com> · fab469a2
      beidson@apple.com authored
              Rubberstamped by David Kilzer
      
              * WebCore.base.exp:  Sort this mess!
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32905 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fab469a2
  10. 05 May, 2008 1 commit
    • justin.garcia@apple.com's avatar
      WebCore: · 692743d4
      justin.garcia@apple.com authored
      2008-05-05  Justin Garcia  <justin.garcia@apple.com>
      
              Reviewed by Darin.
      
              <rdar://problem/5865171> REGRESSION: Creating a new quote places caret at beginning of quote instead of the end
              
              Disable Range mutation on document modifications in Tiger and Leopard Mail,
              since they do their own mutation which interferes with ours.
      
              * WebCore.base.exp:
              * dom/Document.cpp:
              (WebCore::Document::nodeChildrenChanged):
              (WebCore::Document::nodeWillBeRemoved):
              (WebCore::Document::textInserted):
              (WebCore::Document::textRemoved):
              (WebCore::Document::textNodesMerged):
              (WebCore::Document::textNodeSplit):
              * page/Settings.cpp:
              (WebCore::Settings::Settings):
              (WebCore::Settings::disableRangeMutationForOldAppleMail):
              * page/Settings.h:
              (WebCore::Settings::rangeMutationDisabledForOldAppleMail):
      
      WebKit/mac:
      
      2008-05-05  Justin Garcia  <justin.garcia@apple.com>
      
              Reviewed by Darin.
              
              <rdar://problem/5865171> REGRESSION: Creating a new quote places caret at beginning of quote instead of the end
      
              * WebView/WebView.mm:
              (-[WebView _updateSettingsFromPreferences:]): Disable Range mutation on changes to
              the document for Tiger and Leopard Mail.  There is code in Mail that does it, and
              the two interfere.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32883 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      692743d4
  11. 01 May, 2008 1 commit
  12. 29 Apr, 2008 2 commits
    • ddkilzer@apple.com's avatar
      BUILD FIX for export of WTF::RefCounted<WebCore::FormData>::deref() · 7b3b129e
      ddkilzer@apple.com authored
              On the buildbot, this is a fatal error:
      
              ld: symbols names listed in -exported_symbols_list: WebKitBuild/Release/DerivedSources/WebCore/WebCore.exp not in linked objects
              __ZN3WTF10RefCountedIN7WebCore8FormDataEE5derefEv
              /usr/bin/libtool: internal link edit command failed
      
              Newer dev tools only produce a warning:
      
              ld warning: cannot export hidden symbol __ZN3WTF10RefCountedIN7WebCore8FormDataEE5derefEv from WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/i386/DocumentLoader.o
      
              * WebCore.base.exp: Remove hidden symbol from export list.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32716 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b3b129e
    • ddkilzer@apple.com's avatar
      JavaScriptCore: · 8fe65866
      ddkilzer@apple.com authored
      2008-04-29  Greg Bolsinga  <bolsinga@apple.com>
      
              Reviewed by Darin.
      
              Wrapped Dashboard code with ENABLE(DASHBOARD_SUPPORT)
      
              * wtf/Platform.h:
      
      WebCore:
      
      2008-04-29  Greg Bolsinga  <bolsinga@apple.com>
      
              Reviewed by Darin.
      
              Wrapped Dashboard code with ENABLE(DASHBOARD_SUPPORT)
      
              * DerivedSources.make:
              * WebCore.DashboardSupport.exp: Added.
              * WebCore.base.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::setLocation):
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::):
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSParser.cpp:
              (WebCore::CSSParser::parseValue):
              * css/CSSPrimitiveValue.cpp:
              (WebCore::CSSPrimitiveValue::cleanup):
              (WebCore::CSSPrimitiveValue::cssText):
              * css/CSSPropertyNames.in:
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * css/DashboardRegion.h:
              * css/DashboardSupportCSSPropertyNames.in: Added.
              * dom/DOMImplementation.cpp:
              (WebCore::DOMImplementation::createDocument):
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::importNode):
              * dom/Document.h:
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::fill):
              (WebCore::CanvasRenderingContext2D::stroke):
              (WebCore::CanvasRenderingContext2D::clip):
              * html/CanvasRenderingContext2D.h:
              * html/HTMLCanvasElement.cpp:
              * html/HTMLCanvasElement.h:
              * page/Chrome.cpp:
              * page/ChromeClient.h:
              * page/Frame.cpp:
              (WebCore::Frame::paint):
              * page/Frame.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::layout):
              * page/FrameView.h:
              * page/Settings.cpp:
              (WebCore::Settings::Settings):
              * page/Settings.h:
              * page/mac/EventHandlerMac.mm:
              (WebCore::EventHandler::needsKeyboardEventDisambiguationQuirks):
              * page/mac/FrameMac.mm:
              * page/mac/WebDashboardRegion.h:
              * page/mac/WebDashboardRegion.m:
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::scrollToOffset):
              (WebCore::RenderLayer::setHasHorizontalScrollbar):
              (WebCore::RenderLayer::setHasVerticalScrollbar):
              (WebCore::RenderLayer::updateScrollInfoAfterLayout):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::setStyle):
              * rendering/RenderObject.h:
              * rendering/RenderStyle.cpp:
              (WebCore::StyleRareNonInheritedData::operator==):
              (WebCore::RenderStyle::diff):
              * rendering/RenderStyle.h:
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::setRequestHeader):
      
      WebKit/mac:
      
      2008-04-29  Greg Bolsinga  <bolsinga@apple.com>
      
              Reviewed by Darin.
      
              Wrapped Dashboard code with ENABLE(DASHBOARD_SUPPORT)
      
              * WebCoreSupport/WebChromeClient.h:
              * WebCoreSupport/WebChromeClient.mm:
              * WebView/WebClipView.m:
              (-[WebClipView scrollWheel:]):
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView addMouseMovedObserver]):
              (-[WebHTMLView removeMouseMovedObserver]):
              (-[WebHTMLView acceptsFirstMouse:]):
              * WebView/WebUIDelegatePrivate.h:
              * WebView/WebView.mm:
              (-[WebViewPrivate init]):
              * WebView/WebViewPrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8fe65866
  13. 28 Apr, 2008 2 commits
    • adele@apple.com's avatar
      WebCore: · f3d6b894
      adele@apple.com authored
      2008-04-28  Adele Peterson  <adele@apple.com>
      
              Reviewed by Dan Bernstein, Tim Hatcher, Anders Carlsson, and Darin Adler.
      
              WebCore part of fix for <rdar://problem/3709505>
              Safari should have a way to upload bundles from the file upload control (as zip)
      
              * WebCore.base.exp: Added symbols.
      
              * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::formData): Ask the application if a file will need to be replaced before it's uploaded.
                It will also give the replacement filename which is used to determine the correct mime-type and to construct the correct header.
      
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::submitForm): Asks the application to generate any files for the form data before a form submission starts.
              (WebCore::FrameLoader::loadItem): ditto.
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::didReceiveResponse): Tells the FormData from the request to remove any generated files if it needs to.
              (WebCore::ResourceLoader::didCancel): ditto.
              (WebCore::ResourceLoader::didFail): ditto.
      
              * platform/network/FormData.cpp:
              (WebCore::FormData::FormData): Initializes m_hasGeneratedFiles, which keeps track of whether there are files that will need to be removed.
              (WebCore::FormData::~FormData): Added.  Assert that there are no files that need to be removed, but if there are, release builds will still remove them here.
              (WebCore::FormData::appendFile): Passes along a shouldGenerateFile flag to the FormDataElement.
              (WebCore::FormData::generateFiles): Added. Iterates through the FormDataElements, and using the ChromeClient pointer, asks the application to
               create any compressed files so the FormDataElements can store the paths.
              (WebCore::FormData::removeGeneratedFilesIfNeeded): Added.  Removes generated files and their directories (if empty).
              * platform/network/FormData.h:
              (WebCore::FormDataElement::FormDataElement): Added a boolean to track whether the file will need to be generated,
               and a string to hold the path of the generated file.
      
              * platform/network/mac/FormDataStreamMac.mm:
              (WebCore::advanceCurrentStream): Uses the generated file path instead of the original file path when streaming the file.
              (WebCore::setHTTPBody): Uses the generated file path when determining the size of the file to be uploaded.
      
              * platform/FileSystem.h: Added directoryName.
              * platform/posix/FileSystemPOSIX.cpp: (WebCore::directoryName): Added.
              * platform/gtk/FileSystemGtk.cpp: (WebCore::directoryName): Added empty implementation.
              * platform/qt/FileSystemQt.cpp: (WebCore::directoryName): ditto.
              * platform/win/FileSystemWin.cpp: (WebCore::directoryName): ditto.
              * platform/wx/FileSystemWx.cpp: (WebCore::directoryName): ditto.
      
              Added new ChromeClient methods to give the application control over the file compression for uploading.
              * page/Chrome.cpp:
              (WebCore::ChromeClient::shouldReplaceWithGeneratedFileForUpload): Added a default implementation.
              (WebCore::ChromeClient::generateReplacementFile): ditto.
              * page/ChromeClient.h:
      
      WebKit/mac:
      
      2008-04-28  Adele Peterson  <adele@apple.com>
      
              Reviewed by Dan Bernstein, Tim Hatcher, Anders Carlsson, and Darin Adler.
      
              WebKit part of fix for <rdar://problem/3709505>
              Safari should have a way to upload bundles from the file upload control (as zip)
      
              Added UIDelegate methods to let the application handle generating replacement files for uploads.
              In this case, Safari will create archived files for bundles so they can be uploaded properly.
      
              * DefaultDelegates/WebDefaultUIDelegate.m:
              (-[WebDefaultUIDelegate webView:shouldReplaceUploadFile:usingGeneratedFilename:]):
              (-[WebDefaultUIDelegate webView:generateReplacementFile:]):
              * WebCoreSupport/WebChromeClient.h:
              * WebCoreSupport/WebChromeClient.mm:
              (WebChromeClient::shouldReplaceWithGeneratedFileForUpload):
              (WebChromeClient::generateReplacementFile):
              * WebView/WebUIDelegatePrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f3d6b894
    • andersca@apple.com's avatar
      WebCore: · 321e25f7
      andersca@apple.com authored
      2008-04-28  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Sam, Mark, Adele and Darin.
      
              Add a (currently not called) method for opening the application cache database.
              
              * WebCore.base.exp:
              * loader/appcache/ApplicationCacheStorage.cpp:
              (WebCore::ApplicationCacheStorage::setCacheDirectory):
              (WebCore::ApplicationCacheStorage::openDatabase):
              * loader/appcache/ApplicationCacheStorage.h:
      
      WebKit/mac:
      
      2008-04-28  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Sam, Mark, Adele and Darin.
      
              Initialize the application cache path.
              
              * WebView/WebView.mm:
              (WebKitInitializeApplicationCachePathIfNecessary):
              (-[WebView _commonInitializationWithFrameName:groupName:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      321e25f7
  14. 26 Apr, 2008 1 commit
    • weinig@apple.com's avatar
      WebCore: · 205006ed
      weinig@apple.com authored
      2008-04-26  Adam Barth  <hk9565@gmail.com>
      
              Reviewed by Adam Roben and Sam Weinig.
      
              Fixes bug http://bugs.webkit.org/show_bug.cgi?id=17331
              Fixes bug http://bugs.webkit.org/show_bug.cgi?id=16848
              
              Updates postMessage implementation to match HTML 5 specification:
              1) Adds origin parameter to postMessage.
              2) Removes domain and uri attributes of MessageEvent in favor of
                 origin attribute.
      
              In order to do this correctly, we need to distinguish between hosts and domains
              in the SecurityOrigin class. There are now three ways to compare security origins:
              1) isSameSchemeHostPort compares scheme, host, and port, and is used for postMessage
              2) equal compares all aspects of the security origin, and is used for hash keys
              3) canAccess understands the semantics of schemes such as file:// and data:// URLs,
                 and should be used for scripting access checks.
      
              Changed SecurityOrigin::toString() to generate identifiers that are suitable for 
              being used as a MessageEvent's origin property. In the future, they could be used 
              as database string identifiers as well. Re-used KURL parser to parse serialized 
              SecurityOrigins.
      
              Collin Jackson <collinj-webkit@collinjackson.com> also contributed to this patch.
              
              Tests: http/tests/security/postMessage/invalid-origin-throws-exception.html
                     http/tests/security/postMessage/javascript-page-still-sends-origin.html
                     http/tests/security/postMessage/origin-unaffected-by-base-tag.html
                     http/tests/security/postMessage/origin-unaffected-by-document-domain.html
                     http/tests/security/postMessage/target-origin.html
      
              * WebCore.base.exp:
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::postMessage):
              * dom/Document.cpp:
              (WebCore::Document::domain):
              * dom/MessageEvent.cpp:
              (WebCore::MessageEvent::MessageEvent):
              (WebCore::MessageEvent::initMessageEvent):
              * dom/MessageEvent.h:
              (WebCore::MessageEvent::origin):
              * dom/MessageEvent.idl:
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::checkOrigin):
              (WebCore::CanvasRenderingContext2D::createPattern):
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::postMessage):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
              * platform/SecurityOrigin.cpp:
              (WebCore::SecurityOrigin::SecurityOrigin):
              (WebCore::SecurityOrigin::create):
              (WebCore::SecurityOrigin::createForFrame):
              (WebCore::SecurityOrigin::copy):
              (WebCore::SecurityOrigin::setDomainFromDOM):
              (WebCore::SecurityOrigin::canAccess):
              (WebCore::SecurityOrigin::isSecureTransitionTo):
              (WebCore::SecurityOrigin::toString):
              (WebCore::SecurityOrigin::createFromString):
              (WebCore::SecurityOrigin::createFromDatabaseIdentifier):
              (WebCore::SecurityOrigin::databaseIdentifier):
              (WebCore::SecurityOrigin::equal):
              (WebCore::SecurityOrigin::isSameSchemeHostPort):
              * platform/SecurityOrigin.h:
              (WebCore::SecurityOrigin::host):
              (WebCore::SecurityOrigin::domain):
              * platform/SecurityOriginHash.h:
              (WebCore::SecurityOriginTraits::deletedValue):
              * storage/DatabaseTracker.cpp:
              (WebCore::DatabaseTracker::hasEntryForDatabase):
              (WebCore::DatabaseTracker::originPath):
              (WebCore::DatabaseTracker::fullPathForDatabase):
              (WebCore::DatabaseTracker::populateOrigins):
              (WebCore::DatabaseTracker::databaseNamesForOrigin):
              (WebCore::DatabaseTracker::detailsForNameAndOrigin):
              (WebCore::DatabaseTracker::setDatabaseDetails):
              (WebCore::DatabaseTracker::setQuota):
              (WebCore::DatabaseTracker::addDatabase):
              (WebCore::DatabaseTracker::deleteOrigin):
              (WebCore::DatabaseTracker::deleteDatabase):
      
      WebKit/mac:
      
      2008-04-20 Adam Barth <hk9565@gmail.com>
      
              Reviewed by Adam Roben and Sam Weinig.
      
              Updated WebSecurityOrigin to match new SecurityOrigin API.
      
              Collin Jackson <collinj-webkit@collinjackson.com> also contributed to this patch.
      
              * Storage/WebSecurityOrigin.mm:
              (-[WebSecurityOrigin host]):
              (-[WebSecurityOrigin domain]):
              * Storage/WebSecurityOriginPrivate.h:
      
      WebKit/win:
      
      2008-04-26  Adam Barth <hk9565@gmail.com>
      
              Reviewed by Adam Roben and Sam Weinig.
      
              Renamed "domain" method to "host" to match SecurityOrigin.
      
              * Interfaces/IWebSecurityOrigin.idl:
              * WebSecurityOrigin.cpp:
              (WebSecurityOrigin::host):
              * WebSecurityOrigin.h:
      
      WebKitTools:
      
      2008-04-26  Adam Barth <hk9565@gmail.com>
      
              Reviewed by Adam Roben and Sam Weinig.
      
              Updates LayoutTestController to use host instead of domain.
      
              Collin Jackson <collinj-webkit@collinjackson.com> also contributed to this patch.
      
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              (LayoutTestController::setDatabaseQuota):
              * DumpRenderTree/mac/UIDelegate.mm:
              (-[UIDelegate webView:frame:exceededDatabaseQuotaForSecurityOrigin:database:]):
      
      LayoutTests:
      
      2008-04-26  Adam Barth  <hk9565@gmail.com>
      
              Reviewed by Adam Roben and Sam Weinig.
      
              Update LayoutTests for new postMessage API.
      
              Collin Jackson <collinj-webkit@collinjackson.com> also contributed to this patch.
      
              * http/tests/security/postMessage/domain-and-uri-unaffected-by-base-tag-expected.txt: Removed.
              * http/tests/security/postMessage/domain-and-uri-unaffected-by-base-tag.html: Removed.
              * http/tests/security/postMessage/domain-unaffected-by-document-domain-expected.txt: Removed.
              * http/tests/security/postMessage/domain-unaffected-by-document-domain.html: Removed.
              * http/tests/security/postMessage/invalid-origin-throws-exception-expected.txt: Added.
              * http/tests/security/postMessage/invalid-origin-throws-exception.html: Added.
              * http/tests/security/postMessage/javascript-page-still-sends-domain-expected.txt: Removed.
              * http/tests/security/postMessage/javascript-page-still-sends-domain.html: Removed.
              * http/tests/security/postMessage/javascript-page-still-sends-origin-expected.txt: Copied from LayoutTests/http/tests/security/postMessage/javascript-page-still-sends-domain-expected.txt.
              * http/tests/security/postMessage/javascript-page-still-sends-origin.html: Copied from LayoutTests/http/tests/security/postMessage/javascript-page-still-sends-domain.html.
              * http/tests/security/postMessage/origin-unaffected-by-base-tag-expected.txt: Copied from LayoutTests/http/tests/security/postMessage/domain-and-uri-unaffected-by-base-tag-expected.txt.
              * http/tests/security/postMessage/origin-unaffected-by-base-tag.html: Copied from LayoutTests/http/tests/security/postMessage/domain-and-uri-unaffected-by-base-tag.html.
              * http/tests/security/postMessage/origin-unaffected-by-document-domain-expected.txt: Copied from LayoutTests/http/tests/security/postMessage/domain-unaffected-by-document-domain-expected.txt.
              * http/tests/security/postMessage/origin-unaffected-by-document-domain.html: Copied from LayoutTests/http/tests/security/postMessage/domain-unaffected-by-document-domain.html.
              * http/tests/security/postMessage/target-origin-expected.txt: Added.
              * http/tests/security/postMessage/target-origin.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32597 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      205006ed
  15. 25 Apr, 2008 2 commits
    • andersca@apple.com's avatar
      WebCore: · c3a561b4
      andersca@apple.com authored
      2008-04-25  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Sam.
      
              Add and honor offlineWebApplicationCacheEnabled setting.
              
              * WebCore.base.exp:
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::scheduleApplicationCacheLoad):
              * loader/MainResourceLoader.cpp:
              (WebCore::MainResourceLoader::load):
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::selectCache):
              (WebCore::ApplicationCacheGroup::selectCacheWithoutManifestURL):
              * page/Settings.cpp:
              (WebCore::Settings::Settings):
              (WebCore::Settings::setOfflineWebApplicationCacheEnabled):
              * page/Settings.h:
              (WebCore::Settings::offlineWebApplicationCacheEnabled):
      
      WebKit/mac:
      
      2008-04-25  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by Sam.
      
              Add offlineWebApplicationCacheEnabled preference.
              
              * WebView/WebPreferenceKeysPrivate.h:
              * WebView/WebPreferences.m:
              (+[WebPreferences initialize]):
              (-[WebPreferences offlineWebApplicationCacheEnabled]):
              (-[WebPreferences setOfflineWebApplicationCacheEnabled:]):
              * WebView/WebPreferencesPrivate.h:
              * WebView/WebView.mm:
              (-[WebView _updateSettingsFromPreferences:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32581 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c3a561b4
    • mrowe@apple.com's avatar
      2008-04-24 Mark Rowe <mrowe@apple.com> · 2b2670b7
      mrowe@apple.com authored
              Rubber-stamped by Oliver Hunt.
      
              * WebCore.base.exp: Remove two symbols from the export list that don't need to be exported.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b2670b7
  16. 24 Apr, 2008 3 commits
    • mrowe@apple.com's avatar
      Remove code for calculating the glyph cache size. · f248276b
      mrowe@apple.com authored
      Reviewed by Sam Weinig.
      
      WebCore:
      * WebCore.base.exp: Remove unused symbol.
      * platform/graphics/mac/FontCacheMac.mm: Remove code that is unused now that we do not compute the glyph cache size.
      * platform/mac/WebCoreSystemInterface.h: Remove unused symbol.
      * platform/mac/WebCoreSystemInterface.mm: Ditto.
      
      WebKit:
      * WebCoreSupport/WebSystemInterface.m:
      (InitWebCoreSystemInterface): Remove unused symbol.
      
      WebKitSystemInterface:
      * WebKitSystemInterface.h: Remove unused symbol.
      * libWebKitSystemInterfaceLeopard.a:
      * libWebKitSystemInterfaceTiger.a:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f248276b
    • beidson@apple.com's avatar
      2008-04-24 Brady Eidson <beidson@apple.com> · ab528fba
      beidson@apple.com authored
              Reviewed by Teh Mitzpettel
      
              Make it so PageGroups know what their own name is.
      
              * WebCore.base.exp:
      
              * page/Page.cpp:
              (WebCore::Page::setGroupName):
              (WebCore::Page::groupName):
              * page/Page.h:
      
              * page/PageGroup.cpp: Move the PageGroupMap into the PageGroup class.
              (WebCore::PageGroup::PageGroup): Added a c'tor that takes the group name as an argument instead of
                the initial Page.
              (WebCore::PageGroup::pageGroup): Handles creating and mapping names to groups
              * page/PageGroup.h:
              (WebCore::PageGroup::name):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32524 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ab528fba
    • mitz@apple.com's avatar
      WebCore: · 576e84e8
      mitz@apple.com authored
              Reviewed by Darin Adler.
      
              - preparation for https://bugs.webkit.org/show_bug.cgi?id=3729
                <rdar://problem/4036353> REGRESSION: arrow keys move insertion bar backwards in RTL text
      
              The three main changes in this patch are:
      
              1) Making all inline boxes know their bidi level, instead of just text
                 boxes knowing whether their bidi level is odd or even. This is
                 required for the next change.
      
              2) Replacing RenderObject::inlineBox() with
                 Position::getInlineBoxAndOffset() in recognition of the fact that the
                 inline box containing the primary caret for a position in a given
                 node may belong to a different node's renderer.
      
              3) Changing RenderObject::caretRect() to take an InlineBox parameter,
                 and changing callers to call VisiblePosition::caretRect(), which
                 locates the inline box, then calls caretRect() on the renderer for
                 that box. This, combined with the previous change, ensures that the
                 primary caret is rendered at the right place for positions that
                 lie on a directionality boundary.
      
              Test: platform/mac/editing/input/caret-primary-bidi.html
      
              * WebCore.base.exp: Added the VisiblePosition(Node*, int, EAffinity)
              constructor and VisiblePosition::caretRect(), and sorted.
      
              * dom/Position.cpp:
              (WebCore::nextRenderedEditable): Adjusted for the removal of
              RenderObject::inlineBox().
              (WebCore::previousRenderedEditable): Ditto.
              (WebCore::Position::rendersInDifferentPosition): Ditto.
              (WebCore::Position::getInlineBoxAndOffset): Added. Gets the inline box
              and the offset within that box at which the primary caret for this
              position should render.
      
              * dom/Position.h:
      
              * editing/DeleteSelectionCommand.cpp:
              (WebCore::DeleteSelectionCommand::mergeParagraphs): Changed to call
              VisiblePosition::caretRect() instead of calling the RenderObject method.
      
              * editing/SelectionController.cpp:
              (WebCore::caretY): Ditto.
              (WebCore::SelectionController::xPosForVerticalArrowNavigation): Ditto.
              (WebCore::SelectionController::layout): Ditto.
      
              * editing/VisiblePosition.cpp:
              (WebCore::VisiblePosition::caretRect): Changed to call
              getInlineBoxAndOffset() to get the correct inline box and call the
              renderer for that box.
      
              * editing/VisiblePosition.h:
              (WebCore::VisiblePosition::getInlineBoxAndOffset): Added convenience
              methods for getting the inline box and caret offset for a visible
              position, accounting for its affinity.
      
              * editing/visible_units.cpp:
              (WebCore::rootBoxForLine): Changed to use getInlineBoxAndOffset()
              instead of RenderObject::inlineBox().
              (WebCore::startPositionForLine):
              (WebCore::endPositionForLine):
              (WebCore::previousLinePosition): Ditto.
              (WebCore::nextLinePosition): Ditto.
      
              * page/AccessibilityObject.cpp:
              (WebCore::updateAXLineStartForVisiblePosition): Ditto.
      
              * page/Frame.cpp:
              (WebCore::Frame::firstRectForRange): Ditto.
      
              * rendering/InlineBox.cpp:
              (WebCore::InlineBox::caretMinOffset): Changed to forward to the
              renderer.
              (WebCore::InlineBox::caretMaxOffset): Ditto.
              * rendering/InlineBox.h: Replaced the m_reversed bit, intended for use
              in InlineTextBox only, with six bits of the bidi level of the box,
              intended for use in all leaf inline boxes.
              (WebCore::InlineBox::InlineBox): Added missing initializer for
              m_dirOverride and initialized the bidi level.
              (WebCore::InlineBox::bidiLevel): Added this accessor.
              (WebCore::InlineBox::setBidiLevel): Ditto.
              (WebCore::InlineBox::direction): Ditto.
              (WebCore::InlineBox::caretLeftmostOffset): Added this convenience
              method.
              (WebCore::InlineBox::caretRightmostOffset): Ditto.
      
              * rendering/InlineTextBox.cpp: Replaced all references to m_reversed
              with checking of direction().
              (WebCore::InlineTextBox::selectionRect):
              (WebCore::InlineTextBox::placeEllipsisBox):
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintSelection):
              (WebCore::InlineTextBox::paintCompositionBackground):
              (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::textPos):
              (WebCore::InlineTextBox::offsetForPosition):
              (WebCore::InlineTextBox::positionForOffset):
      
              * rendering/RenderBR.cpp: Removed inlineBox().
              * rendering/RenderBR.h: Ditto.
      
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::caretRect): Changed to take an inline box and
              account for the direction of the box (or the renderer) in positioning
              the caret: in right-to-left boxes, the "before" position is to the right
              while "after" is to the left.
              * rendering/RenderBox.h:
      
              * rendering/RenderFlow.cpp:
              (WebCore::RenderFlow::caretRect): Updated the signature.
              * rendering/RenderFlow.h:
      
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::caretRect): Updated the signature.
              (WebCore::RenderObject::caretMaxOffset): Changed to return the child
              node count (or 1 if there are no children) for replaced elements, such
              as <select>s.
              * rendering/RenderObject.h:
      
              * rendering/RenderReplaced.cpp: Removed caretMinOffset() and
              caretMaxOffset() because the base class implementation does the right
              thing for replaced objects now.
              * rendering/RenderReplaced.h:
      
              * rendering/RenderSVGInlineText.cpp:
              (WebCore::RenderSVGInlineText::caretRect): Updated the signature.
              (WebCore::RenderSVGInlineText::positionForCoordinates): Updated for
              the change from m_reversed to direction().
              * rendering/RenderSVGInlineText.h:
      
              * rendering/RenderText.cpp:
              (WebCore::RenderText::caretRect): Changed to take an inline box and
              removed the code that used to find the inline for the given position.
              Changed use of m_reversed to use direction().
              (WebCore::RenderText::position): Changed use of m_reversed to use
              direction().
              * rendering/RenderText.h:
      
              * rendering/RenderTextControl.cpp:
              (WebCore::RenderTextControl::textWithHardLineBreaks): Adjusted for the
              removal of RenderObject::inlineBox().
      
              * rendering/RenderTreeAsText.cpp:
              (WebCore::writeTextRun): Changed to use direction() instead of
              m_reversed.
      
              * rendering/SVGInlineTextBox.cpp: Ditto.
              (WebCore::SVGInlineTextBox::calculateGlyphBoundaries):
              (WebCore::SVGInlineTextBoxClosestCharacterToPositionWalker::chunkPortionCallback):
              (WebCore::SVGInlineTextBox::svgCharacterHitsPosition):
      
              * rendering/SVGRenderTreeAsText.cpp: Ditto.
              (WebCore::writeSVGInlineTextBox):
      
              * rendering/SVGRootInlineBox.cpp: Ditto.
              (WebCore::svgTextRunForInlineTextBox):
              (WebCore::cummulatedWidthOrHeightOfTextChunk):
              (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
      
              * rendering/bidi.cpp:
              (WebCore::RenderBlock::constructLine): Made this function set the
              bidi level on all leaf boxes.
      
              * svg/SVGTextContentElement.cpp: Changed to use direction() instead of
              m_reversed.
              (WebCore::cumulativeCharacterRangeLength):
              (WebCore::SVGInlineTextBoxQueryWalker::chunkPortionCallback):
      
      WebKit/mac:
      
              Reviewed by Darin Adler.
      
              - preparation for https://bugs.webkit.org/show_bug.cgi?id=3729
                <rdar://problem/4036353> REGRESSION: arrow keys move insertion bar backwards in RTL text
      
              * WebView/WebFrame.mm:
              (-[WebFrame _caretRectAtNode:offset:affinity:]): Changed to use
              VisiblePosition::caretRect() instead of the RenderObject method which
              was removed.
      
      LayoutTests:
      
              Reviewed by Darin Adler.
      
              - test the visual position of the primary caret in bidirectional text
      
              * platform/mac/editing/input/caret-primary-bidi-expected.txt: Added.
              * platform/mac/editing/input/caret-primary-bidi.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32508 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      576e84e8
  17. 21 Apr, 2008 1 commit
    • eric@webkit.org's avatar
      Reviewed by eseidel. Landed by eseidel. · 14774f44
      eric@webkit.org authored
              Add FrameLoader::policyDocumentLoader, and change
              provisionalDocumentLoader to have a const signature to be
              consistent with documentLoader and activeDocumentLoader.
      
              * WebCore.base.exp:
              * WebCore.order:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::policyDocumentLoader):
              (WebCore::FrameLoader::provisionalDocumentLoader):
              * loader/FrameLoader.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32320 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      14774f44
  18. 19 Apr, 2008 1 commit
    • beidson@apple.com's avatar
      WebCore: · b2da40e5
      beidson@apple.com authored
      2008-04-19  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Tim Hatcher
      
              Add LocalStorageDatabasePath to the settings for the location of persistent local storage.
      
              * WebCore.base.exp:
      
              * page/Settings.cpp:
              (WebCore::Settings::setLocalStorageDatabasePath):
              * page/Settings.h:
              (WebCore::Settings::localStorageDatabasePath):
      
      WebKit/mac:
      
      2008-04-19  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Tim Hatcher
      
              Add a WebPreference for the path of the local storage persistent store.
      
              * WebView/WebPreferenceKeysPrivate.h:
      
              * WebView/WebPreferences.m:
              (-[WebPreferences _localStorageDatabasePath]):
              (-[WebPreferences _setLocalStorageDatabasePath:]):
              * WebView/WebPreferencesPrivate.h:
      
              * WebView/WebView.mm:
              (-[WebView _preferencesChangedNotification:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b2da40e5
  19. 18 Apr, 2008 1 commit
    • eric@webkit.org's avatar
      Reviewed by beth. · 25a1cdf3
      eric@webkit.org authored
              Rename Frame::renderer() to contentRenderer() and fix uses.
      
              * WebCore.base.exp:
              * editing/Editor.cpp:
              (WebCore::Editor::respondToChangedContents):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::gotoAnchor):
              * page/DragController.cpp:
              (WebCore::DragController::canProcessDrag):
              (WebCore::DragController::mayStartDragAtEventLocation):
              (WebCore::DragController::startDrag):
              * page/EventHandler.cpp:
              (WebCore::EventHandler::eventMayStartDrag):
              (WebCore::EventHandler::updateSelectionForMouseDrag):
              (WebCore::EventHandler::hitTestResultAtPoint):
              (WebCore::EventHandler::hoverTimerFired):
              (WebCore::EventHandler::handleDrag):
              * page/Frame.cpp:
              (WebCore::Frame::selectionLayoutChanged):
              (WebCore::Frame::contentRenderer):
              (WebCore::Frame::paint):
              (WebCore::Frame::markAllMatchesForText):
              (WebCore::Frame::documentAtPoint):
              * page/Frame.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::~FrameView):
              (WebCore::FrameView::adjustViewSize):
              (WebCore::FrameView::layout):
              (WebCore::FrameView::scheduleRelayoutOfSubtree):
              (WebCore::FrameView::needsLayout):
              (WebCore::FrameView::setNeedsLayout):
              (WebCore::FrameView::updateControlTints):
              * rendering/RenderTreeAsText.cpp:
              (WebCore::write):
              * svg/graphics/SVGImage.cpp:
              (WebCore::SVGImage::nativeImageForCurrentFrame):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      25a1cdf3
  20. 14 Apr, 2008 1 commit
    • beidson@apple.com's avatar
      WebCore: · 21c04acd
      beidson@apple.com authored
      2008-04-14  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Anders
      
              Lay the underpinnings for LocalStorage.
      
              For now, this just exposes window.localStorage to the dom which returns an in-memory Storage object, much
              like SessionStorage.  The primary difference at this point is that the object returned is shared globally,
              and isn't copied for new top-level browsing contexts like SessionStorage.
      
              Later, I'll add proper event dispatch and a persistent storage backing.
      
              * GNUmakefile.am:
              * WebCore.base.exp:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
      
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::mark): Mark the optionalLocalStorage
      
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::clear):
              (WebCore::DOMWindow::localStorage):
              * page/DOMWindow.h:
              (WebCore::DOMWindow::optionalLocalStorage):
      
              * storage/LocalStorage.cpp: Added.
              (WebCore::LocalStorage::sharedLocalStorage):
              (WebCore::LocalStorage::LocalStorage):
              (WebCore::LocalStorage::storageArea):
              (WebCore::LocalStorage::itemChanged):
              (WebCore::LocalStorage::itemRemoved):
              (WebCore::LocalStorage::dispatchStorageEvent):
              * storage/LocalStorage.h: Added.
      
              * storage/SessionStorage.cpp: Refactor to use the client interface for event dispatching for sessionStorage objects
              (WebCore::SessionStorage::SessionStorage):
              (WebCore::SessionStorage::copy):
              (WebCore::SessionStorage::storageArea):
              (WebCore::SessionStorage::itemChanged):
              (WebCore::SessionStorage::itemRemoved):
              (WebCore::SessionStorage::dispatchStorageEvent):
              * storage/SessionStorage.h:
      
              * storage/StorageArea.cpp: Add a client parameter, and call to the client when an item is changed or removed.
              (WebCore::StorageArea::create):
              (WebCore::StorageArea::StorageArea):
              (WebCore::StorageArea::copy):
              (WebCore::StorageArea::setItem):
              (WebCore::StorageArea::removeItem):
              (WebCore::StorageArea::setClient):
              * storage/StorageArea.h:
              (WebCore::StorageArea::page):
              (WebCore::StorageArea::securityOrigin):
      
              * storage/StorageAreaClient.h: Added.  Break out "itemChanged" and "itemRemoved" to a StorageAreaClient
                This way, both SessionStorage and LocalStorage areas can have different behavior on changes with
                that behavior managed from a central location.
              (WebCore::StorageAreaClient::~StorageAreaClient):
              (WebCore::StorageAreaClient::StorageAreaClient):
              (WebCore::StorageAreaClient::itemChanged):
              (WebCore::StorageAreaClient::itemRemoved):
      
      LayoutTests:
      
      2008-04-14  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Anders
      
              As underpinnings for LocalStorage are laid, it is exposed to the dom - update the relevant layout tests.
      
              * fast/dom/Window/window-properties-expected.txt:
              * storage/domstorage/window-attributes-exist-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31893 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      21c04acd
  21. 11 Apr, 2008 2 commits
    • hyatt@apple.com's avatar
      WebCore: · 2c814c47
      hyatt@apple.com authored
      2008-04-11  David Hyatt  <hyatt@apple.com>
      
              Rename CachedResource's ref/deref methods to addClient/removeClient.  This matches the new
              StyleImage class and is a more accurate description of what those methods really do.
      
              Reviewed by olliej
      
              * WebCore.base.exp:
              * css/CSSCursorImageValue.cpp:
              (WebCore::CSSCursorImageValue::updateIfSVGCursorIsUsed):
              * css/CSSFontFaceSource.cpp:
              (WebCore::CSSFontFaceSource::CSSFontFaceSource):
              (WebCore::CSSFontFaceSource::~CSSFontFaceSource):
              * css/CSSImageValue.cpp:
              (WebCore::CSSImageValue::~CSSImageValue):
              (WebCore::CSSImageValue::image):
              * css/CSSImportRule.cpp:
              (WebCore::CSSImportRule::~CSSImportRule):
              (WebCore::CSSImportRule::insertedIntoParent):
              * dom/ProcessingInstruction.cpp:
              (WebCore::ProcessingInstruction::~ProcessingInstruction):
              (WebCore::ProcessingInstruction::checkStyleSheet):
              (WebCore::ProcessingInstruction::parseStyleSheet):
              * dom/XMLTokenizer.cpp:
              (WebCore::XMLTokenizer::~XMLTokenizer):
              (WebCore::XMLTokenizer::endElementNs):
              (WebCore::XMLTokenizer::notifyFinished):
              * html/CanvasPattern.cpp:
              (WebCore::CanvasPattern::CanvasPattern):
              (WebCore::CanvasPattern::~CanvasPattern):
              * html/HTMLImageLoader.cpp:
              (WebCore::HTMLImageLoader::~HTMLImageLoader):
              (WebCore::HTMLImageLoader::setImage):
              (WebCore::HTMLImageLoader::updateFromElement):
              * html/HTMLLinkElement.cpp:
              (WebCore::HTMLLinkElement::~HTMLLinkElement):
              (WebCore::HTMLLinkElement::process):
              * html/HTMLScriptElement.cpp:
              (WebCore::HTMLScriptElement::~HTMLScriptElement):
              (WebCore::HTMLScriptElement::parseMappedAttribute):
              (WebCore::HTMLScriptElement::insertedIntoDocument):
              (WebCore::HTMLScriptElement::removedFromDocument):
              (WebCore::HTMLScriptElement::notifyFinished):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::reset):
              (WebCore::HTMLTokenizer::scriptHandler):
              (WebCore::HTMLTokenizer::notifyFinished):
              * loader/CachedCSSStyleSheet.cpp:
              (WebCore::CachedCSSStyleSheet::addClient):
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedFont.cpp:
              (WebCore::CachedFont::addClient):
              * loader/CachedFont.h:
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::addClient):
              * loader/CachedImage.h:
              * loader/CachedResource.cpp:
              (WebCore::CachedResource::addClient):
              (WebCore::CachedResource::removeClient):
              * loader/CachedResource.h:
              * loader/CachedScript.cpp:
              (WebCore::CachedScript::addClient):
              * loader/CachedScript.h:
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              (WebCore::CachedXSLStyleSheet::addClient):
              * loader/CachedXSLStyleSheet.h:
              * loader/mac/UserStyleSheetLoader.cpp:
              (UserStyleSheetLoader::UserStyleSheetLoader):
              (UserStyleSheetLoader::~UserStyleSheetLoader):
              * platform/mac/ClipboardMac.mm:
              (WebCore::ClipboardMac::setDragImage):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::~RenderImage):
              (WebCore::RenderImage::setCachedImage):
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::~RenderListMarker):
              (WebCore::RenderListMarker::setStyle):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::updateBackgroundImages):
              (WebCore::RenderObject::arenaDelete):
              * rendering/RenderStyle.cpp:
              (WebCore::StyleCachedImage::addClient):
              (WebCore::StyleCachedImage::removeClient):
              * svg/SVGImageLoader.cpp:
              (WebCore::SVGImageLoader::updateFromElement):
              * xml/XSLImportRule.cpp:
              (WebCore::XSLImportRule::~XSLImportRule):
              (WebCore::XSLImportRule::loadSheet):
      
      WebKit/mac:
      
      2008-04-11  David Hyatt  <hyatt@apple.com>
      
              Rename CachedResource ref/deref methods to addClient/removeClient.
      
              Reviewed by olliej
      
              * WebView/WebHTMLView.mm:
              (-[WebHTMLViewPrivate dealloc]):
              (-[WebHTMLViewPrivate finalize]):
              (-[WebHTMLViewPrivate clear]):
              (-[WebHTMLView setPromisedDragTIFFDataSource:WebCore::]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31834 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2c814c47
    • andersca@apple.com's avatar
      2008-04-11 Anders Carlsson <andersca@apple.com> · 471c8007
      andersca@apple.com authored
              Fix release build.
              
              * WebCore.base.exp:
              
              * loader/archive/ArchiveResource.h:
              (WebCore::ArchiveResource::response):
              This should be const.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      471c8007
  22. 08 Apr, 2008 1 commit
    • weinig@apple.com's avatar
      JavaScriptCore: · 41dbaab8
      weinig@apple.com authored
      2008-04-04  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Geoffrey Garen.
      
              First step in implementing the "split window"
      
              - Add a GlobalThisValue to ExecState which should be used 
                in places that used to implement the "use the global object
                as this if null" rule.
              - Factor out lookupGetter/lookupSetter into virtual methods 
                on JSObject so that they can be forwarded.
              - Make defineGetter/defineSetter virtual methods for the same
                reason.
              - Have PrototypeReflexiveFunction store the globalObject used
                to create it so that it can be used to get the correct thisObject
                for eval.
      
              * API/JSObjectRef.cpp:
              (JSObjectCallAsFunction):
              * JavaScriptCore.exp:
              * kjs/Activation.h:
              * kjs/ExecState.cpp:
              (KJS::ExecState::ExecState):
              (KJS::GlobalExecState::GlobalExecState):
              * kjs/ExecState.h:
              (KJS::ExecState::globalThisValue):
              * kjs/ExecStateInlines.h:
              (KJS::ExecState::ExecState):
              (KJS::FunctionExecState::FunctionExecState):
              * kjs/JSGlobalObject.cpp:
              (KJS::JSGlobalObject::reset):
              (KJS::JSGlobalObject::toGlobalObject):
              * kjs/JSGlobalObject.h:
              (KJS::JSGlobalObject::JSGlobalObjectData::JSGlobalObjectData):
              (KJS::JSGlobalObject::JSGlobalObject):
              * kjs/array_instance.cpp:
              (KJS::CompareWithCompareFunctionArguments::CompareWithCompareFunctionArguments):
              (KJS::compareWithCompareFunctionForQSort):
              * kjs/array_object.cpp:
              (KJS::arrayProtoFuncSort):
              (KJS::arrayProtoFuncFilter):
              (KJS::arrayProtoFuncMap):
              (KJS::arrayProtoFuncEvery):
              (KJS::arrayProtoFuncForEach):
              (KJS::arrayProtoFuncSome):
              * kjs/function.cpp:
              (KJS::FunctionImp::callAsFunction):
              (KJS::ActivationImp::toThisObject):
              (KJS::globalFuncEval):
              (KJS::PrototypeReflexiveFunction::PrototypeReflexiveFunction):
              (KJS::PrototypeReflexiveFunction::mark):
              * kjs/function.h:
              (KJS::PrototypeReflexiveFunction::cachedGlobalObject):
              * kjs/function_object.cpp:
              (KJS::functionProtoFuncApply):
              (KJS::functionProtoFuncCall):
              * kjs/nodes.cpp:
              (KJS::ExpressionNode::resolveAndCall):
              (KJS::FunctionCallValueNode::evaluate):
              (KJS::LocalVarFunctionCallNode::inlineEvaluate):
              (KJS::ScopedVarFunctionCallNode::inlineEvaluate):
              (KJS::FunctionCallBracketNode::evaluate):
              (KJS::FunctionCallDotNode::inlineEvaluate):
              * kjs/object.cpp:
              (KJS::JSObject::call):
              (KJS::JSObject::put):
              (KJS::tryGetAndCallProperty):
              (KJS::JSObject::lookupGetter):
              (KJS::JSObject::lookupSetter):
              (KJS::JSObject::toThisObject):
              (KJS::JSObject::toGlobalObject):
              (KJS::JSObject::fillGetterPropertySlot):
              * kjs/object.h:
              * kjs/object_object.cpp:
              (KJS::objectProtoFuncLookupGetter):
              (KJS::objectProtoFuncLookupSetter):
              * kjs/string_object.cpp:
              (KJS::replace):
      
      WebCore:
      
      2008-04-04  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Geoffrey Garen.
      
              First step in implementing the "split window"
      
              - This patch takes the first step in changing the window navigation model
                from clearing the window properties on navigation, to replacing
                an inner window.  This is necessary to safely perform security checks
                using the lexical global object.
      
                This first step adds a new class called JSDOMWindowWrapper, which wraps
                the real window object.  All JS calls that would go to the window object
                now go to it, which it forwards to the current inner window.  To accomplish
                this, the wrapper window is used as the ThisValue wherever the window was used
                before.
      
              * WebCore.base.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSDOMWindowBase.cpp:
              (WebCore::JSDOMWindowBase::JSDOMWindowBase):
              (WebCore::JSDOMWindowBase::clear): Reset the wrapper windows prototype too.
              (WebCore::JSDOMWindowBase::toThisObject):
              (WebCore::JSDOMWindowBase::wrapper):
              (WebCore::windowProtoFuncAToB):
              (WebCore::windowProtoFuncBToA):
              (WebCore::windowProtoFuncOpen):
              (WebCore::windowProtoFuncSetTimeout):
              (WebCore::windowProtoFuncClearTimeout):
              (WebCore::windowProtoFuncSetInterval):
              (WebCore::windowProtoFuncAddEventListener):
              (WebCore::windowProtoFuncRemoveEventListener):
              (WebCore::windowProtoFuncShowModalDialog):
              (WebCore::windowProtoFuncNotImplemented):
              (WebCore::toJS):
              * bindings/js/JSDOMWindowBase.h:
              Fix to expect the wrapper as the thisObj.
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::postMessage):
              (WebCore::toDOMWindow):
              * bindings/js/JSDOMWindowWrapper.cpp: Added.
              (WebCore::):
              (WebCore::JSDOMWindowWrapper::JSDOMWindowWrapper):
              (WebCore::JSDOMWindowWrapper::~JSDOMWindowWrapper):
              (WebCore::JSDOMWindowWrapper::mark):
              (WebCore::JSDOMWindowWrapper::className):
              (WebCore::JSDOMWindowWrapper::getOwnPropertySlot):
              (WebCore::JSDOMWindowWrapper::put):
              (WebCore::JSDOMWindowWrapper::deleteProperty):
              (WebCore::JSDOMWindowWrapper::getPropertyNames):
              (WebCore::JSDOMWindowWrapper::getPropertyAttributes):
              (WebCore::JSDOMWindowWrapper::defineGetter):
              (WebCore::JSDOMWindowWrapper::defineSetter):
              (WebCore::JSDOMWindowWrapper::lookupGetter):
              (WebCore::JSDOMWindowWrapper::lookupSetter):
              (WebCore::JSDOMWindowWrapper::toGlobalObject):
              (WebCore::JSDOMWindowWrapper::impl):
              (WebCore::JSDOMWindowWrapper::disconnectFrame):
              (WebCore::JSDOMWindowWrapper::clear):
              (WebCore::toJS):
              * bindings/js/JSDOMWindowWrapper.h: Added.
              (WebCore::JSDOMWindowWrapper::innerWindow):
              (WebCore::JSDOMWindowWrapper::setInnerWindow):
              (WebCore::JSDOMWindowWrapper::classInfo):
              Forward methods to the innerWindow.
              * bindings/js/JSHTMLDocumentCustom.cpp:
              (WebCore::JSHTMLDocument::open):
              * bindings/js/ScheduledAction.cpp:
              (WebCore::ScheduledAction::execute):
              * bindings/js/kjs_events.cpp:
              (WebCore::JSAbstractEventListener::handleEvent):
              * bindings/js/kjs_proxy.cpp:
              (WebCore::KJSProxy::~KJSProxy):
              (WebCore::KJSProxy::evaluate):
              (WebCore::KJSProxy::clear):
              (WebCore::KJSProxy::initScript):
              (WebCore::KJSProxy::clearDocumentWrapper):
              (WebCore::KJSProxy::processingUserGesture):
              (WebCore::KJSProxy::attachDebugger):
              * bindings/js/kjs_proxy.h:
              (WebCore::KJSProxy::haveWindowWrapper):
              (WebCore::KJSProxy::windowWrapper):
              (WebCore::KJSProxy::globalObject):
              (WebCore::KJSProxy::initScriptIfNeeded):
              Hold onto the wrapper window instead of global object.  As a convenience,
              keep the globalObject() as a forward to the inner window.
              * bindings/objc/DOMUtility.mm:
              (KJS::createDOMWrapper):
              * bindings/scripts/CodeGeneratorJS.pm:
              * dom/Document.cpp:
              (WebCore::Document::domWindow):
              * dom/Document.h:
              (WebCore::Document::defaultView):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::dispatchWindowObjectAvailable):
              * page/DOMWindow.idl:
              * page/Frame.cpp:
              (WebCore::Frame::~Frame):
              (WebCore::Frame::pageDestroyed):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31746 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      41dbaab8
  23. 03 Apr, 2008 1 commit
  24. 01 Apr, 2008 1 commit
    • darin@apple.com's avatar
      2008-04-01 Darin Adler <darin@apple.com> · 98ac4575
      darin@apple.com authored
              Reviewed by Sam and Antti.
      
              - fix <rdar://problem/5829565> paste performance slowed down with the Range Acid3 changes
      
              Added a new class, RangeBoundaryPoint, to use for range boundary points. The "truth" of
              the offset is now stored as a node pointer, and the offset is computed as and when needed.
              This allows us to efficiently update when the DOM tree is changed -- computation of the
              node offsets is deferred until the Range is used later.
      
              * WebCore.base.exp: Export nodeIndex().
      
              * WebCore.xcodeproj/project.pbxproj: Added RangeBoundaryPoint.h, removed NodeWithIndexBefore.h
              and NodeWIthIndexAfter.h. Also let Xcode tweak the file formatting.
      
              * dom/ContainerNode.cpp:
              (WebCore::ContainerNode::childrenChanged): Pass fewer arguments to Document.
      
              * dom/Document.cpp:
              (WebCore::Document::nodeChildrenChanged): Pass fewer arguments to Range.
              (WebCore::Document::nodeWillBeRemoved): Pass node to range as a raw node pointer; no need for
              the index.
              * dom/Document.h: Take fewer arguments.
      
              * dom/NodeWithIndexAfter.h: Removed.
              * dom/NodeWithIndexBefore.h: Removed.
      
              * dom/Range.cpp:
              (WebCore::Range::Range): Changed to use the new RangeBoundaryPoint constructor.
              (WebCore::Range::create): Updated to use RangeBoundaryPoint instead of Position.
              (WebCore::Range::~Range): Ditto.
              (WebCore::Range::startContainer): Ditto.
              (WebCore::Range::startOffset): Ditto.
              (WebCore::Range::endContainer): Ditto.
              (WebCore::Range::endOffset): Ditto.
              (WebCore::Range::commonAncestorContainer): Ditto.
              (WebCore::Range::collapsed): Ditto.
              (WebCore::Range::setStart): Ditto.
              (WebCore::Range::setEnd): Ditto.
              (WebCore::Range::collapse): Ditto.
              (WebCore::Range::isPointInRange): Ditto.
              (WebCore::Range::comparePoint): Ditto.
              (WebCore::Range::compareNode): Ditto.
              (WebCore::Range::compareBoundaryPoints): Ditto.
              (WebCore::Range::boundaryPointsValid): Ditto.
              (WebCore::Range::intersectsNode): Ditto.
              (WebCore::Range::processContents): Ditto.
              (WebCore::Range::cloneContents): Ditto.
              (WebCore::Range::insertNode): Updated to use RangeBoundaryPoint. Also simplified the code
              at the end that updates the range -- not all of it is needed now since most of the fixup
              is done automatically by the range document mutation machinery. The one bit that remains
              is arguably a bug, but we need to keep it to keep passing Acid3 until we get clarification
              that it is indeed a bug (and then Acid3 will probably have to change).
              (WebCore::Range::toString): Update to use RangeBoundaryPoint instead of Position.
              (WebCore::Range::text): Ditto.
              (WebCore::Range::createContextualFragment): Ditto.
              (WebCore::Range::detach): Ditto.
              (WebCore::Range::checkNodeWOffset): Changed case where the offset is a node offset to
              be more efficient by using childNode instead of childNodeCount, and also return the node
              before which is needed to set the value of a RangeBoundaryPoint.
              (WebCore::Range::cloneRange): Ditto.
              (WebCore::Range::setStartAfter): Ditto.
              (WebCore::Range::setEndBefore): Ditto.
              (WebCore::Range::setEndAfter): Ditto.
              (WebCore::Range::selectNode): Ditto.
              (WebCore::Range::selectNodeContents): Ditto.
              (WebCore::Range::surroundContents): Ditto.
              (WebCore::Range::setStartBefore): Ditto.
              (WebCore::Range::checkDeleteExtract): Ditto.
              (WebCore::Range::containedByReadOnly): Ditto.
              (WebCore::Range::firstNode): Ditto.
              (WebCore::Range::editingStartPosition): Ditto.
              (WebCore::Range::pastLastNode): Ditto.
              (WebCore::Range::addLineBoxRects): Ditto.
              (WebCore::Range::formatForDebugger): Ditto.
              (WebCore::Range::maxStartOffset): Ditto.
              (WebCore::Range::maxEndOffset): Ditto.
              (WebCore::boundaryNodeChildrenChanged): Updated to use RangeBoundaryPoint instead of
              Position. Also changed name and changed to just call invalidateOffset.
              (WebCore::Range::nodeChildrenChanged): Changed to take just a container node.
              (WebCore::boundaryNodeWillBeRemoved): Updated to use RangeBoundaryPoint instead of
              Position. Also changed name and changed to update childBefore.
              (WebCore::Range::nodeWillBeRemoved): Changed to just take a Node*.
              (WebCore::boundaryTextInserted): Updated to use RangeBoundaryPoint instead of
              Position. Also changed name.
              (WebCore::Range::textInserted): Ditto.
              (WebCore::boundaryTextRemoved): Ditto.
              (WebCore::Range::textRemoved): Ditto.
              (WebCore::boundaryTextNodesMerged): Ditto.
              (WebCore::Range::textNodesMerged): Ditto.
              (WebCore::boundaryTextNodesSplit): Ditto.
              (WebCore::Range::textNodeSplit): Ditto.
      
              * dom/Range.h: Updated to use RangeBoundaryPoint instead of Position.
      
              * dom/RangeBoundaryPoint.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31549 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98ac4575
  25. 28 Mar, 2008 4 commits
    • beidson@apple.com's avatar
      WebCore: · 1f3e63cb
      beidson@apple.com authored
      2008-03-28  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin Adler
      
              More Kit->Core WebArchive changes.
      
              Create an archive from the current selection in a frame
      
              * WebCore.base.exp:
      
              * loader/archive/cf/LegacyWebArchive.cpp:
              (WebCore::LegacyWebArchive::createFromSelection):
              * loader/archive/cf/LegacyWebArchive.h:
      
      WebKit/mac:
      
      2008-03-28  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin Adler
      
              More Kit->Core WebArchive changes.
      
              Create an archive from the current selection in a frame
      
              * WebView/WebArchiver.mm: Remove one more *undeclared* method, the last method will drop off
                easily in a followup
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31419 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1f3e63cb
    • beidson@apple.com's avatar
      WebCore: · fe921ca2
      beidson@apple.com authored
      2008-03-28  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Sam Weinig
      
              WebArchive saga continues - Can now make archives from ranges in WebCore
      
              Again, previous layout test coverage exercised this code
      
              * WebCore.base.exp:
      
              * editing/markup.cpp:
              (WebCore::createFullMarkup): Added a "markup from range" variant that copies the previous WebKit implementation
              * editing/markup.h:
      
              * loader/archive/cf/LegacyWebArchive.cpp:
              (WebCore::LegacyWebArchive::create):
              * loader/archive/cf/LegacyWebArchive.h:
      
      WebKit/mac:
      
      2008-03-28  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Sam Weinig
      
              WebArchive saga continues - Can now make archives from ranges in WebCore
      
              * DOM/WebDOMOperations.mm:
              (-[DOMRange webArchive]):
              (-[DOMRange markupString]):
      
              * WebView/WebArchiver.h: Remove newly obsolete [WebArchiver archiveRange:]
              * WebView/WebArchiver.mm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31412 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fe921ca2
    • beidson@apple.com's avatar
      WebCore: · c170591d
      beidson@apple.com authored
      2008-03-28  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Sam Weinig
      
              More Kit->Core webarchive code movement
      
              * WebCore.base.exp:
              * editing/markup.cpp:
              (WebCore::createFullMarkup): Replacement for [DOMNode markupString], creating full markup at this node including 
                the document type string, which the WebKit implementation did indirectly
              * editing/markup.h:
      
      WebKit/mac:
      
      2008-03-28  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Sam Weinig
      
              More Kit->Core webarchive code movement
      
              * DOM/WebDOMOperations.mm:
              (-[DOMNode markupString]): Call createFullMarkup() instead
      
              * WebView/WebFrame.mm: Remove obsolete _markupStringFromNode
              * WebView/WebFrameInternal.h: Ditto
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31409 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c170591d
    • beidson@apple.com's avatar
      WebCore: · f4058d68
      beidson@apple.com authored
      2008-03-28  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin
      
              "Yet another transitional step" to empty out WebKit-based code for archiving.
      
              With this patch, the key operation of "Creating a WebArchive rooted at a single Node" takes place
              entirely within WebCore, and opens the door to saving WebArchives on Windows.
      
              This is another "zero behavior change" patch, and current editing/ and webarchive/ layout tests
              covered the relevant code
      
              * WebCore.base.exp:
              * loader/archive/cf/LegacyWebArchive.cpp:
              (WebCore::LegacyWebArchive::create):
              * loader/archive/cf/LegacyWebArchive.h:
      
      WebKit/mac:
      
      2008-03-28  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Darin
      
              "Yet another transitional step" to empty out WebKit-based code for archiving.
      
              With this patch, the key operation of "Creating a WebArchive rooted at a single Node" takes place
              entirely within WebCore, and opens the door to saving WebArchives on Windows.
      
              * DOM/WebDOMOperations.mm:
              * WebView/WebArchiver.mm:
              (+[WebArchiver _archiveWithMarkupString:fromFrame:nodes:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31400 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4058d68