JavaScriptCore:
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 10 Feb 2008 19:27:12 +0000 (19:27 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 10 Feb 2008 19:27:12 +0000 (19:27 +0000)
        Reviewed by Eric.

        - http://bugs.webkit.org/show_bug.cgi?id=17256
          Make clients of RefCounted explicitly set the count to 0.

        * API/JSClassRef.cpp:
        (OpaqueJSClass::OpaqueJSClass):
        * bindings/runtime_root.cpp:
        (KJS::Bindings::RootObject::RootObject):

WebCore:

        Reviewed by Eric.

        - http://bugs.webkit.org/show_bug.cgi?id=17256
          Make clients of RefCounted explicitly set the count to 0.

        * bindings/js/JSSVGPODTypeWrapper.h:
        (WebCore::JSSVGPODTypeWrapper::JSSVGPODTypeWrapper):
        * css/CSSFontFace.h:
        (WebCore::CSSFontFace::CSSFontFace):
        * css/CSSRuleList.cpp:
        (WebCore::CSSRuleList::CSSRuleList):
        * css/CSSSegmentedFontFace.cpp:
        (WebCore::CSSSegmentedFontFace::CSSSegmentedFontFace):
        * css/Counter.h:
        (WebCore::Counter::Counter):
        * css/Pair.h:
        (WebCore::Pair::Pair):
        * css/Rect.h:
        (WebCore::Rect::Rect):
        * css/StyleBase.h:
        (WebCore::StyleBase::StyleBase):
        * css/StyleSheetList.cpp:
        (WebCore::StyleSheetList::StyleSheetList):
        * dom/Attr.cpp:
        (WebCore::Attr::Attr):
        * dom/Attr.h:
        * dom/Attribute.h:
        (WebCore::Attribute::Attribute):
        * dom/Clipboard.cpp:
        (WebCore::Clipboard::Clipboard):
        * dom/DOMImplementation.h:
        (WebCore::DOMImplementation::DOMImplementation):
        * dom/Event.cpp:
        (WebCore::Event::Event):
        * dom/EventListener.h:
        (WebCore::EventListener::EventListener):
        * dom/ExceptionBase.cpp:
        (WebCore::ExceptionBase::ExceptionBase):
        * dom/NamedAttrMap.h:
        (WebCore::NamedAttrMap::insertAttribute):
        * dom/NamedNodeMap.h:
        (WebCore::NamedNodeMap::NamedNodeMap):
        * dom/NodeFilter.h:
        (WebCore::NodeFilter::NodeFilter):
        * dom/NodeFilterCondition.h:
        (WebCore::NodeFilterCondition::NodeFilterCondition):
        * dom/NodeList.h:
        (WebCore::NodeList::NodeList):
        * dom/QualifiedName.h:
        (WebCore::QualifiedName::QualifiedNameImpl::QualifiedNameImpl):
        (WebCore::QualifiedName::ref):
        * dom/Range.cpp:
        (WebCore::Range::Range):
        * dom/RegisteredEventListener.cpp:
        (WebCore::RegisteredEventListener::RegisteredEventListener):
        * dom/StyledElement.h:
        * dom/Traversal.cpp:
        (WebCore::Traversal::Traversal):
        * editing/EditCommand.cpp:
        (WebCore::EditCommand::EditCommand):
        * history/BackForwardList.cpp:
        (WebCore::BackForwardList::BackForwardList):
        * history/CachedPage.cpp:
        (WebCore::CachedPage::CachedPage):
        * history/HistoryItem.cpp:
        (WebCore::HistoryItem::HistoryItem):
        * html/CanvasGradient.cpp:
        (WebCore::CanvasGradient::CanvasGradient):
        * html/CanvasPattern.cpp:
        (WebCore::CanvasPattern::CanvasPattern):
        * html/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::CanvasRenderingContext2D):
        * html/CanvasStyle.cpp:
        (WebCore::CanvasStyle::CanvasStyle):
        * html/HTMLCollection.cpp:
        (WebCore::HTMLCollection::HTMLCollection):
        * html/MediaError.h:
        (WebCore::MediaError::MediaError):
        * html/TimeRanges.cpp:
        (TimeRanges::TimeRanges):
        * html/TimeRanges.h:
        (WebCore::TimeRanges::TimeRanges):
        * html/VoidCallback.h:
        (WebCore::VoidCallback::VoidCallback):
        * loader/DocumentLoader.cpp:
        (WebCore::DocumentLoader::DocumentLoader):
        * loader/FormState.cpp:
        (WebCore::FormState::FormState):
        * loader/ResourceLoader.cpp:
        (WebCore::ResourceLoader::ResourceLoader):
        * loader/TextResourceDecoder.cpp:
        (WebCore::TextResourceDecoder::TextResourceDecoder):
        * loader/icon/IconRecord.cpp:
        (WebCore::IconRecord::IconRecord):
        * page/BarInfo.cpp:
        (WebCore::BarInfo::BarInfo):
        * page/Console.cpp:
        (WebCore::Console::Console):
        * page/DOMSelection.cpp:
        (WebCore::DOMSelection::DOMSelection):
        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::DOMWindow):
        * page/Frame.cpp:
        (WebCore::Frame::Frame):
        * page/History.cpp:
        (WebCore::History::History):
        * page/InspectorController.cpp:
        (WebCore::InspectorResource::InspectorResource):
        (WebCore::InspectorDatabaseResource::InspectorDatabaseResource):
        * page/Plugin.h:
        (WebCore::Plugin::Plugin):
        * page/Screen.cpp:
        (WebCore::Screen::Screen):
        * platform/ArrayImpl.cpp:
        (WebCore::ArrayImpl::ArrayPrivate::ArrayPrivate):
        * platform/DeprecatedValueListImpl.cpp:
        (WebCore::DeprecatedValueListImpl::Private::Private):
        * platform/ScrollBar.cpp:
        (WebCore::Scrollbar::Scrollbar):
        * platform/SharedBuffer.cpp:
        (WebCore::SharedBuffer::SharedBuffer):
        * platform/graphics/FontFallbackList.cpp:
        (WebCore::FontFallbackList::FontFallbackList):
        * platform/graphics/FontFamily.cpp:
        (WebCore::FontFamily::FontFamily):
        * platform/graphics/FontFamily.h:
        (WebCore::FontFamily::FontFamily):
        * platform/graphics/FontSelector.h:
        (WebCore::FontSelector::FontSelector):
        (WebCore::FontSelector::~FontSelector):
        * platform/graphics/GlyphPageTreeNode.h:
        (WebCore::GlyphPage::GlyphPage):
        * platform/graphics/mac/IconMac.mm:
        (WebCore::Icon::Icon):
        * platform/mac/FileChooserMac.mm:
        (WebCore::FileChooser::FileChooser):
        * platform/mac/PopupMenuMac.mm:
        (WebCore::PopupMenu::PopupMenu):
        * platform/mac/SharedBufferMac.mm:
        (WebCore::SharedBuffer::SharedBuffer):
        * platform/network/FormData.cpp:
        (WebCore::FormData::FormData):
        * platform/network/FormData.h:
        (WebCore::FormData::FormData):
        * platform/network/ResourceHandle.cpp:
        (WebCore::ResourceHandle::ResourceHandle):
        * platform/text/CString.h:
        (WebCore::CStringBuffer::CStringBuffer):
        * platform/text/RegularExpression.cpp:
        (WebCore::RegularExpression::Private::Private):
        * rendering/RenderStyle.cpp:
        (WebCore::StyleSurroundData::StyleSurroundData):
        (WebCore::StyleBoxData::StyleBoxData):
        (WebCore::StyleVisualData::StyleVisualData):
        (WebCore::StyleBackgroundData::StyleBackgroundData):
        (WebCore::StyleMarqueeData::StyleMarqueeData):
        (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData):
        (WebCore::StyleMultiColData::StyleMultiColData):
        (WebCore::StyleTransformData::StyleTransformData):
        (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
        (WebCore::StyleRareInheritedData::StyleRareInheritedData):
        (WebCore::StyleInheritedData::StyleInheritedData):
        * rendering/RenderStyle.h:
        (WebCore::TransformOperation::TransformOperation):
        (WebCore::CursorList::CursorList):
        * rendering/SVGCharacterLayoutInfo.h:
        (WebCore::SVGCharOnPath::SVGCharOnPath):
        * rendering/SVGRenderStyle.cpp:
        (WebCore::SVGRenderStyle::SVGRenderStyle):
        * rendering/SVGRenderStyle.h:
        (WebCore::SVGRenderStyle::SVGRenderStyle):
        * rendering/SVGRenderStyleDefs.cpp:
        (StyleFillData::StyleFillData):
        (StyleStrokeData::StyleStrokeData):
        (StyleStopData::StyleStopData):
        (StyleTextData::StyleTextData):
        (StyleClipData::StyleClipData):
        (StyleMaskData::StyleMaskData):
        (StyleMarkerData::StyleMarkerData):
        (StyleMiscData::StyleMiscData):
        * storage/SQLResultSetRowList.h:
        (WebCore::SQLResultSetRowList::SQLResultSetRowList):
        * svg/SVGAngle.cpp:
        (WebCore::SVGAngle::SVGAngle):
        * svg/SVGAnimatedTemplate.h:
        (WebCore::SVGAnimatedTemplate::SVGAnimatedTemplate):
        * svg/SVGElementInstanceList.cpp:
        (WebCore::SVGElementInstanceList::SVGElementInstanceList):
        * svg/SVGList.h:
        (WebCore::SVGList::SVGList):
        (WebCore::SVGPODListItem::SVGPODListItem):
        * svg/SVGPathSeg.h:
        (WebCore::SVGPathSeg::SVGPathSeg):
        * svg/SVGPreserveAspectRatio.cpp:
        (WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
        * svg/SVGRenderingIntent.h:
        (WebCore::SVGRenderingIntent::SVGRenderingIntent):
        * svg/SVGUnitTypes.h:
        (WebCore::SVGUnitTypes::SVGUnitTypes):
        * svg/graphics/SVGPaintServerGradient.h:
        (WebCore::SVGPaintServerGradient::SharedStopCache::SharedStopCache):
        * svg/graphics/SVGResource.cpp:
        (WebCore::SVGResource::SVGResource):
        * xml/DOMParser.h:
        (WebCore::DOMParser::DOMParser):
        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::XMLHttpRequest):
        * xml/XMLSerializer.h:
        (WebCore::XMLSerializer::XMLSerializer):
        * xml/XPathEvaluator.h:
        (WebCore::XPathEvaluator::XPathEvaluator):
        * xml/XPathExpression.h:
        (WebCore::XPathExpression::XPathExpression):
        * xml/XPathNSResolver.h:
        (WebCore::XPathNSResolver::XPathNSResolver):
        * xml/XPathResult.cpp:
        (WebCore::XPathResult::XPathResult):
        * xml/XPathValue.h:
        (WebCore::XPath::ValueData::ValueData):
        * xml/XSLTProcessor.h:
        (WebCore::XSLTProcessor::XSLTProcessor):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@30122 268f45cc-cd09-0410-ab3c-d52691b4dbfc

102 files changed:
JavaScriptCore/API/JSClassRef.cpp
JavaScriptCore/ChangeLog
JavaScriptCore/bindings/runtime_root.cpp
WebCore/ChangeLog
WebCore/bindings/js/JSSVGPODTypeWrapper.h
WebCore/css/CSSFontFace.h
WebCore/css/CSSRuleList.cpp
WebCore/css/CSSSegmentedFontFace.cpp
WebCore/css/Counter.h
WebCore/css/Pair.h
WebCore/css/Rect.h
WebCore/css/StyleBase.h
WebCore/css/StyleSheetList.cpp
WebCore/dom/Attr.cpp
WebCore/dom/Attr.h
WebCore/dom/Attribute.h
WebCore/dom/Clipboard.cpp
WebCore/dom/DOMImplementation.h
WebCore/dom/Event.cpp
WebCore/dom/EventListener.h
WebCore/dom/ExceptionBase.cpp
WebCore/dom/NamedAttrMap.h
WebCore/dom/NamedNodeMap.h
WebCore/dom/NodeFilter.h
WebCore/dom/NodeFilterCondition.h
WebCore/dom/NodeList.h
WebCore/dom/QualifiedName.h
WebCore/dom/Range.cpp
WebCore/dom/RegisteredEventListener.cpp
WebCore/dom/StyledElement.h
WebCore/dom/Traversal.cpp
WebCore/editing/EditCommand.cpp
WebCore/history/BackForwardList.cpp
WebCore/history/CachedPage.cpp
WebCore/history/HistoryItem.cpp
WebCore/html/CanvasGradient.cpp
WebCore/html/CanvasPattern.cpp
WebCore/html/CanvasRenderingContext2D.cpp
WebCore/html/CanvasStyle.cpp
WebCore/html/HTMLCollection.cpp
WebCore/html/MediaError.h
WebCore/html/TimeRanges.cpp
WebCore/html/TimeRanges.h
WebCore/html/VoidCallback.h
WebCore/loader/DocumentLoader.cpp
WebCore/loader/FormState.cpp
WebCore/loader/ResourceLoader.cpp
WebCore/loader/TextResourceDecoder.cpp
WebCore/loader/icon/IconRecord.cpp
WebCore/page/BarInfo.cpp
WebCore/page/Console.cpp
WebCore/page/DOMSelection.cpp
WebCore/page/DOMWindow.cpp
WebCore/page/Frame.cpp
WebCore/page/History.cpp
WebCore/page/InspectorController.cpp
WebCore/page/Plugin.h
WebCore/page/Screen.cpp
WebCore/platform/ArrayImpl.cpp
WebCore/platform/DeprecatedValueListImpl.cpp
WebCore/platform/ScrollBar.cpp
WebCore/platform/SharedBuffer.cpp
WebCore/platform/graphics/FontFallbackList.cpp
WebCore/platform/graphics/FontFamily.cpp
WebCore/platform/graphics/FontFamily.h
WebCore/platform/graphics/FontSelector.h
WebCore/platform/graphics/GlyphPageTreeNode.h
WebCore/platform/graphics/mac/IconMac.mm
WebCore/platform/mac/FileChooserMac.mm
WebCore/platform/mac/PopupMenuMac.mm
WebCore/platform/mac/SharedBufferMac.mm
WebCore/platform/network/FormData.cpp
WebCore/platform/network/FormData.h
WebCore/platform/network/ResourceHandle.cpp
WebCore/platform/text/CString.h
WebCore/platform/text/RegularExpression.cpp
WebCore/rendering/RenderStyle.cpp
WebCore/rendering/RenderStyle.h
WebCore/rendering/SVGCharacterLayoutInfo.h
WebCore/rendering/SVGRenderStyle.cpp
WebCore/rendering/SVGRenderStyle.h
WebCore/rendering/SVGRenderStyleDefs.cpp
WebCore/storage/SQLResultSetRowList.h
WebCore/svg/SVGAngle.cpp
WebCore/svg/SVGAnimatedTemplate.h
WebCore/svg/SVGElementInstanceList.cpp
WebCore/svg/SVGList.h
WebCore/svg/SVGPathSeg.h
WebCore/svg/SVGPreserveAspectRatio.cpp
WebCore/svg/SVGRenderingIntent.h
WebCore/svg/SVGUnitTypes.h
WebCore/svg/graphics/SVGPaintServerGradient.h
WebCore/svg/graphics/SVGResource.cpp
WebCore/xml/DOMParser.h
WebCore/xml/XMLHttpRequest.cpp
WebCore/xml/XMLSerializer.h
WebCore/xml/XPathEvaluator.h
WebCore/xml/XPathExpression.h
WebCore/xml/XPathNSResolver.h
WebCore/xml/XPathResult.cpp
WebCore/xml/XPathValue.h
WebCore/xml/XSLTProcessor.h

index 98aaaf5290350574b200c388c4de05d25ea11f5b..6673e1634be7d3e0fa9abfbed2af4e86187f0f5a 100644 (file)
@@ -40,7 +40,8 @@ const JSClassDefinition kJSClassDefinitionEmpty = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
 
 OpaqueJSClass::OpaqueJSClass(const JSClassDefinition* definition, OpaqueJSClass* protoClass) 
     // FIXME: <rdar://problem/4949018>
-    : className(definition->className)
+    : RefCounted<OpaqueJSClass>(0)
+    , className(definition->className)
     , parentClass(definition->parentClass)
     , prototypeClass(0)
     , staticValues(0)
index bae61eb194394c27722d05b8c2e3480dcc6edc26..0550a423fef98b30dec6acd3d2130b4469b91909 100644 (file)
@@ -1,3 +1,15 @@
+2008-02-10  Darin Adler  <darin@apple.com>
+
+        Reviewed by Eric.
+
+        - http://bugs.webkit.org/show_bug.cgi?id=17256
+          Make clients of RefCounted explicitly set the count to 0.
+
+        * API/JSClassRef.cpp:
+        (OpaqueJSClass::OpaqueJSClass):
+        * bindings/runtime_root.cpp:
+        (KJS::Bindings::RootObject::RootObject):
+
 2008-02-09  Darin Adler  <darin@apple.com>
 
         Reviewed by Mitz.
index 738cfd6f7496226b902736e5a35492158e337412..78dc81f6c3217ba1ae5bb999641d0cf89487fd21 100644 (file)
@@ -201,7 +201,8 @@ PassRefPtr<RootObject> RootObject::create(const void* nativeHandle, JSGlobalObje
 }
 
 RootObject::RootObject(const void* nativeHandle, JSGlobalObject* globalObject)
-    : m_isValid(true)
+    : RefCounted<RootObject>(0)
+    , m_isValid(true)
     , m_nativeHandle(nativeHandle)
     , m_globalObject(globalObject)
 {
index ceb5a6d1ecd7bcf6e498c30828213bef77ae6a64..312221ee2bd465a3536e57ae4d0a897577094819 100644 (file)
@@ -1,3 +1,227 @@
+2008-02-10  Darin Adler  <darin@apple.com>
+
+        Reviewed by Eric.
+
+        - http://bugs.webkit.org/show_bug.cgi?id=17256
+          Make clients of RefCounted explicitly set the count to 0.
+
+        * bindings/js/JSSVGPODTypeWrapper.h:
+        (WebCore::JSSVGPODTypeWrapper::JSSVGPODTypeWrapper):
+        * css/CSSFontFace.h:
+        (WebCore::CSSFontFace::CSSFontFace):
+        * css/CSSRuleList.cpp:
+        (WebCore::CSSRuleList::CSSRuleList):
+        * css/CSSSegmentedFontFace.cpp:
+        (WebCore::CSSSegmentedFontFace::CSSSegmentedFontFace):
+        * css/Counter.h:
+        (WebCore::Counter::Counter):
+        * css/Pair.h:
+        (WebCore::Pair::Pair):
+        * css/Rect.h:
+        (WebCore::Rect::Rect):
+        * css/StyleBase.h:
+        (WebCore::StyleBase::StyleBase):
+        * css/StyleSheetList.cpp:
+        (WebCore::StyleSheetList::StyleSheetList):
+        * dom/Attr.cpp:
+        (WebCore::Attr::Attr):
+        * dom/Attr.h:
+        * dom/Attribute.h:
+        (WebCore::Attribute::Attribute):
+        * dom/Clipboard.cpp:
+        (WebCore::Clipboard::Clipboard):
+        * dom/DOMImplementation.h:
+        (WebCore::DOMImplementation::DOMImplementation):
+        * dom/Event.cpp:
+        (WebCore::Event::Event):
+        * dom/EventListener.h:
+        (WebCore::EventListener::EventListener):
+        * dom/ExceptionBase.cpp:
+        (WebCore::ExceptionBase::ExceptionBase):
+        * dom/NamedAttrMap.h:
+        (WebCore::NamedAttrMap::insertAttribute):
+        * dom/NamedNodeMap.h:
+        (WebCore::NamedNodeMap::NamedNodeMap):
+        * dom/NodeFilter.h:
+        (WebCore::NodeFilter::NodeFilter):
+        * dom/NodeFilterCondition.h:
+        (WebCore::NodeFilterCondition::NodeFilterCondition):
+        * dom/NodeList.h:
+        (WebCore::NodeList::NodeList):
+        * dom/QualifiedName.h:
+        (WebCore::QualifiedName::QualifiedNameImpl::QualifiedNameImpl):
+        (WebCore::QualifiedName::ref):
+        * dom/Range.cpp:
+        (WebCore::Range::Range):
+        * dom/RegisteredEventListener.cpp:
+        (WebCore::RegisteredEventListener::RegisteredEventListener):
+        * dom/StyledElement.h:
+        * dom/Traversal.cpp:
+        (WebCore::Traversal::Traversal):
+        * editing/EditCommand.cpp:
+        (WebCore::EditCommand::EditCommand):
+        * history/BackForwardList.cpp:
+        (WebCore::BackForwardList::BackForwardList):
+        * history/CachedPage.cpp:
+        (WebCore::CachedPage::CachedPage):
+        * history/HistoryItem.cpp:
+        (WebCore::HistoryItem::HistoryItem):
+        * html/CanvasGradient.cpp:
+        (WebCore::CanvasGradient::CanvasGradient):
+        * html/CanvasPattern.cpp:
+        (WebCore::CanvasPattern::CanvasPattern):
+        * html/CanvasRenderingContext2D.cpp:
+        (WebCore::CanvasRenderingContext2D::CanvasRenderingContext2D):
+        * html/CanvasStyle.cpp:
+        (WebCore::CanvasStyle::CanvasStyle):
+        * html/HTMLCollection.cpp:
+        (WebCore::HTMLCollection::HTMLCollection):
+        * html/MediaError.h:
+        (WebCore::MediaError::MediaError):
+        * html/TimeRanges.cpp:
+        (TimeRanges::TimeRanges):
+        * html/TimeRanges.h:
+        (WebCore::TimeRanges::TimeRanges):
+        * html/VoidCallback.h:
+        (WebCore::VoidCallback::VoidCallback):
+        * loader/DocumentLoader.cpp:
+        (WebCore::DocumentLoader::DocumentLoader):
+        * loader/FormState.cpp:
+        (WebCore::FormState::FormState):
+        * loader/ResourceLoader.cpp:
+        (WebCore::ResourceLoader::ResourceLoader):
+        * loader/TextResourceDecoder.cpp:
+        (WebCore::TextResourceDecoder::TextResourceDecoder):
+        * loader/icon/IconRecord.cpp:
+        (WebCore::IconRecord::IconRecord):
+        * page/BarInfo.cpp:
+        (WebCore::BarInfo::BarInfo):
+        * page/Console.cpp:
+        (WebCore::Console::Console):
+        * page/DOMSelection.cpp:
+        (WebCore::DOMSelection::DOMSelection):
+        * page/DOMWindow.cpp:
+        (WebCore::DOMWindow::DOMWindow):
+        * page/Frame.cpp:
+        (WebCore::Frame::Frame):
+        * page/History.cpp:
+        (WebCore::History::History):
+        * page/InspectorController.cpp:
+        (WebCore::InspectorResource::InspectorResource):
+        (WebCore::InspectorDatabaseResource::InspectorDatabaseResource):
+        * page/Plugin.h:
+        (WebCore::Plugin::Plugin):
+        * page/Screen.cpp:
+        (WebCore::Screen::Screen):
+        * platform/ArrayImpl.cpp:
+        (WebCore::ArrayImpl::ArrayPrivate::ArrayPrivate):
+        * platform/DeprecatedValueListImpl.cpp:
+        (WebCore::DeprecatedValueListImpl::Private::Private):
+        * platform/ScrollBar.cpp:
+        (WebCore::Scrollbar::Scrollbar):
+        * platform/SharedBuffer.cpp:
+        (WebCore::SharedBuffer::SharedBuffer):
+        * platform/graphics/FontFallbackList.cpp:
+        (WebCore::FontFallbackList::FontFallbackList):
+        * platform/graphics/FontFamily.cpp:
+        (WebCore::FontFamily::FontFamily):
+        * platform/graphics/FontFamily.h:
+        (WebCore::FontFamily::FontFamily):
+        * platform/graphics/FontSelector.h:
+        (WebCore::FontSelector::FontSelector):
+        (WebCore::FontSelector::~FontSelector):
+        * platform/graphics/GlyphPageTreeNode.h:
+        (WebCore::GlyphPage::GlyphPage):
+        * platform/graphics/mac/IconMac.mm:
+        (WebCore::Icon::Icon):
+        * platform/mac/FileChooserMac.mm:
+        (WebCore::FileChooser::FileChooser):
+        * platform/mac/PopupMenuMac.mm:
+        (WebCore::PopupMenu::PopupMenu):
+        * platform/mac/SharedBufferMac.mm:
+        (WebCore::SharedBuffer::SharedBuffer):
+        * platform/network/FormData.cpp:
+        (WebCore::FormData::FormData):
+        * platform/network/FormData.h:
+        (WebCore::FormData::FormData):
+        * platform/network/ResourceHandle.cpp:
+        (WebCore::ResourceHandle::ResourceHandle):
+        * platform/text/CString.h:
+        (WebCore::CStringBuffer::CStringBuffer):
+        * platform/text/RegularExpression.cpp:
+        (WebCore::RegularExpression::Private::Private):
+        * rendering/RenderStyle.cpp:
+        (WebCore::StyleSurroundData::StyleSurroundData):
+        (WebCore::StyleBoxData::StyleBoxData):
+        (WebCore::StyleVisualData::StyleVisualData):
+        (WebCore::StyleBackgroundData::StyleBackgroundData):
+        (WebCore::StyleMarqueeData::StyleMarqueeData):
+        (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData):
+        (WebCore::StyleMultiColData::StyleMultiColData):
+        (WebCore::StyleTransformData::StyleTransformData):
+        (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
+        (WebCore::StyleRareInheritedData::StyleRareInheritedData):
+        (WebCore::StyleInheritedData::StyleInheritedData):
+        * rendering/RenderStyle.h:
+        (WebCore::TransformOperation::TransformOperation):
+        (WebCore::CursorList::CursorList):
+        * rendering/SVGCharacterLayoutInfo.h:
+        (WebCore::SVGCharOnPath::SVGCharOnPath):
+        * rendering/SVGRenderStyle.cpp:
+        (WebCore::SVGRenderStyle::SVGRenderStyle):
+        * rendering/SVGRenderStyle.h:
+        (WebCore::SVGRenderStyle::SVGRenderStyle):
+        * rendering/SVGRenderStyleDefs.cpp:
+        (StyleFillData::StyleFillData):
+        (StyleStrokeData::StyleStrokeData):
+        (StyleStopData::StyleStopData):
+        (StyleTextData::StyleTextData):
+        (StyleClipData::StyleClipData):
+        (StyleMaskData::StyleMaskData):
+        (StyleMarkerData::StyleMarkerData):
+        (StyleMiscData::StyleMiscData):
+        * storage/SQLResultSetRowList.h:
+        (WebCore::SQLResultSetRowList::SQLResultSetRowList):
+        * svg/SVGAngle.cpp:
+        (WebCore::SVGAngle::SVGAngle):
+        * svg/SVGAnimatedTemplate.h:
+        (WebCore::SVGAnimatedTemplate::SVGAnimatedTemplate):
+        * svg/SVGElementInstanceList.cpp:
+        (WebCore::SVGElementInstanceList::SVGElementInstanceList):
+        * svg/SVGList.h:
+        (WebCore::SVGList::SVGList):
+        (WebCore::SVGPODListItem::SVGPODListItem):
+        * svg/SVGPathSeg.h:
+        (WebCore::SVGPathSeg::SVGPathSeg):
+        * svg/SVGPreserveAspectRatio.cpp:
+        (WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
+        * svg/SVGRenderingIntent.h:
+        (WebCore::SVGRenderingIntent::SVGRenderingIntent):
+        * svg/SVGUnitTypes.h:
+        (WebCore::SVGUnitTypes::SVGUnitTypes):
+        * svg/graphics/SVGPaintServerGradient.h:
+        (WebCore::SVGPaintServerGradient::SharedStopCache::SharedStopCache):
+        * svg/graphics/SVGResource.cpp:
+        (WebCore::SVGResource::SVGResource):
+        * xml/DOMParser.h:
+        (WebCore::DOMParser::DOMParser):
+        * xml/XMLHttpRequest.cpp:
+        (WebCore::XMLHttpRequest::XMLHttpRequest):
+        * xml/XMLSerializer.h:
+        (WebCore::XMLSerializer::XMLSerializer):
+        * xml/XPathEvaluator.h:
+        (WebCore::XPathEvaluator::XPathEvaluator):
+        * xml/XPathExpression.h:
+        (WebCore::XPathExpression::XPathExpression):
+        * xml/XPathNSResolver.h:
+        (WebCore::XPathNSResolver::XPathNSResolver):
+        * xml/XPathResult.cpp:
+        (WebCore::XPathResult::XPathResult):
+        * xml/XPathValue.h:
+        (WebCore::XPath::ValueData::ValueData):
+        * xml/XSLTProcessor.h:
+        (WebCore::XSLTProcessor::XSLTProcessor):
+
 2008-02-09  Kevin Ollivier  <kevino@theolliviers.com>
 
         Reviewed by Eric Seidel.
index 03cb4012ddb7059447216e5aabd26a050c588d48..1275950c5130f41bbc9d4cc24f9d08253f3ad1f4 100644 (file)
@@ -38,9 +38,9 @@
 namespace WebCore {
 
 template<typename PODType>
-class JSSVGPODTypeWrapper : public RefCounted<JSSVGPODTypeWrapper<PODType> >
-{
+class JSSVGPODTypeWrapper : public RefCounted<JSSVGPODTypeWrapper<PODType> > {
 public:
+    JSSVGPODTypeWrapper() : RefCounted<JSSVGPODTypeWrapper<PODType> >(0) { }
     virtual ~JSSVGPODTypeWrapper() { }
 
     // Getter wrapper
index ef281e3212ba1fdc55666eb55590fc44b7abc6c9..8c26b9f2dfa443196f97d0a0d61e7380f0a00f2f 100644 (file)
@@ -39,7 +39,8 @@ class SimpleFontData;
 class CSSFontFace : public RefCounted<CSSFontFace> {
 public:
     CSSFontFace()
-        : m_segmentedFontFace(0)
+        : RefCounted<CSSFontFace>(0)
+        , m_segmentedFontFace(0)
     {
     }
 
index ce3034448c9dd0745059776342e325a35c19b4d6..dea6bf02711aaef72c690b7e1159ac904c29f14f 100644 (file)
 namespace WebCore {
 
 CSSRuleList::CSSRuleList()
+    : RefCounted<CSSRuleList>(0)
 {
 }
 
 CSSRuleList::CSSRuleList(StyleList* list, bool omitCharsetRules)
+    : RefCounted<CSSRuleList>(0)
 {
     if (list) {
         unsigned len = list->length();
index 0e7fbfb6f3ac404617a031cc8bba9d2f577e3860..2ebd13d770c48652283da21dc22b9251fdea0230 100644 (file)
@@ -35,7 +35,8 @@
 namespace WebCore {
 
 CSSSegmentedFontFace::CSSSegmentedFontFace(CSSFontSelector* fontSelector)
-    : m_fontSelector(fontSelector)
+    : RefCounted<CSSSegmentedFontFace>(0)
+    , m_fontSelector(fontSelector)
 {
 }
 
index 668bd180aba3a541ad2e3fc35d427c9ac8945a47..9bca29b80f829dfca79ba7e2e75dcda78a484f78 100644 (file)
@@ -33,7 +33,8 @@ namespace WebCore {
 class Counter : public RefCounted<Counter> {
 public:
     Counter(PassRefPtr<CSSPrimitiveValue> identifier, PassRefPtr<CSSPrimitiveValue> listStyle, PassRefPtr<CSSPrimitiveValue> separator)
-        : m_identifier(identifier)
+        : RefCounted<Counter>(0)
+        , m_identifier(identifier)
         , m_listStyle(listStyle)
         , m_separator(separator)
     {
index 9050d801df7e8493bccd58366834cceb16529ca9..df4f84b822bebd186fa97593705993d3832fe453 100644 (file)
@@ -35,9 +35,9 @@ namespace WebCore {
 // it (eliminating some extra -webkit- internal properties).
 class Pair : public RefCounted<Pair> {
 public:
-    Pair() : m_first(0), m_second(0) { }
+    Pair() : RefCounted<Pair>(0), m_first(0), m_second(0) { }
     Pair(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> second)
-        : m_first(first), m_second(second) { }
+        : RefCounted<Pair>(0), m_first(first), m_second(second) { }
     virtual ~Pair() { }
 
     CSSPrimitiveValue* first() const { return m_first.get(); }
index 6340da3f202b977af8271047de2554b5308eb595..e0cc024d2d6f61eb776375c53692a22fb09c75be 100644 (file)
@@ -30,6 +30,7 @@ namespace WebCore {
 
     class Rect : public RefCounted<Rect> {
     public:
+        Rect() : RefCounted<Rect>(0) { }
         virtual ~Rect() { }
 
         CSSPrimitiveValue* top() const { return m_top.get(); }
@@ -42,7 +43,7 @@ namespace WebCore {
         void setBottom(PassRefPtr<CSSPrimitiveValue> bottom) { m_bottom = bottom; }
         void setLeft(PassRefPtr<CSSPrimitiveValue> left) { m_left = left; }
 
-    protected:
+    private:
         RefPtr<CSSPrimitiveValue> m_top;
         RefPtr<CSSPrimitiveValue> m_right;
         RefPtr<CSSPrimitiveValue> m_bottom;
index 85175682290aefe5d50967407e1e73a8a83b7ffd..814b4921e89023e6080a1f6b9f9aab0dd9d30acc 100644 (file)
@@ -36,9 +36,11 @@ namespace WebCore {
     class StyleBase : public RefCounted<StyleBase> {
     public:
         StyleBase(StyleBase* parent)
-            : m_parent(parent)
+            : RefCounted<StyleBase>(0)
+            , m_parent(parent)
             , m_strictParsing(!parent || parent->useStrictParsing())
-        { }
+        {
+        }
         virtual ~StyleBase() { }
 
         StyleBase* parent() const { return m_parent; }
index c7a50e88df6009d1700c907add74a0bd15f8985e..d9d678da3722d8f9279122b1f2f0062f4dd51230 100644 (file)
@@ -34,7 +34,8 @@ namespace WebCore {
 using namespace HTMLNames;
 
 StyleSheetList::StyleSheetList(Document* doc)
-    : m_doc(doc)
+    : RefCounted<StyleSheetList>(0)
+    , m_doc(doc)
 {
 }
 
index 24ea6b9b2636c769b4b8ed402e983e638f68e644..5e09ccbecba60062af24cbf160610a7b774131fc 100644 (file)
@@ -30,7 +30,7 @@
 
 namespace WebCore {
 
-Attr::Attr(Element* element, Document* docPtr, Attribute* a)
+Attr::Attr(Element* element, Document* docPtr, PassRefPtr<Attribute> a)
     : ContainerNode(docPtr),
       m_element(element),
       m_attribute(a),
index 9ade2076e016f070c9461aeafacb97c62247be32..875823cbf136a25827dfa3224a50b5c62a41b1b9 100644 (file)
@@ -46,7 +46,7 @@ class Attr : public ContainerNode {
     friend class NamedAttrMap;
 
 public:
-    Attr(Element*, Document*, Attribute*);
+    Attr(Element*, Document*, PassRefPtr<Attribute>);
     ~Attr();
 
     // Call this after calling the constructor so the
index 266003b94110a27e5bd36844e06e4f986b7e6dbe..d515ea7c2476ee10ff20e185b9fc5bf471c2c769 100644 (file)
@@ -48,11 +48,11 @@ class Attribute : public RefCounted<Attribute> {
 public:
     // null value is forbidden !
     Attribute(const QualifiedName& name, const AtomicString& value)
-        : m_name(name), m_value(value), m_impl(0)
+        : RefCounted<Attribute>(0), m_name(name), m_value(value), m_impl(0)
     {}
     
     Attribute(const AtomicString& name, const AtomicString& value)
-        : m_name(nullAtom, name, nullAtom), m_value(value), m_impl(0)
+        : RefCounted<Attribute>(0), m_name(nullAtom, name, nullAtom), m_value(value), m_impl(0)
     {}
 
     virtual ~Attribute() { }
@@ -70,7 +70,7 @@ public:
     bool isNull() const { return m_value.isNull(); }
     bool isEmpty() const { return m_value.isEmpty(); }
     
-    virtual Attribute* clone(bool preserveDecl=true) const;
+    virtual Attribute* clone(bool preserveDecl = true) const;
 
     // An extension to get the style information for presentational attributes.
     virtual CSSStyleDeclaration* style() const { return 0; }
index 152f4030927ebbe2c5d5253b29f280de3c35a298..4c808d165fd782cbda9427f74eb500f497f2f61e 100755 (executable)
@@ -35,7 +35,8 @@
 namespace WebCore {
 
 Clipboard::Clipboard(ClipboardAccessPolicy policy, bool isForDragging) 
-    : m_policy(policy) 
+    : RefCounted<Clipboard>(0)
+    , m_policy(policy) 
     , m_dragStarted(false)
     , m_forDragging(isForDragging)
     , m_dragImage(0)
index 736ca7b121f9a8435e2fd0aa32e74c517f344a97..80b921cef089c65436c5dc1fd01a0ed98e3e66c4 100644 (file)
@@ -42,7 +42,8 @@ typedef int ExceptionCode;
 
 class DOMImplementation : public RefCounted<DOMImplementation> {
 public:
-    virtual ~DOMImplementation(); 
+    DOMImplementation() : RefCounted<DOMImplementation>(0) { }
+    virtual ~DOMImplementation();
 
     // DOM methods & attributes for DOMImplementation
     bool hasFeature(const String& feature, const String& version) const;
index acf86d7bfb65fac3bdcd9d867282d9bc027273ed..f41692e12a4679c53d7e12219bb44ad220cfb25c 100644 (file)
@@ -30,7 +30,8 @@
 namespace WebCore {
 
 Event::Event()
-    : m_canBubble(false)
+    : RefCounted<Event>(0)
+    , m_canBubble(false)
     , m_cancelable(false)
     , m_propagationStopped(false)
     , m_defaultPrevented(false)
@@ -43,7 +44,8 @@ Event::Event()
 }
 
 Event::Event(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg)
-    : m_type(eventType)
+    : RefCounted<Event>(0)
+    , m_type(eventType)
     , m_canBubble(canBubbleArg)
     , m_cancelable(cancelableArg)
     , m_propagationStopped(false)
index 1bc42838f4ac7a9356771427ed55d1530202ffca..093804145fed3e8f0adb755fc7f4d376da696564 100644 (file)
@@ -29,6 +29,7 @@ namespace WebCore {
 
     class EventListener : public RefCounted<EventListener> {
     public:
+        EventListener() : RefCounted<EventListener>(0) { }
         virtual ~EventListener() { }
         virtual void handleEvent(Event*, bool isWindowEvent = false) = 0;
         virtual bool isHTMLEventListener() const { return false; }
index 92a14f537aa8f301ab3220a990ed0c560f9d3e77..d2526bd5b02e4aa41e6904632fdac3d7486926aa 100644 (file)
@@ -32,6 +32,7 @@
 namespace WebCore {
 
 ExceptionBase::ExceptionBase(const ExceptionCodeDescription& description)
+    : RefCounted<ExceptionBase>(0)
 {
     m_code = description.code;
     if (description.name) {
index 21e8ce8d7b5a94d7f0c5f2c06dc02af29355666b..dd57284bc776c7770141c776db55147b5d573762 100644 (file)
@@ -68,7 +68,8 @@ public:
 
     // used during parsing: only inserts if not already there
     // no error checking!
-    void insertAttribute(PassRefPtr<Attribute> newAttribute, bool allowDuplicates) {
+    void insertAttribute(PassRefPtr<Attribute> newAttribute, bool allowDuplicates)
+    {
         ASSERT(!element);
         if (allowDuplicates || !getAttributeItem(newAttribute->name()))
             addAttribute(newAttribute);
@@ -83,7 +84,7 @@ public:
 
 protected:
     // this method is internal, does no error checking at all
-    void addAttribute(PassRefPtr<Attribute> newAttribute);
+    void addAttribute(PassRefPtr<Attribute>);
     // this method is internal, does no error checking at all
     void removeAttribute(const QualifiedName& name);
     virtual void clearAttributes();
index b8d5fffb6dbcb2459dbfd5713d6050350ebc5e18..cc70beacb2ad9304eb7d90b7d7c143c4a1e41358 100644 (file)
@@ -41,7 +41,7 @@ typedef int ExceptionCode;
 // Other classes implement this for more specific situations e.g. attributes of an element.
 class NamedNodeMap : public RefCounted<NamedNodeMap> {
 public:
-    NamedNodeMap() { }
+    NamedNodeMap() : RefCounted<NamedNodeMap>(0) { }
     virtual ~NamedNodeMap() { }
 
     virtual PassRefPtr<Node> getNamedItem(const String& name) const = 0;
index 1100bd29e933b487682a5cd94badd0d3f138d465..2f7c822dc55d86b90da6fbcdb3a6894a9e53f59d 100644 (file)
@@ -65,7 +65,7 @@ namespace WebCore {
             SHOW_NOTATION                  = 0x00000800
         };
 
-        NodeFilter(PassRefPtr<NodeFilterCondition> condition) : m_condition(condition) { }
+        NodeFilter(PassRefPtr<NodeFilterCondition> condition) : RefCounted<NodeFilter>(0), m_condition(condition) { }
         short acceptNode(Node*, KJS::JSValue*& exception) const;
         void mark() { m_condition->mark(); };
 
index 08822497f587e7735d4e63f4f10208a8e71d3655..75966843385a9e7570b48cca0d70c80282c76410 100644 (file)
@@ -37,6 +37,7 @@ namespace WebCore {
 
     class NodeFilterCondition : public RefCounted<NodeFilterCondition> {
     public:
+        NodeFilterCondition() : RefCounted<NodeFilterCondition>(0) { }
         virtual ~NodeFilterCondition() { }
         virtual short acceptNode(Node*, KJS::JSValue*& exception) const;
         virtual void mark() { }
index bbb20f4ead4e2abcc4f0b51d6ddb03476e68bee6..2bc1443b28d6f109d1c4d50fe9cc6b11b9270438 100644 (file)
@@ -33,7 +33,7 @@ namespace WebCore {
 
     class NodeList : public RefCounted<NodeList> {
     public:
-        NodeList() { }
+        NodeList() : RefCounted<NodeList>(0) { }
         virtual ~NodeList() { }
 
         // DOM methods & attributes for NodeList
index 60826b2850261f75b8b5c39f62d9186e2efb4401..1078b1a3e49a7bd41d43bfc083a0e56cca6bd8e8 100644 (file)
@@ -30,8 +30,13 @@ class QualifiedName {
 public:
     class QualifiedNameImpl : public RefCounted<QualifiedNameImpl> {
     public:
-        QualifiedNameImpl(const AtomicString& p, const AtomicString& l, const AtomicString& n) :m_prefix(p), m_localName(l), m_namespace(n) {}
-
+        QualifiedNameImpl(const AtomicString& p, const AtomicString& l, const AtomicString& n)
+            : RefCounted<QualifiedNameImpl>(0)
+            , m_prefix(p)
+            , m_localName(l)
+            , m_namespace(n)
+        {
+        }
         AtomicString m_prefix;
         AtomicString m_localName;
         AtomicString m_namespace;
@@ -66,8 +71,7 @@ public:
     static void init();
 
 private:
-
-    void ref() { m_impl->ref(); } 
+    void ref() { m_impl->ref(); }
     void deref();
     
     QualifiedNameImpl* m_impl;
index 176c07bfaf74873072de3d088723e5bf0c5e458c..85f3d32acdf74c2dfabcbbe7b389cb393ef6af1c 100644 (file)
@@ -57,7 +57,8 @@ static RangeCounter rangeCounter;
 #endif
 
 Range::Range(Document* ownerDocument)
-    : m_ownerDocument(ownerDocument)
+    : RefCounted<Range>(0)
+    , m_ownerDocument(ownerDocument)
     , m_startContainer(ownerDocument)
     , m_startOffset(0)
     , m_endContainer(ownerDocument)
@@ -72,7 +73,8 @@ Range::Range(Document* ownerDocument)
 Range::Range(Document* ownerDocument,
               Node* startContainer, int startOffset,
               Node* endContainer, int endOffset)
-    : m_ownerDocument(ownerDocument)
+    : RefCounted<Range>(0)
+    , m_ownerDocument(ownerDocument)
     , m_startContainer(ownerDocument)
     , m_startOffset(0)
     , m_endContainer(ownerDocument)
@@ -92,7 +94,8 @@ Range::Range(Document* ownerDocument,
 }
 
 Range::Range(Document* ownerDocument, const Position& start, const Position& end)
-    : m_ownerDocument(ownerDocument)
+    : RefCounted<Range>(0)
+    , m_ownerDocument(ownerDocument)
     , m_startContainer(ownerDocument)
     , m_startOffset(0)
     , m_endContainer(ownerDocument)
index 927a728e8f265282de3d5a1b4ad7f0cf9cb2775a..e995bd0be7bccb4bbf6f89499318b64ceccbafee 100644 (file)
@@ -30,7 +30,8 @@
 namespace WebCore {
 
 RegisteredEventListener::RegisteredEventListener(const AtomicString& eventType, PassRefPtr<EventListener> listener, bool useCapture)
-    : m_eventType(eventType)
+    : RefCounted<RegisteredEventListener>(0)
+    , m_eventType(eventType)
     , m_listener(listener)
     , m_useCapture(useCapture)
     , m_removed(false)
index e7766b2ccf95899d64a6021b4ca8b02b07d2a247..82df0bf0b134cd1aa4f7d7abd3e87151653d1c49 100644 (file)
@@ -68,8 +68,8 @@ public:
     virtual void updateStyleAttributeIfNeeded() const;
     
     virtual const ClassNames* getClassNames() const;
-    virtual void attributeChanged(Attribute* attr, bool preserveDecls = false);
-    virtual void parseMappedAttribute(MappedAttribute* attr);
+    virtual void attributeChanged(Attribute*, bool preserveDecls = false);
+    virtual void parseMappedAttribute(MappedAttribute*);
     virtual bool mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const;
     virtual void createAttributeMap() const;
     virtual Attribute* createAttribute(const QualifiedName& name, StringImpl* value);
index dca6c68ba6298dfc20546570b72f84364bacb72b..d9dd0a7fe5abf71eb17f267ae935172b020de88a 100644 (file)
@@ -33,7 +33,8 @@ using namespace KJS;
 namespace WebCore {
 
 Traversal::Traversal(PassRefPtr<Node> rootNode, unsigned whatToShow, PassRefPtr<NodeFilter> nodeFilter, bool expandEntityReferences)
-    : m_root(rootNode)
+    : RefCounted<Traversal>(0)
+    , m_root(rootNode)
     , m_whatToShow(whatToShow)
     , m_filter(nodeFilter)
     , m_expandEntityReferences(expandEntityReferences)
index 7a5d7528a7d10d480b58f4243bf03696ac455c02..a7c7ed0e3d3cc788e0598b1f8a2138837811a2f1 100644 (file)
@@ -44,7 +44,8 @@ namespace WebCore {
 using namespace EventNames;
 
 EditCommand::EditCommand(Document* document) 
-    : m_document(document)
+    : RefCounted<EditCommand>(0)
+    , m_document(document)
     , m_parent(0)
 {
     ASSERT(m_document);
index f912239ccb0bbf4591faf904c8fdf8591e06dbea..89ac72ec88dad88c01262131c1edd9720a774a96 100644 (file)
@@ -38,7 +38,8 @@ static const unsigned DefaultCapacity = 100;
 static const unsigned NoCurrentItemIndex = UINT_MAX;
 
 BackForwardList::BackForwardList(Page* page)
-    : m_page(page)
+    : RefCounted<BackForwardList>(0)
+    , m_page(page)
     , m_current(NoCurrentItemIndex)
     , m_capacity(DefaultCapacity)
     , m_closed(true)
index 008f2d66b250e5ad3f24c7eea032077ccb6f9da6..e28ab5071eb8840381860c39e37cdbc54141665b 100644 (file)
@@ -77,7 +77,8 @@ PassRefPtr<CachedPage> CachedPage::create(Page* page)
 }
 
 CachedPage::CachedPage(Page* page)
-    : m_timeStamp(0)
+    : RefCounted<CachedPage>(0)
+    , m_timeStamp(0)
     , m_document(page->mainFrame()->document())
     , m_view(page->mainFrame()->view())
     , m_mousePressNode(page->mainFrame()->eventHandler()->mousePressNode())
index 3f900af45e2a9f2a1d6e1525934f1c3e8e913117..6fffea86d1cf831761074a22bb16683d55938337 100644 (file)
@@ -41,7 +41,8 @@ static void defaultNotifyHistoryItemChanged() {}
 void (*notifyHistoryItemChanged)() = defaultNotifyHistoryItemChanged;
 
 HistoryItem::HistoryItem()
-    : m_lastVisitedTime(0)
+    : RefCounted<HistoryItem>(0)
+    , m_lastVisitedTime(0)
     , m_isInPageCache(false)
     , m_isTargetItem(false)
     , m_visitCount(0)
@@ -49,7 +50,8 @@ HistoryItem::HistoryItem()
 }
 
 HistoryItem::HistoryItem(const String& urlString, const String& title, double time)
-    : m_urlString(urlString)
+    : RefCounted<HistoryItem>(0)
+    , m_urlString(urlString)
     , m_originalURLString(urlString)
     , m_title(title)
     , m_lastVisitedTime(time)
@@ -61,7 +63,8 @@ HistoryItem::HistoryItem(const String& urlString, const String& title, double ti
 }
 
 HistoryItem::HistoryItem(const String& urlString, const String& title, const String& alternateTitle, double time)
-    : m_urlString(urlString)
+    : RefCounted<HistoryItem>(0)
+    , m_urlString(urlString)
     , m_originalURLString(urlString)
     , m_title(title)
     , m_displayTitle(alternateTitle)
@@ -74,7 +77,8 @@ HistoryItem::HistoryItem(const String& urlString, const String& title, const Str
 }
 
 HistoryItem::HistoryItem(const KURL& url, const String& title)
-    : m_urlString(url.string())
+    : RefCounted<HistoryItem>(0)
+    , m_urlString(url.string())
     , m_originalURLString(url.string())
     , m_title(title)
     , m_lastVisitedTime(0)
@@ -86,7 +90,8 @@ HistoryItem::HistoryItem(const KURL& url, const String& title)
 }
 
 HistoryItem::HistoryItem(const KURL& url, const String& target, const String& parent, const String& title)
-    : m_urlString(url.string())
+    : RefCounted<HistoryItem>(0)
+    , m_urlString(url.string())
     , m_originalURLString(url.string())
     , m_target(target)
     , m_parent(parent)
@@ -106,7 +111,7 @@ HistoryItem::~HistoryItem()
 }
 
 HistoryItem::HistoryItem(const HistoryItem& item)
-    : RefCounted<HistoryItem>()
+    : RefCounted<HistoryItem>(0)
     , m_urlString(item.m_urlString)
     , m_originalURLString(item.m_originalURLString)
     , m_target(item.m_target)
index 1abe5a9b9ae8719e1a716def26b157f97d827d66..bed5f017bbe31ce4d4fba7fd4f0992720b769ed6 100644 (file)
 namespace WebCore {
 
 CanvasGradient::CanvasGradient(const FloatPoint& p0, const FloatPoint& p1)
-    : m_radial(false), m_p0(p0), m_p1(p1), m_stopsSorted(false), m_lastStop(0)
-#if PLATFORM(CG)
-    , m_shading(0)
-#elif PLATFORM(QT)
-    , m_shading(0)
-#elif PLATFORM(CAIRO)
+    : RefCounted<CanvasGradient>(0)
+    , m_radial(false), m_p0(p0), m_p1(p1), m_stopsSorted(false), m_lastStop(0)
+#if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(CAIRO)
     , m_shading(0)
 #endif
 {
 }
 
 CanvasGradient::CanvasGradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1)
-    : m_radial(true), m_p0(p0), m_p1(p1), m_r0(r0), m_r1(r1), m_stopsSorted(false), m_lastStop(0)
-#if PLATFORM(CG)
-    , m_shading(0)
-#elif PLATFORM(QT)
-    , m_shading(0)
-#elif PLATFORM(CAIRO)
+    : RefCounted<CanvasGradient>(0)
+    , m_radial(true), m_p0(p0), m_p1(p1), m_r0(r0), m_r1(r1), m_stopsSorted(false), m_lastStop(0)
+#if PLATFORM(CG) || PLATFORM(QT) || PLATFORM(CAIRO)
     , m_shading(0)
 #endif
 {
index 950471ea2a44975fabd1d5c26afab02411f64343..bc39d1a7c54a1b2fc333719d16d72f2d1f7a9f45 100644 (file)
@@ -66,7 +66,8 @@ void CanvasPattern::parseRepetitionType(const String& type, bool& repeatX, bool&
 #if PLATFORM(CG)
 
 CanvasPattern::CanvasPattern(CGImageRef image, bool repeatX, bool repeatY)
-    : m_platformImage(image)
+    : RefCounted<CanvasPattern>(0)
+    , m_platformImage(image)
     , m_cachedImage(0)
     , m_repeatX(repeatX)
     , m_repeatY(repeatY)
@@ -76,7 +77,8 @@ CanvasPattern::CanvasPattern(CGImageRef image, bool repeatX, bool repeatY)
 #elif PLATFORM(CAIRO)
 
 CanvasPattern::CanvasPattern(cairo_surface_t* surface, bool repeatX, bool repeatY)
-    : m_platformImage(cairo_surface_reference(surface))
+    : RefCounted<CanvasPattern>(0)
+    , m_platformImage(cairo_surface_reference(surface))
     , m_cachedImage(0)
     , m_repeatX(repeatX)
     , m_repeatY(repeatY)
@@ -86,12 +88,11 @@ CanvasPattern::CanvasPattern(cairo_surface_t* surface, bool repeatX, bool repeat
 #endif
 
 CanvasPattern::CanvasPattern(CachedImage* cachedImage, bool repeatX, bool repeatY)
-    :
+    : RefCounted<CanvasPattern>(0)
 #if PLATFORM(CG) || PLATFORM(CAIRO)
-      m_platformImage(0)
-    ,
+    , m_platformImage(0)
 #endif
-      m_cachedImage(cachedImage)
+    , m_cachedImage(cachedImage)
     , m_repeatX(repeatX)
     , m_repeatY(repeatY)
 {
index b611a8847af370c0ed19b6b56a4b66f954b13ded..497a19e763e6cfd29e7a04b0054d3bd427148144 100644 (file)
@@ -60,7 +60,8 @@ namespace WebCore {
 using namespace HTMLNames;
 
 CanvasRenderingContext2D::CanvasRenderingContext2D(HTMLCanvasElement* canvas)
-    : m_canvas(canvas)
+    : RefCounted<CanvasRenderingContext2D>(0)
+    , m_canvas(canvas)
     , m_stateStack(1)
 {
 }
index 5c93bf1bb3e02032d36b7731de4d02d6edb15b1c..a3948c35f98b36c4194bf0f9b63605553fa99b94 100644 (file)
 namespace WebCore {
 
 CanvasStyle::CanvasStyle(const String& color)
-    : m_type(ColorString), m_color(color)
+    : RefCounted<CanvasStyle>(0)
+    , m_type(ColorString)
+    , m_color(color)
 {
 }
 
 CanvasStyle::CanvasStyle(float grayLevel)
-    : m_type(GrayLevel), m_alpha(1), m_grayLevel(grayLevel)
+    : RefCounted<CanvasStyle>(0)
+    , m_type(GrayLevel)
+    , m_alpha(1)
+    , m_grayLevel(grayLevel)
 {
 }
 
 CanvasStyle::CanvasStyle(const String& color, float alpha)
-    : m_type(ColorStringWithAlpha), m_color(color), m_alpha(alpha)
+    : RefCounted<CanvasStyle>(0)
+    , m_type(ColorStringWithAlpha), m_color(color), m_alpha(alpha)
 {
 }
 
 CanvasStyle::CanvasStyle(float grayLevel, float alpha)
-    : m_type(GrayLevel), m_alpha(alpha), m_grayLevel(grayLevel)
+    : RefCounted<CanvasStyle>(0)
+    , m_type(GrayLevel), m_alpha(alpha), m_grayLevel(grayLevel)
 {
 }
 
 CanvasStyle::CanvasStyle(float r, float g, float b, float a)
-    : m_type(RGBA), m_alpha(a), m_red(r), m_green(g), m_blue(b)
+    : RefCounted<CanvasStyle>(0)
+    , m_type(RGBA), m_alpha(a), m_red(r), m_green(g), m_blue(b)
 {
 }
 
 CanvasStyle::CanvasStyle(float c, float m, float y, float k, float a)
-    : m_type(CMYKA), m_alpha(a), m_cyan(c), m_magenta(m), m_yellow(y), m_black(k)
+    : RefCounted<CanvasStyle>(0)
+    , m_type(CMYKA), m_alpha(a), m_cyan(c), m_magenta(m), m_yellow(y), m_black(k)
 {
 }
 
 CanvasStyle::CanvasStyle(PassRefPtr<CanvasGradient> gradient)
-    : m_type(gradient ? Gradient : ColorString), m_gradient(gradient)
+    : RefCounted<CanvasStyle>(0)
+    , m_type(gradient ? Gradient : ColorString), m_gradient(gradient)
 {
 }
 
 CanvasStyle::CanvasStyle(PassRefPtr<CanvasPattern> pattern)
-    : m_type(pattern ? ImagePattern : ColorString), m_pattern(pattern)
+    : RefCounted<CanvasStyle>(0)
+    , m_type(pattern ? ImagePattern : ColorString), m_pattern(pattern)
 {
 }
 
index 4774d84ff1f39b308c9da442134f83c4e3e65fa4..d47073a4f94cb954bfbc159567393f555582a15c 100644 (file)
@@ -36,7 +36,8 @@ namespace WebCore {
 using namespace HTMLNames;
 
 HTMLCollection::HTMLCollection(PassRefPtr<Node> base, Type type)
-    : m_idsDone(false)
+    : RefCounted<HTMLCollection>(0)
+    , m_idsDone(false)
     , m_base(base)
     , m_type(type)
     , m_info(m_base->isDocumentNode() ? static_cast<Document*>(m_base.get())->collectionInfo(type) : 0)
@@ -45,7 +46,8 @@ HTMLCollection::HTMLCollection(PassRefPtr<Node> base, Type type)
 }
 
 HTMLCollection::HTMLCollection(PassRefPtr<Node> base, Type type, CollectionInfo* info)
-    : m_idsDone(false)
+    : RefCounted<HTMLCollection>(0)
+    , m_idsDone(false)
     , m_base(base)
     , m_type(type)
     , m_info(info)
index 33a2a70939a5244b42301af55d947fc27cb74a1a..02b16dad11b3447e9dbea7def149e6f08c54f4f3 100644 (file)
@@ -36,7 +36,8 @@ class MediaError : public RefCounted<MediaError> {
 public:
     enum Code { MEDIA_ERR_ABORTED = 1, MEDIA_ERR_NETWORK, MEDIA_ERR_DECODE };
 
-    MediaError(Code code) { m_code = code; }
+    MediaError(Code code) : RefCounted<MediaError>(0), m_code(code) { }
+
     Code code() const { return m_code; }
 
 private:
index ad81ac8832c06697bc3a303a7e52aeca5303f234..f27a75e40e6a002038121f022e620256ce2fad9d 100644 (file)
@@ -30,6 +30,7 @@
 using namespace WebCore;
 
 TimeRanges::TimeRanges(float start, float end)
+    : RefCounted<TimeRanges>(0)
 {
     add(start, end);
 }
index 16b0c25b635983c71ea99bc9e38c7b8958a831b3..8de3d2afdd005ee3e0e883dc5b5be6f596902ca9 100644 (file)
@@ -34,7 +34,7 @@ namespace WebCore {
 
 class TimeRanges : public RefCounted<TimeRanges> {
 public:
-    TimeRanges() { }
+    TimeRanges() : RefCounted<TimeRanges>(0) { }
     TimeRanges(float start, float end);
     
     unsigned length() const { return m_ranges.size(); }
index 478e2fc1226cbc940736b83cc2fcf6e7710a03d4..e1c9589c9e053a9a8c0da4e1cace409432429fb4 100644 (file)
@@ -32,7 +32,7 @@ namespace WebCore {
 
 class VoidCallback : public RefCounted<VoidCallback> {
 public:
-    VoidCallback() { }
+    VoidCallback() : RefCounted<VoidCallback>(0) { }
     virtual ~VoidCallback() { }
     
     virtual void handleEvent() = 0;
index f1b5c8ade3d4f62d5e63d17a81a1f439cc69ec7d..ba4eaf25b974cc8622a496441cc0c7c61baf6445 100644 (file)
@@ -123,7 +123,8 @@ static void setAllDefersLoading(const ResourceLoaderSet& loaders, bool defers)
 }
 
 DocumentLoader::DocumentLoader(const ResourceRequest& req, const SubstituteData& substituteData)
-    : m_deferMainResourceDataLoad(true)
+    : RefCounted<DocumentLoader>(0)
+    , m_deferMainResourceDataLoad(true)
     , m_frame(0)
     , m_originalRequest(req)
     , m_substituteData(substituteData)
index f5ea1e922f852d1c16dade8c0c2039eb9b60f3af..9082f0e83b31d7beba670b5dfc5d58717ffb5f3f 100644 (file)
@@ -40,7 +40,8 @@ PassRefPtr<FormState> FormState::create(PassRefPtr<HTMLFormElement> form, const
 }
 
 FormState::FormState(PassRefPtr<HTMLFormElement> form, const HashMap<String, String>& values, PassRefPtr<Frame> sourceFrame)
-    : m_form(form)
+    : RefCounted<FormState>(0)
+    , m_form(form)
     , m_values(values)
     , m_sourceFrame(sourceFrame)
 {
index ea96e34678c2a06b7588bfcba8ee23fcd278a994..71dad87275a943944946e685f79439facbb6ad25 100644 (file)
@@ -54,7 +54,8 @@ PassRefPtr<SharedBuffer> ResourceLoader::resourceData()
 }
 
 ResourceLoader::ResourceLoader(Frame* frame, bool sendResourceLoadCallbacks, bool shouldContentSniff)
-    : m_reachedTerminalState(false)
+    : RefCounted<ResourceLoader>(0)
+    , m_reachedTerminalState(false)
     , m_cancelled(false)
     , m_calledDidFinishLoad(false)
     , m_sendResourceLoadCallbacks(sendResourceLoadCallbacks)
index ef067f8fcf0f1c40f6f3f89958aefe89d29256ee..48756ec80769d86196c696755a0ed5c5437e071f 100644 (file)
@@ -268,7 +268,8 @@ const TextEncoding& TextResourceDecoder::defaultEncoding(ContentType contentType
 }
 
 TextResourceDecoder::TextResourceDecoder(const String& mimeType, const TextEncoding& specifiedDefaultEncoding)
-    : m_contentType(determineContentType(mimeType))
+    : RefCounted<TextResourceDecoder>(0)
+    , m_contentType(determineContentType(mimeType))
     , m_decoder(defaultEncoding(m_contentType, specifiedDefaultEncoding))
     , m_source(DefaultEncoding)
     , m_checkedForBOM(false)
index 8b3d5f9945a806564b5ecd6860e3522e7484957c..52259ed386b7418d69401b1f8c25ef8e4ff66907 100644 (file)
@@ -41,7 +41,8 @@
 namespace WebCore {
 
 IconRecord::IconRecord(const String& url)
-    : m_iconURL(url)
+    : RefCounted<IconRecord>(0)
+    , m_iconURL(url)
     , m_stamp(0)
     , m_dataSet(false)
 {
index 153aee0919c218cf6708ec1bf199986c0489975f..ba73fb5eadaf58bddfebcd4f5ddd7b5b09e0917f 100644 (file)
@@ -36,7 +36,8 @@
 namespace WebCore {
 
 BarInfo::BarInfo(Frame* frame, Type type)
-    : m_frame(frame)
+    : RefCounted<BarInfo>(0)
+    , m_frame(frame)
     , m_type(type)
 {
 }
index d45af62fc4a39afb10baf51bea3570ed81a8a52e..4e9d8cff3ee733e54fc3c3e5af42f9e24da5fd72 100644 (file)
@@ -38,7 +38,8 @@
 namespace WebCore {
 
 Console::Console(Frame* frame)
-    : m_frame(frame)
+    : RefCounted<Console>(0)
+    , m_frame(frame)
 {
 }
 
index 66b567ad6b485a8172dcf002142ce6293ea1110c..bd3dbc8fd23773e1e973fd78abfa305d11b599c0 100644 (file)
@@ -42,7 +42,8 @@
 namespace WebCore {
 
 DOMSelection::DOMSelection(Frame* frame)
-    : m_frame(frame)
+    : RefCounted<DOMSelection>(0)
+    , m_frame(frame)
 {
 }
 
index 78e95d26e23b0a65d60fb70cea8280dbe5899e5a..d51a09b9815e312640716b3aeae76b67ed9fe25a 100644 (file)
@@ -99,7 +99,8 @@ void DOMWindow::adjustWindowRect(const FloatRect& screen, FloatRect& window, con
 }
 
 DOMWindow::DOMWindow(Frame* frame)
-    : m_frame(frame)
+    : RefCounted<DOMWindow>(0)
+    , m_frame(frame)
 {
 }
 
index bfcdb555848b129d18ed697cf1e05b177905888c..dc29663fb5511f83a69eda832c56d8e51f8842cc 100644 (file)
@@ -119,7 +119,8 @@ static inline Frame* parentFromOwnerElement(HTMLFrameOwnerElement* ownerElement)
 }
 
 Frame::Frame(Page* page, HTMLFrameOwnerElement* ownerElement, FrameLoaderClient* frameLoaderClient) 
-    : d(new FramePrivate(page, parentFromOwnerElement(ownerElement), this, ownerElement, frameLoaderClient))
+    : RefCounted<Frame>(0)
+    , d(new FramePrivate(page, parentFromOwnerElement(ownerElement), this, ownerElement, frameLoaderClient))
 {
     AtomicString::init();
     EventNames::init();
@@ -137,8 +138,8 @@ Frame::Frame(Page* page, HTMLFrameOwnerElement* ownerElement, FrameLoaderClient*
     if (!ownerElement)
         page->setMainFrame(this);
     else {
-        // FIXME: Frames were originally created with a refcount of 1.
-        // Leave this ref call here until we can straighten that out.
+        // FIXME: It's bad to have a ref() here but not in the !ownerElement case.
+        // We need to straighten this out.
         ref();
         page->incrementFrameCount();
         ownerElement->m_contentFrame = this;
index 25271328d40110dc7f736416a0a127e5c5955f11..ec115485eb5408ffa234d64f02b8fe0ff41b83d8 100644 (file)
@@ -32,7 +32,8 @@
 namespace WebCore {
 
 History::History(Frame* frame)
-    : m_frame(frame)
+    : RefCounted<History>(0)
+    , m_frame(frame)
 {
 }
 
index 619416083fcfbd60616350f203508d54c0a76f0c..0a8be2dbe18afade1332af82ac1513ebfca5912a 100644 (file)
@@ -116,7 +116,8 @@ struct InspectorResource : public RefCounted<InspectorResource> {
     };
 
     InspectorResource(long long identifier, DocumentLoader* documentLoader, Frame* frame)
-        : identifier(identifier)
+        : RefCounted<InspectorResource>(0)
+        , identifier(identifier)
         , loader(documentLoader)
         , frame(frame)
         , scriptContext(0)
@@ -207,7 +208,8 @@ struct InspectorResource : public RefCounted<InspectorResource> {
 #if ENABLE(DATABASE)
 struct InspectorDatabaseResource : public RefCounted<InspectorDatabaseResource> {
     InspectorDatabaseResource(Database* database, String domain, String name, String version)
-        : database(database)
+        : RefCounted<InspectorDatabaseResource>(0)
+        , database(database)
         , domain(domain)
         , name(name)
         , version(version)
@@ -217,6 +219,7 @@ struct InspectorDatabaseResource : public RefCounted<InspectorDatabaseResource>
     }
 
     InspectorDatabaseResource()
+        : RefCounted<InspectorDatabaseResource>(0)
     {
         setScriptObject(0, 0);
     }
index f5b4c63405cf8d2352af06c8632cc93501d07bf1..65b50ddda94a667b1ba46617235bb092119a2156 100644 (file)
@@ -29,7 +29,7 @@ namespace WebCore {
 
     class Plugin : public RefCounted<Plugin> {
     public:
-        Plugin(Widget* view) : m_view(view) { }
+        Plugin(Widget* view) : RefCounted<Plugin>(0), m_view(view) { }
         Widget* view() const { return m_view; }
         
     private:
index 396a6f4d453ec13ecbbdc684718eda729b9fc666..3828aedd6d0871bf359a72ee4319cd1fff9fe337 100644 (file)
@@ -39,7 +39,8 @@
 namespace WebCore {
 
 Screen::Screen(Frame* frame)
-    : m_frame(frame)
+    : RefCounted<Screen>(0)
+    , m_frame(frame)
 {
 }
 
index 330120ff0201a0e28ee037b9a4a0492520d9bb28..449e2594cc7efca2b0d9ef17277e708689697051 100644 (file)
 
 namespace WebCore {
 
-ArrayImpl::ArrayPrivate::ArrayPrivate(size_t pItemSize, size_t pNumItems) : 
-    numItems(pNumItems), 
-    itemSize(pItemSize), 
-    data(pNumItems > 0 ? static_cast<char *>(fastMalloc(itemSize * numItems)) : NULL)
+ArrayImpl::ArrayPrivate::ArrayPrivate(size_t pItemSize, size_t pNumItems)
+    : RefCounted<ArrayPrivate>(0)
+    , numItems(pNumItems)
+    , itemSize(pItemSize)
+    , data(pNumItems > 0 ? static_cast<char *>(fastMalloc(itemSize * numItems)) : NULL)
 {
 }
 
index 10a4200cf325f3491b7f419e415c874269f6d2e6..5bbb697461ac85231dbfa5d6e6fbd9e8f0446a37 100644 (file)
@@ -51,17 +51,18 @@ public:
 };
 
 inline DeprecatedValueListImpl::Private::Private(void (*deleteFunc)(DeprecatedValueListImplNode*),
-        DeprecatedValueListImplNode* (*copyFunc)(DeprecatedValueListImplNode*)) : 
-    head(NULL),
-    tail(NULL),
-    deleteNode(deleteFunc),
-    copyNode(copyFunc),
-    count(0)
+        DeprecatedValueListImplNode* (*copyFunc)(DeprecatedValueListImplNode*))
+    : RefCounted<Private>(0)
+    , head(NULL)
+    , tail(NULL)
+    , deleteNode(deleteFunc)
+    , copyNode(copyFunc)
+    , count(0)
 {
 }
 
 inline DeprecatedValueListImpl::Private::Private(const Private &other)
-    : RefCounted<DeprecatedValueListImpl::Private>()
+    : RefCounted<Private>(0)
     , deleteNode(other.deleteNode)
     , copyNode(other.copyNode)
     , count(other.count)
index 561804715cba63ded5684aa056530b54bc0bbadc..0b8e9ab65dec57b82699aaf94ab2dfb973905637 100644 (file)
@@ -34,7 +34,8 @@ using std::min;
 namespace WebCore {
 
 Scrollbar::Scrollbar(ScrollbarClient* client, ScrollbarOrientation orientation, ScrollbarControlSize controlSize)
-    : m_client(client)
+    : RefCounted<Scrollbar>(0)
+    , m_client(client)
     , m_orientation(orientation)
     , m_controlSize(controlSize)
     , m_visibleSize(0)
index cdaf775f85cff3630701d58a88e208837503798a..db3183d39d20a21c3104c81a2ec622486b9f966e 100644 (file)
 namespace WebCore {
 
 SharedBuffer::SharedBuffer()
+    : RefCounted<SharedBuffer>(0)
 {
 }
 
 SharedBuffer::SharedBuffer(const char* data, int size)
+    : RefCounted<SharedBuffer>(0)
 {
     m_buffer.append(data, size);
 }
 
 SharedBuffer::SharedBuffer(const unsigned char* data, int size)
+    : RefCounted<SharedBuffer>(0)
 {
     m_buffer.append(data, size);
 }
index 049cf7fd531915d8a0cb8517aa70774cc45790e4..0fdd99cc2c33903f121c9fe279e9cb53984a3592 100644 (file)
 namespace WebCore {
 
 FontFallbackList::FontFallbackList()
-: m_familyIndex(0)
-, m_pitch(UnknownPitch)
-, m_loadingCustomFonts(false)
-, m_fontSelector(0)
+    : RefCounted<FontFallbackList>(0)
+    , m_familyIndex(0)
+    , m_pitch(UnknownPitch)
+    , m_loadingCustomFonts(false)
+    , m_fontSelector(0)
 {
 }
 
index a18575646bce33bebe4830326a324edc5d62514f..c87c661b7078487b12aa941de9964d8301204560 100644 (file)
@@ -29,7 +29,7 @@
 namespace WebCore {
 
 FontFamily::FontFamily(const FontFamily& other)
-    : RefCounted<FontFamily>()
+    : RefCounted<FontFamily>(0)
     , m_family(other.m_family)
     , m_next(other.m_next)
 {
index 65a64b4afa45bf03f57a6b7d29f2c7c476b248bf..7a382cc37b2413f432f27128222c3eded82bd6b0 100644 (file)
@@ -34,7 +34,7 @@ namespace WebCore {
 
 class FontFamily : public RefCounted<FontFamily> {
 public:
-    FontFamily() { }
+    FontFamily() : RefCounted<FontFamily>(0) { }
     
     FontFamily(const FontFamily&);    
     FontFamily& operator=(const FontFamily&);
index c5b3651f455764d81b1b9117c3bb3ef7c3c3a520..b0e9dfa6940eeaa815beec5a0702c6de57ed1239 100644 (file)
@@ -36,8 +36,9 @@ class FontDescription;
 
 class FontSelector : public RefCounted<FontSelector> {
 public:
-    virtual ~FontSelector() {};
-    virtual FontData* getFontData(const FontDescription& fontDescription, const AtomicString& familyName) = 0;
+    FontSelector() : RefCounted<FontSelector>(0) { }
+    virtual ~FontSelector() { }
+    virtual FontData* getFontData(const FontDescription&, const AtomicString& familyName) = 0;
 };
 
 } // namespace WebCore
index 26198883d6e5b941406895e77900ea833ee64398..40b8154283d3fc433e21ab8354cf2bff8cc57ea4 100644 (file)
@@ -58,12 +58,14 @@ struct GlyphData {
 // to be overriding the parent's node, but provide no additional information.
 struct GlyphPage : public RefCounted<GlyphPage> {
     GlyphPage()
-        : m_owner(0)
+        : RefCounted<GlyphPage>(0)
+        , m_owner(0)
     {
     }
 
     GlyphPage(GlyphPageTreeNode* owner)
-        : m_owner(owner)
+        : RefCounted<GlyphPage>(0)
+        , m_owner(owner)
     {
     }
 
index cda73a0aecbf57dbb53f2ffd8666a12844e19ff8..b630ba66ee88b990140e1c090c9c3921f4b59b22 100644 (file)
 namespace WebCore {
 
 Icon::Icon()
+    : RefCounted<Icon>(0)
 {
 }
 
 Icon::Icon(NSImage *image)
-    : m_nsImage(image)
+    : RefCounted<Icon>(0)
+    , m_nsImage(image)
 {
     // Need this because WebCore uses AppKit's flipped coordinate system exclusively.
     [image setFlipped:YES];
index e8f9159670a9bba07a1de249a6cac901d9123c94..a83418c5169509f29d6ba78f416583e1b7b1ebc0 100644 (file)
@@ -93,7 +93,8 @@ using namespace WebCore;
 namespace WebCore {
     
 FileChooser::FileChooser(FileChooserClient* client, const String& filename)
-    : m_client(client)
+    : RefCounted<FileChooser>(0)
+    , m_client(client)
     , m_filename(filename)
     , m_icon(chooseIcon(filename))
     , m_controller(AdoptNS, [[WebCoreOpenPanelController alloc] initWithFileChooser:this])
index 0d6565b7e66bb34a6dc375324cc1536a32c7e413..16cbe751039e9abe607b0b0c29eb67f117b7c395 100644 (file)
@@ -35,7 +35,8 @@ namespace WebCore {
 using namespace HTMLNames;
 
 PopupMenu::PopupMenu(PopupMenuClient* client)
-    : m_popupClient(client)
+    : RefCounted<PopupMenu>(0)
+    , m_popupClient(client)
 {
 }
 
index c3753c2612027c137b6cc6f7250994852b31c4b5..d241eaf8d68dc2efe2769e5dc9bc5776fc5e1234 100644 (file)
@@ -95,7 +95,8 @@ PassRefPtr<SharedBuffer> SharedBuffer::wrapNSData(NSData *nsData)
 }
 
 SharedBuffer::SharedBuffer(NSData *nsData)
-    : m_nsData(nsData)
+    : RefCounted<SharedBuffer>(0)
+    , m_nsData(nsData)
 {
 }
 
index ed2d811d9330d030a4f44d8f95ed6d446823d37c..94e48c1c522326b2c6c493cf2addb80bfea9028a 100644 (file)
 namespace WebCore {
 
 FormData::FormData(const void* data, size_t size)
+    : RefCounted<FormData>(0)
 {
     appendData(data, size);
 }
 
 FormData::FormData(const CString& s)
+    : RefCounted<FormData>(0)
 {
     appendData(s.data(), s.length());
 }
 
 FormData::FormData(const FormData& data)
-    : RefCounted<FormData>()
+    : RefCounted<FormData>(0)
     , m_elements(data.m_elements)
 {
 }
index c33ef523cfb9fd795c33b26728f649bb91e15b1d..a651aabe44ce11194867d1672df065569f80ea7d 100644 (file)
@@ -59,7 +59,7 @@ inline bool operator!=(const FormDataElement& a, const FormDataElement& b)
  
 class FormData : public RefCounted<FormData> {
 public:
-    FormData() { } 
+    FormData() : RefCounted<FormData>(0) { } 
     FormData(const void* data, size_t);
     FormData(const CString&);
     PassRefPtr<FormData> copy() const;
index 969a9f6dbaa805ad12517d00c04a27750a3e1cfb..dccdd126c917b321e8d0658e0d1f94cb5e621679 100644 (file)
@@ -36,7 +36,8 @@ namespace WebCore {
 
 ResourceHandle::ResourceHandle(const ResourceRequest& request, ResourceHandleClient* client, bool defersLoading,
          bool shouldContentSniff, bool mightDownloadFromHandle)
-    : d(new ResourceHandleInternal(this, request, client, defersLoading, shouldContentSniff, mightDownloadFromHandle))
+    : RefCounted<ResourceHandle>(0)
+    , d(new ResourceHandleInternal(this, request, client, defersLoading, shouldContentSniff, mightDownloadFromHandle))
 {
 }
 
index bd1e06cfd789d931b6ac261582487be50a277fc8..ab0dc5b1aff637affbc2112b8cf474522b3fe83b 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
     
     class CStringBuffer : public RefCounted<CStringBuffer> {
     public:
-        CStringBuffer(unsigned length) : m_vector(length) { }
+        CStringBuffer(unsigned length) : RefCounted<CStringBuffer>(0), m_vector(length) { }
 
         char* data() { return m_vector.data(); }
         unsigned length() const { return m_vector.size(); }
index 0c26d33a326280e5b233c8198e2930aed8aca1bd..165da08b25551bf432636f0afb7c1a7d941bc551 100644 (file)
@@ -55,12 +55,13 @@ public:
     int lastMatchLength;
 };
 
-RegularExpression::Private::Private() : pattern("")
+RegularExpression::Private::Private() : RefCounted<Private>(0), pattern("")
 {
     compile(true, false);
 }
 
-RegularExpression::Private::Private(DeprecatedString p, bool caseSensitive, bool glob) : pattern(p), lastMatchPos(-1), lastMatchLength(-1)
+RegularExpression::Private::Private(DeprecatedString p, bool caseSensitive, bool glob)
+    : RefCounted<Private>(0), pattern(p), lastMatchPos(-1), lastMatchLength(-1)
 {
     compile(caseSensitive, glob);
 }
index 77ade5ee76b45dde78e82f86758701c5ffdb6cc9..e4226ca7885a5327d5d3df4aefb1219017675b87 100644 (file)
@@ -30,12 +30,13 @@ namespace WebCore {
 static RenderStyle* defaultStyle;
 
 StyleSurroundData::StyleSurroundData()
-    : margin(Fixed), padding(Fixed)
+    : RefCounted<StyleSurroundData>(0)
+    , margin(Fixed), padding(Fixed)
 {
 }
 
 StyleSurroundData::StyleSurroundData(const StyleSurroundData& o)
-    : RefCounted<StyleSurroundData>()
+    : RefCounted<StyleSurroundData>(0)
     , offset(o.offset)
     , margin(o.margin)
     , padding(o.padding)
@@ -49,7 +50,8 @@ bool StyleSurroundData::operator==(const StyleSurroundData& o) const
 }
 
 StyleBoxData::StyleBoxData()
-    : z_index(0), z_auto(true), boxSizing(CONTENT_BOX)
+    : RefCounted<StyleBoxData>(0)
+    , z_index(0), z_auto(true), boxSizing(CONTENT_BOX)
 {
     // Initialize our min/max widths/heights.
     min_width = min_height = RenderStyle::initialMinSize();
@@ -57,7 +59,7 @@ StyleBoxData::StyleBoxData()
 }
 
 StyleBoxData::StyleBoxData(const StyleBoxData& o)
-    : RefCounted<StyleBoxData>()
+    : RefCounted<StyleBoxData>(0)
     , width(o.width)
     , height(o.height)
     , min_width(o.min_width)
@@ -84,7 +86,8 @@ bool StyleBoxData::operator==(const StyleBoxData& o) const
 }
 
 StyleVisualData::StyleVisualData()
-    : hasClip(false)
+    : RefCounted<StyleVisualData>(0)
+    , hasClip(false)
     , textDecoration(RenderStyle::initialTextDecoration())
     , counterIncrement(0)
     , counterReset(0)
@@ -96,7 +99,7 @@ StyleVisualData::~StyleVisualData()
 }
 
 StyleVisualData::StyleVisualData(const StyleVisualData& o)
-    : RefCounted<StyleVisualData>()
+    : RefCounted<StyleVisualData>(0)
     , clip(o.clip)
     , hasClip(o.hasClip)
     , textDecoration(o.textDecoration)
@@ -318,11 +321,12 @@ void BackgroundLayer::cullEmptyLayers()
 }
 
 StyleBackgroundData::StyleBackgroundData()
+    : RefCounted<StyleBackgroundData>(0)
 {
 }
 
 StyleBackgroundData::StyleBackgroundData(const StyleBackgroundData& o)
-    : RefCounted<StyleBackgroundData>(), m_background(o.m_background), m_outline(o.m_outline)
+    : RefCounted<StyleBackgroundData>(0), m_background(o.m_background), m_outline(o.m_outline)
 {
 }
 
@@ -332,7 +336,8 @@ bool StyleBackgroundData::operator==(const StyleBackgroundData& o) const
 }
 
 StyleMarqueeData::StyleMarqueeData()
-    : increment(RenderStyle::initialMarqueeIncrement())
+    : RefCounted<StyleMarqueeData>(0)
+    , increment(RenderStyle::initialMarqueeIncrement())
     , speed(RenderStyle::initialMarqueeSpeed())
     , loops(RenderStyle::initialMarqueeLoopCount())
     , behavior(RenderStyle::initialMarqueeBehavior())
@@ -341,7 +346,7 @@ StyleMarqueeData::StyleMarqueeData()
 }
 
 StyleMarqueeData::StyleMarqueeData(const StyleMarqueeData& o)
-    : RefCounted<StyleMarqueeData>()
+    : RefCounted<StyleMarqueeData>(0)
     , increment(o.increment)
     , speed(o.speed)
     , loops(o.loops)
@@ -357,7 +362,8 @@ bool StyleMarqueeData::operator==(const StyleMarqueeData& o) const
 }
 
 StyleFlexibleBoxData::StyleFlexibleBoxData()
-    : flex(RenderStyle::initialBoxFlex())
+    : RefCounted<StyleFlexibleBoxData>(0)
+    , flex(RenderStyle::initialBoxFlex())
     , flex_group(RenderStyle::initialBoxFlexGroup())
     , ordinal_group(RenderStyle::initialBoxOrdinalGroup())
     , align(RenderStyle::initialBoxAlign())
@@ -368,7 +374,7 @@ StyleFlexibleBoxData::StyleFlexibleBoxData()
 }
 
 StyleFlexibleBoxData::StyleFlexibleBoxData(const StyleFlexibleBoxData& o)
-    : RefCounted<StyleFlexibleBoxData>()
+    : RefCounted<StyleFlexibleBoxData>(0)
     , flex(o.flex)
     , flex_group(o.flex_group)
     , ordinal_group(o.ordinal_group)
@@ -387,7 +393,8 @@ bool StyleFlexibleBoxData::operator==(const StyleFlexibleBoxData& o) const
 }
 
 StyleMultiColData::StyleMultiColData()
-    : m_width(0)
+    : RefCounted<StyleMultiColData>(0)
+    , m_width(0)
     , m_count(RenderStyle::initialColumnCount())
     , m_gap(0)
     , m_autoWidth(true)
@@ -396,10 +403,11 @@ StyleMultiColData::StyleMultiColData()
     , m_breakBefore(RenderStyle::initialPageBreak())
     , m_breakAfter(RenderStyle::initialPageBreak())
     , m_breakInside(RenderStyle::initialPageBreak())
-{}
+{
+}
 
 StyleMultiColData::StyleMultiColData(const StyleMultiColData& o)
-    : RefCounted<StyleMultiColData>()
+    : RefCounted<StyleMultiColData>(0)
     , m_width(o.m_width)
     , m_count(o.m_count)
     , m_gap(o.m_gap)
@@ -410,7 +418,8 @@ StyleMultiColData::StyleMultiColData(const StyleMultiColData& o)
     , m_breakBefore(o.m_breakBefore)
     , m_breakAfter(o.m_breakAfter)
     , m_breakInside(o.m_breakInside)
-{}
+{
+}
 
 bool StyleMultiColData::operator==(const StyleMultiColData& o) const
 {
@@ -421,17 +430,20 @@ bool StyleMultiColData::operator==(const StyleMultiColData& o) const
 }
 
 StyleTransformData::StyleTransformData()
-    : m_operations(RenderStyle::initialTransform())
+    : RefCounted<StyleTransformData>(0)
+    , m_operations(RenderStyle::initialTransform())
     , m_x(RenderStyle::initialTransformOriginX())
     , m_y(RenderStyle::initialTransformOriginY())
-{}
+{
+}
 
 StyleTransformData::StyleTransformData(const StyleTransformData& o)
-    : RefCounted<StyleTransformData>()
+    : RefCounted<StyleTransformData>(0)
     , m_operations(o.m_operations)
     , m_x(o.m_x)
     , m_y(o.m_y)
-{}
+{
+}
 
 bool StyleTransformData::operator==(const StyleTransformData& o) const
 {
@@ -644,7 +656,8 @@ void Transition::fillUnsetProperties()
 }
 
 StyleRareNonInheritedData::StyleRareNonInheritedData()
-    : lineClamp(RenderStyle::initialLineClamp())
+    : RefCounted<StyleRareNonInheritedData>(0)
+    , lineClamp(RenderStyle::initialLineClamp())
     , opacity(RenderStyle::initialOpacity())
     , m_content(0)
     , m_counterDirectives(0)
@@ -664,7 +677,7 @@ StyleRareNonInheritedData::StyleRareNonInheritedData()
 }
 
 StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInheritedData& o)
-    : RefCounted<StyleRareNonInheritedData>()
+    : RefCounted<StyleRareNonInheritedData>(0)
     , lineClamp(o.lineClamp)
     , opacity(o.opacity)
     , flexibleBox(o.flexibleBox)
@@ -756,7 +769,8 @@ bool StyleRareNonInheritedData::transitionDataEquivalent(const StyleRareNonInher
 }
 
 StyleRareInheritedData::StyleRareInheritedData()
-    : textStrokeWidth(RenderStyle::initialTextStrokeWidth())
+    : RefCounted<StyleRareInheritedData>(0)
+    , textStrokeWidth(RenderStyle::initialTextStrokeWidth())
     , textShadow(0)
     , textSecurity(RenderStyle::initialTextSecurity())
     , userModify(READ_ONLY)
@@ -771,7 +785,7 @@ StyleRareInheritedData::StyleRareInheritedData()
 }
 
 StyleRareInheritedData::StyleRareInheritedData(const StyleRareInheritedData& o)
-    : RefCounted<StyleRareInheritedData>()
+    : RefCounted<StyleRareInheritedData>(0)
     , textStrokeColor(o.textStrokeColor)
     , textStrokeWidth(o.textStrokeWidth)
     , textFillColor(o.textFillColor)
@@ -821,13 +835,16 @@ bool StyleRareInheritedData::shadowDataEquivalent(const StyleRareInheritedData&
 }
 
 StyleInheritedData::StyleInheritedData()
-    : indent(RenderStyle::initialTextIndent()), line_height(RenderStyle::initialLineHeight()), 
-      style_image(RenderStyle::initialListStyleImage()),
-      color(RenderStyle::initialColor()), 
-      horizontal_border_spacing(RenderStyle::initialHorizontalBorderSpacing()), 
-      vertical_border_spacing(RenderStyle::initialVerticalBorderSpacing()),
-      widows(RenderStyle::initialWidows()), orphans(RenderStyle::initialOrphans()),
-      page_break_inside(RenderStyle::initialPageBreak())
+    : RefCounted<StyleInheritedData>(0)
+    , indent(RenderStyle::initialTextIndent())
+    , line_height(RenderStyle::initialLineHeight())
+    , style_image(RenderStyle::initialListStyleImage())
+    , color(RenderStyle::initialColor())
+    , horizontal_border_spacing(RenderStyle::initialHorizontalBorderSpacing())
+    , vertical_border_spacing(RenderStyle::initialVerticalBorderSpacing())
+    , widows(RenderStyle::initialWidows())
+    , orphans(RenderStyle::initialOrphans())
+    , page_break_inside(RenderStyle::initialPageBreak())
 {
 }
 
@@ -836,13 +853,18 @@ StyleInheritedData::~StyleInheritedData()
 }
 
 StyleInheritedData::StyleInheritedData(const StyleInheritedData& o)
-    : RefCounted<StyleInheritedData>(),
-      indent( o.indent ), line_height( o.line_height ), style_image( o.style_image ),
-      cursorData(o.cursorData),
-      font( o.font ), color( o.color ),
-      horizontal_border_spacing( o.horizontal_border_spacing ),
-      vertical_border_spacing( o.vertical_border_spacing ),
-      widows(o.widows), orphans(o.orphans), page_break_inside(o.page_break_inside)
+    : RefCounted<StyleInheritedData>(0)
+    , indent(o.indent)
+    , line_height(o.line_height)
+    , style_image( o.style_image)
+    , cursorData(o.cursorData)
+    , font(o.font)
+    , color(o.color)
+    , horizontal_border_spacing( o.horizontal_border_spacing)
+    , vertical_border_spacing( o.vertical_border_spacing)
+    , widows(o.widows)
+    , orphans(o.orphans)
+    , page_break_inside(o.page_break_inside)
 {
 }
 
index 846a9830c8d05bdca7234148f0c08f448ac9a15f..5f5f0863e841471eb3cf48148b22bb47dbea413b 100644 (file)
@@ -626,9 +626,9 @@ public:
 
 // CSS Transforms (may become part of CSS3)
 
-class TransformOperation : public RefCounted<TransformOperation>
-{
+class TransformOperation : public RefCounted<TransformOperation> {
 public:
+    TransformOperation() : RefCounted<TransformOperation>(0) { }
     virtual ~TransformOperation() {}
     
     virtual bool operator==(const TransformOperation&) const = 0;
@@ -1295,6 +1295,8 @@ struct CursorData {
 
 class CursorList : public RefCounted<CursorList> {
 public:
+    CursorList() : RefCounted<CursorList>(0) { }
+
     const CursorData& operator[](int i) const {
         return m_vector[i];
     }
index 412432368aaf9218424f9d6f0c21b13d56f50dca..2173d1f138f7998b59eda8c1f2b8fe15c1c99019 100644 (file)
@@ -178,7 +178,7 @@ private:
 // Holds extra data, when the character is laid out on a path
 struct SVGCharOnPath : RefCounted<SVGCharOnPath> {
     SVGCharOnPath()
-        : RefCounted<SVGCharOnPath>()
+        : RefCounted<SVGCharOnPath>(0)
         , xScale(1.0f)
         , yScale(1.0f)
         , xShift(0.0f)
index ddca85d4ee56a4e568ae5818e507e5b1c7c2dfc5..0878be9bb55a9d213dd38c2748b1109e50d3bb1a 100644 (file)
@@ -41,6 +41,7 @@ namespace WebCore {
 SVGRenderStyle *SVGRenderStyle::s_defaultStyle = 0;
 
 SVGRenderStyle::SVGRenderStyle()
+    : RefCounted<SVGRenderStyle>(0)
 {
     if (!s_defaultStyle)    
         s_defaultStyle = new SVGRenderStyle(true);
@@ -58,6 +59,7 @@ SVGRenderStyle::SVGRenderStyle()
 }
 
 SVGRenderStyle::SVGRenderStyle(bool)
+    : RefCounted<SVGRenderStyle>(0)
 {
     setBitDefaults();
 
@@ -71,7 +73,8 @@ SVGRenderStyle::SVGRenderStyle(bool)
     markers.init();
 }
 
-SVGRenderStyle::SVGRenderStyle(const SVGRenderStyle &other) : RefCounted<SVGRenderStyle>()
+SVGRenderStyle::SVGRenderStyle(const SVGRenderStyle& other)
+    : RefCounted<SVGRenderStyle>(0)
 {
     fill = other.fill;
     stroke = other.stroke;
index 5fb395a5e5a6abdbf0c0e56d0881afa0889fbda1..09ac1be8cc72b67cc436b133c7984bfddfa29f15 100644 (file)
@@ -184,7 +184,7 @@ namespace WebCore {
         static SVGRenderStyle *s_defaultStyle;
 
     private:
-        SVGRenderStyle(const SVGRenderStyle*) { }
+        SVGRenderStyle(const SVGRenderStyle*) : RefCounted<SVGRenderStyle>(0) { }
 
         void setBitDefaults()
         {
index 641c04c1e2b4fb06e813af40e1c8cad4e3824437..4ab4665ad625012230ff0b854031abc48aa95386 100644 (file)
 
 using namespace WebCore;
 
-StyleFillData::StyleFillData() : RefCounted<StyleFillData>()
+StyleFillData::StyleFillData()
+    : RefCounted<StyleFillData>(0)
 {
     paint = SVGRenderStyle::initialFillPaint();
     opacity = SVGRenderStyle::initialFillOpacity();
 }
 
-StyleFillData::StyleFillData(const StyleFillData &other) : RefCounted<StyleFillData>()
+StyleFillData::StyleFillData(const StyleFillData& other)
+    : RefCounted<StyleFillData>(0)
 {
     paint = other.paint;
     opacity = other.opacity;
@@ -67,7 +69,8 @@ bool StyleFillData::operator==(const StyleFillData &other) const
     return paint == other.paint;
 }
 
-StyleStrokeData::StyleStrokeData() : RefCounted<StyleStrokeData>()
+StyleStrokeData::StyleStrokeData()
+    : RefCounted<StyleStrokeData>(0)
 {
     width = SVGRenderStyle::initialStrokeWidth();
     paint = SVGRenderStyle::initialStrokePaint();
@@ -77,7 +80,8 @@ StyleStrokeData::StyleStrokeData() : RefCounted<StyleStrokeData>()
     dashArray = SVGRenderStyle::initialStrokeDashArray();
 }
 
-StyleStrokeData::StyleStrokeData(const StyleStrokeData &other) : RefCounted<StyleStrokeData>()
+StyleStrokeData::StyleStrokeData(const StyleStrokeData& other)
+    : RefCounted<StyleStrokeData>(0)
 {
     width = other.width;
     paint = other.paint;
@@ -97,13 +101,15 @@ bool StyleStrokeData::operator==(const StyleStrokeData &other) const
            (dashArray == other.dashArray);
 }
 
-StyleStopData::StyleStopData() : RefCounted<StyleStopData>()
+StyleStopData::StyleStopData()
+    : RefCounted<StyleStopData>(0)
 {
     color = SVGRenderStyle::initialStopColor();
     opacity = SVGRenderStyle::initialStopOpacity();
 }
 
-StyleStopData::StyleStopData(const StyleStopData &other) : RefCounted<StyleStopData>()
+StyleStopData::StyleStopData(const StyleStopData& other)
+    : RefCounted<StyleStopData>(0)
 {
     color = other.color;
     opacity = other.opacity;
@@ -115,12 +121,14 @@ bool StyleStopData::operator==(const StyleStopData &other) const
            (opacity == other.opacity);
 }
 
-StyleTextData::StyleTextData() : RefCounted<StyleTextData>()
+StyleTextData::StyleTextData()
+    : RefCounted<StyleTextData>(0)
 {
     kerning = SVGRenderStyle::initialKerning();
 }
 
-StyleTextData::StyleTextData(const StyleTextData& other) : RefCounted<StyleTextData>()
+StyleTextData::StyleTextData(const StyleTextData& other)
+    : RefCounted<StyleTextData>(0)
 {
     kerning = other.kerning;
 }
@@ -130,12 +138,14 @@ bool StyleTextData::operator==(const StyleTextData& other) const
     return kerning == other.kerning;
 }
 
-StyleClipData::StyleClipData() : RefCounted<StyleClipData>()
+StyleClipData::StyleClipData()
+    : RefCounted<StyleClipData>(0)
 {
     clipPath = SVGRenderStyle::initialClipPath();
 }
 
-StyleClipData::StyleClipData(const StyleClipData &other) : RefCounted<StyleClipData>()
+StyleClipData::StyleClipData(const StyleClipData& other)
+    : RefCounted<StyleClipData>(0)
 {
     clipPath = other.clipPath;
 }
@@ -145,12 +155,14 @@ bool StyleClipData::operator==(const StyleClipData &other) const
     return (clipPath == other.clipPath);
 }
 
-StyleMaskData::StyleMaskData() : RefCounted<StyleMaskData>()
+StyleMaskData::StyleMaskData()
+    : RefCounted<StyleMaskData>(0)
 {
     maskElement = SVGRenderStyle::initialMaskElement();
 }
 
-StyleMaskData::StyleMaskData(const StyleMaskData &other) : RefCounted<StyleMaskData>()
+StyleMaskData::StyleMaskData(const StyleMaskData& other)
+    : RefCounted<StyleMaskData>(0)
 {
     maskElement = other.maskElement;
 }
@@ -160,14 +172,16 @@ bool StyleMaskData::operator==(const StyleMaskData &other) const
     return (maskElement == other.maskElement);
 }
 
-StyleMarkerData::StyleMarkerData() : RefCounted<StyleMarkerData>()
+StyleMarkerData::StyleMarkerData()
+    : RefCounted<StyleMarkerData>(0)
 {
     startMarker = SVGRenderStyle::initialStartMarker();
     midMarker = SVGRenderStyle::initialMidMarker();
     endMarker = SVGRenderStyle::initialEndMarker();
 }
 
-StyleMarkerData::StyleMarkerData(const StyleMarkerData &other) : RefCounted<StyleMarkerData>()
+StyleMarkerData::StyleMarkerData(const StyleMarkerData& other)
+    : RefCounted<StyleMarkerData>(0)
 {
     startMarker = other.startMarker;
     midMarker = other.midMarker;
@@ -179,7 +193,8 @@ bool StyleMarkerData::operator==(const StyleMarkerData &other) const
     return (startMarker == other.startMarker && midMarker == other.midMarker && endMarker == other.endMarker);
 }
 
-StyleMiscData::StyleMiscData() : RefCounted<StyleMiscData>()
+StyleMiscData::StyleMiscData()
+    : RefCounted<StyleMiscData>(0)
 {
     floodColor = SVGRenderStyle::initialFloodColor();
     floodOpacity = SVGRenderStyle::initialFloodOpacity();
@@ -187,7 +202,8 @@ StyleMiscData::StyleMiscData() : RefCounted<StyleMiscData>()
     baselineShiftValue = SVGRenderStyle::initialBaselineShiftValue();
 }
 
-StyleMiscData::StyleMiscData(const StyleMiscData &other) : RefCounted<StyleMiscData>()
+StyleMiscData::StyleMiscData(const StyleMiscData& other)
+    : RefCounted<StyleMiscData>(0)
 {
     filter = other.filter;
     floodColor = other.floodColor;
index 306a5d3b8e7bd8bbdd0eb85876c6d9c5bd19ef9f..eda672b4f0b341914f6337c357b4574ff7d2f15b 100644 (file)
@@ -35,6 +35,8 @@ namespace WebCore {
 
 class SQLResultSetRowList : public RefCounted<SQLResultSetRowList> {
 public:
+    SQLResultSetRowList() : RefCounted<SQLResultSetRowList>(0) { }
+
     const Vector<String>& columnNames() const { return m_columns; }
     const Vector<SQLValue>& values() const { return m_result; }
 
index 4b7efc2aa93118bb3efa8b239947cf03d4066dfa..81cf226f9705becc59425463b0b764e5712d1444 100644 (file)
@@ -31,7 +31,7 @@
 namespace WebCore {
 
 SVGAngle::SVGAngle()
-    : RefCounted<SVGAngle>()
+    : RefCounted<SVGAngle>(0)
     , m_unitType(SVG_ANGLETYPE_UNKNOWN)
     , m_value(0)
     , m_valueInSpecifiedUnits(0)
index 340596dbfa7f98383a3533953ca388fb2e76ce1c..9f1b50b0ca2b09a0a3b3407bf7f5814cdeceba84 100644 (file)
@@ -103,11 +103,11 @@ namespace WebCore {
     };
     
     template<typename BareType>
-    class SVGAnimatedTemplate : public RefCounted<SVGAnimatedTemplate<BareType> >
-    {
+    class SVGAnimatedTemplate : public RefCounted<SVGAnimatedTemplate<BareType> > {
     public:
         SVGAnimatedTemplate(const QualifiedName& attributeName)
-            : m_associatedAttributeName(attributeName)
+            : RefCounted<SVGAnimatedTemplate<BareType> >(0)
+            , m_associatedAttributeName(attributeName)
         {
         }
 
index 3942599d016b6abda34e13f2df7b066cfffcf294..7b18689590b7c92735ddbbf7eaf75d1461c86dc9 100644 (file)
@@ -27,7 +27,8 @@
 namespace WebCore {
 
 SVGElementInstanceList::SVGElementInstanceList(PassRefPtr<SVGElementInstance> rootInstance)
-    : m_rootInstance(rootInstance)
+    : RefCounted<SVGElementInstanceList>(0)
+    , m_rootInstance(rootInstance)
 {
 }
 
index 92c70680f8db9bb069089937be9f6dd9c66b6f3d..2617ab5de88ce01ef34a7468e77ce2c89a20d6e9 100644 (file)
@@ -49,7 +49,8 @@ namespace WebCore {
 
     public:
         SVGList(const QualifiedName& attributeName) 
-            : m_associatedAttributeName(attributeName)
+            : RefCounted<SVGList<Item> >(0)
+            , m_associatedAttributeName(attributeName)
         {
         }
 
@@ -141,8 +142,8 @@ namespace WebCore {
     template<typename Item>
     class SVGPODListItem : public RefCounted<SVGPODListItem<Item> > {
     public:
-        SVGPODListItem() : m_item() { }
-        SVGPODListItem(const Item& item) : m_item(item) { }
+        SVGPODListItem() : RefCounted<SVGPODListItem<Item> >(0), m_item() { }
+        SVGPODListItem(const Item& item) : RefCounted<SVGPODListItem<Item> >(0), m_item(item) { }
 
         operator Item&() { return m_item; }
         operator const Item&() const { return m_item; }
index 11f714bd7c3a599f98ef6fc02e36ae5721b27a55..051c783db42a7228150babd1a73cc91e41dca0dd 100644 (file)
 
 #include <wtf/RefCounted.h>
 
-namespace WebCore
-{
+namespace WebCore {
     class SVGPathElement;
     class SVGStyledElement;
 
-    class SVGPathSeg : public RefCounted<SVGPathSeg>
-    {
+    class SVGPathSeg : public RefCounted<SVGPathSeg> {
     public:
-        SVGPathSeg() { }
+        SVGPathSeg() : RefCounted<SVGPathSeg>(0) { }
         virtual ~SVGPathSeg() { }
 
         enum SVGPathSegType {
index e4223eadc0048650002da84393c5b97d8fb5716f..32adba32bd18d7a4c3122e0ee25592a87a028ded 100644 (file)
@@ -31,7 +31,7 @@
 namespace WebCore {
 
 SVGPreserveAspectRatio::SVGPreserveAspectRatio()
-    : RefCounted<SVGPreserveAspectRatio>()
+    : RefCounted<SVGPreserveAspectRatio>(0)
     , m_align(SVG_PRESERVEASPECTRATIO_XMIDYMID)
     , m_meetOrSlice(SVG_MEETORSLICE_MEET)
 {
index b0510d9c785f663ad7b0d91366d14a9270e5e2cf..a2620275b1a2207e82f6e1b48131623af10c6ea5 100644 (file)
@@ -28,8 +28,7 @@
 
 namespace WebCore {
 
-class SVGRenderingIntent : public RefCounted<SVGRenderingIntent>
-{
+class SVGRenderingIntent : public RefCounted<SVGRenderingIntent> {
 public:
     enum SVGRenderingIntentType {
         RENDERING_INTENT_UNKNOWN                  = 0,
@@ -40,8 +39,7 @@ public:
         RENDERING_INTENT_ABSOLUTE_COLORIMETRIC    = 5
     };
 
-    SVGRenderingIntent() { } 
-    ~SVGRenderingIntent() { }
+    SVGRenderingIntent() : RefCounted<SVGRenderingIntent>(0) { }
 };
 
 } // namespace WebCore
index 8f8b0cdc74c7e49705d969724e9f41b13f5e8532..f9d90cfa4a93e34c23a6155c2285504f436e65e6 100644 (file)
@@ -28,8 +28,7 @@
 
 namespace WebCore {
 
-class SVGUnitTypes : public RefCounted<SVGUnitTypes>
-{
+class SVGUnitTypes : public RefCounted<SVGUnitTypes> {
 public:
     enum SVGUnitType {
         SVG_UNIT_TYPE_UNKNOWN               = 0,
@@ -37,8 +36,7 @@ public:
         SVG_UNIT_TYPE_OBJECTBOUNDINGBOX     = 2
     };
 
-    SVGUnitTypes() { } 
-    ~SVGUnitTypes() { }
+    SVGUnitTypes() : RefCounted<SVGUnitTypes>(0) { }
 };
 
 } // namespace WebCore
index afab7aba55c789118de9e5454634cb3bc6405566..57f70684f59ac462052a0b691bba3d1942dece3d 100644 (file)
@@ -115,6 +115,7 @@ namespace WebCore {
         } QuartzGradientStop;
         
         struct SharedStopCache : public RefCounted<SharedStopCache> {
+            SharedStopCache() : RefCounted<SharedStopCache>(0) { }
             Vector<QuartzGradientStop> m_stops;
         };
 
index 10d6648404f13e47271d72d9cce619026c9d78c3..2c9ad45005485f23cfe6e5da590c12ca40a4f788 100644 (file)
@@ -35,6 +35,7 @@
 namespace WebCore {
 
 SVGResource::SVGResource()
+    : RefCounted<SVGResource>(0)
 {
 }
 
index 2097a6e7a68abe9425098eccc057cbd6fd80062c..4a8ca1a0dbef52f8efaa8e9846750a8abfb25905 100644 (file)
@@ -1,5 +1,4 @@
 /*
- *  This file is part of the KDE libraries
  *  Copyright (C) 2003, 2006 Apple Computer, Inc.
  *
  *  This library is free software; you can redistribute it and/or
 #include "Document.h"
 
 namespace WebCore {
+
     class String;
     
     class DOMParser : public RefCounted<DOMParser> {
     public:
+        DOMParser() : RefCounted<DOMParser>(0) { }
         PassRefPtr<Document> parseFromString(const String& str, const String& contentType);
     };
+
 }
 
 #endif // XMLSerializer.h
index 51c52ec6a671526befd0fa507740e20124ae980d..c812358a4e281bc543c418876ca85bcce7b5eb02 100644 (file)
@@ -259,7 +259,8 @@ bool XMLHttpRequest::dispatchEvent(PassRefPtr<Event> evt, ExceptionCode& ec, boo
 }
 
 XMLHttpRequest::XMLHttpRequest(Document* d)
-    : m_doc(d)
+    : RefCounted<XMLHttpRequest>(0)
+    , m_doc(d)
     , m_async(true)
     , m_loader(0)
     , m_state(Uninitialized)
index 34f1a05c70acbedf831b2843d44df9c2c29b6de9..e52a9f9367ea44e4f34529037cb81d9492bb46d9 100644 (file)
@@ -1,5 +1,4 @@
 /*
- *  This file is part of the KDE libraries
  *  Copyright (C) 2003, 2006 Apple Computer, Inc.
  *  Copyright (C) 2006 Samuel Weinig (sam@webkit.org)
  *
@@ -32,6 +31,7 @@ namespace WebCore {
 
     class XMLSerializer : public RefCounted<XMLSerializer> {
     public:
+        XMLSerializer() : RefCounted<XMLSerializer>(0) { }
         String serializeToString(Node*, ExceptionCode&);
     };
 
index 03dc7db7cd19bf2a214958386903483bbd299fc5..d0284b99bdb1f4c3fecdcba52edff45e04f8d01b 100644 (file)
@@ -44,6 +44,7 @@ namespace WebCore {
 
     class XPathEvaluator : public RefCounted<XPathEvaluator> {
     public:
+        XPathEvaluator() : RefCounted<XPathEvaluator>(0) { }
         PassRefPtr<XPathExpression> createExpression(const String& expression, XPathNSResolver*, ExceptionCode&);
         PassRefPtr<XPathNSResolver> createNSResolver(Node* nodeResolver);
         PassRefPtr<XPathResult> evaluate(const String& expression, Node* contextNode,
index 430e3c9e17eae76283bb8e1fa40a00d0fc65e1dd..9af6ec7d7302e472d5b3dd7954409872916b05a5 100644 (file)
@@ -52,6 +52,8 @@ namespace WebCore {
         PassRefPtr<XPathResult> evaluate(Node* contextNode, unsigned short type, XPathResult*, ExceptionCode&);
             
     private:
+        XPathExpression() : RefCounted<XPathExpression>(0) { }
+
         XPath::Expression* m_topExpression;
     };
 
index b6120c1e515c2de0cef13e192635e5fcba1b344f..17069f6873d51ab357d6497b6a6d9facccc38cf1 100644 (file)
@@ -37,6 +37,7 @@ namespace WebCore {
 
     class XPathNSResolver : public RefCounted<XPathNSResolver> {
     public:
+        XPathNSResolver() : RefCounted<XPathNSResolver>(0) { }
         virtual ~XPathNSResolver();
         virtual String lookupNamespaceURI(const String& prefix) = 0;
     };
index e7c4db3ffb747f4e32a6dd2b489a7a5858ee363b..37c49b8354be0bc2e7b00811ab88fa2e3bbccf97 100644 (file)
@@ -49,7 +49,8 @@ private:
 };
 
 XPathResult::XPathResult(EventTargetNode* eventTarget, const Value& value)
-    : m_value(value)
+    : RefCounted<XPathResult>(0)
+    , m_value(value)
     , m_eventTarget(eventTarget)
 {
     m_eventListener = new InvalidatingEventListener(this);
index b2ad0d6971a26bfda947ca0270e83a7a6a48e7b9..7015aebf2db607a740e2e4339ea2b82ed465469e 100644 (file)
@@ -38,9 +38,9 @@ namespace WebCore {
     
         class ValueData : public RefCounted<ValueData> {
         public:
-            ValueData() {}
-            ValueData(const NodeSet& nodeSet) : m_nodeSet(nodeSet) {}
-            ValueData(const String& string) : m_string(string) {}
+            ValueData() : RefCounted<ValueData>(0) { }
+            ValueData(const NodeSet& nodeSet) : RefCounted<ValueData>(0), m_nodeSet(nodeSet) { }
+            ValueData(const String& string) : RefCounted<ValueData>(0), m_string(string) { }
 
             NodeSet m_nodeSet;
             String m_string;
index 3a92a595ee2cfd54ef5b409d2d9da49ddbaf346c..474d7e7b6932fe4e0dc2a3420b957d875642f036 100644 (file)
@@ -38,9 +38,10 @@ class Node;
 class Document;
 class DocumentFragment;
 
-class XSLTProcessor : public RefCounted<XSLTProcessor>
-{
+class XSLTProcessor : public RefCounted<XSLTProcessor> {
 public:
+    XSLTProcessor() : RefCounted<XSLTProcessor>(0) { }
+
     void setXSLStylesheet(XSLStyleSheet* styleSheet) { m_stylesheet = styleSheet; }
     bool transformToString(Node* source, String& resultMIMEType, String& resultString, String& resultEncoding);
     RefPtr<Document> createDocumentFromSource(const String& source, const String& sourceEncoding, const String& sourceMIMEType, Node* sourceNode, Frame* frame);