Commit aa01dc00 authored by ggaren's avatar ggaren
Browse files

Reviewed by Beth.

        - 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
parent 253b5584
This diff is collapsed.
......@@ -269,7 +269,7 @@ static ListenerMap *listenerMap;
- (DOMDocument *)ownerDocument
{
return [DOMDocument _documentWith:[self _node]->getDocument()];
return [DOMDocument _documentWith:[self _node]->document()];
}
- (DOMNode *)insertBefore:(DOMNode *)newChild :(DOMNode *)refChild
......@@ -665,7 +665,7 @@ static ListenerMap *listenerMap;
- (const KJS::Bindings::RootObject *)_executionContext
{
if (Node *n = [self _node])
if (FrameMac *f = Mac(n->getDocument()->frame()))
if (FrameMac *f = Mac(n->document()->frame()))
return f->executionContextForDOM();
return 0;
......@@ -1547,7 +1547,7 @@ static ListenerMap *listenerMap;
ASSERT(name);
Element *e = [self _element];
ASSERT(e);
return KURL(e->getDocument()->completeURL(parseURL(e->getAttribute(name)).deprecatedString())).getNSURL();
return KURL(e->document()->completeURL(parseURL(e->getAttribute(name)).deprecatedString())).getNSURL();
}
@end
......
......@@ -261,7 +261,7 @@ using namespace WebCore::HTMLNames;
- (NSString *)titleDisplayString
{
return [self _HTMLElement]->title().replace('\\', [self _element]->getDocument()->backslashAsCurrencySymbol());
return [self _HTMLElement]->title().replace('\\', [self _element]->document()->backslashAsCurrencySymbol());
}
- (void)setTitle:(NSString *)title
......@@ -1292,7 +1292,7 @@ using namespace WebCore::HTMLNames;
- (NSString *)altDisplayString
{
return [self _inputElement]->alt().replace('\\', [self _element]->getDocument()->backslashAsCurrencySymbol());
return [self _inputElement]->alt().replace('\\', [self _element]->document()->backslashAsCurrencySymbol());
}
- (void)setAlt:(NSString *)alt
......@@ -2281,14 +2281,14 @@ using namespace WebCore::HTMLNames;
- (void)blur
{
HTMLAnchorElement *impl = [self _anchorElement];
if (impl->getDocument()->focusNode() == impl)
impl->getDocument()->setFocusNode(0);
if (impl->document()->focusNode() == impl)
impl->document()->setFocusNode(0);
}
- (void)focus
{
HTMLAnchorElement *impl = [self _anchorElement];
impl->getDocument()->setFocusNode(static_cast<Element*>(impl));
impl->document()->setFocusNode(static_cast<Element*>(impl));
}
@end
......@@ -2328,7 +2328,7 @@ using namespace WebCore::HTMLNames;
- (NSString *)altDisplayString
{
String alt = [self _imageElement]->getAttribute(altAttr);
return alt.replace('\\', [self _element]->getDocument()->backslashAsCurrencySymbol());
return alt.replace('\\', [self _element]->document()->backslashAsCurrencySymbol());
}
- (void)setAlt:(NSString *)alt
......@@ -2703,7 +2703,7 @@ using namespace WebCore::HTMLNames;
- (NSString *)altDisplayString
{
String alt = [self _appletElement]->getAttribute(altAttr);
return alt.replace('\\', [self _element]->getDocument()->backslashAsCurrencySymbol());
return alt.replace('\\', [self _element]->document()->backslashAsCurrencySymbol());
}
- (void)setAlt:(NSString *)alt
......@@ -2853,7 +2853,7 @@ using namespace WebCore::HTMLNames;
- (NSString *)altDisplayString
{
String alt = [self _areaElement]->getAttribute(altAttr);
return alt.replace('\\', [self _element]->getDocument()->backslashAsCurrencySymbol());
return alt.replace('\\', [self _element]->document()->backslashAsCurrencySymbol());
}
- (void)setAlt:(NSString *)alt
......
......@@ -165,7 +165,7 @@ String::String(NSString *str)
Node *nodeImpl = [n _node];
// Dig up Interpreter and ExecState.
Frame *frame = nodeImpl->getDocument()->frame();
Frame *frame = nodeImpl->document()->frame();
Interpreter *interpreter = frame->jScript()->interpreter();
ExecState *exec = interpreter->globalExec();
......
......@@ -2474,7 +2474,7 @@ NSAttributedString *FrameMac::attributedString(Node *_start, int startOffset, No
// will have corrected any illegally nested <a> elements.
if (linkStartNode && n == linkStartNode) {
String href = parseURL(linkStartNode->getAttribute(hrefAttr));
KURL kURL = Mac(linkStartNode->getDocument()->frame())->completeURL(href.deprecatedString());
KURL kURL = Mac(linkStartNode->document()->frame())->completeURL(href.deprecatedString());
NSURL *URL = kURL.getNSURL();
NSRange tempRange = { linkStartLocation, [result length]-linkStartLocation }; // workaround for 4213314
......
......@@ -43,11 +43,11 @@ void FrameView::updateBorder()
void FrameView::updateDashboardRegions()
{
Document* document = m_frame->document();
if (document->hasDashboardRegions()) {
DeprecatedValueList<DashboardRegionValue> newRegions = document->renderer()->computeDashboardRegions();
DeprecatedValueList<DashboardRegionValue> currentRegions = document->dashboardRegions();
document->setDashboardRegions(newRegions);
Document* doc = m_frame->document();
if (doc->hasDashboardRegions()) {
DeprecatedValueList<DashboardRegionValue> newRegions = doc->renderer()->computeDashboardRegions();
DeprecatedValueList<DashboardRegionValue> currentRegions = doc->dashboardRegions();
doc->setDashboardRegions(newRegions);
Mac(m_frame.get())->dashboardRegionsChanged();
}
}
......
......@@ -470,7 +470,7 @@ static inline WebCoreFrameBridge *bridge(Frame *frame)
if (!(self = [super init]))
return nil;
m_frame = new FrameMac(renderer->node()->getDocument()->frame()->page(), renderer);
m_frame = new FrameMac(renderer->node()->document()->frame()->page(), renderer);
m_frame->setBridge(self);
_shouldCreateRenderers = YES;
return self;
......@@ -1695,7 +1695,7 @@ static HTMLFormElement *formElementFromDOMElement(DOMElement *element)
Node *endContainer = [[range endContainer] _node];
ASSERT(startContainer);
ASSERT(endContainer);
ASSERT(startContainer->getDocument() == endContainer->getDocument());
ASSERT(startContainer->document() == endContainer->document());
m_frame->document()->updateLayoutIgnorePendingStylesheets();
......@@ -1843,7 +1843,7 @@ static HTMLFormElement *formElementFromDOMElement(DOMElement *element)
if (startContainer == nil || endContainer == nil)
return nil;
ASSERT(startContainer->getDocument() == endContainer->getDocument());
ASSERT(startContainer->document() == endContainer->document());
m_frame->document()->updateLayoutIgnorePendingStylesheets();
......
......@@ -316,7 +316,7 @@ PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(int proper
// Make sure our layout is up to date before we allow a query on these attributes.
if (updateLayout)
node->getDocument()->updateLayout();
node->document()->updateLayout();
RenderObject* renderer = node->renderer();
if (!renderer)
......
......@@ -65,7 +65,7 @@ String StyleBase::baseURL()
if(!sheet->ownerNode())
return String();
return sheet->ownerNode()->getDocument()->baseURL();
return sheet->ownerNode()->document()->baseURL();
}
// ------------------------------------------------------------------------------
......
......@@ -90,7 +90,7 @@ CSSStyleSheet::CSSStyleSheet(CSSStyleSheet *parentSheet, String href)
CSSStyleSheet::CSSStyleSheet(Node *parentNode, String href, bool _implicit)
: StyleSheet(parentNode, href)
{
m_doc = parentNode->getDocument();
m_doc = parentNode->document();
m_implicit = _implicit;
m_namespaces = 0;
}
......
......@@ -495,9 +495,9 @@ void CSSStyleSelector::initForStyleResolve(Element* e, RenderStyle* defaultParen
parentStyle = defaultParent;
else
parentStyle = (parentNode && parentNode->renderer()) ? parentNode->renderer()->style() : 0;
view = element->getDocument()->view();
isXMLDoc = !element->getDocument()->isHTMLDocument();
frame = element->getDocument()->frame();
view = element->document()->view();
isXMLDoc = !element->document()->isHTMLDocument();
frame = element->document()->frame();
settings = frame ? frame->settings() : 0;
style = 0;
......@@ -630,7 +630,7 @@ bool CSSStyleSelector::canShareStyleWithElement(Node* n)
(s->isEnabled() == element->isEnabled()) &&
(s->isIndeterminate() == element->isIndeterminate()) &&
(s->isChecked() == element->isChecked()) &&
(s != s->getDocument()->getCSSTarget() && element != element->getDocument()->getCSSTarget()) &&
(s != s->document()->getCSSTarget() && element != element->document()->getCSSTarget()) &&
(s->getAttribute(typeAttr) == element->getAttribute(typeAttr))) {
bool classesMatch = true;
if (s->hasClass()) {
......@@ -647,8 +647,8 @@ bool CSSStyleSelector::canShareStyleWithElement(Node* n)
bool linksMatch = true;
if (s->isLink()) {
// We need to check to see if the visited state matches.
Color linkColor = element->getDocument()->linkColor();
Color visitedColor = element->getDocument()->visitedLinkColor();
Color linkColor = element->document()->linkColor();
Color visitedColor = element->document()->visitedLinkColor();
if (pseudoState == PseudoUnknown)
checkPseudoState(element, s->renderer()->style()->pseudoState() != PseudoAnyLink ||
linkColor != visitedColor);
......@@ -667,7 +667,7 @@ bool CSSStyleSelector::canShareStyleWithElement(Node* n)
RenderStyle* CSSStyleSelector::locateSharedStyle()
{
if (styledElement && !styledElement->inlineStyleDecl() && !styledElement->hasID() &&
!styledElement->getDocument()->usesSiblingRules()) {
!styledElement->document()->usesSiblingRules()) {
// Check previous siblings.
int count = 0;
Node* n;
......@@ -695,7 +695,7 @@ RenderStyle* CSSStyleSelector::locateSharedStyle()
RenderStyle* CSSStyleSelector::createStyleForElement(Element* e, RenderStyle* defaultParent, bool allowSharing)
{
if (!e->getDocument()->haveStylesheetsLoaded()) {
if (!e->document()->haveStylesheetsLoaded()) {
if (!styleNotYetAvailable) {
styleNotYetAvailable = ::new RenderStyle();
styleNotYetAvailable->setDisplay(NONE);
......@@ -720,7 +720,7 @@ RenderStyle* CSSStyleSelector::createStyleForElement(Element* e, RenderStyle* de
}
initForStyleResolve(e, defaultParent);
style = new (e->getDocument()->renderArena()) RenderStyle();
style = new (e->document()->renderArena()) RenderStyle();
style->ref();
if (parentStyle)
style->inheritFrom(parentStyle);
......@@ -860,7 +860,7 @@ RenderStyle* CSSStyleSelector::createPseudoStyleForElement(RenderStyle::PseudoId
if (m_matchedDeclCount == 0)
return 0;
style = new (e->getDocument()->renderArena()) RenderStyle();
style = new (e->document()->renderArena()) RenderStyle();
style->ref();
if (parentStyle)
style->inheritFrom(parentStyle);
......@@ -950,7 +950,7 @@ void CSSStyleSelector::adjustRenderStyle(RenderStyle* style, Element *e)
// positions. We also force inline-level roots to be block-level.
if (style->display() != BLOCK && style->display() != TABLE && style->display() != BOX &&
(style->position() == AbsolutePosition || style->position() == FixedPosition || style->floating() != FNONE ||
(e && e->getDocument()->documentElement() == e))) {
(e && e->document()->documentElement() == e))) {
if (style->display() == INLINE_TABLE)
style->setDisplay(TABLE);
else if (style->display() == INLINE_BOX)
......@@ -982,7 +982,7 @@ void CSSStyleSelector::adjustRenderStyle(RenderStyle* style, Element *e)
// Auto z-index becomes 0 for the root element and transparent objects. This prevents
// cases where objects that should be blended as a single unit end up with a non-transparent
// object wedged in between them.
if (style->hasAutoZIndex() && ((e && e->getDocument()->documentElement() == e) || style->opacity() < 1.0f))
if (style->hasAutoZIndex() && ((e && e->document()->documentElement() == e) || style->opacity() < 1.0f))
style->setZIndex(0);
// Button, legend, input, select and textarea all consider width values of 'auto' to be 'intrinsic'.
......@@ -1028,7 +1028,7 @@ void CSSStyleSelector::adjustRenderStyle(RenderStyle* style, Element *e)
RefPtr<CSSRuleList> CSSStyleSelector::styleRulesForElement(Element* e, bool authorOnly)
{
if (!e->getDocument()->haveStylesheetsLoaded())
if (!e->document()->haveStylesheetsLoaded())
return 0;
m_collectRulesOnly = true;
......@@ -1372,7 +1372,7 @@ bool CSSStyleSelector::checkOneSelector(CSSSelector* sel, Element* e, bool isSub
break;
}
case CSSSelector::PseudoTarget:
if (e == e->getDocument()->getCSSTarget())
if (e == e->document()->getCSSTarget())
return true;
break;
case CSSSelector::PseudoAnyLink:
......@@ -1420,7 +1420,7 @@ bool CSSStyleSelector::checkOneSelector(CSSSelector* sel, Element* e, bool isSub
break;
}
case CSSSelector::PseudoFocus:
if (e && e->focused() && e->getDocument()->frame()->displaysWithFocusAttributes()) {
if (e && e->focused() && e->document()->frame()->displaysWithFocusAttributes()) {
return true;
}
break;
......@@ -1462,7 +1462,7 @@ bool CSSStyleSelector::checkOneSelector(CSSSelector* sel, Element* e, bool isSub
return true;
break;
case CSSSelector::PseudoRoot:
if (e == e->getDocument()->documentElement())
if (e == e->document()->documentElement())
return true;
break;
case CSSSelector::PseudoNot: {
......@@ -2312,7 +2312,7 @@ void CSSStyleSelector::applyProperty(int id, CSSValue *value)
} else if (type == CSSPrimitiveValue::CSS_URI) {
CSSImageValue *image = static_cast<CSSImageValue *>(primitiveValue);
style->setCursor(CURSOR_AUTO);
style->setCursorImage(image->image(element->getDocument()->docLoader()));
style->setCursorImage(image->image(element->document()->docLoader()));
}
}
break;
......@@ -2382,7 +2382,7 @@ void CSSStyleSelector::applyProperty(int id, CSSValue *value)
HANDLE_INHERIT_AND_INITIAL(listStyleImage, ListStyleImage)
if (!primitiveValue) return;
style->setListStyleImage(static_cast<CSSImageValue *>(primitiveValue)
->image(element->getDocument()->docLoader()));
->image(element->document()->docLoader()));
break;
}
......@@ -3018,7 +3018,7 @@ void CSSStyleSelector::applyProperty(int id, CSSValue *value)
}
else if (val->primitiveType()==CSSPrimitiveValue::CSS_URI) {
CSSImageValue *image = static_cast<CSSImageValue *>(val);
style->setContent(image->image(element->getDocument()->docLoader()), i != 0);
style->setContent(image->image(element->document()->docLoader()), i != 0);
}
}
break;
......@@ -3382,7 +3382,7 @@ void CSSStyleSelector::applyProperty(int id, CSSValue *value)
CSSBorderImageValue* borderImage = static_cast<CSSBorderImageValue*>(value);
// Set the image (this kicks off the load).
image.m_image = borderImage->m_image->image(element->getDocument()->docLoader());
image.m_image = borderImage->m_image->image(element->document()->docLoader());
// Set up a length box to represent our image slices.
LengthBox& l = image.m_slices;
......@@ -3919,7 +3919,7 @@ void CSSStyleSelector::applyProperty(int id, CSSValue *value)
region = region->m_next.get();
}
element->getDocument()->setHasDashboardRegions(true);
element->document()->setHasDashboardRegions(true);
break;
}
......@@ -4014,7 +4014,7 @@ void CSSStyleSelector::mapBackgroundImage(BackgroundLayer* layer, CSSValue* valu
if (!value->isPrimitiveValue()) return;
CSSPrimitiveValue* primitiveValue = static_cast<CSSPrimitiveValue*>(value);
layer->setBackgroundImage(static_cast<CSSImageValue *>(primitiveValue)->image(element->getDocument()->docLoader()));
layer->setBackgroundImage(static_cast<CSSImageValue *>(primitiveValue)->image(element->document()->docLoader()));
}
void CSSStyleSelector::mapBackgroundRepeat(BackgroundLayer* layer, CSSValue* value)
......@@ -4241,10 +4241,10 @@ Color CSSStyleSelector::getColorFromPrimitiveValue(CSSPrimitiveValue* primitiveV
int ident = primitiveValue->getIdent();
if (ident) {
if (ident == CSS_VAL__KHTML_TEXT)
col = element->getDocument()->textColor();
col = element->document()->textColor();
else if (ident == CSS_VAL__KHTML_LINK) {
Color linkColor = element->getDocument()->linkColor();
Color visitedColor = element->getDocument()->visitedLinkColor();
Color linkColor = element->document()->linkColor();
Color visitedColor = element->document()->visitedLinkColor();
if (linkColor == visitedColor)
col = linkColor;
else {
......@@ -4254,7 +4254,7 @@ Color CSSStyleSelector::getColorFromPrimitiveValue(CSSPrimitiveValue* primitiveV
}
}
else if (ident == CSS_VAL__KHTML_ACTIVELINK)
col = element->getDocument()->activeLinkColor();
col = element->document()->activeLinkColor();
else
col = colorForCSSValue(ident);
} else if (primitiveValue->primitiveType() == CSSPrimitiveValue::CSS_RGBCOLOR)
......
......@@ -31,9 +31,9 @@
namespace WebCore {
AbstractView::AbstractView(Document *_document)
AbstractView::AbstractView(Document *doc)
{
m_document = _document;
m_document = doc;
}
AbstractView::~AbstractView()
......
......@@ -53,7 +53,7 @@ Node::NodeType CDATASection::nodeType() const
PassRefPtr<Node> CDATASection::cloneNode(bool /*deep*/)
{
ExceptionCode ec = 0;
return getDocument()->createCDATASection(str, ec);
return document()->createCDATASection(str, ec);
}
// DOM Section 1.1.1
......@@ -64,7 +64,7 @@ bool CDATASection::childTypeAllowed(NodeType)
Text *CDATASection::createNew(StringImpl *_str)
{
return new CDATASection(getDocument(), _str);
return new CDATASection(document(), _str);
}
String CDATASection::toString() const
......
......@@ -76,7 +76,7 @@ void CharacterData::setData( const String &_data, ExceptionCode& ec)
dispatchModifiedEvent(oldStr);
if(oldStr) oldStr->deref();
getDocument()->removeMarkers(this);
document()->removeMarkers(this);
}
unsigned CharacterData::length() const
......@@ -134,7 +134,7 @@ void CharacterData::insertData( const unsigned offset, const String &arg, Except
// update the markers for spell checking and grammar checking
unsigned length = arg.length();
getDocument()->shiftMarkers(this, offset, length);
document()->shiftMarkers(this, offset, length);
}
void CharacterData::deleteData( const unsigned offset, const unsigned count, ExceptionCode& ec)
......@@ -155,8 +155,8 @@ void CharacterData::deleteData( const unsigned offset, const unsigned count, Exc
oldStr->deref();
// update the markers for spell checking and grammar checking
getDocument()->removeMarkers(this, offset, count);
getDocument()->shiftMarkers(this, offset + count, -count);
document()->removeMarkers(this, offset, count);
document()->shiftMarkers(this, offset + count, -count);
}
void CharacterData::replaceData( const unsigned offset, const unsigned count, const String &arg, ExceptionCode& ec)
......@@ -185,8 +185,8 @@ void CharacterData::replaceData( const unsigned offset, const unsigned count, co
// update the markers for spell checking and grammar checking
int diff = arg.length() - count;
getDocument()->removeMarkers(this, offset, count);
getDocument()->shiftMarkers(this, offset + count, diff);
document()->removeMarkers(this, offset, count);
document()->shiftMarkers(this, offset + count, diff);
}
String CharacterData::nodeValue() const
......@@ -218,7 +218,7 @@ void CharacterData::dispatchModifiedEvent(StringImpl *prevValue)
{
if (parentNode())
parentNode()->childrenChanged();
if (!getDocument()->hasListenerType(Document::DOMCHARACTERDATAMODIFIED_LISTENER))
if (!document()->hasListenerType(Document::DOMCHARACTERDATAMODIFIED_LISTENER))
return;
StringImpl *newValue = str->copy();
......
......@@ -60,7 +60,7 @@ Node::NodeType Comment::nodeType() const
PassRefPtr<Node> Comment::cloneNode(bool /*deep*/)
{
return getDocument()->createComment(str);
return document()->createComment(str);
}
// DOM Section 1.1.1
......
......@@ -208,7 +208,7 @@ bool ContainerNode::insertBefore(PassRefPtr<Node> newChild, Node* refChild, Exce
child = nextChild.release();
}
getDocument()->setDocumentChanged(true);
document()->setDocumentChanged(true);
dispatchSubtreeModifiedEvent();
return true;
}
......@@ -314,7 +314,7 @@ bool ContainerNode::replaceChild(PassRefPtr<Node> newChild, Node* oldChild, Exce
}
// ### set style in case it's attached
getDocument()->setDocumentChanged(true);
document()->setDocumentChanged(true);
dispatchSubtreeModifiedEvent();
return true;
}
......@@ -363,7 +363,7 @@ bool ContainerNode::removeChild(Node* oldChild, ExceptionCode& ec)
RefPtr<Node> child = oldChild;
// dispatch pre-removal mutation events
if (getDocument()->hasListenerType(Document::DOMNODEREMOVED_LISTENER)) {
if (document()->hasListenerType(Document::DOMNODEREMOVED_LISTENER)) {
EventTargetNodeCast(child.get())->dispatchEvent(new MutationEvent(DOMNodeRemovedEvent, true, false,
this, String(), String(), String(), 0), ec, true);
if (ec)
......@@ -411,7 +411,7 @@ bool ContainerNode::removeChild(Node* oldChild, ExceptionCode& ec)
allowEventDispatch();
getDocument()->setDocumentChanged(true);
document()->setDocumentChanged(true);
// Dispatch post-removal mutation events
dispatchSubtreeModifiedEvent();
......@@ -529,7 +529,7 @@ bool ContainerNode::appendChild(PassRefPtr<Node> newChild, ExceptionCode& ec)
child = nextChild.release();
}
getDocument()->setDocumentChanged(true);
document()->setDocumentChanged(true);
dispatchSubtreeModifiedEvent();
return true;
}
......@@ -545,7 +545,7 @@ ContainerNode* ContainerNode::addChild(PassRefPtr<Node> newChild)
// It does not send any DOM mutation events.
// Check for consistency with DTD, but only when parsing HTML.
if (getDocument()->isHTMLDocument() && !childAllowed(newChild.get()))
if (document()->isHTMLDocument() && !childAllowed(newChild.get()))
return 0;
forbidEventDispatch();
......@@ -675,7 +675,7 @@ bool ContainerNode::getUpperLeftCorner(int &xPos, int &yPos) const
// If the target doesn't have any children or siblings that could be used to calculate the scroll position, we must be
// at the end of the document. Scroll to the bottom.
if (!o) {
yPos += getDocument()->view()->contentsHeight();
yPos += document()->view()->contentsHeight();
return true;
}
return false;
......@@ -839,7 +839,7 @@ static void dispatchChildInsertionEvents(Node* child, ExceptionCode& ec)
assert(!eventDispatchForbidden());
RefPtr<Node> c = child;
RefPtr<Document> doc = child->getDocument();
RefPtr<Document> doc = child->document();
if (c->parentNode() && c->parentNode()->inDocument())
c->insertedIntoDocument();
......@@ -873,7 +873,7 @@ static void dispatchChildInsertionEvents(Node* child, ExceptionCode& ec)
static void dispatchChildRemovalEvents(Node* child, ExceptionCode& ec)
{
RefPtr<Node> c = child;
RefPtr<Document> doc = child->getDocument();
RefPtr<Document> doc = child->document();
// update auxiliary doc info (e.g. iterators) to note that node is being removed
doc->notifyBeforeNodeRemoval(child); // ### use events instead
......
......@@ -132,7 +132,7 @@ PassRefPtr<Document> DOMImplementation::createDocument(const String& namespaceUR
// WRONG_DOCUMENT_ERR: Raised if doctype has already been used with a different document or was
// created from a different implementation.
if (doctype && (doctype->getDocument() || doctype->implementation() != this)) {
if (doctype && (doctype->document() || doctype->implementation() != this)) {
ec = WRONG_DOCUMENT_ERR;
return 0;
}
......
......@@ -216,7 +216,7 @@ Document::Document(DOMImplementation* impl, FrameView *v)
, m_createRenderers(true)
, m_inPageCache(false)
{
document.resetSkippingRef(this);
m_document.resetSkippingRef(this);
m_printing = false;
......@@ -311,7 +311,7 @@ Document::~Document()
if (m_docChanged && changedDocuments)
changedDocuments->remove(this);
delete m_tokenizer;
document.resetSkippingRef(0);
m_document.resetSkippingRef(0);
delete m_styleSelector;
delete m_docLoader;
......@@ -400,7 +400,7 @@ PassRefPtr<Element> Document::createElement(const String &name, ExceptionCode& e
PassRefPtr<DocumentFragment> Document::createDocumentFragment()
{
return new DocumentFragment(getDocument());
return new DocumentFragment(document());
}
PassRefPtr<Text> Document::createTextNode(const String &data)
......@@ -546,7 +546,7 @@ PassRefPtr<Node> Document::adoptNode(PassRefPtr<Node> source, ExceptionCode& ec)
}
for (Node* node = source.get(); node;