1. 01 Oct, 2006 1 commit
  2. 30 Sep, 2006 2 commits
  3. 06 Sep, 2006 1 commit
    • darin's avatar
      Reviewed by Tim Hatcher. · be6eb6ba
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=10675
                tweak font-related headers and convert lists to vectors
      
              One major change was to greatly reduce the number of files that include Font.h.
              Another was to convert many uses of DeprecatedPtrList/DeprecatedValueList to Vector.
      
              * WebCore.xcodeproj/project.pbxproj: Added TextStyle.h.
      
              * bindings/objc/DOM.mm: (-[DOMElement _font]): Changed to not depend on
              Font::getNSFont since a WebCore::Font represents more than one NSFont.
      
              * bindings/objc/DOMNode.mm: (-[DOMNode lineBoxRects]): Updated to use Vector.
              * bridge/mac/FormDataMac.mm: (WebCore::arrayFromFormData): Ditto.
              * bridge/mac/FrameViewMac.mm: (WebCore::FrameView::updateDashboardRegions): Ditto.
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Ditto.
              * dom/Document.cpp:
              (WebCore::Document::dashboardRegions): Ditto.
              (WebCore::Document::setDashboardRegions): Ditto.
              * dom/Document.h: Ditto.
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplacementFragment::removeUnrenderedNodes): Ditto.
              * html/FormDataList.h: Ditto.
              * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::isFocusable): Ditto.
              * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::formData): Ditto.
              * kcanvas/RenderPath.cpp: (WebCore::RenderPath::absoluteRects): Ditto.
              * kcanvas/RenderPath.h: Ditto.
              * kcanvas/RenderSVGImage.cpp: (WebCore::RenderSVGImage::absoluteRects): Ditto.
              * kcanvas/RenderSVGImage.h: Ditto.
              * kcanvas/RenderSVGText.cpp: (WebCore::RenderSVGText::absoluteRects): Ditto.
              * kcanvas/RenderSVGText.h: Ditto.
              * loader/FormData.cpp:
              (WebCore::FormData::flatten): Ditto.
              (WebCore::FormData::flattenToString): Ditto.
              * loader/FormData.h: (WebCore::FormData::elements): Ditto.
              * loader/mac/LoaderFunctionsMac.mm: (WebCore::ServeSynchronousRequest): Ditto.
              * page/Frame.cpp: (WebCore::Frame::markedTextUnderlines): Ditto.
              * page/Frame.h: Ditto.
              * page/FramePrivate.h: Ditto.
              * platform/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::start): Ditto.
              * rendering/InlineTextBox.h: Ditto.
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paint): Ditto.
              (WebCore::InlineTextBox::paintMarkedTextUnderline): Ditto.
              * rendering/RenderContainer.h: Ditto.
              * rendering/RenderContainer.cpp: (WebCore::RenderContainer::lineBoxRects): Ditto.
              * rendering/RenderInline.h: Ditto.
              * rendering/RenderInline.cpp: (WebCore::RenderInline::absoluteRects): Ditto.
              * rendering/RenderObject.h: Ditto.
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::lineBoxRects): Ditto.
              (WebCore::RenderObject::absoluteRects): Ditto.
              (WebCore::RenderObject::absoluteBoundingBoxRect): Ditto.
              (WebCore::RenderObject::addDashboardRegions): Ditto.
              (WebCore::RenderObject::collectDashboardRegions): Ditto.
              * rendering/RenderStyle.h: Ditto.
              * rendering/RenderStyle.cpp:
              (WebCore::RenderStyle::initialDashboardRegions): Ditto.
              (WebCore::RenderStyle::noneDashboardRegions): Ditto.
              * rendering/RenderText.h: Ditto.
              * rendering/RenderText.cpp:
              (WebCore::RenderText::absoluteRects): Ditto.
              (WebCore::RenderText::lineBoxRects): Ditto.
              * rendering/RenderView.h: Ditto.
              * rendering/RenderView.cpp: (WebCore::RenderView::absoluteRects): Ditto.
      
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::attributedString): Updated to use Vector and changed to not
              depend on getNSFont on a Font.
              (WebCore::FrameMac::fontForSelection): Changed to not depend on Font::getNSFont.
              (WebCore::FrameMac::fontAttributesForSelectionStart): Ditto.
              (WebCore::convertAttributesToUnderlines): Updated to use Vector.
              (WebCore::FrameMac::setMarkedTextRange): Ditto.
              (WebCore::FrameMac::dashboardRegionsDictionary): Ditto.
      
              * bridge/mac/WebCoreAXObject.mm:
              (boundingBoxRect): Updated to use Vector.
              (AXAttributeStringSetStyle): Changed to not depend on Font::getNSFont.
      
              * bridge/mac/WebCoreStringTruncator.mm: Updated includes.
              * page/Settings.h: Ditto.
              * platform/mac/WebCoreTextRenderer.mm: Ditto.
              * rendering/EllipsisBox.cpp: Ditto.
      
              * editing/BreakBlockquoteCommand.cpp: (WebCore::BreakBlockquoteCommand::doApply):
              Updated to use a Vector that we iterate in reverse order instead of a linked list
              that we reverse by prepending elements instead of adding to the end.
              * editing/InsertParagraphSeparatorCommand.cpp:
              (WebCore::InsertParagraphSeparatorCommand::doApply): Ditto.
      
              * loader/DocLoader.h: Removed unneeded include of DeprecatedPtrList.h.
      
              * platform/Font.h: Moved TextStyle to a separate header. Removed Font::getNSFont.
              * platform/Font.cpp: Changed to use const instead of #define.
              (WebCore::Font::width): Overloaded this so we don't have a default parameter, which
              eliminates the need to have TextStyle defined to compiler the Font.h header.
      
              * platform/TextStyle.h: Added.
      
              * platform/FontData.h: Added a forward declaration of ATSUStyle so this header
              can stand alone.
      
              * platform/FontFallbackList.h: Tweaks.
              * platform/FontFallbackList.cpp: Tweaks.
      
              * platform/FontFamily.h: Removed unneeded NSString declaration. Simplified class by
              using Shared and RefPtr, which resulted in removing many explicit functions.
              * platform/FontFamily.cpp: More of the same.
      
              * platform/GlyphBuffer.h: Removed unneeded MAX_GLYPH_EXPANSION and GLYPH_BUFFER_SIZE
              macros.
      
              * platform/GlyphMap.h: Removed unneeded include of GlyphBuffer.h, which was included
              only for the typedef of Glyph; there's no reason to not just repeat that typedef here
              since C++ allows multiple typedefs if they match. Renamed the cGlyphPageSize constant
              to GlyphPage::size.
              * platform/GlyphMap.cpp: Changed NO_BREAK_SPACE and ZERO_WIDTH_SPACE macros into
              constants. Updated for cGlyphPageSize change.
              * platform/mac/GlyphMapMac.cpp: Updated for cGlyphPageSize change.
      
              * platform/GlyphWidthMap.h: Removed unneeded include of GlyphBuffer.h, which was included
              only for the typedef of Glyph; there's no reason to not just repeat that typedef here
              since C++ allows multiple typedefs if they match. Renamed the cGlyphWidthPageSize constant
              to GlyphWidthPage::size.
              * platform/GlyphWidthMap.cpp: Updated for cGlyphWidthPageSize change.
      
              * platform/GraphicsContext.h: Removed unneeded include of Font.h. Changed drawText
              function to use overloading instead of default parameters to allow TextStyle to be optional.
              This cuts the dependency on TextStyle.
              * platform/GraphicsContext.cpp: (WebCore::GraphicsContext::drawText): Added overload.
      
              * platform/Image.h: Removed unneeded forward declaration of IntSize.
      
              * platform/mac/FontCacheMac.mm: (WebCore::FontCache::getFontDataForCharacters):
              Changed to not depend on Font::getNSFont.
              * platform/mac/ListBoxMac.mm: (-[WebCoreTableView fontChanged]): Ditto.
              * platform/mac/TextFieldMac.mm: (-[NSSearchFieldCell _addStringToRecentSearches:]):
              Ditto.
              * rendering/RenderPopupMenuMac.mm:
              (WebCore::RenderPopupMenuMac::showPopup): Ditto.
              (WebCore::RenderPopupMenuMac::addGroupLabel): Ditto.
              (WebCore::RenderPopupMenuMac::addOption): Ditto.
      
              * platform/mac/FontDataMac.mm: Fixed includes. Converted a bunch of macros to be
              constants and inline functions instead.
      
              * platform/mac/FontMac.mm: Fixed includes.
              * platform/mac/PopUpButtonMac.mm: Ditto.
              * rendering/RenderMenuList.cpp: Ditto.
              * rendering/RenderTextControl.cpp: Ditto.
      
              * platform/mac/WebCoreSystemInterface.h: Fixes so this header stands alone and is
              compatible with all 4 of C, ObjC, C++, ObjC++.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      be6eb6ba
  4. 28 Mar, 2006 1 commit
    • ggaren's avatar
      Reviewed by Beth. · aa01dc00
      ggaren authored
              - Global replace of getDocument() with document(). Darin suggested this
              in his review of my EventTargetNode patch. It matches the style of
              methods like ownerDocument().
      
              - Changed getDocument() to document(); changed data member document to
              m_document; changed stack variable document to doc.
      
              * bindings/objc/DOM.mm:
              (-[DOMNode ownerDocument]):
              (-[DOMNode KJS::Bindings::]):
              (-[DOMElement _getURLAttribute:]):
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLElement titleDisplayString]):
              (-[DOMHTMLInputElement altDisplayString]):
              (-[DOMHTMLAnchorElement blur]):
              (-[DOMHTMLAnchorElement focus]):
              (-[DOMHTMLImageElement altDisplayString]):
              (-[DOMHTMLAppletElement altDisplayString]):
              (-[DOMHTMLAreaElement altDisplayString]):
              * bindings/objc/DOMInternal.mm:
              (-[WebScriptObject _initializeScriptDOMNodeImp]):
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::attributedString):
              * bridge/mac/FrameViewMac.mm:
              (WebCore::FrameView::updateDashboardRegions):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge initSubframeWithRenderer:]):
              (-[WebCoreFrameBridge setSelectedDOMRange:affinity:closeTyping:]):
              (-[WebCoreFrameBridge smartDeleteRangeForProposedRange:]):
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/css_base.cpp:
              (WebCore::StyleBase::baseURL):
              * css/css_stylesheetimpl.cpp:
              (WebCore::CSSStyleSheet::CSSStyleSheet):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::initForStyleResolve):
              (WebCore::CSSStyleSelector::canShareStyleWithElement):
              (WebCore::CSSStyleSelector::locateSharedStyle):
              (WebCore::CSSStyleSelector::createStyleForElement):
              (WebCore::CSSStyleSelector::createPseudoStyleForElement):
              (WebCore::CSSStyleSelector::adjustRenderStyle):
              (WebCore::CSSStyleSelector::styleRulesForElement):
              (WebCore::CSSStyleSelector::checkOneSelector):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::mapBackgroundImage):
              (WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
              * dom/AbstractView.cpp:
              (WebCore::AbstractView::AbstractView):
              * dom/CDATASection.cpp:
              (WebCore::CDATASection::cloneNode):
              (WebCore::CDATASection::createNew):
              * dom/CharacterData.cpp:
              (WebCore::CharacterData::setData):
              (WebCore::CharacterData::insertData):
              (WebCore::CharacterData::deleteData):
              (WebCore::CharacterData::replaceData):
              (WebCore::CharacterData::dispatchModifiedEvent):
              * dom/Comment.cpp:
              (WebCore::Comment::cloneNode):
              * dom/ContainerNode.cpp:
              (WebCore::ContainerNode::insertBefore):
              (WebCore::ContainerNode::replaceChild):
              (WebCore::ContainerNode::removeChild):
              (WebCore::ContainerNode::appendChild):
              (WebCore::ContainerNode::addChild):
              (WebCore::ContainerNode::getUpperLeftCorner):
              (WebCore::dispatchChildInsertionEvents):
              (WebCore::dispatchChildRemovalEvents):
              * dom/DOMImplementation.cpp:
              (WebCore::DOMImplementation::createDocument):
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::~Document):
              (WebCore::Document::createDocumentFragment):
              (WebCore::Document::adoptNode):
              (WebCore::Document::createElementNS):
              (WebCore::Document::nodeAbsIndex):
              (WebCore::Document::setFocusNode):
              (WebCore::Document::topDocument):
              * dom/DocumentFragment.cpp:
              (WebCore::DocumentFragment::cloneNode):
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::~EventTargetNode):
              (WebCore::EventTargetNode::insertedIntoDocument):
              (WebCore::EventTargetNode::removedFromDocument):
              (WebCore::EventTargetNode::addEventListener):
              (WebCore::EventTargetNode::removeEventListener):
              (WebCore::EventTargetNode::dispatchGenericEvent):
              (WebCore::EventTargetNode::dispatchEvent):
              (WebCore::EventTargetNode::dispatchSubtreeModifiedEvent):
              (WebCore::EventTargetNode::dispatchWindowEvent):
              (WebCore::EventTargetNode::dispatchUIEvent):
              (WebCore::EventTargetNode::dispatchKeyEvent):
              (WebCore::EventTargetNode::dispatchMouseEvent):
              (WebCore::EventTargetNode::dispatchWheelEvent):
              (WebCore::EventTargetNode::removeHTMLEventListener):
              * dom/Node.cpp:
              (WebCore::Node::Node):
              (WebCore::Node::setDocument):
              (WebCore::Node::setChanged):
              (WebCore::Node::checkSetPrefix):
              (WebCore::Node::checkAddChild):
              (WebCore::Node::attach):
              (WebCore::Node::detach):
              (WebCore::Node::createRendererIfNeeded):
              (WebCore::Node::rendererIsNeeded):
              (WebCore::Node::getElementsByTagNameNS):
              (WebCore::Node::ownerDocument):
              (WebCore::Node::setTextContent):
              * dom/Node.h:
              (WebCore::Node::document):
              (WebCore::Node::inDocument):
              * dom/NodeList.cpp:
              (WebCore::NodeList::itemById):
              * dom/Position.cpp:
              (WebCore::Position::documentElement):
              * dom/Range.cpp:
              (WebCore::Range::commonAncestorContainer):
              (WebCore::Range::setStart):
              (WebCore::Range::setEnd):
              (WebCore::Range::compareBoundaryPoints):
              (WebCore::Range::insertNode):
              (WebCore::Range::text):
              (WebCore::Range::setStartAfter):
              (WebCore::Range::setEndBefore):
              (WebCore::Range::setEndAfter):
              (WebCore::Range::surroundContents):
              (WebCore::Range::setStartBefore):
              (WebCore::rangeOfContents):
              * dom/Text.cpp:
              (WebCore::Text::cloneNode):
              (WebCore::Text::createNew):
              * dom/dom2_eventsimpl.cpp:
              (WebCore::MouseRelatedEvent::receivedTarget):
              * dom/dom2_traversalimpl.cpp:
              (WebCore::NodeIterator::NodeIterator):
              * dom/dom_elementimpl.cpp:
              (WebCore::Attribute::createAttrIfNeeded):
              (WebCore::Attr::createTextChild):
              (WebCore::Attr::setValue):
              (WebCore::Attr::cloneNode):
              (WebCore::Element::cloneNode):
              (WebCore::inHTMLDocument):
              (WebCore::Element::setAttribute):
              (WebCore::Element::setAttributeMap):
              (WebCore::Element::createStyleForRenderer):
              (WebCore::Element::createRenderer):
              (WebCore::Element::recalcStyle):
              (WebCore::Element::dispatchAttrRemovalEvent):
              (WebCore::Element::dispatchAttrAdditionEvent):
              (WebCore::Element::updateId):
              (WebCore::Element::removeAttributeNode):
              (WebCore::Element::focus):
              (WebCore::Element::blur):
              (WebCore::NamedAttrMap::setNamedItem):
              (WebCore::NamedMappedAttrMap::parseClassAttribute):
              (WebCore::StyledElement::createInlineStyleDecl):
              (WebCore::StyledElement::parseMappedAttribute):
              (WebCore::StyledElement::createMappedDecl):
              * dom/dom_xmlimpl.cpp:
              (WebCore::EntityReference::cloneNode):
              (WebCore::ProcessingInstruction::cloneNode):
              (WebCore::ProcessingInstruction::checkStyleSheet):
              (WebCore::ProcessingInstruction::sheetLoaded):
              (WebCore::ProcessingInstruction::setStyleSheet):
              * dom/xml_tokenizer.cpp:
              (WebCore::XMLTokenizer::XMLTokenizer):
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplacementFragment::ReplacementFragment):
              (WebCore::ReplaceSelectionCommand::fixupNodeStyles):
              (WebCore::styleForNode):
              * editing/Selection.cpp:
              (WebCore::Selection::toRange):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::~SelectionController):
              (WebCore::SelectionController::setSelection):
              (WebCore::SelectionController::xPosForVerticalArrowNavigation):
              (WebCore::SelectionController::frame):
              (WebCore::SelectionController::layout):
              (WebCore::SelectionController::needsCaretRepaint):
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::range):
              (WebCore::SimplifiedBackwardsTextIterator::range):
              * editing/VisiblePosition.cpp:
              (WebCore::VisiblePosition::init):
              (WebCore::makeRange):
              * editing/markup.cpp:
              (WebCore::startMarkup):
              (WebCore::shouldSelfClose):
              (WebCore::markup):
              (WebCore::createMarkup):
              * editing/visible_units.cpp:
              (WebCore::previousBoundary):
              (WebCore::nextBoundary):
              (WebCore::previousLinePosition):
              (WebCore::nextLinePosition):
              (WebCore::inSameDocument):
              * html/HTMLCollection.cpp:
              (WebCore::HTMLCollection::HTMLCollection):
              (WebCore::HTMLCollection::resetCollectionInfo):
              * html/HTMLElement.cpp:
              (WebCore::HTMLElement::nodeName):
              (WebCore::HTMLElement::cloneNode):
              (WebCore::HTMLElement::innerText):
              (WebCore::HTMLElement::createContextualFragment):
              (WebCore::HTMLElement::setInnerText):
              (WebCore::HTMLElement::setOuterText):
              (WebCore::HTMLElement::isContentEditable):
              (WebCore::HTMLElement::contentEditable):
              (WebCore::HTMLElement::toString):
              (WebCore::HTMLElement::childAllowed):
              (WebCore::HTMLElement::setHTMLEventListener):
              * html/HTMLFormElement.cpp:
              (WebCore::HTMLFormElement::formWouldHaveSecureSubmission):
              (WebCore::HTMLFormElement::attach):
              (WebCore::HTMLFormElement::insertedIntoDocument):
              (WebCore::HTMLFormElement::removedFromDocument):
              (WebCore::HTMLFormElement::formData):
              (WebCore::HTMLFormElement::prepareSubmit):
              (WebCore::HTMLFormElement::submit):
              (WebCore::HTMLFormElement::reset):
              (WebCore::HTMLFormElement::parseMappedAttribute):
              (WebCore::HTMLFormElement::registerFormElement):
              (WebCore::HTMLFormElement::removeFormElement):
              * html/HTMLGenericFormElement.cpp:
              (WebCore::HTMLGenericFormElement::attach):
              (WebCore::HTMLGenericFormElement::insertedIntoTree):
              (WebCore::HTMLGenericFormElement::isKeyboardFocusable):
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::~HTMLInputElement):
              (WebCore::HTMLInputElement::isKeyboardFocusable):
              (WebCore::HTMLInputElement::focus):
              (WebCore::HTMLInputElement::setInputType):
              (WebCore::HTMLInputElement::parseMappedAttribute):
              (WebCore::HTMLInputElement::attach):
              (WebCore::HTMLInputElement::setChecked):
              (WebCore::HTMLInputElement::preDispatchEventHandler):
              (WebCore::HTMLInputElement::defaultEventHandler):
              (WebCore::HTMLInputElement::src):
              * html/HTMLKeygenElement.cpp:
              (WebCore::HTMLKeygenElement::appendFormData):
              * html/HTMLLabelElement.cpp:
              (WebCore::HTMLLabelElement::formElement):
              * html/HTMLOptionElement.cpp:
              (WebCore::HTMLOptionElement::text):
              (WebCore::HTMLOptionElement::setText):
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::HTMLParser):
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::~HTMLSelectElement):
              * html/HTMLTextAreaElement.cpp:
              (WebCore::HTMLTextAreaElement::~HTMLTextAreaElement):
              (WebCore::HTMLTextAreaElement::setDefaultValue):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::HTMLTokenizer):
              * html/html_baseimpl.cpp:
              (WebCore::HTMLBodyElement::createLinkDecl):
              (WebCore::HTMLBodyElement::mapToEntry):
              (WebCore::HTMLBodyElement::parseMappedAttribute):
              (WebCore::HTMLBodyElement::insertedIntoDocument):
              (WebCore::HTMLFrameElement::isURLAllowed):
              (WebCore::HTMLFrameElement::openURL):
              (WebCore::HTMLFrameElement::attach):
              (WebCore::HTMLFrameElement::close):
              (WebCore::HTMLFrameElement::contentFrame):
              (WebCore::HTMLFrameElement::frameWidth):
              (WebCore::HTMLFrameElement::frameHeight):
              (WebCore::HTMLFrameSetElement::parseMappedAttribute):
              (WebCore::HTMLIFrameElement::parseMappedAttribute):
              (WebCore::HTMLIFrameElement::insertedIntoDocument):
              (WebCore::HTMLIFrameElement::removedFromDocument):
              (WebCore::HTMLIFrameElement::attach):
              (WebCore::HTMLIFrameElement::src):
              * html/html_blockimpl.cpp:
              (WebCore::HTMLParagraphElement::checkDTD):
              * html/html_headimpl.cpp:
              (WebCore::HTMLBaseElement::removedFromDocument):
              (WebCore::HTMLBaseElement::process):
              (WebCore::HTMLLinkElement::setDisabledState):
              (WebCore::HTMLLinkElement::parseMappedAttribute):
              (WebCore::HTMLLinkElement::process):
              (WebCore::HTMLLinkElement::setStyleSheet):
              (WebCore::HTMLLinkElement::sheetLoaded):
              (WebCore::HTMLLinkElement::href):
              (WebCore::HTMLMetaElement::process):
              (WebCore::HTMLScriptElement::childrenChanged):
              (WebCore::HTMLScriptElement::parseMappedAttribute):
              (WebCore::HTMLScriptElement::insertedIntoDocument):
              (WebCore::HTMLScriptElement::evaluateScript):
              (WebCore::HTMLScriptElement::setText):
              (WebCore::HTMLScriptElement::src):
              (WebCore::HTMLStyleElement::insertedIntoDocument):
              (WebCore::HTMLStyleElement::removedFromDocument):
              (WebCore::HTMLStyleElement::childrenChanged):
              (WebCore::HTMLStyleElement::sheetLoaded):
              (WebCore::HTMLTitleElement::insertedIntoDocument):
              (WebCore::HTMLTitleElement::removedFromDocument):
              (WebCore::HTMLTitleElement::childrenChanged):
              (WebCore::HTMLTitleElement::setText):
              * html/html_imageimpl.cpp:
              (WebCore::HTMLImageLoader::~HTMLImageLoader):
              (WebCore::HTMLImageLoader::updateFromElement):
              (WebCore::HTMLImageLoader::notifyFinished):
              (WebCore::HTMLImageElement::parseMappedAttribute):
              (WebCore::HTMLImageElement::insertedIntoDocument):
              (WebCore::HTMLImageElement::removedFromDocument):
              (WebCore::HTMLImageElement::width):
              (WebCore::HTMLImageElement::height):
              (WebCore::HTMLImageElement::src):
              (WebCore::HTMLMapElement::~HTMLMapElement):
              (WebCore::HTMLMapElement::parseMappedAttribute):
              (WebCore::HTMLAreaElement::href):
              * html/html_inlineimpl.cpp:
              (WebCore::HTMLAnchorElement::isKeyboardFocusable):
              (WebCore::HTMLAnchorElement::defaultEventHandler):
              (WebCore::HTMLAnchorElement::href):
              (WebCore::HTMLAnchorElement::blur):
              (WebCore::HTMLAnchorElement::focus):
              * html/html_objectimpl.cpp:
              (WebCore::HTMLAppletElement::parseMappedAttribute):
              (WebCore::HTMLAppletElement::insertedIntoDocument):
              (WebCore::HTMLAppletElement::removedFromDocument):
              (WebCore::HTMLAppletElement::createRenderer):
              (WebCore::HTMLAppletElement::getAppletInstance):
              (WebCore::HTMLEmbedElement::getEmbedInstance):
              (WebCore::HTMLEmbedElement::parseMappedAttribute):
              (WebCore::HTMLEmbedElement::rendererIsNeeded):
              (WebCore::HTMLEmbedElement::insertedIntoDocument):
              (WebCore::HTMLEmbedElement::removedFromDocument):
              (WebCore::HTMLObjectElement::getObjectInstance):
              (WebCore::HTMLObjectElement::parseMappedAttribute):
              (WebCore::HTMLObjectElement::rendererIsNeeded):
              (WebCore::HTMLObjectElement::insertedIntoDocument):
              (WebCore::HTMLObjectElement::removedFromDocument):
              (WebCore::HTMLObjectElement::updateDocNamedItem):
              (WebCore::HTMLParamElement::parseMappedAttribute):
              * html/html_tableimpl.cpp:
              (WebCore::HTMLTableElement::createTHead):
              (WebCore::HTMLTableElement::createTFoot):
              (WebCore::HTMLTableElement::createCaption):
              (WebCore::HTMLTableElement::insertRow):
              (WebCore::HTMLTableElement::addChild):
              (WebCore::HTMLTableElement::mapToEntry):
              (WebCore::HTMLTableElement::parseMappedAttribute):
              (WebCore::HTMLTableElement::additionalAttributeStyleDecl):
              (WebCore::HTMLTableElement::getSharedCellDecl):
              (WebCore::HTMLTablePartElement::mapToEntry):
              (WebCore::HTMLTablePartElement::parseMappedAttribute):
              (WebCore::HTMLTableSectionElement::insertRow):
              (WebCore::HTMLTableRowElement::insertCell):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::~DOMNode):
              (KJS::DOMNode::mark):
              (KJS::DOMElement::getValueProperty):
              (KJS::DOMElementProtoFunc::callAsFunction):
              (KJS::checkNodeSecurity):
              (KJS::toJS):
              * khtml/ecma/kjs_html.cpp:
              (KJS::JSHTMLElement::implementsCall):
              (KJS::JSHTMLElement::bodyGetter):
              (KJS::JSHTMLElement::anchorGetter):
              (KJS::JSHTMLElement::getValueProperty):
              (KJS::JSHTMLElement::bodySetter):
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::JSNodeFilterCondition::acceptNode):
              * khtml/ecma/kjs_views.cpp:
              (KJS::DOMAbstractViewProtoFunc::callAsFunction):
              * khtml/xbl/xbl_binding.cpp:
              (XBL::XBLBindingChain::failed):
              (XBL::m_nextBinding):
              (XBL::XBLBinding::setXBLDocument):
              * khtml/xbl/xbl_protobinding.cpp:
              (XBL::XBLPrototypeBinding::document):
              * khtml/xsl/XSLStyleSheet.cpp:
              (WebCore::XSLStyleSheet::XSLStyleSheet):
              * khtml/xsl/XSLTProcessor.cpp:
              (WebCore::XSLTProcessor::createDocumentFromSource):
              (WebCore::xmlDocPtrFromNode):
              (WebCore::XSLTProcessor::transformToString):
              * ksvg2/svg/SVGAElement.cpp:
              (SVGAElement::defaultEventHandler):
              * ksvg2/svg/SVGAnimateColorElement.cpp:
              (SVGAnimateColorElement::handleTimerEvent):
              * ksvg2/svg/SVGAnimateElement.cpp:
              (SVGAnimateElement::handleTimerEvent):
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              (SVGAnimateTransformElement::handleTimerEvent):
              * ksvg2/svg/SVGAnimationElement.cpp:
              (SVGAnimationElement::closeRenderer):
              * ksvg2/svg/SVGClipPathElement.cpp:
              (SVGClipPathElement::canvasResource):
              * ksvg2/svg/SVGElement.cpp:
              (WebCore::SVGElement::addSVGEventListener):
              * ksvg2/svg/SVGGradientElement.cpp:
              (SVGGradientElement::rebuildStops):
              * ksvg2/svg/SVGHelper.cpp:
              (SVGHelper::PercentageOfViewport):
              * ksvg2/svg/SVGLinearGradientElement.cpp:
              (SVGLinearGradientElement::buildGradient):
              * ksvg2/svg/SVGPatternElement.cpp:
              (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
              * ksvg2/svg/SVGRadialGradientElement.cpp:
              (WebCore::SVGRadialGradientElement::buildGradient):
              * ksvg2/svg/SVGSVGElement.cpp:
              (WebCore::SVGSVGElement::setCurrentScale):
              (WebCore::SVGSVGElement::addSVGWindowEventListner):
              * ksvg2/svg/SVGSetElement.cpp:
              (SVGSetElement::handleTimerEvent):
              * ksvg2/svg/SVGStyleElement.cpp:
              (SVGStyleElement::childrenChanged):
              * ksvg2/svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::canvas):
              * ksvg2/svg/SVGTitleElement.cpp:
              (WebCore::SVGTitleElement::closeRenderer):
              (WebCore::SVGTitleElement::insertedIntoDocument):
              (WebCore::SVGTitleElement::removedFromDocument):
              (WebCore::SVGTitleElement::childrenChanged):
              * ksvg2/svg/SVGUseElement.cpp:
              (SVGUseElement::closeRenderer):
              * kwq/WebCoreAXObject.mm:
              (-[WebCoreAXObject accessibilityPerformAction:]):
              (-[WebCoreAXObject accessibilityAttributeValue:]):
              * page/Frame.cpp:
              (WebCore::parentFromOwnerRenderer):
              (WebCore::Frame::frameForNode):
              (WebCore::Frame::clearDocumentFocus):
              * page/FrameView.cpp:
              (WebCore::FrameView::dispatchMouseEvent):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle):
              * rendering/RenderCanvas.cpp:
              (WebCore::RenderCanvas::RenderCanvas):
              (WebCore::RenderCanvas::paintBoxDecorations):
              (WebCore::RenderCanvas::repaintViewRectangle):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::imageMap):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::setHasHorizontalScrollbar):
              (WebCore::RenderLayer::setHasVerticalScrollbar):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::createObject):
              (WebCore::RenderObject::RenderObject):
              (WebCore::RenderObject::isRoot):
              (WebCore::RenderObject::backslashAsCurrencySymbol):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::document):
              * rendering/RenderTheme.cpp:
              (WebCore::RenderTheme::isFocused):
              * rendering/render_applet.cpp:
              (WebCore::RenderApplet::createWidgetIfNecessary):
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::RenderWidget):
              (WebCore::RenderWidget::focusIn):
              (WebCore::RenderWidget::focusOut):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13543 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa01dc00
  5. 19 Mar, 2006 1 commit
  6. 16 Mar, 2006 1 commit
    • darin's avatar
      Reviewed by Eric. · 8a2a58fd
      darin authored
              - removed KWQWindowWidget
              - changed most event handling to use references instead of pointers
              - chagned PageMac to no longer be a subclass of Page
      
              Yes, I know there's no detail in this ChangeLog entry.
              No, I don't plan to make a habit of doing things this way.
              Yes, this will probably break the Windows build again.
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow):
              * bridge/mac/FrameViewMac.mm:
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::MacFrame):
              (WebCore::MacFrame::~MacFrame):
              (WebCore::MacFrame::wheelEvent):
              (WebCore::MacFrame::keyEvent):
              (WebCore::MacFrame::khtmlMousePressEvent):
              (WebCore::MacFrame::khtmlMouseMoveEvent):
              (WebCore::MacFrame::khtmlMouseReleaseEvent):
              (WebCore::MacFrame::mouseDown):
              (WebCore::MacFrame::mouseDragged):
              (WebCore::MacFrame::mouseUp):
              (WebCore::MacFrame::mouseMoved):
              (WebCore::MacFrame::sendContextMenuEvent):
              (WebCore::MacFrame::setBridge):
              (WebCore::MacFrame::dragSourceMovedTo):
              (WebCore::MacFrame::dragSourceEndedAt):
              (WebCore::MacFrame::dispatchDragSrcEvent):
              * bridge/mac/PageMac.h: Removed.
              * bridge/mac/PageMac.mm: Added.
              (WebCore::Page::Page):
              (WebCore::Page::windowRect):
              (WebCore::Page::setWindowRect):
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge page]):
              (-[WebCoreFrameBridge initializeSettings:]):
              (globalPoint):
              (createMouseEventFromDraggingInfo):
              (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
              (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
              (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
              (-[WebCoreFrameBridge dragSourceMovedTo:]):
              (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
              * bridge/mac/WebCoreFrameNamespaces.mm:
              (WebCore::):
              * bridge/mac/WebCorePageBridge.h:
              * bridge/mac/WebCorePageBridge.mm:
              (-[WebCorePageBridge init]):
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::prepareMouseEvent):
              (WebCore::DocumentImpl::defaultEventHandler):
              * dom/DocumentImpl.h:
              * dom/NodeImpl.cpp:
              (WebCore::NodeImpl::dispatchMouseEvent):
              (WebCore::NodeImpl::dispatchKeyEvent):
              (WebCore::NodeImpl::dispatchWheelEvent):
              * dom/NodeImpl.h:
              * dom/dom2_eventsimpl.cpp:
              (WebCore::KeyboardEventImpl::KeyboardEventImpl):
              * dom/dom2_eventsimpl.h:
              (WebCore::KeyboardEventImpl::keyEvent):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::getValueProperty):
              (KJS::WindowFunc::callAsFunction):
              * khtml/html/html_inlineimpl.cpp:
              (WebCore::HTMLAnchorElementImpl::defaultEventHandler):
              * ksvg2/svg/SVGDocumentImpl.cpp:
              * ksvg2/svg/SVGDocumentImpl.h:
              * kwq/KWQWindowWidget.h:
              * kwq/KWQWindowWidget.mm: Removed.
              * page/Frame.cpp:
              (WebCore::Frame::selectClosestWordFromMouseEvent):
              (WebCore::Frame::handleMousePressEventDoubleClick):
              (WebCore::Frame::handleMousePressEventTripleClick):
              (WebCore::Frame::handleMousePressEventSingleClick):
              (WebCore::Frame::khtmlMousePressEvent):
              (WebCore::Frame::handleMouseMoveEventSelection):
              (WebCore::Frame::khtmlMouseMoveEvent):
              (WebCore::Frame::khtmlMouseReleaseEvent):
              (WebCore::Frame::khtmlMouseDoubleClickEvent):
              (WebCore::Frame::passWidgetMouseDownEventToWidget):
              * page/Frame.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::viewportMousePressEvent):
              (WebCore::FrameView::viewportMouseDoubleClickEvent):
              (WebCore::FrameView::viewportMouseMoveEvent):
              (WebCore::FrameView::viewportMouseReleaseEvent):
              (WebCore::FrameView::dispatchDragEvent):
              (WebCore::FrameView::updateDragAndDrop):
              (WebCore::FrameView::cancelDragAndDrop):
              (WebCore::FrameView::performDragAndDrop):
              (WebCore::FrameView::dispatchMouseEvent):
              (WebCore::FrameView::viewportWheelEvent):
              * page/FrameView.h:
              * page/MouseEventWithHitTestResults.h:
              (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
              (WebCore::MouseEventWithHitTestResults::event):
              * page/Page.cpp:
              (WebCore::Page::init):
              * page/Page.h:
              (WebCore::Page::bridge):
              * platform/KeyEvent.h:
              (WebCore::KeyEvent::isAutoRepeat):
              * platform/MouseEvent.h:
              (WebCore::MouseEvent::MouseEvent):
              * platform/mac/KeyEventMac.mm:
              (WebCore::KeyEvent::KeyEvent):
              * platform/win/TemporaryLinkStubs.cpp:
              (FrameView::isFrameView):
              * rendering/render_form.cpp:
              (WebCore::RenderFormElement::clicked):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8a2a58fd
  7. 20 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · 644b75ef
      darin authored
              - moved Cursor into the platform directory from KWQ
              - removed a lot of other unneeded stuff from KWQ
      
              * platform/Cursor.h: Added.
              * platform/mac/CursorMac.mm: Added.
              * platform/mac/CursorWin.cpp: Added.
      
              * kwq/KWQBuffer.cpp: Removed.
              * kwq/KWQBuffer.h: Removed.
              * kwq/KWQCursor.h: Removed.
              * kwq/KWQCursor.mm: Removed.
              * kwq/KWQIODevice.h: Removed.
              * kwq/KWQKCursor.h: Removed.
              * kwq/KWQKCursor.mm: Removed.
              * kwq/KWQKDebug.h: Removed.
              * kwq/KWQSignalStubs.cpp: Removed.
      
              * ForwardingHeaders/kcursor.h: Removed.
              * ForwardingHeaders/kdebug.h: Removed.
              * ForwardingHeaders/qbuffer.h: Removed.
      
              * kwq/KWQEvent.h: Removed unused constants and types QCustomEvent,
              QFocusEvent, QHideEvent, QShowEvent, QContextMenuEvent, and QResizeEvent.
      
              * kwq/KWQLoader.h: Removed KWQLoader class since signals are no longer needed.
              * kwq/KWQLoader.mm: Ditto.
      
              * kwq/KWQNamespace.h: Removed DontClip, ShowPrefix, WordBreak, LayoutDirection,
              LeftToRight, RightToLeft, RasterOp, CopyROP, OrROP, and XorROP.
      
              * kwq/KWQObject.h: Removed blockSignals, sender, _signalsBlocked, _sender,
              and KWQObjectSenderScope.
              * kwq/KWQObject.cpp:
              (QObject::QObject): Removed _signalsBlocked.
              (QObject::connect): Removed special-case signals to not complain about.
              All of them were either unused, converted to non-signal functions, or in one
              case (slotScrollBarMoved) turned into a FIXME.
      
              * kwq/KWQPainter.h: Removed rasterOp and setRasterOp.
              * kwq/KWQPainter.mm: Ditto.
      
              * kwq/KWQSignal.h:
              * kwq/KWQSignal.cpp: (KWQSignal::disconnect): Removed special cases for
              various signals; all are now using plain function calls instead.
      
              * kwq/KWQSlot.h:
              * kwq/KWQSlot.cpp: Removed slots that are no longer needed because they
              are using plain function calls instead of signals.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              Updated for changed files.
      
              * bridge/mac/FrameViewMac.mm: Moved the contents of KWQKHTMLView.cpp in here.
              * bridge/mac/KWQKHTMLView.cpp: Removed.
      
              * bridge/mac/MacFrame.h: Removed signals, changed setStatusBarText to take
              String instead of QString.
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::MacFrame): Removed signals.
              (WebCore::MacFrame::setStatusBarText): Changed parameter type.
              (WebCore::MacFrame::openURLFromPageCache): Removed parameter from started function.
              (WebCore::MacFrame::khtmlMouseMoveEvent): Changed from QCursor() to pointerCursor().
      
              * dom/DocumentImpl.h:
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::DocumentImpl): Removed signals.
              (WebCore::DocumentImpl::implicitOpen): Ditto.
              (WebCore::DocumentImpl::determineParseMode): Removed a use of kdDebug.
              (WebCore::DocumentImpl::finishedParsing): Added. Does a setParsing(false) and then
              calls finishedParsing on the frame. Replaces the old finishedParsing signal.
      
              * dom/xml_tokenizer.h:
              * dom/xml_tokenizer.cpp: Removed the finishedParsing signal since it's not just
              a function on the document.
              (WebCore::XMLTokenizer::finish): Call the function instead of emitting the signal.
      
              * khtml/html/htmlparser.h:
              * khtml/html/htmlparser.cpp: Moved the parser inside the WebCore namespace.
      
              * khtml/html/htmltokenizer.h:
              * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::end): Updated
              to call finishedParsing function on document rather than emitting a signal.
      
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButton becomeFirstResponder]): Use QEvent instead of QFocusEvent.
              (-[KWQPopUpButton resignFirstResponder]): Ditto.
              * kwq/KWQFileButton.mm: (KWQFileButton::focusChanged): Ditto.
              * kwq/KWQListBox.mm:
              (-[KWQTableView becomeFirstResponder]): Ditto.
              (-[KWQTableView resignFirstResponder]): Ditto.
              * kwq/KWQSlider.mm:
              (-[KWQSlider becomeFirstResponder]): Ditto.
              (-[KWQSlider resignFirstResponder]): Ditto.
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView becomeFirstResponder]): Ditto.
              (-[KWQTextAreaTextView resignFirstResponder]): Ditto.
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController setHasFocus:]): Ditto.
      
              * kwq/KWQTextStream.h: Removed the mode parameter from the QTextStream constructor.
              Removed the QTextIStream and QTextOStream classes.
              * kwq/KWQTextStream.cpp: (QTextStream::QTextStream): Removed the mode parameter.
      
              * loader/CachedCSSStyleSheet.h: Changed to take a ByteArray instead of a QBuffer.
              * loader/CachedCSSStyleSheet.cpp: (WebCore::CachedCSSStyleSheet::data): Ditto.
              * loader/CachedImage.h: Ditto.
              * loader/CachedImage.cpp: (WebCore::CachedImage::data): Ditto.
              * loader/CachedObject.h: Ditto.
              * loader/CachedScript.h: Ditto.
              * loader/CachedScript.cpp: (WebCore::CachedScript::data): Ditto.
              * loader/CachedXBLDocument.h: Ditto.
              * loader/CachedXBLDocument.cpp: (WebCore::CachedXBLDocument::data): Ditto.
              * loader/CachedXSLStyleSheet.h:
              * loader/CachedXSLStyleSheet.cpp: (WebCore::CachedXSLStyleSheet::data): Ditto.
      
              * loader/DocLoader.cpp: (WebCore::DocLoader::setLoadInProgress): Added a call
              to loadDone on the frame. Replaces the requestFailed and requestDone signals.
      
              * loader/DocLoader.h: Removed include of <qbuffer.h>.
      
              * loader/Request.h:
              * loader/Request.cpp: Updated to use ByteArray instead of QBuffer.
      
              * loader/loader.h: Removed unused signals.
              * loader/loader.cpp:
              (WebCore::Loader::Loader): Removed use of KWQLoader.
              (WebCore::Loader::~Loader): Ditto.
              (WebCore::Loader::load): Removed code to emit unused requestStarted signal.
              (WebCore::Loader::slotFinished): Removed code to emit requestFailed and
              requestDone signals, now handled by DocLoader::setLoadInProgress(false).
              (WebCore::Loader::slotReceivedResponse): Use ByteArray instead of QBuffer.
              (WebCore::Loader::slotData): Ditto.
      
              * page/Frame.h: Removed setURLCursor, urlCursor, slotRestoreData, slotIncZoom,
              slotDecZoom, slotLoadImages, slotPartRemoved, slotActiveFrameChanged,
              slotChildURLRequest, slotShowDocument, slotAutoScroll, slotPrintFrame, slotSelectAll,
              slotProgressUpdate, slotJobPercent, slotJobSpeed.connectChild, disconnectChild,
              and changed a number of others from slots to plain old functions.
              * page/Frame.cpp:
              (WebCore::Frame::Frame): Don't connect to loader signals.
              (WebCore::Frame::~Frame): Don't disconnect from loader signals.
              (WebCore::Frame::didOpenURL): Call started function instead of emitting
              started signal. Don't connect to speed and percent signals (which never
              existed in WebCore anyway).
              (WebCore::Frame::stopLoading): Call finishedParsing function instead of
              calling slotFinishedParsing.
              (WebCore::Frame::executeScript): Removed redundant checks and let
              submitFormAgain do the checking.
              (WebCore::Frame::clear): Removed code to disconnect from finishedParsing
              signal; we now use a function. Also removed loop that calls disconnectChild,
              becase again we use functions now instead of signals.
              (WebCore::Frame::setDocument): Remove code to disconnect and connect to the
              finishedParsing signal.
              (WebCore::Frame::begin): Remove code to connect to the finishedParsing signal.
              (WebCore::Frame::finishedParsing): Moved code that does setParsing(false) into
              the document class. Also renamed from slotFinishedParsing.
              (WebCore::Frame::loadDone): Renamed from slotLoaderRequestDone.
              (WebCore::Frame::checkCompleted): Changed to call the completed function instead
              of emitting one of the two completed signals.
              (WebCore::Frame::loadSubframe): Removed call to connectChild because we now use
              functions instead of signals. Also change the call to completed to pass false
              instead of true.
              (WebCore::Frame::submitFormAgain): Change function around so we are less likely
              to leak if something strange happens inside submitForm.
              (WebCore::Frame::submitForm): Remove code to connect signal. We now call
              submitFormAgain from inside the completed function.
              (WebCore::Frame::parentCompleted): Renamed from slotParentCompleted. No longer
              a slot, now called from completed.
              (WebCore::Frame::childCompleted): Renamed from slotChildCompleted.
              (WebCore::Frame::setJSStatusBarText): Removed "emit" from function call. Changed
              to use String instead of QString.
              (WebCore::Frame::setJSDefaultStatusBarText): Ditto.
              (WebCore::Frame::sendResizeEvent): Changed to send DOM event directly instead of
              creating a QResizeEvent to send along to the FrameView.
              (WebCore::Frame::scrollToAnchor): Changed to not pass a parameter to the started
              function, which no longer takes one.
              (WebCore::Frame::frameDetached): Removed code that calls disconnectChild, since
              we no longer use signals.
              (WebCore::Frame::completed): Added. Calls childCompleted, parentCompleted, and
              submitFormAgain.
              (WebCore::Frame::setStatusBarText): Added.
              (WebCore::Frame::started): Added. Sets the complete flag to false for the frame
              and all its ancestors, which is what slotChildStarted did recursively.
      
              * page/FramePrivate.h: Removed m_activeFrame and changed m_kjsStatusBarText and
              m_kjsDefaultStatusBarText to String from QString.
      
              * page/FrameView.h: Removed resizeEvent, focusInEvent, focusOutEvent, and
              slotPaletteChanged. Changed cleared from a signal to a private function and
              slotScrollBarMoved to a private function named scrollBarMoved.
              * page/FrameView.cpp:
              (WebCore::FrameView::FrameView): Removed connect call here that was connecting
              a signal that's nonexistent in WebCore; we'll want to rig it up later.
              (WebCore::FrameView::~FrameView): Added a call to setQWidget(0) here to replace
              something that was done with a signal before.
              (WebCore::FrameView::clear): Call cleared as a function rather than a signal.
              (WebCore::selectCursor): Changed to use Cursor instead of QCursor.
              (WebCore::FrameView::scrollBarMoved): Renamed this function, which is never called.
              Added a FIXME about calling it.
              (WebCore::FrameView::cleared): Added. Calls viewCleared on the owner part, which
              used to be done with a signal.
      
              * platform/Widget.h: Changed to Cursor from QCursor.
              * platform/mac/WidgetMac.mm: (WebCore::Widget::setCursor): Ditto.
      
              * rendering/render_frames.h:
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize): Removed cursor-setting code here. We might
              want to use resize cursors for frames again, but it was mostly disabled anyway and
              it's not clear which cursors to use.
              (WebCore::RenderPart::setWidget): Removed code to connect to the cleared signal.
              Instead, FrameView takes care of it directly.
              (WebCore::RenderPart::viewCleared): Renamed from slotViewCleared.
              (WebCore::RenderFrame::viewCleared): Ditto.
              (WebCore::RenderPartObject::viewCleared): Ditto.
      
              * rendering/render_image.cpp:
              (WebCore::RenderImage::imageChanged): Removed use of WordBreak, which doesn't exist
              in WebCore text rendering.
              (WebCore::RenderImage::paint): Ditto.
      
              * rendering/render_list.cpp: (RenderListMarker::paint): Removed use of DontClip, which
              doesn't exist in WebCore text rendering. Also removed incorrect use of references to
              temporaries for the ". " and " ." strings.
      
              * rendering/render_object.cpp:
              (WebCore::RenderObject::drawBorder): Removed call to setRasterOp since it is a no-op
              in WebCore's painter. Added a FIXME.
              (WebCore::RenderObject::information): Remove mode parameter to QTextStream.
      
              * rendering/render_replaced.h: Removed slotWidgetDestructed, made setQWidget public,
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::setQWidget): Removed code to connect slotWidgetDestructed to
              the destroyed signal. Instead FrameView calls setQWidget(0) on us.
              (WebCore::RenderWidget::eventFilter): Removed use of QFocusEvent::reason, which is
              never "popup" in WebCore.
      
              * WebCore+SVG/kdom.h:
              * css/css_stylesheetimpl.cpp:
              * css/css_valueimpl.cpp:
              * css/cssparser.cpp:
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/RenderPath.cpp:
              * khtml/ecma/xmlserializer.cpp:
              * khtml/html/html_baseimpl.cpp:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * ksvg2/svg/SVGPathSegLinetoImpl.cpp:
              * ksvg2/svg/SVGStyledTransformableElementImpl.cpp:
              * ksvg2/svg/SVGTransformImpl.cpp:
              * platform/StringImpl.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/render_box.cpp:
              * rendering/render_canvas.cpp:
              * rendering/render_flow.cpp:
              * rendering/render_form.cpp:
              * rendering/render_layer.cpp:
              * rendering/render_style.cpp:
              Removed includes of <kdebug.h>.
      
              * css/css_base.cpp: (CSSSelector::selectorText):
              * khtml/ecma/kjs_binding.cpp:
              (KJS::ScriptInterpreter::wasRunByUserGesture):
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMCSSRule::putValueProperty):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::getValueProperty):
              (KJS::DOMNode::putValueProperty):
              (KJS::DOMDocument::getValueProperty):
              * khtml/ecma/kjs_events.cpp:
              (KJS::DOMEvent::getValueProperty):
              (KJS::DOMUIEvent::getValueProperty):
              (KJS::DOMMouseEvent::getValueProperty):
              (KJS::DOMKeyboardEvent::getValueProperty):
              (KJS::Clipboard::getValueProperty):
              (KJS::Clipboard::putValueProperty):
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLDocument::getValueProperty):
              (KJS::KJS::HTMLDocument::putValueProperty):
              (KJS::HTMLElement::anchorGetter):
              (KJS::HTMLElement::areaGetter):
              (KJS::KJS::HTMLElementFunction::callAsFunction):
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::Navigator::getValueProperty):
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::DOMNodeIterator::getValueProperty):
              (KJS::DOMTreeWalker::getValueProperty):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Screen::getValueProperty):
              (KJS::Window::scheduleClose):
              (KJS::Window::isSafeScript):
              (KJS::Window::clear):
              (KJS::LocationFunc::callAsFunction):
              (KJS::History::getValueProperty):
              * ksvg2/svg/SVGAnimateColorElementImpl.cpp:
              (SVGAnimateColorElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimateElementImpl.cpp:
              (SVGAnimateElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimateTransformElementImpl.cpp:
              (SVGAnimateTransformElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimationElementImpl.cpp:
              (SVGAnimationElementImpl::parseMappedAttribute):
              * ksvg2/svg/SVGCursorElementImpl.cpp:
              * ksvg2/svg/SVGDocumentImpl.cpp:
              (WebCore::SVGDocumentImpl::finishedParsing):
              * ksvg2/svg/SVGLengthImpl.cpp:
              (SVGLengthImpl::updateValueInSpecifiedUnits):
              Removed use of kdWarning, kdDebug, etc.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      644b75ef
  8. 16 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · d85b585f
      darin authored
              - eliminate QFrame and QObject::inherits, fix some strange stuff
                in RenderCanvas that showed up when I tested that change
      
              * kwq/KWQFrame.h: Removed.
              * kwq/KWQFrame.mm: Removed.
      
              * bridge/mac/FrameViewMac.mm: Added.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for adds and removes.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for removes.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge RenderObject::nodeInfoAtPoint:]):
              * khtml/ecma/kjs_window.cpp:
              (KJS::FrameArray::indexGetter):
              (KJS::FrameArray::nameGetter):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject doAXTextMarkerForPosition:]):
              * kwq/KWQRenderTreeDebug.cpp:
              (write):
              * page/Frame.cpp:
              (WebCore::isFrameElement):
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              Change QObject::inherits callers to call the "is" functions directly.
      
              * kwq/KWQObject.h:
              * kwq/KWQObject.cpp: Removed QObject::inherits, QObject::isQFrame,
              and QObject::isQScrollView.
      
              * kwq/KWQScrollView.h: Inherit from Widget instead of QFrame.
              Remove isQScrollView.
              * kwq/KWQScrollView.mm: Remove isQScrollView.
      
              * page/FrameView.h:
              * page/FrameView.cpp: Changed underMouse and clickNode to be RefPtr.
              Added m_hasBorder.
              (WebCore::FrameViewPrivate::FrameViewPrivate):
              (WebCore::FrameViewPrivate::~FrameViewPrivate):
              (WebCore::FrameViewPrivate::reset):
              (WebCore::FrameView::layout):
              (WebCore::FrameView::viewportMousePressEvent):
              (WebCore::FrameView::invalidateClick):
              (WebCore::FrameView::viewportMouseReleaseEvent):
              (WebCore::FrameView::keyPressEvent):
              (WebCore::FrameView::dispatchDragEvent): Use RefPtr for MouseEventImpl.
              (WebCore::FrameView::nodeUnderMouse):
              (WebCore::FrameView::dispatchMouseEvent):
              (WebCore::FrameView::setHasBorder): Added.
              (WebCore::FrameView::hasBorder): Added.
              (WebCore::FrameView::borderWidth): Added.
      
              * rendering/render_canvas.h: Eliminated unneeded setWidth/Height overrides.
              Eliminated viewportWidth(), viewportHeight(), m_rootWidth, m_rootHeight,
              m_viewportWidth, and m_viewportHeight.
              * rendering/render_canvas.cpp:
              (RenderCanvas::calcHeight): Remove unneeded code to set height when there's
              no view.
              (RenderCanvas::calcWidth): Fix code to set width to visibleWidth(). Removed
              incorrect old width setting, and removed unneeded code to set width when
              there's no view. Also removed incorrect margin-setting code.
              (RenderCanvas::layout): Removed incorrect code to set width and height.
              Instead letting calcWidth and calcHeight do the job.
              (RenderCanvas::repaintViewRectangle): Use new FrameView::hasBorder instead
              of QFrame::frameStyle.
              (RenderCanvas::viewRect): Removed unneeded "root width" feature for a canvas
              without a view.
      
              * rendering/render_frames.cpp:
              (WebCore::RenderFrame::slotViewCleared): Use new setHasBorder.
              (WebCore::RenderPartObject::slotViewCleared): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12853 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d85b585f
  9. 07 Feb, 2006 1 commit
    • mjs's avatar
      Reviewed by Adele. · 69b3b5f0
      mjs authored
              - remove all remains of old-style frame tree, ChildFrame, ObjectContents and FrameList are all gone
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.h:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow):
              * khtml/ecma/kjs_window.cpp:
              (KJS::createNewWindow):
              (KJS::Window::indexGetter):
              (KJS::Window::getOwnPropertySlot):
              (KJS::WindowFunc::callAsFunction):
              (KJS::FrameArray::getValueProperty):
              (KJS::FrameArray::indexGetter):
              (KJS::FrameArray::nameGetter):
              (KJS::FrameArray::getOwnPropertySlot):
              * kwq/KWQFrame.mm:
              (QFrame::setFrameStyle):
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              (WebCore::Frame::stopLoading):
              (WebCore::Frame::clear):
              (WebCore::Frame::stopAnimations):
              (WebCore::Frame::checkCompleted):
              (WebCore::Frame::checkEmitLoadEvent):
              (WebCore::Frame::requestFrame):
              (WebCore::Frame::requestObject):
              (WebCore::Frame::loadSubframe):
              (WebCore::Frame::findFrame):
              (WebCore::Frame::frameExists):
              (WebCore::Frame::setZoomFactor):
              (WebCore::Frame::frameNames):
              (WebCore::Frame::frames):
              (WebCore::Frame::childFrameNamed):
              (WebCore::Frame::slotPartRemoved):
              (WebCore::Frame::connectChild):
              (WebCore::Frame::disconnectChild):
              (WebCore::Frame::canCachePage):
              (WebCore::Frame::setPolicyBaseURL):
              (WebCore::Frame::treeNode):
              (WebCore::Frame::frameDetached):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameTreeNode.h:
              (WebCore::FrameTreeNode::name):
              (WebCore::FrameTreeNode::parent):
              (WebCore::FrameTreeNode::nextSibling):
              (WebCore::FrameTreeNode::previousSibling):
              (WebCore::FrameTreeNode::firstChild):
              (WebCore::FrameTreeNode::lastChild):
              (WebCore::FrameTreeNode::childCount):
              * page/ObjectContents.h: Removed.
              * page/Plugin.h:
              (WebCore::Plugin::view):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69b3b5f0
  10. 31 Jan, 2006 1 commit
    • darin's avatar
      WebCore: · ffd93c32
      darin authored
              Reviewed by Hyatt.
      
              - added a Timer class
              - used the Timer class for the redirection timer
              - moved Frame, FrameView, MacFrame, and FrameNodeTree into WebCore namespace
              - removed more KWQ
      
              * ForwardingHeaders/khtml_factory.h: Removed.
              * kwq/KWQKHTMLFactory.cpp: Removed.
              * kwq/KWQKHTMLFactory.h: Removed.
      
              * platform/Timer.h: Added.
              * platform/mac/Timer.cpp: Added.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for added and removed files.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::Frame::init): Remove code to set up slotRedirect.
              (WebCore::Frame::checkCompleted): Call start/stopRedirectionTimer instead of using
              the redirection timer directly.
              (WebCore::Frame::scheduleRedirection): Ditto.
              (WebCore::Frame::scheduleLocationChange): Ditto.
              (WebCore::Frame::scheduleHistoryNavigation): Ditto.
              (WebCore::Frame::cancelRedirection): Ditto.
              (WebCore::Frame::redirectionTimerFired): Renamed from slotRedirect.
              (WebCore::Frame::slotParentCompleted): More startRedirectionTimer.
              (WebCore::Frame::startRedirectionTimer): Added. Virtual bottleneck to start the
              redirection timer.
              (WebCore::Frame::stopRedirectionTimer): Added. Virtual bottleneck to stop the
              redirection timer.
      
              * page/FramePrivate.h: Changed m_redirectionTimer from a QTimer to a Timer.
      
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::startRedirectionTimer): Added. Avoids the need for the QTimer
              "monitor" feature that I had added a while back to implement the client-redirected
              callback.
              (WebCore::MacFrame::stopRedirectionTimer): Ditto.
      
              * kwq/KWQSlot.cpp: Removed slotRedirected.
      
              * ForwardingHeaders/ksvg2/KSVGPart.h: Removed using to put Frame into various
              namespaces (all of which are WebCore now anyway).
      
              * bindings/objc/DOMInternal.mm:
              * bridge/mac/BrowserExtensionMac.h:
              * bridge/mac/KWQKHTMLView.cpp:
              * bridge/mac/MacFrame.h:
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              * bridge/mac/WebCorePageBridge.h:
              * bridge/mac/WebCorePageBridge.mm:
              * css/cssstyleselector.cpp:
              * css/cssstyleselector.h:
              * khtml/ecma/kjs_binding.cpp:
              * khtml/ecma/kjs_binding.h:
              * khtml/ecma/kjs_navigator.cpp:
              * khtml/ecma/kjs_navigator.h:
              * khtml/ecma/kjs_proxy.h:
              * khtml/ecma/kjs_window.h:
              * khtml/editing/SelectionController.h:
              * khtml/editing/jsediting.h:
              * khtml/html/html_baseimpl.h:
              * khtml/html/html_documentimpl.cpp:
              * khtml/html/html_documentimpl.h:
              * khtml/html/html_headimpl.h:
              * khtml/html/htmlparser.h:
              * khtml/html/htmltokenizer.h:
              * khtml/xml/DOMImplementationImpl.h:
              * khtml/xml/DocumentImpl.h:
              * khtml/xml/dom2_eventsimpl.h:
              * khtml/xml/xml_tokenizer.h:
              * khtml/xsl/xslt_processorimpl.h:
              * ksvg2/svg/SVGDocumentImpl.cpp:
              * kwq/KWQClipboard.h:
              * kwq/KWQComboBox.mm:
              * kwq/KWQFileButton.h:
              * kwq/KWQFrame.mm:
              * kwq/KWQKJavaAppletWidget.h:
              * kwq/KWQListBox.mm:
              * kwq/KWQSignalStubs.cpp:
              * kwq/KWQSlider.mm:
              * kwq/KWQTextField.mm:
              * kwq/KWQWidget.mm:
              * kwq/WebCoreSettings.mm:
              * kwq/WebCoreTextRendererFactory.mm:
              * loader/DocLoader.h:
              * page/FrameTreeNode.cpp:
              * page/FrameTreeNode.h:
              * page/FrameView.cpp:
              * page/FrameView.h:
              * page/Page.cpp:
              * page/Page.h:
              * rendering/InlineTextBox.h:
              * rendering/font.cpp:
              * rendering/render_canvas.h:
              * rendering/render_frames.h:
              * rendering/render_object.h:
              * rendering/render_replaced.h:
              Updated for namespace and header changes.
      
      WebKit:
      
              Reviewed by Hyatt.
      
              * WebCoreSupport.subproj/WebFrameBridge.m:
              (-[WebFrameBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
              Updated for name change.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ffd93c32
  11. 18 Jan, 2006 1 commit
  12. 13 Jan, 2006 2 commits
    • mjs's avatar
      WebCore: · 037e2a7c
      mjs authored
              Rubber stamped by Eric.
      
              - rename WebCoreBridge to WebCoreFrameBridge
      
              * WebCore.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::createNewWindow):
              * bridge/mac/MacFrame.h:
              (MacFrame::bridge):
              * bridge/mac/MacFrame.mm:
              (MacFrame::submitForm):
              (MacFrame::createPart):
              (MacFrame::bridgeForWidget):
              (MacFrame::documentViewForNode):
              (MacFrame::setBridge):
              * bridge/mac/WebCoreBridge.h: Removed.
              * bridge/mac/WebCoreBridge.mm: Removed.
              * bridge/mac/WebCoreFrameBridge.h: Added.
              * bridge/mac/WebCoreFrameBridge.mm: Added.
              (-[WebCoreFrameBridge executionContextForView:]):
              (frameHasSelection):
              (-[WebCoreFrameBridge firstChild]):
              (-[WebCoreFrameBridge lastChild]):
              (-[WebCoreFrameBridge previousSibling]):
              (-[WebCoreFrameBridge nextSibling]):
              (-[WebCoreFrameBridge isDescendantOfFrame:]):
              (-[WebCoreFrameBridge traverseNextFrameStayWithin:]):
              (-[WebCoreFrameBridge appendChild:]):
              (-[WebCoreFrameBridge removeChild:]):
              (-[WebCoreFrameBridge childFrameNamed:]):
              (-[WebCoreFrameBridge _deepLastChildFrame]):
              (-[WebCoreFrameBridge nextFrameWithWrap:]):
              (-[WebCoreFrameBridge previousFrameWithWrap:]):
              (-[WebCoreFrameBridge _shouldAllowAccessFrom:]):
              (-[WebCoreFrameBridge _descendantFrameNamed:sourceFrame:]):
              (-[WebCoreFrameBridge _frameInAnyWindowNamed:sourceFrame:]):
              (-[WebCoreFrameBridge findFrameNamed:]):
              (+[WebCoreFrameBridge bridgeForDOMDocument:]):
              (-[WebCoreFrameBridge setParent:]):
              (-[WebCoreFrameBridge parent]):
              (nowPrinting):
              (-[WebCoreFrameBridge opener]):
              (-[WebCoreFrameBridge setOpener:]):
              (+[WebCoreFrameBridge stringWithData:textEncodingName:]):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject rendererForView:]):
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:]):
              * kwq/KWQFileButton.mm:
              (KWQFileButton::focusPolicy):
              * kwq/KWQFrame.mm:
              * kwq/KWQKJavaAppletWidget.mm:
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              (-[KWQTableView keyDown:]):
              (-[KWQTableView keyUp:]):
              * kwq/KWQLoader.mm:
              (KWQServeRequest):
              (KWQServeSynchronousRequest):
              (KWQCheckCacheObjectStatus):
              (KWQCacheObjectExpiresTime):
              * kwq/KWQSlider.mm:
              (QSlider::focusPolicy):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView textDidChange:]):
              (-[KWQTextAreaTextView _trackResizeFromMouseDown:]):
              (-[KWQTextAreaTextView keyDown:]):
              (-[KWQTextAreaTextView keyUp:]):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController controlTextDidBeginEditing:]):
              (-[KWQTextFieldController controlTextDidEndEditing:]):
              (-[KWQTextFieldController controlTextDidChange:]):
              (-[KWQTextFieldController control:textView:doCommandBySelector:]):
              (-[KWQTextFieldController textView:shouldHandleEvent:]):
              * kwq/KWQWidget.mm:
              (QWidget::setFocus):
              * kwq/KWQWindowWidget.h:
              * kwq/KWQWindowWidget.mm:
              (KWQWindowWidget::KWQWindowWidget):
              * kwq/WebCoreFrameNamespaces.h:
              * kwq/WebCoreFrameNamespaces.m:
              (+[WebCoreFrameNamespaces addFrame:toNamespace:]):
              * kwq/WebCoreFrameView.h:
              * kwq/WebCoreSettings.mm:
              * kwq/WebCoreTextRendererFactory.mm:
              * kwq/WebCoreViewFactory.h:
      
      WebKit:
      
              Rubber stamped by Eric.
      
              - rename WebBridge to WebFrameBridge
              
              - also removed all tabs from WebFrameBridge.m
      
              * DOM.subproj/WebDOMOperations.m:
              (-[DOMNode _bridge]):
              (-[DOMNode webArchive]):
              (-[DOMRange _bridge]):
              (-[DOMRange webArchive]):
              * DOM.subproj/WebDOMOperationsPrivate.h:
              * English.lproj/StringsNotToBeLocalized.txt:
              * Misc.subproj/WebCoreStatistics.m:
              * Misc.subproj/WebNSViewExtras.h:
              * Misc.subproj/WebNSViewExtras.m:
              (-[NSView _bridge]):
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              * Plugins.subproj/WebNetscapePluginEmbeddedView.m:
              * Plugins.subproj/WebNetscapePluginStream.m:
              (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
              * Plugins.subproj/WebPluginContainerCheck.m:
              (-[WebPluginContainerCheck _isForbiddenFileLoad]):
              * Plugins.subproj/WebPluginController.h:
              * Plugins.subproj/WebPluginController.m:
              (-[WebPluginController bridge]):
              * WebCoreSupport.subproj/WebBridge.h: Removed.
              * WebCoreSupport.subproj/WebBridge.m: Removed.
              * WebCoreSupport.subproj/WebFileButton.h:
              * WebCoreSupport.subproj/WebFileButton.m:
              (-[WebFileChooserButton initWithBridge:delegate:]):
              * WebCoreSupport.subproj/WebFrameBridge.h: Added.
              * WebCoreSupport.subproj/WebFrameBridge.m: Added.
              (-[WebFrameBridge mainFrame]):
              (-[WebFrameBridge createWindowWithURL:frameName:]):
              (-[WebFrameBridge canTargetLoadInFrame:]):
              (-[WebFrameBridge createChildFrameNamed:withURL:referrer:renderPart:allowsScrolling:marginWidth:marginHeight:]):
              (formDelegate):
              (-[WebFrameBridge createModalDialogWithURL:]):
              * WebCoreSupport.subproj/WebSubresourceLoader.m:
              * WebCoreSupport.subproj/WebTextRendererFactory.m:
              * WebCoreSupport.subproj/WebViewFactory.m:
              (-[WebViewFactory bridgeForView:]):
              * WebKit.xcodeproj/project.pbxproj:
              * WebView.subproj/WebDataSource.m:
              (-[WebDataSource _bridge]):
              (-[WebDataSource _receivedMainResourceError:complete:]):
              (-[WebDataSource _stringWithData:]):
              * WebView.subproj/WebDataSourcePrivate.h:
              * WebView.subproj/WebDebugDOMNode.m:
              * WebView.subproj/WebDefaultContextMenuDelegate.m:
              * WebView.subproj/WebFrame.m:
              (-[WebFrame _traverseNextFrameStayWithin::]):
              (Frame):
              (-[WebFrame _detachFromParent]):
              (-[WebFrame _bridge]):
              (-[WebFrame _initWithWebFrameView:webView:bridge:]):
              * WebView.subproj/WebFrameInternal.h:
              * WebView.subproj/WebFramePrivate.h:
              * WebView.subproj/WebFrameView.m:
              (-[WebFrameView webCoreBridge]):
              (-[WebFrameView _bridge]):
              * WebView.subproj/WebHTMLRepresentation.m:
              (+[WebHTMLRepresentation supportedMIMETypes]):
              (-[WebHTMLRepresentation _bridge]):
              (-[WebHTMLRepresentation documentSource]):
              * WebView.subproj/WebHTMLRepresentationPrivate.h:
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
              (-[WebHTMLView _deleteRange:killRing:prepend:smartDeleteOK:deletionAction:]):
              (-[WebHTMLView updateFocusState]):
              (-[NSArray validateUserInterfaceItem:]):
              (-[NSArray attributedString]):
              (-[NSArray selectedAttributedString]):
              (-[NSArray concludeDragForDraggingInfo:actionMask:]):
              (-[NSArray keyDown:]):
              (-[NSArray _alterCurrentSelection:direction:granularity:]):
              (-[NSArray _alterCurrentSelection:verticalDistance:]):
              (-[NSArray _expandSelectionToGranularity:]):
              (-[NSArray cut:]):
              (-[NSArray _applyStyleToSelection:withUndoAction:]):
              (-[NSArray _applyParagraphStyleToSelection:withUndoAction:]):
              (-[NSArray pasteAsPlainText:]):
              (-[NSArray insertNewline:]):
              (-[NSArray insertLineBreak:]):
              (-[NSArray insertParagraphSeparator:]):
              (-[NSArray _changeWordCaseWithSelector:]):
              (-[NSArray startSpeaking:]):
              (-[NSArray selectToMark:]):
              (-[NSArray swapWithMark:]):
              (-[NSArray transpose:]):
              (-[WebHTMLView characterIndexForPoint:]):
              (-[WebHTMLView firstRectForCharacterRange:]):
              (-[WebHTMLView selectedRange]):
              (-[WebHTMLView attributedSubstringFromRange:]):
              (-[WebHTMLView _selectMarkedText]):
              (-[WebHTMLView _selectRangeInMarkedText:]):
              (-[WebHTMLView setMarkedText:selectedRange:]):
              (-[WebHTMLView _selectionIsInsideMarkedText]):
              (-[WebTextCompleteController _insertMatch:]):
              (-[WebTextCompleteController doCompletion]):
              (-[WebTextCompleteController endRevertingChange:moveLeft:]):
              * WebView.subproj/WebHTMLViewPrivate.h:
              * WebView.subproj/WebImageView.m:
              * WebView.subproj/WebMainResourceLoader.m:
              * WebView.subproj/WebRenderNode.m:
              * WebView.subproj/WebResource.m:
              (-[WebResource _stringValue]):
              * WebView.subproj/WebScriptDebugDelegate.m:
              * WebView.subproj/WebTextView.m:
              * WebView.subproj/WebView.m:
              (-[WebView _createFrameNamed:inParent:allowsScrolling:]):
              (-[WebView _commonInitializationWithFrameName:groupName:]):
              (-[WebView writeSelectionWithPasteboardTypes:toPasteboard:]):
              (-[WebView moveDragCaretToPoint:]):
              (-[WebView shouldClose]):
              (-[WebView editableDOMRangeForPoint:]):
              (-[WebView setEditable:]):
              (-[WebView deleteSelection]):
              (-[WebView _bridgeForSelectedOrMainFrame]):
              (-[WebView _bridgeAtPoint:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12072 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      037e2a7c
    • darin's avatar
      - Replaced tabs with spaces in source files that had less than 10 lines with tabs. · d7d82ce1
      darin authored
              - Set allow-tabs Subversion property in source files that have more than 10 lines with tabs.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7d82ce1
  13. 11 Jan, 2006 1 commit
    • mjs's avatar
      Reviewed by Anders. · d4145d12
      mjs authored
              - renamed KHTMLPartPrivate to FramePrivate and KHTMLView to FrameView
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6490
      
              (also corresponding header renames, remove headers where not
              needed, and a few substantive changes to allow more header removal)
      
              * khtml/xml/dom_docimpl.h: moved m_selectedStylesheetSet here from
              KHTMLPartPrivate, since this was the only class using it.
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::processHttpEquiv): ditto
              (DocumentImpl::selectedStylesheetSet): ditto
              (DocumentImpl::setSelectedStylesheetSet): ditto
              (DocumentImpl::recalcStyleSelector): ditto
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMDocument::getValueProperty): Use new isCompleted method
              on Frame instead of accessing private field directly.
              (KJS::getDOMDocumentNode): remove gratuitous use of view()
              
              Just the renames:
              
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/KWQKHTMLView.cpp:
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              * bridge/mac/WebCoreBridge.mm:
              * khtml/css/cssstyleselector.cpp:
              * khtml/ecma/kjs_html.cpp:
              * khtml/ecma/kjs_traversal.cpp:
              * khtml/ecma/kjs_window.cpp:
              * khtml/ecma/xmlhttprequest.cpp:
              * khtml/editing/SelectionController.cpp:
              * khtml/editing/htmlediting.cpp:
              * khtml/html/html_baseimpl.cpp:
              * khtml/html/html_canvasimpl.cpp:
              * khtml/html/html_documentimpl.cpp:
              * khtml/html/html_elementimpl.cpp:
              * khtml/html/html_headimpl.cpp:
              * khtml/html/html_imageimpl.cpp:
              * khtml/html/html_inlineimpl.cpp:
              (DOM::HTMLAnchorElementImpl::defaultEventHandler):
              * khtml/html/html_objectimpl.cpp:
              * khtml/html/html_tableimpl.cpp:
              * khtml/html/htmlparser.cpp:
              * khtml/html/htmltokenizer.cpp:
              * khtml/rendering/bidi.cpp:
              * khtml/rendering/render_applet.cpp:
              * khtml/rendering/render_block.cpp:
              * khtml/rendering/render_box.cpp:
              * khtml/rendering/render_canvas.cpp:
              * khtml/rendering/render_flow.cpp:
              * khtml/rendering/render_form.cpp:
              * khtml/rendering/render_frames.cpp:
              * khtml/rendering/render_layer.cpp:
              * khtml/rendering/render_line.cpp:
              * khtml/rendering/render_object.cpp:
              * khtml/rendering/render_replaced.cpp:
              * khtml/rendering/render_table.cpp:
              * khtml/rendering/render_theme_mac.mm:
              * khtml/xml/dom2_eventsimpl.cpp:
              * khtml/xml/dom_elementimpl.cpp:
              * khtml/xml/dom_nodeimpl.cpp:
              * khtml/xml/xml_tokenizer.cpp:
              * khtml/xsl/xslt_processorimpl.cpp:
              * kwq/KWQAccObject.mm:
              * kwq/KWQFrame.mm:
              * kwq/KWQKJavaAppletWidget.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQRenderTreeDebug.cpp:
              * kwq/KWQSignalStubs.mm:
              * kwq/KWQWidget.mm:
              * page/Frame.cpp:
              (Frame::init):
              (Frame::submitForm):
              (Frame::isComplete):
              * page/Frame.h:
              * page/FramePrivate.h: Added.
              (FramePrivate::FramePrivate):
              (FramePrivate::~FramePrivate):
              * page/FrameView.cpp: Added.
              * page/FrameView.h: Added.
              * page/khtmlpart_p.h: Removed.
              * page/khtmlview.cpp: Removed.
              * page/khtmlview.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11996 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d4145d12
  14. 09 Jan, 2006 1 commit
    • mjs's avatar
      Reviewed by Darin. · 810e9764
      mjs authored
              - renamed KHTMLPart to Frame (and KWQKHTMLPart to MacFrame for now)
      
              * ForwardingHeaders/ksvg2/KSVGPart.h:
              * WebCore.xcodeproj/project.pbxproj:
              * khtml/Frame.cpp: Added.
              (khtml::PartStyleSheetLoader::PartStyleSheetLoader):
              (khtml::PartStyleSheetLoader::setStyleSheet):
              (Frame::Frame):
              (Frame::init):
              (Frame::~Frame):
              (Frame::restoreURL):
              (Frame::didOpenURL):
              (Frame::didExplicitOpen):
              (Frame::stopLoading):
              (Frame::closeURL):
              (Frame::browserExtension):
              (Frame::view):
              (Frame::setJScriptEnabled):
              (Frame::jScriptEnabled):
              (Frame::setMetaRefreshEnabled):
              (Frame::metaRefreshEnabled):
              (Frame::jScript):
              (Frame::replaceContentsWithScriptResult):
              (Frame::executeScript):
              (Frame::scheduleScript):
              (Frame::executeScheduledScript):
              (Frame::setJavaEnabled):
              (Frame::javaEnabled):
              (Frame::setPluginsEnabled):
              (Frame::pluginsEnabled):
              (Frame::slotDebugDOMTree):
              (Frame::slotDebugRenderTree):
              (Frame::setAutoloadImages):
              (Frame::autoloadImages):
              (Frame::clear):
              (Frame::openFile):
              (Frame::xmlDocImpl):
              (Frame::replaceDocImpl):
              (Frame::receivedFirstData):
              (Frame::slotFinished):
              (Frame::childBegin):
              (Frame::begin):
              (Frame::write):
              (Frame::end):
              (Frame::endIfNotLoading):
              (Frame::stop):
              (Frame::stopAnimations):
              (Frame::gotoAnchor):
              (Frame::slotFinishedParsing):
              (Frame::slotLoaderRequestStarted):
              (Frame::slotLoaderRequestDone):
              (Frame::checkCompleted):
              (Frame::checkEmitLoadEvent):
              (Frame::settings):
              (Frame::baseURL):
              (Frame::baseTarget):
              (Frame::completeURL):
              (Frame::scheduleRedirection):
              (Frame::scheduleLocationChange):
              (Frame::isScheduledLocationChangePending):
              (Frame::scheduleHistoryNavigation):
              (Frame::cancelRedirection):
              (Frame::changeLocation):
              (Frame::slotRedirect):
              (Frame::slotRedirection):
              (Frame::encoding):
              (Frame::setUserStyleSheet):
              (Frame::setStandardFont):
              (Frame::setFixedFont):
              (Frame::urlCursor):
              (Frame::onlyLocalReferences):
              (Frame::setOnlyLocalReferences):
              (Frame::selectedText):
              (Frame::hasSelection):
              (Frame::selection):
              (Frame::selectionGranularity):
              (Frame::setSelectionGranularity):
              (Frame::dragCaret):
              (Frame::mark):
              (Frame::setMark):
              (Frame::setSelection):
              (Frame::setDragCaret):
              (Frame::clearSelection):
              (Frame::invalidateSelection):
              (Frame::setCaretVisible):
              (Frame::clearCaretRectIfNeeded):
              (isFrameElement):
              (Frame::setFocusNodeIfNeeded):
              (Frame::selectionLayoutChanged):
              (Frame::setXPosForVerticalArrowNavigation):
              (Frame::xPosForVerticalArrowNavigation):
              (Frame::timerEvent):
              (Frame::paintCaret):
              (Frame::paintDragCaret):
              (Frame::urlSelected):
              (Frame::requestFrame):
              (Frame::requestFrameName):
              (Frame::requestObject):
              (Frame::processObjectRequest):
              (Frame::submitFormAgain):
              (Frame::submitForm):
              (Frame::slotParentCompleted):
              (Frame::slotChildStarted):
              (Frame::slotChildCompleted):
              (Frame::childFrame):
              (Frame::findFrame):
              (Frame::frameExists):
              (Frame::parentFrame):
              (Frame::zoomFactor):
              (Frame::slotIncZoom):
              (Frame::slotDecZoom):
              (Frame::setZoomFactor):
              (Frame::setJSStatusBarText):
              (Frame::setJSDefaultStatusBarText):
              (Frame::jsStatusBarText):
              (Frame::jsDefaultStatusBarText):
              (Frame::referrer):
              (Frame::lastModified):
              (Frame::reparseConfiguration):
              (Frame::frameNames):
              (Frame::frames):
              (Frame::childFrameNamed):
              (Frame::setDNDEnabled):
              (Frame::dndEnabled):
              (Frame::shouldDragAutoNode):
              (Frame::customEvent):
              (Frame::isPointInsideSelection):
              (Frame::selectClosestWordFromMouseEvent):
              (Frame::handleMousePressEventDoubleClick):
              (Frame::handleMousePressEventTripleClick):
              (Frame::handleMousePressEventSingleClick):
              (Frame::khtmlMousePressEvent):
              (Frame::khtmlMouseDoubleClickEvent):
              (Frame::handleMouseMoveEventSelection):
              (Frame::khtmlMouseMoveEvent):
              (Frame::khtmlMouseReleaseEvent):
              (Frame::khtmlDrawContentsEvent):
              (Frame::startAutoScroll):
              (Frame::stopAutoScroll):
              (Frame::selectAll):
              (Frame::selectContentsOfNode):
              (Frame::shouldChangeSelection):
              (Frame::shouldBeginEditing):
              (Frame::shouldEndEditing):
              (Frame::isContentEditable):
              (Frame::lastEditCommand):
              (Frame::appliedEditing):
              (Frame::unappliedEditing):
              (Frame::reappliedEditing):
              (Frame::typingStyle):
              (Frame::setTypingStyle):
              (Frame::clearTypingStyle):
              (Frame::slotPartRemoved):
              (Frame::createHTMLEventListener):
              (Frame::opener):
              (Frame::setOpener):
              (Frame::openedByJS):
              (Frame::setOpenedByJS):
              (Frame::preloadStyleSheet):
              (Frame::preloadScript):
              (Frame::restored):
              (Frame::incrementFrameCount):
              (Frame::decrementFrameCount):
              (Frame::topLevelFrameCount):
              (Frame::tabsToLinks):
              (Frame::tabsToAllControls):
              (Frame::copyToPasteboard):
              (Frame::cutToPasteboard):
              (Frame::pasteFromPasteboard):
              (Frame::pasteAndMatchStyle):
              (Frame::transpose):
              (Frame::redo):
              (Frame::undo):
              (Frame::computeAndSetTypingStyle):
              (Frame::applyStyle):
              (Frame::applyParagraphStyle):
              (updateState):
              (Frame::selectionHasStyle):
              (Frame::selectionStartHasStyle):
              (Frame::selectionStartStylePropertyValue):
              (Frame::selectionComputedStyle):
              (Frame::applyEditingStyleToBodyElement):
              (Frame::removeEditingStyleFromBodyElement):
              (Frame::applyEditingStyleToElement):
              (Frame::removeEditingStyleFromElement):
              (Frame::isCharacterSmartReplaceExempt):
              (Frame::connectChild):
              (Frame::disconnectChild):
              (Frame::keepAlive):
              (Frame::slotEndLifeSupport):
              (Frame::selectFrameElementInParentIfFullySelected):
              (Frame::handleFallbackContent):
              * khtml/Frame.h: Added.
              * khtml/css/cssstyleselector.cpp:
              (khtml::CSSStyleSelector::CSSStyleSelector):
              (khtml::CSSStyleSelector::initForStyleResolve):
              (khtml::CSSStyleSelector::checkOneSelector):
              (khtml::CSSStyleSelector::applyProperty):
              (khtml::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
              * khtml/css/cssstyleselector.h:
              * khtml/ecma/kjs_binding.cpp:
              (KJS::ScriptInterpreter::ScriptInterpreter):
              (KJS::ScriptInterpreter::~ScriptInterpreter):
              * khtml/ecma/kjs_binding.h:
              (KJS::ScriptInterpreter::frame):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMDocument::getValueProperty):
              (KJS::getDOMDocumentNode):
              (KJS::checkNodeSecurity):
              * khtml/ecma/kjs_events.cpp:
              (KJS::JSAbstractEventListener::handleEvent):
              (KJS::JSLazyEventListener::parseCode):
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::HTMLDocFunction::callAsFunction):
              (KJS::HTMLDocument::namedItemGetter):
              (KJS::HTMLDocument::getValueProperty):
              (KJS::KJS::HTMLDocument::putValueProperty):
              (KJS::HTMLElement::framesetNameGetter):
              (KJS::HTMLElement::frameWindowPropertyGetter):
              (KJS::HTMLElement::getOwnPropertySlot):
              (KJS::KJS::HTMLElement::implementsCall):
              (KJS::Image::notifyFinished):
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::Navigator::Navigator):
              (KJS::Navigator::getValueProperty):
              (KJS::NavigatorFunc::callAsFunction):
              * khtml/ecma/kjs_navigator.h:
              (KJS::Navigator::frame):
              * khtml/ecma/kjs_proxy.cpp:
              (KJSProxyImpl::KJSProxyImpl):
              (KJSProxyImpl::evaluate):
              (KJSProxyImpl::clear):
              (KJSProxyImpl::createHTMLEventHandler):
              (KJSProxyImpl::interpreter):
              (KJSProxyImpl::initScript):
              * khtml/ecma/kjs_proxy.h:
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::JSNodeFilterCondition::acceptNode):
              * khtml/ecma/kjs_window.cpp:
              (KJS::History::History):
              (KJS::FrameArray::FrameArray):
              (KJS::Screen::getValueProperty):
              (KJS::Window::Window):
              (KJS::Window::interpreter):
              (KJS::Window::retrieveWindow):
              (KJS::Window::retrieve):
              (KJS::Window::location):
              (KJS::Window::selection):
              (KJS::Window::locationbar):
              (KJS::Window::menubar):
              (KJS::Window::personalbar):
              (KJS::Window::statusbar):
              (KJS::Window::toolbar):
              (KJS::Window::scrollbars):
              (KJS::allowPopUp):
              (KJS::createNewWindow):
              (KJS::canShowModalDialog):
              (KJS::canShowModalDialogNow):
              (KJS::showModalDialog):
              (KJS::Window::getValueProperty):
              (KJS::Window::childFrameGetter):
              (KJS::Window::namedFrameGetter):
              (KJS::Window::indexGetter):
              (KJS::Window::namedItemGetter):
              (KJS::Window::getOwnPropertySlot):
              (KJS::Window::put):
              (KJS::Window::toBoolean):
              (KJS::Window::scheduleClose):
              (KJS::Window::isSafeScript):
              (KJS::Window::setListener):
              (KJS::Window::getListener):
              (KJS::Window::setCurrentEvent):
              (KJS::WindowFunc::callAsFunction):
              (KJS::Window::updateLayout):
              (KJS::ScheduledAction::execute):
              (KJS::WindowQObject::WindowQObject):
              (KJS::FrameArray::getValueProperty):
              (KJS::FrameArray::indexGetter):
              (KJS::FrameArray::nameGetter):
              (KJS::FrameArray::getOwnPropertySlot):
              (KJS::Location::Location):
              (KJS::Location::getValueProperty):
              (KJS::Location::getOwnPropertySlot):
              (KJS::Location::put):
              (KJS::Location::toString):
              (KJS::LocationFunc::callAsFunction):
              (KJS::Selection::Selection):
              (KJS::Selection::getValueProperty):
              (KJS::Selection::getOwnPropertySlot):
              (KJS::Selection::toString):
              (KJS::SelectionFunc::callAsFunction):
              (KJS::BarInfo::BarInfo):
              (KJS::BarInfo::getValueProperty):
              (KJS::BarInfo::getOwnPropertySlot):
              (KJS::History::getValueProperty):
              (KJS::HistoryFunc::callAsFunction):
              * khtml/ecma/kjs_window.h:
              (KJS::Window::frame):
              (KJS::Location::frame):
              (KJS::Selection::frame):
              (KJS::BarInfo::frame):
              * khtml/ecma/xmlhttprequest.cpp:
              (KJS::XMLHttpRequest::changeState):
              (KJS::XMLHttpRequestProtoFunc::callAsFunction):
              * khtml/editing/SelectionController.cpp:
              (khtml::SelectionController::modify):
              (khtml::SelectionController::xPosForVerticalArrowNavigation):
              * khtml/editing/SelectionController.h:
              (khtml::SelectionController::frame):
              * khtml/editing/delete_selection_command.cpp:
              (khtml::DeleteSelectionCommand::calculateTypingStyleAfterDelete):
              * khtml/editing/edit_command.cpp:
              (khtml::EditCommand::EditCommand):
              (khtml::EditCommand::apply):
              (khtml::EditCommand::unapply):
              (khtml::EditCommand::reapply):
              (khtml::EditCommand::styleAtPosition):
              * khtml/editing/htmlediting.cpp:
              * khtml/editing/insert_line_break_command.cpp:
              (khtml::InsertLineBreakCommand::doApply):
              * khtml/editing/insert_text_command.cpp:
              (khtml::InsertTextCommand::input):
              * khtml/editing/jsediting.cpp:
              (DOM::JSEditor::execCommand):
              (DOM::JSEditor::queryCommandEnabled):
              (DOM::JSEditor::queryCommandIndeterm):
              (DOM::JSEditor::queryCommandState):
              (DOM::JSEditor::queryCommandValue):
              * khtml/editing/jsediting.h:
              * khtml/editing/replace_selection_command.cpp:
              (khtml::ReplaceSelectionCommand::doApply):
              * khtml/editing/text_granularity.h:
              * khtml/editing/typing_command.cpp:
              (khtml::TypingCommand::deleteKeyPressed):
              (khtml::TypingCommand::forwardDeleteKeyPressed):
              (khtml::TypingCommand::insertText):
              (khtml::TypingCommand::insertLineBreak):
              (khtml::TypingCommand::insertParagraphSeparatorInQuotedContent):
              (khtml::TypingCommand::insertParagraphSeparator):
              (khtml::TypingCommand::markMisspellingsAfterTyping):
              (khtml::TypingCommand::typingAddedToOpenCommand):
              (khtml::TypingCommand::insertTextRunWithoutNewlines):
              * khtml/html/html_baseimpl.cpp:
              (HTMLFrameElementImpl::isURLAllowed):
              (HTMLFrameElementImpl::openURL):
              (HTMLFrameElementImpl::attach):
              (HTMLFrameElementImpl::close):
              (HTMLFrameElementImpl::contentPart):
              (HTMLFrameElementImpl::contentDocument):
              (HTMLIFrameElementImpl::attach):
              * khtml/html/html_baseimpl.h:
              * khtml/html/html_canvasimpl.cpp:
              * khtml/html/html_documentimpl.cpp:
              (DOM::HTMLDocumentImpl::lastModified):
              * khtml/html/html_elementimpl.cpp:
              (HTMLElementImpl::isContentEditable):
              (HTMLElementImpl::setContentEditable):
              * khtml/html/html_formimpl.cpp:
              (DOM::HTMLFormElementImpl::formData):
              (DOM::HTMLFormElementImpl::prepareSubmit):
              (DOM::HTMLFormElementImpl::submit):
              (DOM::HTMLFormElementImpl::reset):
              (DOM::HTMLGenericFormElementImpl::isKeyboardFocusable):
              (DOM::HTMLKeygenElementImpl::appendFormData):
              * khtml/html/html_headimpl.cpp:
              (HTMLBaseElementImpl::process):
              (HTMLLinkElementImpl::process):
              (HTMLScriptElementImpl::parseMappedAttribute):
              (HTMLScriptElementImpl::insertedIntoDocument):
              (HTMLScriptElementImpl::evaluateScript):
              * khtml/html/html_imageimpl.cpp:
              * khtml/html/html_inlineimpl.cpp:
              (DOM::HTMLAnchorElementImpl::isKeyboardFocusable):
              (DOM::HTMLAnchorElementImpl::defaultEventHandler):
              * khtml/html/html_objectimpl.cpp:
              (DOM::HTMLAppletElementImpl::createRenderer):
              (DOM::HTMLAppletElementImpl::getAppletInstance):
              (DOM::HTMLEmbedElementImpl::getEmbedInstance):
              (DOM::HTMLEmbedElementImpl::rendererIsNeeded):
              (DOM::HTMLObjectElementImpl::getObjectInstance):
              (DOM::HTMLObjectElementImpl::rendererIsNeeded):
              * khtml/html/html_tableimpl.cpp:
              * khtml/html/htmlparser.cpp:
              (HTMLParser::noscriptCreateErrorCheck):
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::scriptHandler):
              (khtml::HTMLTokenizer::scriptExecution):
              (khtml::HTMLTokenizer::parseTag):
              (khtml::HTMLTokenizer::write):
              (khtml::HTMLTokenizer::stopParsing):
              (khtml::HTMLTokenizer::timerEvent):
              (khtml::HTMLTokenizer::processToken):
              * khtml/khtml_part.cpp: Removed.
              * khtml/khtml_part.h: Removed.
              * khtml/khtmlpart_p.h:
              (KHTMLPartPrivate::KHTMLPartPrivate):
              * khtml/khtmlview.cpp:
              (KHTMLView::KHTMLView):
              (KHTMLView::~KHTMLView):
              (KHTMLView::clearPart):
              (KHTMLView::clear):
              (KHTMLView::resizeEvent):
              (KHTMLView::adjustViewSize):
              (KHTMLView::layout):
              (KHTMLView::updateDashboardRegions):
              (KHTMLView::viewportMousePressEvent):
              (KHTMLView::viewportMouseDoubleClickEvent):
              (selectCursor):
              (KHTMLView::viewportMouseMoveEvent):
              (KHTMLView::viewportMouseReleaseEvent):
              (KHTMLView::keyPressEvent):
              (KHTMLView::dispatchDragEvent):
              (KHTMLView::updateDragAndDrop):
              (KHTMLView::focusNextPrevNode):
              (KHTMLView::mediaType):
              (KHTMLView::dispatchMouseEvent):
              (KHTMLView::viewportWheelEvent):
              (KHTMLView::focusInEvent):
              (KHTMLView::focusOutEvent):
              (KHTMLView::timerEvent):
              (KHTMLView::scheduleRelayout):
              (KHTMLView::unscheduleRelayout):
              * khtml/khtmlview.h:
              (KHTMLView::frame):
              * khtml/misc/CachedImageCallback.cpp:
              (khtml::CachedImageCallback::notifyUpdate):
              (khtml::CachedImageCallback::notifyFinished):
              (khtml::CachedImageCallback::clear):
              * khtml/misc/CachedObject.h:
              * khtml/misc/DocLoader.cpp:
              (khtml::DocLoader::DocLoader):
              (khtml::DocLoader::requestImage):
              (khtml::DocLoader::requestStyleSheet):
              (khtml::DocLoader::requestScript):
              (khtml::DocLoader::requestXSLStyleSheet):
              (khtml::DocLoader::requestXBLDocument):
              * khtml/misc/DocLoader.h:
              (khtml::DocLoader::frame):
              * khtml/misc/loader.cpp:
              (khtml::Loader::slotReceivedResponse):
              * khtml/rendering/InlineTextBox.cpp:
              (khtml::InlineTextBox::paint):
              (khtml::InlineTextBox::paintMarkedTextUnderline):
              * khtml/rendering/InlineTextBox.h:
              * khtml/rendering/render_applet.cpp:
              (RenderApplet::createWidgetIfNecessary):
              * khtml/rendering/render_block.cpp:
              (khtml::RenderBlock::paintCaret):
              * khtml/rendering/render_canvas.cpp:
              * khtml/rendering/render_form.cpp:
              (RenderFileButton::RenderFileButton):
              * khtml/rendering/render_frames.cpp:
              (isURLAllowed):
              (RenderPartObject::updateWidget):
              * khtml/rendering/render_layer.cpp:
              * khtml/rendering/render_object.cpp:
              (RenderObject::draggableNode):
              * khtml/rendering/render_replaced.cpp:
              (RenderWidget::eventFilter):
              * khtml/xml/dom2_eventsimpl.h:
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::DocumentImpl):
              (DocumentImpl::updateTitle):
              (DocumentImpl::frame):
              (DocumentImpl::recalcStyle):
              (DocumentImpl::updateSelection):
              (DocumentImpl::open):
              (DocumentImpl::close):
              (DocumentImpl::implicitClose):
              (DocumentImpl::processHttpEquiv):
              (DocumentImpl::selectedStylesheetSet):
              (DocumentImpl::setSelectedStylesheetSet):
              (DocumentImpl::recalcStyleSelector):
              (DocumentImpl::relinquishesEditingFocus):
              (DocumentImpl::acceptsEditingFocus):
              (DocumentImpl::clearSelectionIfNeeded):
              (DocumentImpl::createHTMLEventListener):
              (DocumentImpl::ownerElement):
              (DocumentImpl::referrer):
              (DocumentImpl::parentDocument):
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_elementimpl.cpp:
              (ElementImpl::focus):
              * khtml/xml/dom_nodeimpl.cpp:
              (DOM::NodeImpl::dispatchEvent):
              * khtml/xml/dom_xmlimpl.cpp:
              (DOM::ProcessingInstructionImpl::checkStyleSheet):
              * khtml/xml/xml_tokenizer.cpp:
              (khtml::XMLTokenizer::processingInstruction):
              (khtml::XMLTokenizer::executeScripts):
              (khtml::XMLTokenizer::notifyFinished):
              * khtml/xsl/xslt_processorimpl.cpp:
              (DOM::XSLTProcessorImpl::createDocumentFromSource):
              * ksvg2/svg/SVGAElementImpl.cpp:
              (SVGAElementImpl::defaultEventHandler):
              * ksvg2/svg/SVGImageElementImpl.cpp:
              (SVGImageElementImpl::notifyFinished):
              * kwq/DOM.mm:
              (-[DOMNode KJS::Bindings::]):
              * kwq/DOMHTML.mm:
              * kwq/DOMInternal.mm:
              (-[WebScriptObject _initializeScriptDOMNodeImp]):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject textUnderElement]):
              (-[KWQAccObject value]):
              (-[KWQAccObject accessibilityPerformAction:]):
              (-[KWQAccObject accessibilityAttributeValue:]):
              (-[KWQAccObject doAXTextMarkerForPosition:]):
              (-[KWQAccObject rendererForView:]):
              (-[KWQAccObject doSetAXSelectedTextMarkerRange:]):
              * kwq/KWQClipboard.h:
              * kwq/KWQClipboard.mm:
              (KWQClipboard::KWQClipboard):
              (KWQClipboard::dragNSImage):
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:]):
              (-[KWQPopUpButton becomeFirstResponder]):
              (-[KWQPopUpButton resignFirstResponder]):
              (-[KWQPopUpButton nextKeyView]):
              (-[KWQPopUpButton previousKeyView]):
              * kwq/KWQFileButton.h:
              * kwq/KWQFileButton.mm:
              (KWQFileButton::KWQFileButton):
              (KWQFileButton::focusPolicy):
              (KWQFileButton::focusChanged):
              * kwq/KWQFrame.mm:
              (QFrame::setFrameStyle):
              * kwq/KWQKHTMLFactory.h:
              * kwq/KWQKHTMLPart.cpp: Removed.
              * kwq/KWQKHTMLPart.h: Removed.
              * kwq/KWQKHTMLPart.mm: Removed.
              * kwq/KWQKHTMLPartBrowserExtension.h:
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              (KHTMLPartBrowserExtension::KHTMLPartBrowserExtension):
              (KHTMLPartBrowserExtension::openURLRequest):
              (KHTMLPartBrowserExtension::createNewWindow):
              (KHTMLPartBrowserExtension::setIconURL):
              (KHTMLPartBrowserExtension::setTypedIconURL):
              (KHTMLPartBrowserExtension::canRunModal):
              (KHTMLPartBrowserExtension::canRunModalNow):
              (KHTMLPartBrowserExtension::runModal):
              * kwq/KWQKHTMLView.cpp:
              (KHTMLView::topLevelWidget):
              * kwq/KWQKJavaAppletWidget.h:
              * kwq/KWQKJavaAppletWidget.mm:
              (KJavaAppletWidget::KJavaAppletWidget):
              * kwq/KWQKPartsBrowserInterface.h:
              (KParts::BrowserInterface::BrowserInterface):
              * kwq/KWQKPartsBrowserInterface.mm:
              (KParts::BrowserInterface::property):
              (KParts::BrowserInterface::callMethod):
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              (-[KWQListBoxScrollView becomeFirstResponder]):
              (-[KWQTableView keyDown:]):
              (-[KWQTableView keyUp:]):
              (-[KWQTableView becomeFirstResponder]):
              (-[KWQTableView resignFirstResponder]):
              (-[KWQTableView nextKeyView]):
              (-[KWQTableView previousKeyView]):
              * kwq/KWQLoader.mm:
              (KWQServeRequest):
              (KWQServeSynchronousRequest):
              (KWQCheckIfReloading):
              (KWQCheckCacheObjectStatus):
              (KWQCacheObjectExpiresTime):
              * kwq/KWQObject.cpp:
              (QObject::inherits):
              (QObject::isFrame):
              * kwq/KWQObject.h:
              * kwq/KWQPageState.mm:
              (-[KWQPageState dealloc]):
              (-[KWQPageState finalize]):
              * kwq/KWQRegExp.cpp:
              (QRegExp::KWQRegExpPrivate::compile):
              * kwq/KWQRenderTreeDebug.cpp:
              (write):
              (writeSelection):
              * kwq/KWQSlider.mm:
              (-[KWQSlider becomeFirstResponder]):
              (-[KWQSlider resignFirstResponder]):
              (-[KWQSlider nextKeyView]):
              (-[KWQSlider previousKeyView]):
              (-[KWQSlider canBecomeKeyView]):
              (QSlider::focusPolicy):
              * kwq/KWQSlot.mm:
              (KWQSlot::KWQSlot):
              (KWQSlot::call):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView textDidChange:]):
              (-[KWQTextAreaTextView _isResizableByUser]):
              (-[KWQTextAreaTextView becomeFirstResponder]):
              (-[KWQTextAreaTextView nextKeyView]):
              (-[KWQTextAreaTextView previousKeyView]):
              (-[KWQTextAreaTextView _trackResizeFromMouseDown:]):
              (-[KWQTextAreaTextView drawRect:]):
              (-[KWQTextAreaTextView insertTab:]):
              (-[KWQTextAreaTextView insertBacktab:]):
              (-[KWQTextAreaTextView resignFirstResponder]):
              (-[KWQTextAreaTextView shouldDrawInsertionPoint]):
              (-[KWQTextAreaTextView selectedTextAttributes]):
              (-[KWQTextAreaTextView keyDown:]):
              (-[KWQTextAreaTextView keyUp:]):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController controlTextDidBeginEditing:]):
              (-[KWQTextFieldController controlTextDidEndEditing:]):
              (-[KWQTextFieldController controlTextDidChange:]):
              (-[KWQTextFieldController control:textView:doCommandBySelector:]):
              (-[KWQTextFieldController textView:shouldHandleEvent:]):
              (-[KWQTextFieldController setHasFocus:]):
              (-[KWQTextField nextKeyView]):
              (-[KWQTextField previousKeyView]):
              (-[KWQSecureTextField nextKeyView]):
              (-[KWQSecureTextField previousKeyView]):
              (-[KWQSearchField nextKeyView]):
              (-[KWQSearchField previousKeyView]):
              * kwq/KWQTimer.h:
              * kwq/KWQWidget.mm:
              (QWidget::setActiveWindow):
              (QWidget::hasFocus):
              (QWidget::setFocus):
              (QWidget::clearFocus):
              (QWidget::isVisible):
              (QWidget::mapFromGlobal):
              (QWidget::setIsSelected):
              * kwq/MacFrame.cpp: Added.
              (MacFrame::isFrameSet):
              * kwq/MacFrame.h: Added.
              (MacFrame::instances):
              (Mac):
              * kwq/MacFrame.mm: Added.
              (Frame::completed):
              (Frame::openURL):
              (Frame::onURL):
              (Frame::setStatusBarText):
              (Frame::started):
              (redirectionTimerMonitor):
              (MacFrame::MacFrame):
              (MacFrame::~MacFrame):
              (MacFrame::freeClipboard):
              (MacFrame::setSettings):
              (MacFrame::generateFrameName):
              (MacFrame::provisionalLoadStarted):
              (MacFrame::userGestureHint):
              (MacFrame::openURL):
              (MacFrame::openURLRequest):
              (MacFrame::didNotOpenURL):
              (MacFrame::currentForm):
              (MacFrame::searchForLabelsAboveCell):
              (MacFrame::searchForLabelsBeforeElement):
              (MacFrame::matchLabelsAgainstElement):
              (MacFrame::findString):
              (MacFrame::clearRecordedFormValues):
              (MacFrame::recordFormValue):
              (MacFrame::submitForm):
              (MacFrame::setEncoding):
              (MacFrame::addData):
              (Frame::frameDetached):
              (MacFrame::urlSelected):
              (MacFrame::createPart):
              (MacFrame::setView):
              (MacFrame::view):
              (MacFrame::setTitle):
              (MacFrame::setStatusBarText):
              (MacFrame::scheduleClose):
              (MacFrame::unfocusWindow):
              (MacFrame::revealSelection):
              (MacFrame::advanceToNextMisspelling):
              (MacFrame::scrollOverflow):
              (MacFrame::wheelEvent):
              (MacFrame::redirectionTimerStartedOrStopped):
              (MacFrame::paint):
              (MacFrame::adjustPageHeight):
              (MacFrame::renderer):
              (MacFrame::userAgent):
              (MacFrame::mimeTypeForFileName):
              (MacFrame::nextKeyViewInFrame):
              (MacFrame::nextKeyViewInFrameHierarchy):
              (MacFrame::nextKeyView):
              (MacFrame::nextKeyViewForWidget):
              (MacFrame::currentEventIsMouseDownInWidget):
              (MacFrame::currentEventIsKeyboardOptionTab):
              (MacFrame::handleKeyboardOptionTabInView):
              (MacFrame::tabsToLinks):
              (MacFrame::tabsToAllControls):
              (MacFrame::executionContextForDOM):
              (MacFrame::bindingRootObject):
              (MacFrame::windowScriptObject):
              (MacFrame::windowScriptNPObject):
              (MacFrame::partClearedInBegin):
              (MacFrame::pauseTimeouts):
              (MacFrame::resumeTimeouts):
              (MacFrame::canCachePage):
              (MacFrame::saveWindowProperties):
              (MacFrame::saveLocationProperties):
              (MacFrame::restoreWindowProperties):
              (MacFrame::restoreLocationProperties):
              (MacFrame::saveInterpreterBuiltins):
              (MacFrame::restoreInterpreterBuiltins):
              (MacFrame::openURLFromPageCache):
              (MacFrame::frameForWidget):
              (MacFrame::bridgeForWidget):
              (MacFrame::frameForNode):
              (MacFrame::documentViewForNode):
              (MacFrame::nodeForWidget):
              (MacFrame::setDocumentFocus):
              (MacFrame::clearDocumentFocus):
              (MacFrame::saveDocumentState):
              (MacFrame::restoreDocumentState):
              (MacFrame::mutableInstances):
              (MacFrame::updatePolicyBaseURL):
              (MacFrame::setPolicyBaseURL):
              (MacFrame::requestedURLString):
              (MacFrame::incomingReferrer):
              (MacFrame::forceLayout):
              (MacFrame::forceLayoutWithPageWidthRange):
              (MacFrame::sendResizeEvent):
              (MacFrame::sendScrollEvent):
              (MacFrame::runJavaScriptAlert):
              (MacFrame::runJavaScriptConfirm):
              (MacFrame::runJavaScriptPrompt):
              (MacFrame::locationbarVisible):
              (MacFrame::menubarVisible):
              (MacFrame::personalbarVisible):
              (MacFrame::scrollbarsVisible):
              (MacFrame::statusbarVisible):
              (MacFrame::toolbarVisible):
              (MacFrame::addMessageToConsole):
              (MacFrame::createEmptyDocument):
              (MacFrame::addMetaData):
              (MacFrame::keyEvent):
              (MacFrame::scrollToAnchor):
              (MacFrame::closeURL):
              (MacFrame::canMouseDownStartSelect):
              (MacFrame::khtmlMousePressEvent):
              (MacFrame::khtmlMouseDoubleClickEvent):
              (MacFrame::passWidgetMouseDownEventToWidget):
              (MacFrame::lastEventIsMouseUp):
              (MacFrame::mouseDownViewIfStillGood):
              (MacFrame::dragHysteresisExceeded):
              (MacFrame::dispatchDragSrcEvent):
              (MacFrame::eventMayStartDrag):
              (MacFrame::khtmlMouseMoveEvent):
              (MacFrame::dragSourceMovedTo):
              (MacFrame::dragSourceEndedAt):
              (MacFrame::dispatchCPPEvent):
              (MacFrame::mayCut):
              (MacFrame::mayCopy):
              (MacFrame::mayPaste):
              (MacFrame::tryCut):
              (MacFrame::tryCopy):
              (MacFrame::tryPaste):
              (MacFrame::khtmlMouseReleaseEvent):
              (MacFrame::clearTimers):
              (MacFrame::passSubframeEventToSubframe):
              (MacFrame::passWheelEventToChildWidget):
              (MacFrame::mouseDown):
              (MacFrame::mouseDragged):
              (MacFrame::mouseUp):
              (MacFrame::sendFakeEventsAfterWidgetTracking):
              (MacFrame::mouseMoved):
              (MacFrame::shouldDragAutoNode):
              (MacFrame::sendContextMenuEvent):
              (MacFrame::fileWrapperForElement):
              (MacFrame::attributedString):
              (MacFrame::selectionRect):
              (MacFrame::visibleSelectionRect):
              (MacFrame::centerSelectionInVisibleArea):
              (MacFrame::imageFromRect):
              (MacFrame::selectionImage):
              (MacFrame::snapshotDragImage):
              (MacFrame::styleForSelectionStart):
              (MacFrame::fontForSelection):
              (MacFrame::fontAttributesForSelectionStart):
              (MacFrame::baseWritingDirectionForSelectionStart):
              (MacFrame::topLevelWidget):
              (MacFrame::tokenizerProcessedData):
              (MacFrame::selectionStartOffset):
              (MacFrame::selectionEndOffset):
              (MacFrame::selectionStart):
              (MacFrame::selectionEnd):
              (MacFrame::setBridge):
              (MacFrame::overrideMediaType):
              (MacFrame::setMediaType):
              (MacFrame::setSelectionFromNone):
              (MacFrame::setDisplaysWithFocusAttributes):
              (MacFrame::displaysWithFocusAttributes):
              (MacFrame::setWindowHasFocus):
              (MacFrame::backslashAsCurrencySymbol):
              (MacFrame::bodyBackgroundColor):
              (MacFrame::keyboardUIMode):
              (MacFrame::setName):
              (MacFrame::didTellBridgeAboutLoad):
              (MacFrame::haveToldBridgeAboutLoad):
              (MacFrame::clear):
              (Frame::print):
              (MacFrame::getAppletInstanceForWidget):
              (MacFrame::getEmbedInstanceForWidget):
              (MacFrame::getObjectInstanceForWidget):
              (MacFrame::addPluginRootObject):
              (MacFrame::cleanupPluginRootObjects):
              (MacFrame::registerCommandForUndoOrRedo):
              (MacFrame::registerCommandForUndo):
              (MacFrame::registerCommandForRedo):
              (MacFrame::clearUndoRedoOperations):
              (MacFrame::issueUndoCommand):
              (MacFrame::issueRedoCommand):
              (MacFrame::issueCutCommand):
              (MacFrame::issueCopyCommand):
              (MacFrame::issuePasteCommand):
              (MacFrame::issuePasteAndMatchStyleCommand):
              (MacFrame::issueTransposeCommand):
              (Frame::canUndo):
              (Frame::canRedo):
              (Frame::canPaste):
              (MacFrame::markMisspellingsInAdjacentWords):
              (MacFrame::markMisspellings):
              (MacFrame::respondToChangedSelection):
              (MacFrame::shouldChangeSelection):
              (MacFrame::respondToChangedContents):
              (MacFrame::isContentEditable):
              (MacFrame::shouldBeginEditing):
              (MacFrame::shouldEndEditing):
              (convertAttributesToUnderlines):
              (MacFrame::setMarkedTextRange):
              (MacFrame::markedTextUsesUnderlines):
              (MacFrame::markedTextUnderlines):
              (MacFrame::canGoBackOrForward):
              (MacFrame::prepareForUserAction):
              (MacFrame::didFirstLayout):
              (MacFrame::dashboardRegionsDictionary):
              (MacFrame::dashboardRegionsChanged):
              (MacFrame::isCharacterSmartReplaceExempt):
              (MacFrame::isFrame):
              (MacFrame::mousePressNode):
              (MacFrame::handledOnloadEvents):
              (MacFrame::shouldClose):
              * kwq/WebCoreBridge.h:
              * kwq/WebCoreBridge.mm:
              (updateRenderingForBindings):
              (frameHasSelection):
              (+[WebCoreBridge bridgeForDOMDocument:]):
              (-[WebCoreBridge init]):
              (-[WebCoreBridge initializeSettings:]):
              (-[WebCoreBridge dealloc]):
              (-[WebCoreBridge finalize]):
              (-[WebCoreBridge part]):
              (-[WebCoreBridge setParent:]):
              (-[WebCoreBridge parent]):
              (-[WebCoreBridge provisionalLoadStarted]):
              (-[WebCoreBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
              (-[WebCoreBridge setEncoding:userChosen:]):
              (-[WebCoreBridge addData:]):
              (-[WebCoreBridge closeURL]):
              (-[WebCoreBridge stopLoading]):
              (-[WebCoreBridge didNotOpenURL:pageCache:]):
              (-[WebCoreBridge saveDocumentState]):
              (-[WebCoreBridge restoreDocumentState]):
              (-[WebCoreBridge scrollToAnchorWithURL:]):
              (-[WebCoreBridge scrollOverflowInDirection:granularity:]):
              (-[WebCoreBridge sendScrollWheelEvent:]):
              (-[WebCoreBridge saveDocumentToPageCache]):
              (-[WebCoreBridge canCachePage]):
              (-[WebCoreBridge clear]):
              (-[WebCoreBridge end]):
              (-[WebCoreBridge stop]):
              (-[WebCoreBridge handleFallbackContent]):
              (-[WebCoreBridge createKHTMLViewWithNSView:marginWidth:marginHeight:]):
              (-[WebCoreBridge scrollToAnchor:]):
              (-[WebCoreBridge isSelectionEditable]):
              (-[WebCoreBridge selectionState]):
              (-[WebCoreBridge _documentTypeString]):
              (-[WebCoreBridge selectedString]):
              (-[WebCoreBridge stringForRange:]):
              (-[WebCoreBridge selectAll]):
              (-[WebCoreBridge deselectAll]):
              (-[WebCoreBridge deselectText]):
              (-[WebCoreBridge isFrameSet]):
              (-[WebCoreBridge reapplyStylesForDeviceType:]):
              (nowPrinting):
              (-[WebCoreBridge _setupRootForPrinting:]):
              (-[WebCoreBridge forceLayoutAdjustingViewSize:]):
              (-[WebCoreBridge forceLayoutWithMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
              (-[WebCoreBridge sendResizeEvent]):
              (-[WebCoreBridge sendScrollEvent]):
              (-[WebCoreBridge drawRect:withPainter:]):
              (-[WebCoreBridge drawRect:]):
              (-[WebCoreBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
              (-[WebCoreBridge adjustPageHeightNew:top:bottom:limit:]):
              (-[WebCoreBridge copyDOMTree:]):
              (-[WebCoreBridge copyRenderTree:]):
              (-[WebCoreBridge removeFromFrame]):
              (-[WebCoreBridge installInFrame:]):
              (-[WebCoreBridge setActivationEventNumber:]):
              (-[WebCoreBridge mouseDown:]):
              (-[WebCoreBridge mouseDragged:]):
              (-[WebCoreBridge mouseUp:]):
              (-[WebCoreBridge mouseMoved:]):
              (-[WebCoreBridge sendContextMenuEvent:]):
              (-[WebCoreBridge currentForm]):
              (-[WebCoreBridge searchForLabels:beforeElement:]):
              (-[WebCoreBridge matchLabels:againstElement:]):
              (-[WebCoreBridge elementAtPoint:]):
              (-[WebCoreBridge URLWithAttributeString:]):
              (-[WebCoreBridge searchFor:direction:caseSensitive:wrap:]):
              (-[WebCoreBridge advanceToNextMisspelling]):
              (-[WebCoreBridge advanceToNextMisspellingStartingJustBeforeSelection]):
              (-[WebCoreBridge unmarkAllMisspellings]):
              (-[WebCoreBridge setTextSizeMultiplier:]):
              (-[WebCoreBridge textEncoding]):
              (-[WebCoreBridge nextKeyView]):
              (-[WebCoreBridge previousKeyView]):
              (-[WebCoreBridge nextKeyViewInsideWebFrameViews]):
              (-[WebCoreBridge previousKeyViewInsideWebFrameViews]):
              (-[WebCoreBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
              (-[WebCoreBridge windowScriptObject]):
              (-[WebCoreBridge windowScriptNPObject]):
              (-[WebCoreBridge DOMDocument]):
              (-[WebCoreBridge selectedAttributedString]):
              (-[WebCoreBridge attributedStringFrom:startOffset:to:endOffset:]):
              (-[WebCoreBridge selectionRect]):
              (-[WebCoreBridge visibleSelectionRect]):
              (-[WebCoreBridge centerSelectionInVisibleArea]):
              (-[WebCoreBridge selectionImage]):
              (-[WebCoreBridge setName:]):
              (-[WebCoreBridge name]):
              (-[WebCoreBridge URL]):
              (-[WebCoreBridge baseURL]):
              (-[WebCoreBridge referrer]):
              (-[WebCoreBridge domain]):
              (-[WebCoreBridge opener]):
              (-[WebCoreBridge setOpener:]):
              (-[WebCoreBridge needsLayout]):
              (-[WebCoreBridge setNeedsLayout]):
              (-[WebCoreBridge interceptKeyEvent:toView:]):
              (-[WebCoreBridge renderTreeAsExternalRepresentation]):
              (-[WebCoreBridge setSelectionFromNone]):
              (-[WebCoreBridge setDisplaysWithFocusAttributes:]):
              (-[WebCoreBridge setWindowHasFocus:]):
              (-[WebCoreBridge numPendingOrLoadingRequests]):
              (-[WebCoreBridge doneProcessingData]):
              (-[WebCoreBridge shouldClose]):
              (-[WebCoreBridge bodyBackgroundColor]):
              (-[WebCoreBridge selectionColor]):
              (-[WebCoreBridge adjustViewSize]):
              (-[WebCoreBridge accessibilityTree]):
              (-[WebCoreBridge setDrawsBackground:]):
              (-[WebCoreBridge rangeByExpandingSelectionWithGranularity:]):
              (-[WebCoreBridge rangeByAlteringCurrentSelection:direction:granularity:]):
              (-[WebCoreBridge alterCurrentSelection:direction:granularity:]):
              (-[WebCoreBridge rangeByAlteringCurrentSelection:verticalDistance:]):
              (-[WebCoreBridge alterCurrentSelection:verticalDistance:]):
              (-[WebCoreBridge selectionGranularity]):
              (-[WebCoreBridge setSelectedDOMRange:affinity:closeTyping:]):
              (-[WebCoreBridge selectedDOMRange]):
              (-[WebCoreBridge convertToNSRange:DOM::]):
              (-[WebCoreBridge convertToDOMRange:]):
              (-[WebCoreBridge selectNSRange:]):
              (-[WebCoreBridge selectedNSRange]):
              (-[WebCoreBridge selectionAffinity]):
              (-[WebCoreBridge setMarkDOMRange:]):
              (-[WebCoreBridge markDOMRange]):
              (-[WebCoreBridge setMarkedTextDOMRange:customAttributes:ranges:]):
              (-[WebCoreBridge markedTextDOMRange]):
              (-[WebCoreBridge markedTextNSRange]):
              (-[WebCoreBridge replaceMarkedTextWithText:]):
              (-[WebCoreBridge smartDeleteRangeForProposedRange:]):
              (-[WebCoreBridge smartInsertForString:replacingRange:beforeString:afterString:]):
              (-[WebCoreBridge documentFragmentWithMarkupString:baseURLString:]):
              (-[WebCoreBridge documentFragmentWithText:]):
              (-[WebCoreBridge documentFragmentWithNodesAsParagraphs:]):
              (-[WebCoreBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
              (-[WebCoreBridge insertLineBreak]):
              (-[WebCoreBridge insertParagraphSeparator]):
              (-[WebCoreBridge insertParagraphSeparatorInQuotedContent]):
              (-[WebCoreBridge insertText:selectInsertedText:]):
              (-[WebCoreBridge setSelectionToDragCaret]):
              (-[WebCoreBridge moveSelectionToDragCaret:smartMove:]):
              (-[WebCoreBridge _visiblePositionForPoint:]):
              (-[WebCoreBridge moveDragCaretToPoint:]):
              (-[WebCoreBridge removeDragCaret]):
              (-[WebCoreBridge dragCaretDOMRange]):
              (-[WebCoreBridge deleteSelectionWithSmartDelete:]):
              (-[WebCoreBridge deleteKeyPressedWithSmartDelete:]):
              (-[WebCoreBridge forwardDeleteKeyPressedWithSmartDelete:]):
              (-[WebCoreBridge typingStyle]):
              (-[WebCoreBridge setTypingStyle:withUndoAction:]):
              (-[WebCoreBridge applyStyle:withUndoAction:]):
              (-[WebCoreBridge applyParagraphStyle:withUndoAction:]):
              (-[WebCoreBridge selectionStartHasStyle:]):
              (-[WebCoreBridge selectionHasStyle:]):
              (-[WebCoreBridge applyEditingStyleToBodyElement]):
              (-[WebCoreBridge removeEditingStyleFromBodyElement]):
              (-[WebCoreBridge applyEditingStyleToElement:]):
              (-[WebCoreBridge removeEditingStyleFromElement:]):
              (-[WebCoreBridge fontForSelection:]):
              (-[WebCoreBridge fontAttributesForSelectionStart]):
              (-[WebCoreBridge baseWritingDirectionForSelectionStart]):
              (-[WebCoreBridge ensureSelectionVisible]):
              (-[WebCoreBridge eventMayStartDrag:]):
              (-[WebCoreBridge dragOperationForDraggingInfo:]):
              (-[WebCoreBridge dragExitedWithDraggingInfo:]):
              (-[WebCoreBridge concludeDragForDraggingInfo:]):
              (-[WebCoreBridge dragSourceMovedTo:]):
              (-[WebCoreBridge dragSourceEndedAt:operation:]):
              (-[WebCoreBridge mayDHTMLCut]):
              (-[WebCoreBridge mayDHTMLCopy]):
              (-[WebCoreBridge mayDHTMLPaste]):
              (-[WebCoreBridge tryDHTMLCut]):
              (-[WebCoreBridge tryDHTMLCopy]):
              (-[WebCoreBridge tryDHTMLPaste]):
              (-[WebCoreBridge rangeOfCharactersAroundCaret]):
              (-[WebCoreBridge dashboardRegions]):
              (-[WebCoreBridge executionContextForView:]):
              * kwq/WebCoreSettings.mm:
              (-[WebCoreSettings _updateAllViews]):
              * kwq/WebCoreTextRendererFactory.mm:
              (-[WebCoreTextRendererFactory clearCaches]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      810e9764
  15. 03 Oct, 2005 1 commit
    • mjs's avatar
      JavaScriptCore: · b64c50a2
      mjs authored
              Reviewed by Darin.
      
      	<rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc
      	http://bugzilla.opendarwin.org/show_bug.cgi?id=5243
      
      	A number of optimizations to the new threadsafe malloc that make it actually as fast
      	as dlmalloc (I measured wrong before) and as memory-efficient as the system malloc.
      
      	- use fastMalloc for everything - it now gets applied to all new/delete allocations
      	via a private inline operator new that is now included into every file via config.h.
      
      	- tweaked some of the numeric parameters for size classes and amount of wasted memory
      	allowed per allocation - this saves on memory use and consequently improves speed.
      
      	- so long as the allocator is not being used on background threads, get the per-thread
      	cache from a global variable instead of from pthread_getspecific, since the latter is slow.
      
      	- inline more functions, and force the ones GCC refuses to inline with
      	attribute(always_inline), nearly all of these have one call site so inlining them has
      	to be a win.
      
      	- use some tricks to calculate allocation size more efficiently and fewer times for small
      	allocations, to avoid hitting the huge size table array.
      
      	- avoid hitting the per-thread cache on code paths that don't need it.
      
      	- implement inline assembly version of spinlock for PowerPC (was already done for x86)
      
              * bindings/NP_jsobject.cpp:
              * bindings/c/c_class.cpp:
              * bindings/c/c_instance.cpp:
              * bindings/c/c_runtime.cpp:
              * bindings/c/c_utility.cpp:
              * bindings/jni/jni_class.cpp:
              * bindings/jni/jni_instance.cpp:
              * bindings/jni/jni_jsobject.cpp:
              * bindings/jni/jni_objc.mm:
              * bindings/jni/jni_runtime.cpp:
              * bindings/jni/jni_utility.cpp:
              * bindings/npruntime.cpp:
              * bindings/objc/WebScriptObject.mm:
              * bindings/objc/objc_class.mm:
              * bindings/objc/objc_instance.mm:
              * bindings/objc/objc_runtime.mm:
              * bindings/objc/objc_utility.mm:
              * bindings/runtime.cpp:
              * bindings/runtime_array.cpp:
              * bindings/runtime_method.cpp:
              * bindings/runtime_object.cpp:
              * bindings/runtime_root.cpp:
              * bindings/testbindings.cpp:
              * bindings/testbindings.mm:
              * kjs/array_object.cpp:
              (ArrayInstanceImp::ArrayInstanceImp):
              (ArrayInstanceImp::~ArrayInstanceImp):
              (ArrayInstanceImp::resizeStorage):
              * kjs/bool_object.cpp:
              * kjs/collector.cpp:
              (KJS::Collector::registerThread):
              * kjs/config.h:
              * kjs/debugger.cpp:
              * kjs/error_object.cpp:
              * kjs/function.cpp:
              * kjs/function_object.cpp:
              * kjs/identifier.cpp:
              (KJS::Identifier::rehash):
              * kjs/internal.cpp:
              (KJS::Parser::saveNewNode):
              (KJS::clearNewNodes):
              * kjs/interpreter.cpp:
              * kjs/lexer.cpp:
              (Lexer::doneParsing):
              (Lexer::makeIdentifier):
              (Lexer::makeUString):
              * kjs/list.cpp:
              * kjs/math_object.cpp:
              * kjs/nodes.cpp:
              * kjs/nodes.h:
              * kjs/nodes2string.cpp:
              * kjs/number_object.cpp:
              (integer_part_noexp):
              (char_sequence):
              * kjs/object.cpp:
              * kjs/object_object.cpp:
              * kjs/property_map.cpp:
              * kjs/property_slot.cpp:
              * kjs/protected_values.cpp:
              (KJS::ProtectedValues::rehash):
              * kjs/reference.cpp:
              * kjs/reference_list.cpp:
              * kjs/regexp.cpp:
              * kjs/regexp_object.cpp:
              * kjs/scope_chain.cpp:
              * kjs/scope_chain.h:
              * kjs/string_object.cpp:
              * kjs/testkjs.cpp:
              * kjs/ustring.h:
              * kjs/value.cpp:
              * kxmlcore/Assertions.mm:
              * kxmlcore/FastMalloc.cpp:
              (KXMLCore::InitSizeClasses):
              (KXMLCore::DLL_IsEmpty):
              (KXMLCore::DLL_Prepend):
              (KXMLCore::TCMalloc_Central_FreeList::Insert):
              (KXMLCore::TCMalloc_Central_FreeList::Remove):
              (KXMLCore::TCMalloc_Central_FreeList::Populate):
              (KXMLCore::TCMalloc_ThreadCache::Allocate):
              (KXMLCore::TCMalloc_ThreadCache::FetchFromCentralCache):
              (KXMLCore::fastMallocRegisterThread):
              (KXMLCore::TCMalloc_ThreadCache::GetCache):
              (KXMLCore::TCMalloc_ThreadCache::GetCacheIfPresent):
              (KXMLCore::TCMalloc_ThreadCache::CreateCacheIfNecessary):
              (KXMLCore::do_malloc):
              (KXMLCore::do_free):
              (KXMLCore::realloc):
              * kxmlcore/FastMalloc.h:
              (operator new):
              (operator delete):
              (operator new[]):
              (operator delete[]):
              * kxmlcore/HashTable.cpp:
              * kxmlcore/TCSpinLock.h:
              (TCMalloc_SpinLock::Lock):
              (TCMalloc_SpinLock::Unlock):
              (TCMalloc_SlowLock):
              * kxmlcore/TCSystemAlloc.cpp:
      
      WebCore:
      
              Reviewed by Darin.
      
      	<rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc
      	http://bugzilla.opendarwin.org/show_bug.cgi?id=5243
      
      	- use fastMalloc for everything - it now gets applied to all new/delete allocations
              via a private inline operator new that is now included into every file via config.h
      
              * WebCore.xcodeproj/project.pbxproj:
              * WebCorePrefix.h:
              * khtml/css/css_base.cpp:
              * khtml/css/css_base.h:
              * khtml/css/css_computedstyle.cpp:
              * khtml/css/css_ruleimpl.cpp:
              * khtml/css/css_stylesheetimpl.cpp:
              * khtml/css/css_valueimpl.cpp:
              * khtml/css/css_valueimpl.h:
              * khtml/css/csshelper.cpp:
              * khtml/css/cssparser.cpp:
              (ValueList::ValueList):
              (ValueList::~ValueList):
              (ValueList::addValue):
              (CSSParser::CSSParser):
              (CSSParser::~CSSParser):
              (CSSParser::setupParser):
              (CSSParser::addProperty):
              * khtml/css/cssstyleselector.cpp:
              * khtml/css/cssstyleselector.h:
              * khtml/dom/dom2_events.cpp:
              * khtml/dom/dom2_traversal.cpp:
              * khtml/dom/dom_misc.cpp:
              * khtml/dom/dom_string.cpp:
              * khtml/ecma/domparser.cpp:
              * khtml/ecma/kjs_binding.cpp:
              * khtml/ecma/kjs_css.cpp:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_events.cpp:
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::Gradient::~Gradient):
              (KJS::Gradient::addColorStop):
              (KJS::Gradient::colorStops):
              * khtml/ecma/kjs_navigator.cpp:
              * khtml/ecma/kjs_proxy.cpp:
              * khtml/ecma/kjs_range.cpp:
              * khtml/ecma/kjs_traversal.cpp:
              * khtml/ecma/kjs_views.cpp:
              * khtml/ecma/kjs_window.cpp:
              * khtml/ecma/xmlhttprequest.cpp:
              * khtml/ecma/xmlserializer.cpp:
              * khtml/editing/SelectionController.cpp:
              * khtml/editing/append_node_command.cpp:
              * khtml/editing/apply_style_command.cpp:
              * khtml/editing/break_blockquote_command.cpp:
              * khtml/editing/composite_edit_command.cpp:
              * khtml/editing/delete_from_text_node_command.cpp:
              * khtml/editing/delete_selection_command.cpp:
              * khtml/editing/edit_command.cpp:
              * khtml/editing/html_interchange.cpp:
              * khtml/editing/htmlediting.cpp:
              * khtml/editing/insert_into_text_node_command.cpp:
              * khtml/editing/insert_line_break_command.cpp:
              * khtml/editing/insert_node_before_command.cpp:
              * khtml/editing/insert_paragraph_separator_command.cpp:
              * khtml/editing/insert_text_command.cpp:
              * khtml/editing/join_text_nodes_command.cpp:
              * khtml/editing/jsediting.cpp:
              * khtml/editing/markup.cpp:
              * khtml/editing/merge_identical_elements_command.cpp:
              * khtml/editing/move_selection_command.cpp:
              * khtml/editing/rebalance_whitespace_command.cpp:
              * khtml/editing/remove_css_property_command.cpp:
              * khtml/editing/remove_node_attribute_command.cpp:
              * khtml/editing/remove_node_command.cpp:
              * khtml/editing/remove_node_preserving_children_command.cpp:
              * khtml/editing/replace_selection_command.cpp:
              * khtml/editing/set_node_attribute_command.cpp:
              * khtml/editing/split_element_command.cpp:
              * khtml/editing/split_text_node_command.cpp:
              * khtml/editing/split_text_node_containing_element.cpp:
              * khtml/editing/typing_command.cpp:
              * khtml/editing/visible_position.cpp:
              * khtml/editing/visible_range.cpp:
              * khtml/editing/visible_text.cpp:
              (khtml::CircularSearchBuffer::~CircularSearchBuffer):
              (khtml::CircularSearchBuffer::CircularSearchBuffer):
              * khtml/editing/visible_units.cpp:
              * khtml/editing/wrap_contents_in_dummy_span_command.cpp:
              * khtml/html/html_baseimpl.cpp:
              * khtml/html/html_blockimpl.cpp:
              * khtml/html/html_canvasimpl.cpp:
              * khtml/html/html_documentimpl.cpp:
              * khtml/html/html_elementimpl.cpp:
              * khtml/html/html_formimpl.cpp:
              * khtml/html/html_headimpl.cpp:
              * khtml/html/html_imageimpl.cpp:
              * khtml/html/html_inlineimpl.cpp:
              * khtml/html/html_listimpl.cpp:
              * khtml/html/html_miscimpl.cpp:
              * khtml/html/html_objectimpl.cpp:
              * khtml/html/html_tableimpl.cpp:
              * khtml/html/htmlfactory.cpp:
              * khtml/html/htmlnames.cpp:
              * khtml/html/htmlparser.cpp:
              * khtml/html/htmltokenizer.cpp:
              (khtml::HTMLTokenizer::enlargeBuffer):
              (khtml::HTMLTokenizer::enlargeScriptBuffer):
              * khtml/khtml_events.cpp:
              * khtml/khtml_part.cpp:
              * khtml/khtmlview.cpp:
              * khtml/misc/arena.cpp:
              * khtml/misc/arena.h:
              * khtml/misc/decoder.cpp:
              * khtml/misc/formdata.cpp:
              * khtml/misc/helper.cpp:
              * khtml/misc/loader.cpp:
              * khtml/misc/stringit.cpp:
              * khtml/rendering/bidi.cpp:
              * khtml/rendering/break_lines.cpp:
              * khtml/rendering/font.cpp:
              * khtml/rendering/render_arena.cpp:
              * khtml/rendering/render_block.cpp:
              * khtml/rendering/render_box.cpp:
              * khtml/rendering/render_br.cpp:
              * khtml/rendering/render_canvas.cpp:
              * khtml/rendering/render_canvasimage.cpp:
              (RenderCanvasImage::~RenderCanvasImage):
              (RenderCanvasImage::createDrawingContext):
              * khtml/rendering/render_container.cpp:
              * khtml/rendering/render_flexbox.cpp:
              * khtml/rendering/render_flow.cpp:
              * khtml/rendering/render_form.cpp:
              * khtml/rendering/render_frames.cpp:
              * khtml/rendering/render_image.cpp:
              * khtml/rendering/render_inline.cpp:
              * khtml/rendering/render_layer.cpp:
              * khtml/rendering/render_line.cpp:
              * khtml/rendering/render_list.cpp:
              * khtml/rendering/render_object.cpp:
              * khtml/rendering/render_replaced.cpp:
              * khtml/rendering/render_style.cpp:
              * khtml/rendering/render_style.h:
              * khtml/rendering/render_table.cpp:
              * khtml/rendering/render_text.cpp:
              * khtml/rendering/render_theme.cpp:
              * khtml/rendering/render_theme_mac.mm:
              * khtml/rendering/table_layout.cpp:
              * khtml/xbl/xbl_binding.cpp:
              * khtml/xbl/xbl_binding_manager.cpp:
              * khtml/xbl/xbl_docimpl.cpp:
              * khtml/xbl/xbl_protobinding.cpp:
              * khtml/xbl/xbl_protohandler.cpp:
              * khtml/xbl/xbl_protoimplementation.cpp:
              * khtml/xbl/xbl_tokenizer.cpp:
              * khtml/xml/EventNames.cpp:
              * khtml/xml/dom2_eventsimpl.cpp:
              * khtml/xml/dom2_eventsimpl.h:
              * khtml/xml/dom2_rangeimpl.cpp:
              * khtml/xml/dom2_rangeimpl.h:
              * khtml/xml/dom2_traversalimpl.cpp:
              * khtml/xml/dom2_traversalimpl.h:
              * khtml/xml/dom2_viewsimpl.cpp:
              * khtml/xml/dom2_viewsimpl.h:
              * khtml/xml/dom_atomicstring.cpp:
              * khtml/xml/dom_docimpl.cpp:
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_elementimpl.cpp:
              * khtml/xml/dom_elementimpl.h:
              * khtml/xml/dom_nodeimpl.cpp:
              * khtml/xml/dom_nodeimpl.h:
              * khtml/xml/dom_position.cpp:
              * khtml/xml/dom_qname.cpp:
              * khtml/xml/dom_stringimpl.cpp:
              * khtml/xml/dom_stringimpl.h:
              * khtml/xml/dom_textimpl.cpp:
              * khtml/xml/dom_xmlimpl.cpp:
              * khtml/xml/xml_tokenizer.cpp:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * khtml/xsl/xslt_processorimpl.cpp:
              * kwq/DOM-CSS.mm:
              * kwq/DOM.mm:
              * kwq/DOMEvents.mm:
              * kwq/DOMHTML.mm:
              * kwq/DOMInternal.mm:
              (DOMString::DOMString):
              * kwq/DOMUtility.mm:
              * kwq/DOMViews.mm:
              * kwq/KWQAccObject.mm:
              * kwq/KWQAccObjectCache.mm:
              * kwq/KWQApplication.mm:
              * kwq/KWQArrayImpl.h:
              * kwq/KWQArrayImpl.mm:
              * kwq/KWQBuffer.mm:
              * kwq/KWQButton.mm:
              * kwq/KWQCString.mm:
              * kwq/KWQCharsets.mm:
              * kwq/KWQClipboard.mm:
              * kwq/KWQCollection.mm:
              * kwq/KWQColor.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQCursor.mm:
              * kwq/KWQDateTime.mm:
              * kwq/KWQDictImpl.mm:
              * kwq/KWQEditCommand.mm:
              * kwq/KWQEvent.mm:
              * kwq/KWQExceptions.mm:
              * kwq/KWQFile.mm:
              * kwq/KWQFileButton.mm:
              * kwq/KWQFont.mm:
              * kwq/KWQFontFamily.h:
              * kwq/KWQFontFamily.mm:
              * kwq/KWQFontMetrics.mm:
              * kwq/KWQFormData.mm:
              * kwq/KWQFrame.mm:
              * kwq/KWQGlobal.mm:
              * kwq/KWQGuardedPtr.mm:
              * kwq/KWQKCharsets.mm:
              * kwq/KWQKConfigBase.mm:
              * kwq/KWQKCookieJar.mm:
              * kwq/KWQKCursor.mm:
              * kwq/KWQKGlobal.mm:
              * kwq/KWQKGlobalSettings.mm:
              * kwq/KWQKHTMLFactory.mm:
              * kwq/KWQKHTMLPart.cpp:
              * kwq/KWQKHTMLPart.mm:
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              * kwq/KWQKHTMLView.mm:
              * kwq/KWQKHistoryProvider.mm:
              * kwq/KWQKJavaAppletWidget.mm:
              * kwq/KWQKJob.mm:
              * kwq/KWQKJobClasses.mm:
              * kwq/KWQKLocale.mm:
              * kwq/KWQKPartsBrowserInterface.mm:
              * kwq/KWQKPartsEvent.mm:
              * kwq/KWQKPartsPart.mm:
              * kwq/KWQKSSLKeyGen.mm:
              * kwq/KWQKStandardDirs.mm:
              * kwq/KWQKStringHandler.mm:
              * kwq/KWQKURL.mm:
              (KURL::KURL):
              (KURL::decode_string):
              (KURL::parse):
              (KURL::encode_string):
              (encodeRelativeString):
              * kwq/KWQKWin.mm:
              * kwq/KWQKWinModule.mm:
              * kwq/KWQLabel.mm:
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQListImpl.mm:
              * kwq/KWQLoader.mm:
              (KWQIsResponseURLEqualToURL):
              * kwq/KWQMapImpl.h:
              * kwq/KWQMapImpl.mm:
              * kwq/KWQMovie.mm:
              * kwq/KWQObject.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQPaintDeviceMetrics.mm:
              * kwq/KWQPainter.mm:
              * kwq/KWQPalette.mm:
              * kwq/KWQPen.mm:
              * kwq/KWQPixmap.mm:
              * kwq/KWQPoint.mm:
              * kwq/KWQPointArray.mm:
              * kwq/KWQPtrDictImpl.mm:
              * kwq/KWQPushButton.mm:
              * kwq/KWQRect.mm:
              * kwq/KWQRegExp.mm:
              * kwq/KWQRegion.mm:
              * kwq/KWQRenderTreeDebug.cpp:
              * kwq/KWQResourceLoader.mm:
              * kwq/KWQScrollBar.mm:
              * kwq/KWQScrollView.mm:
              * kwq/KWQSignal.mm:
              * kwq/KWQSignalStubs.mm:
              * kwq/KWQSize.mm:
              * kwq/KWQSlider.mm:
              * kwq/KWQSlot.mm:
              * kwq/KWQString.h:
              * kwq/KWQString.mm:
              (ALLOC_CHAR):
              (REALLOC_CHAR):
              (DELETE_CHAR):
              (ALLOC_QCHAR):
              (REALLOC_QCHAR):
              (DELETE_QCHAR):
              (_printQStringAllocationStatistics):
              (allocateHandle):
              (KWQStringData::operator new):
              (KWQStringData::operator delete):
              (freeHandle):
              * kwq/KWQStringList.mm:
              * kwq/KWQStyle.mm:
              * kwq/KWQTextArea.mm:
              * kwq/KWQTextCodec.mm:
              * kwq/KWQTextEdit.mm:
              * kwq/KWQTextField.mm:
              * kwq/KWQTextStream.mm:
              * kwq/KWQTextUtilities.mm:
              * kwq/KWQTimer.mm:
              * kwq/KWQValueListImpl.h:
              * kwq/KWQValueListImpl.mm:
              * kwq/KWQVariant.mm:
              * kwq/KWQVectorImpl.mm:
              (KWQVectorImpl::KWQVectorImpl):
              (KWQVectorImpl::~KWQVectorImpl):
              (KWQVectorImpl::clear):
              (KWQVectorImpl::resize):
              (KWQVectorImpl::assign):
              * kwq/KWQWMatrix.mm:
              * kwq/KWQWidget.mm:
              * kwq/KWQWindowWidget.mm:
              * kwq/WebCoreBridge.mm:
              * kwq/WebCoreCache.mm:
              * kwq/WebCoreEncodings.mm:
              * kwq/WebCoreJavaScript.mm:
              * kwq/WebCoreScriptDebugger.mm:
              * kwq/WebCoreSettings.mm:
              * kwq/WebCoreTextRendererFactory.mm:
              * kwq/can-convert.mm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b64c50a2
  16. 18 May, 2005 1 commit
    • darin's avatar
      Reviewed by Maciej. · cfa71ee8
      darin authored
              No new layout tests required.
      
              - remove all dependencies on exceptions and RTTI (but don't turn them off yet, that will be in a later patch)
      
              * WebCore.pbproj/project.pbxproj: Set a new KHTML_NO_CPLUSPLUS_DOM define.
              Removed all C++ DOM wrapper files that we don't need to compile any more.
      
              * khtml/dom/css_stylesheet.h: Added more KHTML_NO_CPLUSPLUS_DOM checks so we don't include any
              headers when including this file.
      
              * khtml/dom/dom2_events.h: Fixed up KHTML_NO_CPLUSPLUS_DOM checks so that everything but EventListener
              is turned off when that's on. Also moved the public so that the constants from KeyboardEvent are public.
              * khtml/dom/dom2_events.cpp: Put everything except for EventListener inside KHTML_NO_CPLUSPLUS_DOM.
      
              * khtml/dom/dom2_range.h: Added KHTML_NO_CPLUSPLUS_DOM checks so that only the constants are defined,
              no classes.
      
              * khtml/dom/dom2_traversal.cpp: Put everything except for NodeFilterCondition inside KHTML_NO_CPLUSPLUS_DOM.
      
              * khtml/dom/dom_node.h: Added more KHTML_NO_CPLUSPLUS_DOM checks so we don't include any
              headers when including this file.
      
              * khtml/ecma/kjs_binding.cpp:
              (KJS::DOMObject::get): Removed exception-handling code. Now we can eliminate tryGet altogether.
              (KJS::DOMObject::put): Ditto.
              (KJS::DOMFunction::get): Ditto.
              (KJS::DOMFunction::call): Ditto.
      
              * khtml/editing/visible_text.h: Added an include of <qstring.h>.
      
              * khtml/misc/loader.h: Added isKHTMLLoader.
              * khtml/misc/loader.cpp: (Loader::isKHTMLLoader): Added. Poor-man's replacement for dynamic_cast.
      
              * khtml/rendering/render_form.h:
              * khtml/rendering/render_form.cpp: (RenderFormElement::slotTextChanged): Added. Hack to make KWQSlot work
              for this function.
      
              * khtml/xml/dom2_rangeimpl.h: Added a forward declaration of class DOMString, needed now that the C++
              DOM wrappers aren't defining it.
      
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::defaultEventHandler): Changed to call handleEventImpl so we don't have to make the
              C++ DOM wrapper for the event.
              * khtml/xml/dom_nodeimpl.cpp:
              (NodeImpl::handleLocalEvents): Ditto.
              (ContainerNodeImpl::insertBefore): Used SharedPtr<NodeImpl> rather than Node to protect the child node.
              (ContainerNodeImpl::replaceChild): Ditto.
              (ContainerNodeImpl::appendChild): Ditto.
              (ContainerNodeImpl::addChild): Ditto.
      
              * kwq/DOM.mm:
              (ObjCNodeFilterCondition::acceptNode): Update to add a KHTML_NO_CPLUSPLUS_DOM check since FilterCondition
              has a different API depending on the state.
              (-[DOMDocument createNodeIterator::::]): Rewrote to use NodeFilterImpl instead of NodeFilter.
              (-[DOMDocument createTreeWalker::::]): Ditto.
      
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject role]): Use identifier instead of casting to Node and using elementId.
              (-[KWQAccObject title]): Ditto.
              (-[KWQAccObject accessibilityIsIgnored]): Ditto.
              (-[KWQAccObject rendererForView:]): Ditto.
      
              * kwq/KWQFrame.mm: (QFrame::setFrameStyle): Use isKHTMLView instead of dynamic_cast.
      
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::currentForm): Use focusNode instead of activeNode.
              (KWQKHTMLPart::nextKeyViewInFrame): Use isWidget instead of dynamic_cast.
              (KWQKHTMLPart::currentEventIsMouseDownInWidget): Use KHTMLView's nodeUnderMouse instead of our public one
              that uses a DOM C++ wrapper.
              (KWQKHTMLPart::partForWidget): Use isKHTMLView instead of dynamic_cast.
              (KWQKHTMLPart::passSubframeEventToSubframe): Use isWidget instead of dynamic_cast.
      
              * kwq/KWQObject.h: Made isXXX functions all public since we use them in a few more places now.
              Also added isKHTMLLoader.
              * kwq/KWQObject.mm: (QObject::isKHTMLLoader): Added. Returns false by default.
      
              * kwq/KWQSlot.mm: Removed all uses of dynamic_cast.
      
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge stringForRange:]): Used plainText instead of text.
              (-[WebCoreBridge copyRenderNode:copier:]): Used isWidget instead of dynamic_cast.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9178 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cfa71ee8
  17. 13 Dec, 2004 1 commit
    • darin's avatar
      Reviewed by Ken. · ee6da9d3
      darin authored
              - moved markup-related functions into new sources files in the editing directory
              - removed all of the uses of dynamic_cast, preparing to turn off RTTI to make our code smaller and slightly faster
      
              * ForwardingHeaders/editing/markup.h: Added.
              * khtml/editing/markup.h: Added.
              * khtml/editing/markup.cpp: Added.
      
              * WebCore.pbproj/project.pbxproj: Added markup.h/cpp.
      
              * khtml/dom/dom_node.cpp: (Node::toHTML): Call createMarkup since there's no toHTML in NodeImpl any more.
              * khtml/html/html_elementimpl.cpp:
              (HTMLElementImpl::innerHTML): Changed to call createMarkup.
              (HTMLElementImpl::outerHTML): Ditto.
      
              * khtml/ecma/kjs_window.cpp:
              (Window::retrieveWindow): Comment out assert that uses dynamic_cast.
              (Window::retrieveActive): Ditto.
      
              * khtml/editing/htmlediting.h: Added forward class declaration needed now that I removed one elsewhere.
              * khtml/xml/dom_docimpl.h: Ditto.
      
              * khtml/khtml_part.cpp:
              (KHTMLPart::slotDebugDOMTree): Use createMarkup instead of toHTML.
              (KHTMLPart::processObjectRequest): Use inherits instead of dynamic_cast.
      
              * khtml/rendering/render_image.cpp: (RenderImage::paint): Add an explicit QChar conversion so this code
              still works even with the additional replace overloads added to QString.
              * kwq/KWQTextCodec.mm: (QTextCodec::fromUnicode): Ditto.
      
              * khtml/rendering/render_object.h: Removed the version of arenaDelete that does not take an object
              base pointer, because it used dynamic_cast in its implementation. Made the other version public.
              * khtml/rendering/render_object.cpp: Ditto.
              * khtml/rendering/render_replaced.cpp: (RenderWidget::deref): Pass object base pointer to arenaDelete.
      
              * khtml/xml/dom2_rangeimpl.h: Removed extra parameters from toHTML, and unneeded includes and declarations.
              * khtml/xml/dom2_rangeimpl.cpp: (DOM::RangeImpl::toHTML): Changed to call createMarkup, and moved all
              the support code into markup.cpp.
      
              * khtml/xml/dom_nodeimpl.h: Moved toHTML and related functions into markup.cpp.
              * khtml/xml/dom_nodeimpl.cpp: Ditto.
      
              * khtml/xml/dom_position.cpp:
              (DOM::startPosition): Implemented the version of this that takes a RangeImpl. Also added null checks
              so these return null positions rather than raising exceptions.
              (DOM::endPosition): Ditto.
      
              * khtml/khtmlview.h: Added an APPLE_CHANGES function so inherits can detect this class without dynamic_cast.
              * kwq/KWQFrame.h: Ditto.
              * kwq/KWQFrame.mm: (QFrame::isQFrame): Ditto.
              * kwq/KWQKPartsPart.h: Ditto.
              * kwq/KWQKPartsPart.mm: (KParts::ReadOnlyPart::isKPartsReadOnlyPart): Ditto.
              * kwq/KWQScrollView.h: Ditto.
              * kwq/KWQScrollView.mm: (QScrollView::isQScrollView): Ditto.
              * kwq/KWQKHTMLPart.h: Ditto.
              * kwq/KWQKHTMLPart.mm:
              (KHTMLView::isKHTMLView): Ditto.
              (KWQKHTMLPart::setTitle): Added an explicit QChar conversion so this code still works even with the additional
              replace overloads added to QString.
              (KWQKHTMLPart::setStatusBarText): Ditto.
              (KWQKHTMLPart::runJavaScriptAlert): Ditto.
              (KWQKHTMLPart::runJavaScriptConfirm): Ditto.
              (KWQKHTMLPart::runJavaScriptPrompt): Ditto.
              (KWQKHTMLPart::attributedString): Ditto.
              (KWQKHTMLPart::isCharacterSmartReplaceExempt): Ditto.
              (KWQKHTMLPart::isKHTMLPart): That dynamic_cast thing (see above).
      
              * kwq/KWQObject.h: Added virtual methods for the few cases where we need dynamic_cast-like behavior.
              * kwq/KWQObject.mm:
              (QObject::inherits): Changed to not use dynamic cast.
              (QObject::isKHTMLPart): Added. Returns false.
              (QObject::isKHTMLView): Ditto.
              (QObject::isKPartsReadOnlyPart): Ditto.
              (QObject::isQFrame): Ditto.
              (QObject::isQScrollView): Ditto.
      
              * kwq/KWQRenderTreeDebug.cpp:
              (write): Changed to use inherits rather than dynamic_cast.
              (writeSelection): Ditto.
      
              * kwq/KWQSlot.mm: (KWQSlot::call): Call through to the version with just a job pointer parameter rather
              than going straight on to the "no parameters at all" version.
      
              * kwq/KWQString.h:
              * kwq/KWQString.mm: (QString::replace): Added overloads.
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge markupStringFromNode:nodes:]): Changed to call functions in markup.h.
              (-[WebCoreBridge markupStringFromRange:nodes:]): Ditto.
              (-[WebCoreBridge selectedString]): Added an explicit QChar conversion so this code still works even with
              the additional replace overloads added to QString.
              (-[WebCoreBridge stringForRange:]): Ditto.
              (-[WebCoreBridge copyDOMNode:copier:]): Changed to call functions in markup.h.
              (-[WebCoreBridge elementAtPoint:]): QChar conversion.
              (-[WebCoreBridge documentFragmentWithMarkupString:baseURLString:]): Changed to call functions in markup.h.
              (-[WebCoreBridge documentFragmentWithText:]): Changed to call functions in markup.h.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@8198 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ee6da9d3
  18. 27 Oct, 2003 1 commit
    • mjs's avatar
      Reviewed by Darin. · 3d42fac8
      mjs authored
      	Improved exception blocking in the following ways:
      
      	- use C++ constructors and destructors so returning or breaking out of an exception block works
      	- Remove use of volatile
      	- Collapse the caught exception case into a single function call to reduce code size.
      
              * WebCore.pbproj/project.pbxproj:
              * kwq/KWQButton.mm:
              * kwq/KWQCheckBox.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQExceptions.h:
              * kwq/KWQExceptions.mm: Added.
              * kwq/KWQFileButton.mm:
              * kwq/KWQFont.mm:
              * kwq/KWQFrame.mm:
              * kwq/KWQKConfigBase.mm:
              * kwq/KWQKCookieJar.mm:
              * kwq/KWQKCursor.mm:
              * kwq/KWQKHTMLPart.mm:
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              * kwq/KWQKHistoryProvider.mm:
              * kwq/KWQKJavaAppletWidget.mm:
              * kwq/KWQKJobClasses.mm:
              * kwq/KWQKLocale.mm:
              * kwq/KWQKPartsBrowserInterface.mm:
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQLoader.mm:
              * kwq/KWQPainter.mm:
              * kwq/KWQPushButton.mm:
              * kwq/KWQRadioButton.mm:
              * kwq/KWQScrollBar.mm:
              * kwq/KWQScrollView.mm:
              * kwq/KWQTextEdit.mm:
              * kwq/KWQWidget.mm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5278 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d42fac8
  19. 09 Oct, 2003 1 commit
    • mjs's avatar
      Reviewed by Ken. · 5026e915
      mjs authored
      	More Cocoa exception blocking work.
      
              * kwq/KWQFrame.mm:
              (QFrame::setFrameStyle):
              * kwq/KWQLineEdit.mm:
              (QLineEdit::QLineEdit):
              (QLineEdit::~QLineEdit):
              (QLineEdit::setEchoMode):
              (QLineEdit::setFont):
              (QLineEdit::setText):
              (QLineEdit::text):
              (QLineEdit::isReadOnly):
              (QLineEdit::setReadOnly):
              (QLineEdit::maxLength):
              (QLineEdit::selectAll):
              (QLineEdit::edited):
              (QLineEdit::setEdited):
              (QLineEdit::sizeForCharacterWidth):
              (QLineEdit::baselinePosition):
              (QLineEdit::setAlignment):
              * kwq/KWQListBox.mm:
              (QListBox::QListBox):
              (QListBox::~QListBox):
              (QListBox::count):
              (QListBox::clear):
              (QListBox::setSelectionMode):
              (QListBox::insertItem):
              (QListBox::insertGroupLabel):
              (QListBox::endBatchInsert):
              (QListBox::setSelected):
              (QListBox::isSelected):
              (QListBox::setEnabled):
              (QListBox::sizeForNumberOfLines):
              (QListBox::focusPolicy):
              * kwq/KWQPushButton.mm:
              (QPushButton::QPushButton):
              (QPushButton::sizeHint):
              (QPushButton::baselinePosition):
              (QPushButton::dimensions):
              * kwq/KWQRadioButton.mm:
              (QRadioButton::QRadioButton):
              (QRadioButton::setChecked):
              (QRadioButton::isChecked):
              (QRadioButton::dimensions):
              * kwq/KWQScrollBar.mm:
              (-[KWQScrollBar initWithQScrollBar:]):
              (:m_valueChanged):
              (QScrollBar::~QScrollBar):
              (QScrollBar::setValue):
              (QScrollBar::setKnobProportion):
              (QScrollBar::scrollbarHit):
              * kwq/KWQScrollView.mm:
              (QScrollView::visibleWidth):
              (QScrollView::visibleHeight):
              (QScrollView::contentsWidth):
              (QScrollView::contentsHeight):
              (QScrollView::contentsX):
              (QScrollView::contentsY):
              (QScrollView::setContentsPos):
              (QScrollView::setVScrollBarMode):
              (QScrollView::setHScrollBarMode):
              (QScrollView::setScrollBarsMode):
              (QScrollView::vScrollBarMode):
              (QScrollView::hScrollBarMode):
              (QScrollView::hasVerticalScrollBar):
              (QScrollView::hasHorizontalScrollBar):
              (QScrollView::suppressScrollBars):
              (QScrollView::addChild):
              (QScrollView::removeChild):
              (QScrollView::resizeContents):
              (QScrollView::updateContents):
              (QScrollView::contentsToViewport):
              (QScrollView::viewportToContents):
              (QScrollView::setStaticBackground):
              (QScrollView::ensureVisible):
              (QScrollView::getDocumentView):
              * kwq/KWQTextEdit.mm:
              (QTextEdit::QTextEdit):
              (QTextEdit::setText):
              (QTextEdit::text):
              (QTextEdit::textWithHardLineBreaks):
              (QTextEdit::getCursorPosition):
              (QTextEdit::setCursorPosition):
              (QTextEdit::wordWrap):
              (QTextEdit::setWordWrap):
              (QTextEdit::isReadOnly):
              (QTextEdit::setReadOnly):
              (QTextEdit::selectAll):
              (QTextEdit::setFont):
              (QTextEdit::setAlignment):
              (QTextEdit::sizeWithColumnsAndRows):
              * kwq/KWQWidget.mm:
              (QWidget::QWidget):
              (QWidget::~QWidget):
              (QWidget::setActiveWindow):
              (QWidget::setEnabled):
              (QWidget::isEnabled):
              (QWidget::frameGeometry):
              (QWidget::hasFocus):
              (QWidget::setFocus):
              (QWidget::focusPolicy):
              (QWidget::isVisible):
              (QWidget::setCursor):
              (QWidget::cursor):
              (QWidget::setFrameGeometry):
              (QWidget::mapFromGlobal):
              (QWidget::setView):
              (QWidget::getOuterView):
              (QWidget::lockDrawingFocus):
              (QWidget::unlockDrawingFocus):
              (QWidget::disableFlushDrawing):
              (QWidget::enableFlushDrawing):
              (QWidget::setDrawingAlpha):
              (QWidget::paint):
              (QWidget::sendConsumedMouseUp):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5161 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5026e915
  20. 11 Sep, 2003 1 commit
    • rjw's avatar
      WebKit: · 82c8a8e2
      rjw authored
      	Fixed 3406671.  Added a private method for Mail to get selection
      	rect.
      
              Reviewed by Darin Adler.
      
              * WebView.subproj/WebHTMLView.m:
              (-[WebHTMLView updateTextBackgroundColor]):
              * WebView.subproj/WebHTMLViewPrivate.h:
              * WebView.subproj/WebHTMLViewPrivate.m:
              (-[WebHTMLView _handleMouseDragged:]):
              (-[WebHTMLView _pluginController]):
              (-[WebHTMLView _selectionRect]):
      
      WebCore:
      	Fixed 3406671.  Added a private method for Mail to get selection
      	rect.
      
      	Fixed 3417688.  Don't allow https page into page cache.
      
              Reviewed by Darin.
      
              * kwq/KWQFrame.h:
              * kwq/KWQFrame.mm:
              (QFrame::setFrameStyle):
              (QFrame::frameWidth):
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::canCachePage):
              * kwq/WebCoreBridge.h:
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge selectionRect]):
              (-[WebCoreBridge visibleSelectionRect]):
              (-[WebCoreBridge selectionImage]):
              (-[WebCoreBridge adjustViewSize]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      82c8a8e2
  21. 21 Jan, 2003 1 commit
  22. 26 Oct, 2002 1 commit
  23. 09 Sep, 2002 1 commit
    • darin's avatar
      Tools: · 7e7b97ba
      darin authored
              * Scripts/update-kwq-assert: Added. Script to keep the KWQ version
      	of the assert macros in sync. with the WebFoundation version. Just
      	update the WebFoundation one and run this script.
      
              * wftool/WFTool.m: Remove obsolete include.
      
      WebCore:
      
      	Switch over to new assertion/logging scheme.
      
              * kwq/KWQAssertions.h: Added.
              * kwq/KWQAssertions.m: Added.
              * kwq/KWQLogging.h: Added.
              * kwq/KWQLogging.m: Added.
              * kwq/kwqdebug.h: Removed.
              * kwq/kwqdebug.mm: Removed.
              * WebCore.pbproj/project.pbxproj: Update to reflect above changes.
      
              * kwq/KWQApplication.mm:
              * kwq/KWQChar.mm:
              * kwq/KWQColor.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQCompletion.mm:
              * kwq/KWQCursor.mm:
              * kwq/KWQDrawUtil.mm:
              * kwq/KWQEvent.mm:
              * kwq/KWQFontInfo.mm:
              * kwq/KWQFontMetrics.mm:
              * kwq/KWQFrame.mm:
              * kwq/KWQHBox.mm:
              * kwq/KWQInputDialog.mm:
              * kwq/KWQInvisibleButton.mm:
              * kwq/KWQKConfigBase.mm:
              * kwq/KWQKFileDialog.mm:
              * kwq/KWQKFileItem.mm:
              * kwq/KWQKGlobalSettings.mm:
              * kwq/KWQKHTMLPartImpl.mm:
              * kwq/KWQKHTMLSettings.mm:
              * kwq/KWQKIconLoader.mm:
              * kwq/KWQKJob.mm:
              * kwq/KWQKLocale.mm:
              * kwq/KWQKMimeType.mm:
              * kwq/KWQKPartsEvent.mm:
              * kwq/KWQKSimpleConfig.mm:
              * kwq/KWQKURL.mm:
              * kwq/KWQKWin.mm:
              * kwq/KWQKWinModule.mm:
              * kwq/KWQKjobclasses.mm:
              * kwq/KWQKnetaccess.mm:
              * kwq/KWQLabel.mm:
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQListImpl.mm:
              * kwq/KWQLoaderImpl.mm:
              * kwq/KWQObject.mm:
              * kwq/KWQPaintDeviceMetrics.mm:
              * kwq/KWQPainter.mm:
              * kwq/KWQPixmap.mm:
              * kwq/KWQRegion.mm:
              * kwq/KWQScrollView.mm:
              * kwq/KWQSlot.mm:
              * kwq/KWQString.mm:
              * kwq/KWQTimer.mm:
              * kwq/KWQWidget.mm:
              * kwq/KWQbrowserinterface.mm:
              * kwq/KWQtextcodec.mm:
              * kwq/KWQtextstream.mm:
              * kwq/KWQxml.mm:
              * kwq/WebCoreBridge.mm:
              * kwq/WebCoreCookieAdapter.m:
              * kwq/WebCoreHistory.m:
              * kwq/WebCoreImageRendererFactory.m:
              * kwq/WebCoreTextRendererFactory.m:
              * kwq/WebCoreViewFactory.m:
      	Update to use new assertions and logging macros.
      	In some cases, just removed unneeded includes.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7e7b97ba
  24. 19 Aug, 2002 1 commit
    • darin's avatar
      First cut at implementation of "tab to change focus": Lots of loose ends, but it's · 8a5da4fd
      darin authored
      	going well.
      
              * kwq/KWQNSTextField.h: Change initWithWidget to initWithQLineEdit.
              * kwq/KWQNSTextField.mm:
              (-[KWQNSTextField initWithQLineEdit:]): Keep a QLineEdit pointer so we don't cast later.
              (-[KWQNSTextField dealloc]): Sets widget to 0 to make nextKeyView and previousKeyView
      	return nil while deallocating.
              (-[KWQNSTextField setPasswordMode:]): Pass widget when creating secure text field so it
      	can handle the next/previous links properly.
              (-[KWQNSTextField nextKeyView]): Added. Calls KWQKHTMLPartImpl::nextKeyView.
              (-[KWQNSTextField previousKeyView]): Added. Calls KWQKHTMLPartImpl::nextKeyView.
              (-[KWQTextFieldCell isOpaque]): Added. Returns NO; fixes focus rectangle updating.
              (-[KWQSecureTextField initWithQWidget:]): Added.
              (-[KWQSecureTextField dealloc]): Added. Sets widget to 0 to make nextKeyView and
      	previousKeyView return nil while deallocating.
              (-[KWQSecureTextField nextKeyView]): Added. Calls KWQKHTMLPartImpl::nextKeyView.
              (-[KWQSecureTextField previousKeyView]): Added. Calls KWQKHTMLPartImpl::nextKeyView.
      
              * kwq/KWQKHTMLPartImpl.h: Add KWQSelectionDirection. Change name of getBridge() to
      	bridge(), getDocument() to document(), getRenderer() to renderer(), getBridgeForFrameName()
      	to bridgeForFrameName(). Also added nextKeyView family of member functions.
      
              * kwq/KWQKHTMLPartImpl.mm:
              (KWQKHTMLPartImpl::nextKeyViewInFrame): Added.
              (KWQKHTMLPartImpl::nextKeyView): Added.
      
              * kwq/qt/qwidget.h: Remove unneeded parameters from constructor. Also added a
      	constructor that takes an NSView.
              * kwq/KWQWidget.mm:
              (QWidget::QWidget): Don't store focus policy (it was uninitialized before).
              (QWidget::focusPolicy): Return TabFocus for any widget that has a view with a first
      	responder, NoFocus for any other.
              (QWidget::setFocusPolicy): Do nothing.
              (QWidget::setFocusProxy): Do nothing.
      
              * kwq/qt/qobject.h: Store the event filter object when installEventFilter is called.
      	This is used to find the RenderWidget for a QWidget by the new tabbing code.
              * kwq/KWQObject.mm: Removed event-filter functions. Two are now inlines, one deleted.
      
      	Other changes related to KWQKHTMLPartImpl improvements.
      
              * kwq/KWQKHTMLPartBrowserExtension.mm:
              * kwq/KWQKHTMLPartImpl.mm:
              * kwq/KWQLoaderImpl.mm:
              * kwq/WebCoreBridge.mm:
      	Update for KWQKHTMLPartImpl member name changes.
      
      	Various improvements for other widget implementations.
      
              * kwq/qt/qbutton.h:
              * kwq/KWQButton.mm: Stop using KWQNSButton. Instead just use a button adapter
      	object, and a plain old NSButton.
              (QButton::QButton): Put all the NSButton setup in here.
              (QButton::~QButton): Release the adapter here.
              (QButton::clicked): Move this in here because it's virtual now so that QCheckBox
      	can override it.
              (-[KWQButtonAdapter initWithQButton:]): Added.
              (-[KWQButtonAdapter action:]): Just call clicked().
      
              * kwq/qt/qpushbutton.h: Don't pass unused parent pointer to QButton constructor.
              * kwq/KWQPushButton.mm: (QPushButton::QPushButton): Don't pass unused parent pointer to
      	QButton contructor.
      
              * kwq/qt/qcheckbox.h:
              * kwq/KWQCheckBox.mm: Just use NSButton, not KWQNSButton.
              (QCheckBox::clicked): Move the state-changed logic here; used to be in KWQNSButton.
      
              * kwq/KWQRadioButton.mm:
              (QRadioButton::QRadioButton): Don't pass unused parent pointer to
      	QButton contructor.
      
              * kwq/qt/qcombobox.h:
              * kwq/KWQComboBox.mm:
              (QComboBox::QComboBox): Removed extra constructor. Make a plain NSPopUpButton,
      	and use an adapter object, rather than having a KWQNSComboBox.
              (QComboBox::~QComboBox): Release the adapter.
              (QComboBox::insertItem): New implementation. No need to keep an items array around,
      	because the menu does that just fine.
              (QComboBox::clear): Remove the items from the pop-up button directly.
              (-[KWQComboBoxAdapter initWithQComboBox:]): Added.
              (-[KWQComboBoxAdapter action:]): Just call activated().
      
              * kwq/kdeui/kcombobox.h: Empty this out and make it use only inlines.
      
              * khtml/rendering/render_form.cpp: (RenderSelect::updateFromElement):
      	Remove the setSize()/doneLoading() optimization for QComboBox because the new
      	simpler QComboBox implementation obviates the speed problem this was originally
      	intended to fix.
      
              * kwq/qt/qlineedit.h:
              * kwq/KWQLineEdit.mm: (QLineEdit::QLineEdit): Call initWithQLineEdit instead of
      	initWithWidget. Also don't take an unused parent pointer parameter.
      
              * kwq/kdeui/klineedit.h: Empty this out and make it use only inlines.
      
              * kwq/qt/qframe.h: Remove unused parent pointer from constructor.
              * kwq/KWQFrame.mm: Remove unneeded constructor.
              * kwq/KWQHBox.mm: (QHBox::QHBox): Don't pass unused parent pointer to QFrame.
              * kwq/KWQLabel.mm: (QLabel::QLabel): Don't pass unused parent pointer to QFrame.
              * kwq/qt/qscrollview.h: Make constructor inline.
              * kwq/KWQScrollView.mm: Remove unneeded constructor.
              * kwq/KWQWindowWidget.h: Remove unneeded constructor.
      
              * WebCore.pbproj/project.pbxproj: Remove KWQKComboBox.mm, KWQKLineEdit.mm,
      	and KWQScrollBar.h.
              * kwq/KWQKComboBox.mm: Removed.
              * kwq/KWQKLineEdit.mm: Removed.
              * kwq/KWQScrollBar.h: Removed. Unused.
      
              * kwq/KWQTextArea.h: Change initWithWidget to initWithQTextEdit.
              * kwq/KWQTextArea.mm: (-[KWQTextArea initWithQTextEdit:]): Changed name.
              * kwq/KWQTextEdit.mm: (QTextEdit::QTextEdit): Call initWithQTextEdit instead of
      	initWithWidget.
      
              * kwq/KWQView.h: Eliminated KWQNSButton, KWQNSComboBox, and KWQNSScrollView.
              * kwq/KWQView.mm: Ditto.
      
      	Housekeeping.
      
              * force-clean-timestamp: Yes, again.
      
              * khtml/khtml_part.h: Rearrange APPLE_CHANGES a bit.
      
              * kwq/qt/qvaluelist.h: Added -- as well as ++ for the const iterator, and fixed some
      	minor const issues. At one point I needed this for the focus changes, but not any more.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1865 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8a5da4fd
  25. 07 Aug, 2002 1 commit
  26. 06 Aug, 2002 1 commit
    • rjw's avatar
      Frame resizing related changes. Frames are now resizable · 88b7b7dd
      rjw authored
              w/ a resize bar.  Still need to draw frame borders.
      
              * khtml/rendering/render_frames.cpp:
              (RenderFrameSet::userResize):
              (RenderFrame::slotViewCleared):
              * kwq/KWQFrame.mm:
              (QFrame::setFrameStyle):
              (QFrame::frameStyle):
              (QFrame::frameWidth):
              * kwq/KWQWidget.mm:
              (QWidget::lockDrawingFocus):
              (QWidget::unlockDrawingFocus):
              (QWidget::flushDrawing):
              (QWidget::enableFlushDrawing):
              (QWidget::disableFlushDrawing):
              (QWidget::setDrawingAlpha):
              (QWidget::displayRect):
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge drawRect:withPainter:]):
              * kwq/qt/qframe.h:
              * kwq/qt/qwidget.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1757 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      88b7b7dd
  27. 15 Jun, 2002 1 commit
  28. 03 Jun, 2002 1 commit
    • darin's avatar
      * acconfig.h: Remove APPLE_CHANGES (done in compiler invocation), · b95d6c41
      darin authored
      	_KWQ_ (not needed any more), _KWQ_PEDANTIC_ (not needed any more),
      	and _KWQ_IOSTREAM_ (set by KWQDef.h now).
      
      	* configure.in: Remove explict gcc3 and g++3; not needed on Jaguar.
      	Remove APPLE_CHANGES, _KWQ_, _KWQK_PEDANTIC_, and _KWQ_IOSTREAM_.
      	Do an AC_SUBST on COMMON_CFLAGS so the flags are used to generate the
      	.pfe files. Add conditional stuff so that WebCore exports less and
      	the Tests subdirectory is not build in Deployment style builds.
      
      	* Makefile.am: Only build Tests subdir when configure.in says it should.
      
      	* Tests/draw/*: Removed.
      
      	* Tests/qt/qbuffer-test.cpp: (main): Update for QBuffer changes.
      	* Tests/qt/qrect-test.cpp: (main): Remove unused variable.
      
      	* Tools/jersey/README: Fix newlines.
      	* Tools/jersey/html/advanced.html: Fix newlines.
      
      WebCore:
      
      	Get rid of many unneeded APPLE_CHANGES.
      	Also get rid of _KWQ_ and _KWQ_PEDANTIC_.
      
      	* WebCore.exp: Don't export DomShared::ref/deref any more.
      	* WebCore-tests.exp: Changed around as needed due to changes in
      	the classes being tested.
      
      	* khtml/html/htmlparser.cpp:
      	* khtml/html/htmltokenizer.cpp:
      	Simplified APPLE_CHANGES for better merging.
      
      	* khtml/dom/dom_misc.h:
      	* khtml/dom/dom_misc.cpp:
      	* khtml/dom/html_document.cpp:
      	* khtml/khtmlview.cpp:
      	* khtml/ecma/kjs_css.h:
      	* khtml/ecma/kjs_dom.cpp:
      	* khtml/ecma/kjs_dom.h:
      	* khtml/ecma/kjs_window.cpp:
      	* khtml/html/html_formimpl.cpp:
      	* khtml/html/html_objectimpl.cpp:
      	* khtml/misc/helper.cpp:
      	* khtml/rendering/bidi.cpp:
      	* khtml/rendering/render_flow.cpp:
      	* khtml/rendering/render_form.cpp:
      	* khtml/rendering/render_text.cpp:
      	* khtml/xml/xml_tokenizer.h:
      	* kwq/qt/qtextedit.h:
      	Remove now-unneeded APPLE_CHANGES.
      
      	* khtml/misc/loader.cpp: (CachedImage::pixmap): Turned off more of
      	the QMovie code.
      
      	* khtml/html/html_documentimpl.cpp:
      	* khtml/html/htmltokenizer.h:
      	* khtml/xml/dom_elementimpl.h:
      	* kwq/KWQKHTMLPart.mm:
      	Formatting and other minor tweaks.
      
      	* kwq/KWQApplication.mm: (QApplication::sendEvent): Implemented.
      	* kwq/KWQChar.mm: (QChar::direction): Improved implementation.
      
      	* kwq/KWQCollection.h: Removed.
      	* kwq/KWQIcon.h: Removed.
      
      	* kwq/Makefile.am: Removed following files.
      	* kwq/KWQKCompletionBox.mm: Removed.
      	* kwq/KWQKFactory.mm: Removed.
      	* kwq/KWQListBox.mm: Removed.
      	* kwq/KWQKImageIO.mm: Removed.
      
      	* kwq/KWQObject.mm: (QObject::event): Added, does nothing.
      	(QObject::inherits): Put in real implementation (good enough for us).
      
      	* kwq/WCWebDataSource.h: Removed extern declaration of global.
      
      	* kwq/KWQCursor.mm: (QCursor::handle): Made the handle be an
      	NSCursor *.
      
      	* kwq/external.h: Moved [IFWebView setFrameSize:] here.
      	Got rid of IFAnimatedImage.
      
      	* kwq/KWQDef.h: Remove unused Q_INT8, Q_INT16, Q_UINT8, Q_UINT16,
      	QCOORD, WFlags, WId, ASSERT, CHECK_PTR, Q_EXPORT, Q_PACKED,
      	QT_STATIC_CONST, QT_STATIC_CONST_IMPL. Define _KWQ_IOSTREAM_ only
      	when NDEBUG is not defined.
      
      	* kwq/KWQBuffer.mm:
      	* kwq/KWQCString.mm:
      	* kwq/KWQCollection.mm:
      	* kwq/KWQCompletion.h:
      	* kwq/KWQCompletion.mm:
      	* kwq/KWQFrame.h:
      	* kwq/KWQFrame.mm:
      	* kwq/KWQHBox.mm:
      	* kwq/KWQKFileItem.mm:
      	* kwq/KWQKIconLoader.mm:
      	* kwq/KWQKLineEdit.mm:
      	* kwq/KWQKProtocolManager.mm:
      	* kwq/KWQLabel.mm:
      	* kwq/KWQListBox.h:
      	* kwq/KWQMovie.mm:
      	* kwq/KWQWidget.mm:
      	* kwq/KWQxml.mm:
      	* kwq/qt/qbuffer.h:
      	* kwq/kdecore/kdebug.h:
      	* kwq/kdecore/kglobal.h:
      	* kwq/kdecore/kglobalsettings.h:
      	* kwq/kdecore/kiconloader.h:
      	* kwq/kdecore/kstaticdeleter.h:
      	* kwq/kdecore/kstringhandler.h:
      	* kwq/kdeui/kcombobox.h:
      	* kwq/kdeui/kcompletionbox.h:
      	* kwq/kdeui/klineedit.h:
      	* kwq/kdeui/klistbox.h:
      	* kwq/kdeui/kmessagebox.h:
      	* kwq/kio/kfileitem.h:
      	* kwq/kio/kimageio.h:
      	* kwq/kio/kmimetype.h:
      	* kwq/kio/kprotocolmanager.h:
      	* kwq/kio/netaccess.h:
      	* kwq/qt/qxml.h:
      	* kwq/kparts/browserinterface.h:
      	* kwq/kparts/factory.h:
      	* kwq/kparts/part.h:
      	* kwq/qt/qarray.h:
      	* kwq/qt/qcollection.h:
      	* kwq/qt/qcstring.h:
      	* kwq/qt/qcursor.h:
      	* kwq/qt/qdict.h:
      	* kwq/qt/qhbox.h:
      	* kwq/qt/qlabel.h:
      	* kwq/qt/qlist.h:
      	* kwq/qt/qmap.h:
      	* kwq/qt/qmovie.h:
      	* kwq/qt/qobject.h:
      	* kwq/qt/qpaintdevicemetrics.h:
      	* kwq/qt/qpainter.h:
      	* kwq/qt/qpoint.h:
      	* kwq/qt/qradiobutton.h:
      	* kwq/qt/qrect.h:
      	* kwq/qt/qregion.h:
      	* kwq/qt/qscrollview.h:
      	* kwq/qt/qsize.h:
      	* kwq/qt/qstack.h:
      	* kwq/qt/qstringlist.h:
      	* kwq/qt/qtextedit.h:
      	* kwq/qt/qvaluelist.h:
      	* kwq/qt/qvector.h:
      	* kwq/qt/qwidget.h:
      	* kwq/qt/qxml.h:
      	Removed unused stuff.
      
      	* kwq/KWQListBox.mm:
      	* kwq/KWQMapImpl.h:
      	* kwq/KWQMapImpl.mm:
      	* kwq/KWQPainter.mm:
      	* kwq/KWQPoint.mm:
      	* kwq/KWQRadioButton.mm:
      	* kwq/KWQRect.mm:
      	* kwq/KWQRegion.mm:
      	* kwq/KWQScrollBar.h:
      	* kwq/KWQScrollView.mm:
      	* kwq/KWQSize.mm:
      	* kwq/KWQStringList.mm:
      	* kwq/KWQbrowserinterface.mm:
      	Simplified.
      
      	* kwq/kdecore/kurl.h:
      	Added include to match what's expected by clients.
      
      	* kwq/qt/qobjectlist.h: Added. Empty file to make includers happy.
      
      	* kwq/khtml/khtml_printsettings.h: Added. Empty file.
      	* kwq/qt/qobjectlist.h: Added. Empty file.
      
      	* kwq/kio/kssl/ksslkeygen.h: Define just enough to make callers
      	happy.
      
      	* kwq/qt/qobject.h: Added event().
      	* kwq/kparts/part.h: Added bool return type to event().
      	* kwq/qt/qvector.h: Added QGVector base class.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b95d6c41
  29. 18 Apr, 2002 1 commit
    • darin's avatar
      * Makefile.am: Pass the -f flag to ln so it doesn't fail when · 8a88b319
      darin authored
      	there's already a link there.
      
      	* configure.in: Use gcc3 and g++3 so we always get gcc 3.0, no
      	matter how the system is configured. Besides the fact that gcc
      	3.0 includes more in -Wall, turned on the following additional
      	warnings that were not on before:
      	    -W
      	    -Wbad-function-cast
      	    -Wformat-security
      	    -Wmissing-format-attribute
      	    -Wstrict-prototypes
      	    -Wwrite-strings
      	Also removed the -fno-coalesce-static-vtables flag for C++
      	and removed explicit mention of C++ warnings that are part of
      	-Wall in gcc 3.0 at least.
      
      	* Tests/harness.c: (main): Const string fix.
      	* Tests/kde/kurl-test.cpp: (testURL): Std namespace and const string fix.
      	* Tests/libiftest/IFTestDirectory.c: (IFSetUpTestDirectory): Const string fix.
      	* Tests/libiftest/IFTestDirectory.h: Const string fix.
      
      	* Tests/qt/qarray-test.cpp:
      	* Tests/qt/qbuffer-test.cpp:
      	* Tests/qt/qchar-test.cpp:
      	* Tests/qt/qcstring-test.cpp:
      	* Tests/qt/qdate-test.cpp:
      	* Tests/qt/qdatetime-test.cpp:
      	* Tests/qt/qdict-test.cpp:
      	* Tests/qt/qdir-test.cpp:
      	* Tests/qt/qfile-test.cpp:
      	* Tests/qt/qlist-test.cpp:
      	* Tests/qt/qmap-test.cpp:
      	* Tests/qt/qpoint-test.cpp:
      	* Tests/qt/qptrdict-test.cpp:
      	* Tests/qt/qrect-test.cpp:
      	* Tests/qt/qregexp-test.cpp:
      	* Tests/qt/qsize-test.cpp:
      	* Tests/qt/qsortedlist-test.cpp:
      	* Tests/qt/qstack-test.cpp:
      	* Tests/qt/qstring-test.cpp:
      	* Tests/qt/qstringlist-test.cpp:
      	* Tests/qt/qtime-test.cpp:
      	* Tests/qt/qvaluelist-test.cpp:
      	* Tests/qt/qvector-test.cpp:
      	Add "using namespace std" to each test as a simple std namespace fix.
      
      WebFoundation:
      
      	Reviewed by Maciej
      
      	Fixes for compiling with gcc3 and more warnings.
      
      	* WebFoundation.pbproj/project.pbxproj: Turn on gcc3 and the same set of warnings
      	as in the rest of Labyrinth (see top level ChangeLog for details).
      
      	* CacheLoader.subproj/IFURLHandle.m: (-[IFURLHandle percentComplete]):
      	Rearrange code to avoid a cast to (float) that gcc3 didn't like.
      
      	* Database.subproj/IFNDBMDatabase.m: (-[IFNDBMDatabase objectForKey:]):
      	Mark some variables volatile to make gcc3 happy about their values and the
      	use of longjmp. Good catch on the compiler's part.
      
      	* Database.subproj/IFURLFileDatabase.m: Work around bug 2905545 so we can
      	have -W on for all the rest of WebFoundation.
      	(URLFileReaderInit): Mark this as (void) so it's not a non-prototyped function.
      	(-[IFURLFileReader initWithPath:]): Don't assign to self so gcc3 is not unhappy
      	about the use of it with longjmp.
      	(-[IFURLFileDatabase objectForKey:]): Mark some variables volatile to make gcc3
      	happy about their values and the use of longjmp.
      
      	* Misc.subproj/IFNSObjectExtensions.m: (-[NSObject performBooleanSelector:]),
      	(-[NSObject performBooleanSelector:withObject:]): Do a new implementation that
      	does't make the compiler unhappy about type casts.
      
      	* Misc.subproj/IFNSThreadExtensions.m: Work around bug 2905545 so we can
      	have -W on for all the rest of WebFoundation.
      	(InitJoinableThreads): Mark this as (void) so it's not a non-prototyped function.
      
      JavaScriptCore:
      
      	Reviewed by Maciej
      
      	* JavaScriptCore.pbproj/project.pbxproj: Turn on gcc3 and the same set of warnings
      	as in the rest of Labyrinth (see top level ChangeLog for details).
      
      WebCore:
      
      	Fixes for compiling with gcc3 and more warnings.
      
      	* khtml/html/.cvsignore: Add kentities.c; I could have sworn I did this
      	already.
      	* khtml/html/Makefile.am: Remove erroneous duplicate definition of
      	CLEAN_FILES.
      
      	* libwebcore.exp:
      	* libwebcoretests.exp:
      	Rebuilt these lists from scratch. Almost everything in here is different
      	since the C++ name mangling rules changed.
      
      	* khtml/css/cssparser.cpp:
      	* khtml/misc/htmlhashes.cpp:
      	Disable inlining in part of this file as a workaround for Radar 2905890.
      
      	* kwq/KWQApplication.mm: (QDesktopWidget::screenGeometry):
      	Add casts to int needed to make gcc3 happy.
      	* kwq/KWQArrayImpl.mm: Add missing #include of <string.h>.
      
      	* kwq/KWQBitmap.mm:
      	* kwq/KWQFrame.mm:
      	* kwq/KWQLineEdit.mm:
      	Removed some unused copy constructors and assignment operators to avoid
      	warnings in them.
      
      	* kwq/KWQButton.mm: (QButton::setText):
      	* kwq/KWQListBox.mm: (QListBox::~QListBox), (QListBox::clear),
      	(QListBox::setSelectionMode), (QListBox::currentItem), (QListBox::insertItem),
      	(QListBox::setSelected), (QListBox::isSelected), (QListBoxItem::width),
      	(QListBoxItem::height):
      	* kwq/KWQScrollView.mm: (QScrollView::setContentsPos), (QScrollView::addChild),
      	(QScrollView::resizeContents), (QScrollView::viewportToContents),
      	Use local variables to work around Radar 2905835.
      
      	* kwq/KWQCString.mm: (operator<<):
      	* kwq/KWQPoint.mm: (operator<<):
      	* kwq/KWQRect.mm: (operator<<):
      	* kwq/KWQSize.mm: (operator<<):
      	* kwq/qt/qarray.h:
      	* kwq/qt/qcstring.h:
      	* kwq/qt/qdatetime.h:
      	* kwq/qt/qdict.h:
      	* kwq/qt/qlist.h:
      	* kwq/qt/qmap.h:
      	* kwq/qt/qpainter.h:
      	* kwq/qt/qpoint.h:
      	* kwq/qt/qptrdict.h:
      	* kwq/qt/qrect.h:
      	* kwq/qt/qsize.h:
      	* kwq/qt/qstack.h:
      	* kwq/qt/qvaluelist.h:
      	* kwq/qt/qvector.h:
      	Say std::ostream instead of just ostream.
      
      	* kwq/KWQCharsets.mm: Fix a const problem.
      
      	* kwq/KWQDateTime.mm: (QTime::elapsed), (QTime::restart): Use int instead
      	of uint, since these functions try to handle values that are less than 0.
      	(operator<<): Say std::ostream instead of just ostream.
      	* kwq/KWQTextArea.mm: (RangeOfParagraph): Fix an int/uint issue.
      
      	* kwq/KWQFile.mm: (QFile::KWQFilePrivate::KWQFilePrivate),
      	(QFile::KWQFilePrivate::~KWQFilePrivate): Use new/delete instead of
      	malloc/free so we don't get void * warnings.
      
      	* kwq/KWQFontMetrics.mm: (__IFFillStyleWithAttributes),
      	(-[KWQLayoutInfo drawString:atPoint:withFont:color:]),
      	(-[KWQLayoutInfo _initializeCaches]),
      	(_rectForString):
      	* kwq/KWQKURL.mm: (KURL::KWQKURLPrivate::KWQKURLPrivate),
      	(RelativeURLKeyRetainCallBack), (RelativeURLKeyReleaseCallBack),
      	(RelativeURLKeyEqualCallBack), (RelativeURLKeyHashCallBack),
      	(KURL::normalizeURLString), (KURL::normalizeRelativeURLString):
      	* kwq/KWQPainter.mm: (QPainter::save):
      	* kwq/KWQKloader.mm:
      	(-[URLLoadClient IFURLHandle:resourceDidFailLoadingWithResult:]),
      	(-[URLLoadClient IFURLHandle:didRedirectToURL:]):
      	Add type casts where necessary to make the stricter gcc3 happy.
      
      	* kwq/KWQPixmap.mm: (QPixmap::QPixmap): Explicitly initialize the underlying
      	QPaintDevice.
      	(QPixmap::size), (QPixmap::rect): Add type casts where necessary to make
      	the stricter gcc3 happy.
      
      	* kwq/KWQPtrDictImpl.mm: (KWQPtrDictImpl::KWQPtrDictPrivate::KWQPtrDictPrivate):
      	Say std::bad_alloc instead of just bad_alloc.
      	(invokeDeleteFuncOnValue), (KWQPtrDictImpl::clear): Pass a pointer to a function
      	pointer rather than a function pointer to avoid a warning about turning function
      	pointers into void *.
      
      	* kwq/KWQRegion.mm: (QRegion::_initialize), (QRegion::~QRegion): Use new/delete
      	rather than calloc/free so we don't get void * warnings.
      	(QRegion::boundingRect): Add type casts.
      
      	* kwq/KWQString.mm: (QString::fromStringWithEncoding): Add cast.
      	(QString::setNum): use %ld and %lu rather than %D and %U.
      	(QString::fill), (QString::convertToQCString): Add casts.
      
      	* kwq/KWQTextStorage.mm: (-[KWQTextStorage _buildFragmentForString:]):
      	Add a cast to make gcc3 happy.
      
      	* kwq/KWQVariant.mm: Say "friend class" instead of "friend".
      
      	* kwq/KWQVectorImpl.mm: (KWQVectorImpl::KWQVectorPrivate::KWQVectorPrivate):
      	Say std::bad_alloc instead of just bad_alloc.
      	(KWQVectorImpl::data): Replace the old autorelease trick with a new one that
      	doesn't require mixing malloc with NSData.
      
      	* kwq/KWQView.mm: (-[KWQHTMLView mouseUp:]), (-[KWQHTMLView mouseDown:]):
      	Add casts to make gcc3 happy.
      
      	* kwq/KWQWidget.mm: (QWidget::frameGeometry), (QWidget::mapToGlobal),
      	(QWidget::minimumSizeHint): Add casts to make gcc3 happy. Also another
      	workaround for Radar 2905835.
      
      	* kwq/WCPlugin.mm: (-[WCPlugin load]): Add tons of type casts so we don't have
      	to mix void * with function pointer types.
      
      	* kwq/WCPluginWidget.h:
      	* kwq/WCPluginWidget.mm: (WCIFPluginMakeFunction), (WCIFNullPluginMakeFunction):
      	Change types so we don't have to mix void * with function pointer types.
      	This caught a mistake where WCIFNullPluginMakeFunction was returning the wrong
      	function pointer.
      
      	* kwq/external.h: Add some missing interfaces that the pickier gcc3 needed to see.
      
      	* kwq/kwqdebug.mm: Don't compile the file if xNDEBUG is set. Otherwise we get
      	a warning in here.
      
      	* kwq/npapi.h: Use function pointer types for function pointers and transition
      	vectors so we don't have to mix void * with function pointer types.
      
      	* kwq/npapi.mm: (NPN_GetURLNotify), (NPN_GetURL),
      	(NPN_PostURLNotify), (NPN_PostURL), (NPN_NewStream), (NPN_Write),
      	(NPN_DestroyStream), (NPN_Status), (NPN_GetValue), (NPN_SetValue),
      	(NPN_InvalidateRect), (NPN_InvalidateRegion), (NPN_ForceRedraw):
      	Use local variables to work around Radar 2905835.
      	(functionPointerForTVector), (tVectorForFunctionPointer):
      	Change types around so we don't have to mix void * with function pointer types.
      
      WebKit:
      
      	Fixes for compiling with gcc3 and more warnings.
      
      	* WebKit.pbproj/project.pbxproj: Turn on gcc3 and the same set of warnings
      	as in the rest of Labyrinth (see top level ChangeLog for details).
      
      	* Plugins.subproj/IFPluginView.mm:
      	Avoid warnings about malloc by not using it.
      	(-[IFPluginView initWithFrame:plugin:url:mime:arguments:mode:]): Keep the arguments
      	dictionary around instead of keeping the C format version of it around. Also don't
      	bother keeping the C string form of the MIME type around, and simplify some other
      	stuff in here.
      	(-[IFPluginView dealloc]): Corresponding changes since we keep a different set of things.
      	(-[IFPluginView newStream:mimeType:notifyData:]): Use [mimeType cString].
      	(-[IFPluginView start]): Build the lists of attributes and values in here. Do it using
      	[NSString cString] for simplicity and don't keep the lists around after we're done with
      	them.
      	(-[IFPluginView IFURLHandleResourceDidFinishLoading:data:]): Use [filenameClassic cString].
      
      	* WebView.subproj/IFMainURLHandleClient.mm:
      	(-[IFMainURLHandleClient IFURLHandleResourceDidCancelLoading:]),
      	(-[IFMainURLHandleClient IFURLHandleResourceDidFinishLoading:data:]),
      	(-[IFMainURLHandleClient IFURLHandle:resourceDataDidBecomeAvailable:]),
      	(-[IFMainURLHandleClient IFURLHandle:resourceDidFailLoadingWithResult:]):
      	* WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSourcePrivate dealloc]),
      	(-[IFWebDataSource _setLoading:]), (-[IFWebDataSource _setController:]),
      	(-[IFWebDataSource _setLocationChangeHandler:]):
      	* WebView.subproj/IFWebView.mm: (-[IFWebView provisionalDataSourceChanged:]),
      	(-[IFWebView mouseUp:]), (-[IFWebView mouseDown:]):
      	Add type casts required by pickier gcc3.
      
      	* WebView.subproj/IFWebViewPrivate.mm: (-[IFWebViewPrivate dealloc]):
      	Add type cast required by pickier gcc3.
      	(-[IFWebView _stopPlugins]): Use local variable to work around Radar 2905835.
      
      WebBrowser:
      
      	Fixes for compiling with gcc3 and more warnings.
      
      	* WebBrowser.pbproj/project.pbxproj: Turn on gcc3 and the same set of warnings
      	as in the rest of Labyrinth (see top level ChangeLog for details).
      
      	* InternetConfigUtilities.m: (stringValueForICKey), (setStringValue):
      	Some const string fixes.
      	* Preferences.subproj/TextPreferences.m: (-[TextPreferences changeFont:]):
      	Remove a cast that makes gcc3 unhappy.
      	* ___CFA2UC.c: (NSGiantRaise): Const string fix.
      	(gcompg): Old-style function prototype fix.
      	(initialguess): Remove a cast that makes gcc3 unhappy.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1045 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8a88b319
  30. 07 Dec, 2001 1 commit
  31. 14 Nov, 2001 1 commit
  32. 08 Oct, 2001 1 commit
  33. 03 Oct, 2001 1 commit
  34. 27 Sep, 2001 2 commits
  35. 20 Sep, 2001 1 commit
  36. 19 Sep, 2001 1 commit
  37. 10 Sep, 2001 1 commit