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
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)
+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.
}
RootObject::RootObject(const void* nativeHandle, JSGlobalObject* globalObject)
- : m_isValid(true)
+ : RefCounted<RootObject>(0)
+ , m_isValid(true)
, m_nativeHandle(nativeHandle)
, m_globalObject(globalObject)
{
+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.
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
class CSSFontFace : public RefCounted<CSSFontFace> {
public:
CSSFontFace()
- : m_segmentedFontFace(0)
+ : RefCounted<CSSFontFace>(0)
+ , m_segmentedFontFace(0)
{
}
namespace WebCore {
CSSRuleList::CSSRuleList()
+ : RefCounted<CSSRuleList>(0)
{
}
CSSRuleList::CSSRuleList(StyleList* list, bool omitCharsetRules)
+ : RefCounted<CSSRuleList>(0)
{
if (list) {
unsigned len = list->length();
namespace WebCore {
CSSSegmentedFontFace::CSSSegmentedFontFace(CSSFontSelector* fontSelector)
- : m_fontSelector(fontSelector)
+ : RefCounted<CSSSegmentedFontFace>(0)
+ , m_fontSelector(fontSelector)
{
}
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)
{
// 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(); }
class Rect : public RefCounted<Rect> {
public:
+ Rect() : RefCounted<Rect>(0) { }
virtual ~Rect() { }
CSSPrimitiveValue* top() const { return m_top.get(); }
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;
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; }
using namespace HTMLNames;
StyleSheetList::StyleSheetList(Document* doc)
- : m_doc(doc)
+ : RefCounted<StyleSheetList>(0)
+ , m_doc(doc)
{
}
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),
friend class NamedAttrMap;
public:
- Attr(Element*, Document*, Attribute*);
+ Attr(Element*, Document*, PassRefPtr<Attribute>);
~Attr();
// Call this after calling the constructor so the
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() { }
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; }
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)
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;
namespace WebCore {
Event::Event()
- : m_canBubble(false)
+ : RefCounted<Event>(0)
+ , m_canBubble(false)
, m_cancelable(false)
, m_propagationStopped(false)
, m_defaultPrevented(false)
}
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)
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; }
namespace WebCore {
ExceptionBase::ExceptionBase(const ExceptionCodeDescription& description)
+ : RefCounted<ExceptionBase>(0)
{
m_code = description.code;
if (description.name) {
// 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);
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();
// 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;
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(); };
class NodeFilterCondition : public RefCounted<NodeFilterCondition> {
public:
+ NodeFilterCondition() : RefCounted<NodeFilterCondition>(0) { }
virtual ~NodeFilterCondition() { }
virtual short acceptNode(Node*, KJS::JSValue*& exception) const;
virtual void mark() { }
class NodeList : public RefCounted<NodeList> {
public:
- NodeList() { }
+ NodeList() : RefCounted<NodeList>(0) { }
virtual ~NodeList() { }
// DOM methods & attributes for NodeList
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;
static void init();
private:
-
- void ref() { m_impl->ref(); }
+ void ref() { m_impl->ref(); }
void deref();
QualifiedNameImpl* m_impl;
#endif
Range::Range(Document* ownerDocument)
- : m_ownerDocument(ownerDocument)
+ : RefCounted<Range>(0)
+ , m_ownerDocument(ownerDocument)
, m_startContainer(ownerDocument)
, m_startOffset(0)
, m_endContainer(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)
}
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)
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)
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);
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)
using namespace EventNames;
EditCommand::EditCommand(Document* document)
- : m_document(document)
+ : RefCounted<EditCommand>(0)
+ , m_document(document)
, m_parent(0)
{
ASSERT(m_document);
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)
}
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())
void (*notifyHistoryItemChanged)() = defaultNotifyHistoryItemChanged;
HistoryItem::HistoryItem()
- : m_lastVisitedTime(0)
+ : RefCounted<HistoryItem>(0)
+ , m_lastVisitedTime(0)
, m_isInPageCache(false)
, m_isTargetItem(false)
, m_visitCount(0)
}
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)
}
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)
}
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)
}
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)
}
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)
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
{
#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)
#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)
#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)
{
using namespace HTMLNames;
CanvasRenderingContext2D::CanvasRenderingContext2D(HTMLCanvasElement* canvas)
- : m_canvas(canvas)
+ : RefCounted<CanvasRenderingContext2D>(0)
+ , m_canvas(canvas)
, m_stateStack(1)
{
}
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)
{
}
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)
}
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)
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:
using namespace WebCore;
TimeRanges::TimeRanges(float start, float end)
+ : RefCounted<TimeRanges>(0)
{
add(start, end);
}
class TimeRanges : public RefCounted<TimeRanges> {
public:
- TimeRanges() { }
+ TimeRanges() : RefCounted<TimeRanges>(0) { }
TimeRanges(float start, float end);
unsigned length() const { return m_ranges.size(); }
class VoidCallback : public RefCounted<VoidCallback> {
public:
- VoidCallback() { }
+ VoidCallback() : RefCounted<VoidCallback>(0) { }
virtual ~VoidCallback() { }
virtual void handleEvent() = 0;
}
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)
}
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)
{
}
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)
}
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)
namespace WebCore {
IconRecord::IconRecord(const String& url)
- : m_iconURL(url)
+ : RefCounted<IconRecord>(0)
+ , m_iconURL(url)
, m_stamp(0)
, m_dataSet(false)
{
namespace WebCore {
BarInfo::BarInfo(Frame* frame, Type type)
- : m_frame(frame)
+ : RefCounted<BarInfo>(0)
+ , m_frame(frame)
, m_type(type)
{
}
namespace WebCore {
Console::Console(Frame* frame)
- : m_frame(frame)
+ : RefCounted<Console>(0)
+ , m_frame(frame)
{
}
namespace WebCore {
DOMSelection::DOMSelection(Frame* frame)
- : m_frame(frame)
+ : RefCounted<DOMSelection>(0)
+ , m_frame(frame)
{
}
}
DOMWindow::DOMWindow(Frame* frame)
- : m_frame(frame)
+ : RefCounted<DOMWindow>(0)
+ , m_frame(frame)
{
}
}
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();
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;
namespace WebCore {
History::History(Frame* frame)
- : m_frame(frame)
+ : RefCounted<History>(0)
+ , m_frame(frame)
{
}
};
InspectorResource(long long identifier, DocumentLoader* documentLoader, Frame* frame)
- : identifier(identifier)
+ : RefCounted<InspectorResource>(0)
+ , identifier(identifier)
, loader(documentLoader)
, frame(frame)
, scriptContext(0)
#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)
}
InspectorDatabaseResource()
+ : RefCounted<InspectorDatabaseResource>(0)
{
setScriptObject(0, 0);
}
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:
namespace WebCore {
Screen::Screen(Frame* frame)
- : m_frame(frame)
+ : RefCounted<Screen>(0)
+ , m_frame(frame)
{
}
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)
{
}
};
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)
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)
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);
}
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)
{
}
namespace WebCore {
FontFamily::FontFamily(const FontFamily& other)
- : RefCounted<FontFamily>()
+ : RefCounted<FontFamily>(0)
, m_family(other.m_family)
, m_next(other.m_next)
{
class FontFamily : public RefCounted<FontFamily> {
public:
- FontFamily() { }
+ FontFamily() : RefCounted<FontFamily>(0) { }
FontFamily(const FontFamily&);
FontFamily& operator=(const FontFamily&);
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
// 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)
{
}
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];
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])
using namespace HTMLNames;
PopupMenu::PopupMenu(PopupMenuClient* client)
- : m_popupClient(client)
+ : RefCounted<PopupMenu>(0)
+ , m_popupClient(client)
{
}
}
SharedBuffer::SharedBuffer(NSData *nsData)
- : m_nsData(nsData)
+ : RefCounted<SharedBuffer>(0)
+ , m_nsData(nsData)
{
}
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)
{
}
class FormData : public RefCounted<FormData> {
public:
- FormData() { }
+ FormData() : RefCounted<FormData>(0) { }
FormData(const void* data, size_t);
FormData(const CString&);
PassRefPtr<FormData> copy() const;
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))
{
}
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(); }
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);
}
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)
}
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();
}
StyleBoxData::StyleBoxData(const StyleBoxData& o)
- : RefCounted<StyleBoxData>()
+ : RefCounted<StyleBoxData>(0)
, width(o.width)
, height(o.height)
, min_width(o.min_width)
}
StyleVisualData::StyleVisualData()
- : hasClip(false)
+ : RefCounted<StyleVisualData>(0)
+ , hasClip(false)
, textDecoration(RenderStyle::initialTextDecoration())
, counterIncrement(0)
, counterReset(0)
}
StyleVisualData::StyleVisualData(const StyleVisualData& o)
- : RefCounted<StyleVisualData>()
+ : RefCounted<StyleVisualData>(0)
, clip(o.clip)
, hasClip(o.hasClip)
, textDecoration(o.textDecoration)
}
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)
{
}
}
StyleMarqueeData::StyleMarqueeData()
- : increment(RenderStyle::initialMarqueeIncrement())
+ : RefCounted<StyleMarqueeData>(0)
+ , increment(RenderStyle::initialMarqueeIncrement())
, speed(RenderStyle::initialMarqueeSpeed())
, loops(RenderStyle::initialMarqueeLoopCount())
, behavior(RenderStyle::initialMarqueeBehavior())
}
StyleMarqueeData::StyleMarqueeData(const StyleMarqueeData& o)
- : RefCounted<StyleMarqueeData>()
+ : RefCounted<StyleMarqueeData>(0)
, increment(o.increment)
, speed(o.speed)
, loops(o.loops)
}
StyleFlexibleBoxData::StyleFlexibleBoxData()
- : flex(RenderStyle::initialBoxFlex())
+ : RefCounted<StyleFlexibleBoxData>(0)
+ , flex(RenderStyle::initialBoxFlex())
, flex_group(RenderStyle::initialBoxFlexGroup())
, ordinal_group(RenderStyle::initialBoxOrdinalGroup())
, align(RenderStyle::initialBoxAlign())
}
StyleFlexibleBoxData::StyleFlexibleBoxData(const StyleFlexibleBoxData& o)
- : RefCounted<StyleFlexibleBoxData>()
+ : RefCounted<StyleFlexibleBoxData>(0)
, flex(o.flex)
, flex_group(o.flex_group)
, ordinal_group(o.ordinal_group)
}
StyleMultiColData::StyleMultiColData()
- : m_width(0)
+ : RefCounted<StyleMultiColData>(0)
+ , m_width(0)
, m_count(RenderStyle::initialColumnCount())
, m_gap(0)
, m_autoWidth(true)
, 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)
, m_breakBefore(o.m_breakBefore)
, m_breakAfter(o.m_breakAfter)
, m_breakInside(o.m_breakInside)
-{}
+{
+}
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
{
}
StyleRareNonInheritedData::StyleRareNonInheritedData()
- : lineClamp(RenderStyle::initialLineClamp())
+ : RefCounted<StyleRareNonInheritedData>(0)
+ , lineClamp(RenderStyle::initialLineClamp())
, opacity(RenderStyle::initialOpacity())
, m_content(0)
, m_counterDirectives(0)
}
StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInheritedData& o)
- : RefCounted<StyleRareNonInheritedData>()
+ : RefCounted<StyleRareNonInheritedData>(0)
, lineClamp(o.lineClamp)
, opacity(o.opacity)
, flexibleBox(o.flexibleBox)
}
StyleRareInheritedData::StyleRareInheritedData()
- : textStrokeWidth(RenderStyle::initialTextStrokeWidth())
+ : RefCounted<StyleRareInheritedData>(0)
+ , textStrokeWidth(RenderStyle::initialTextStrokeWidth())
, textShadow(0)
, textSecurity(RenderStyle::initialTextSecurity())
, userModify(READ_ONLY)
}
StyleRareInheritedData::StyleRareInheritedData(const StyleRareInheritedData& o)
- : RefCounted<StyleRareInheritedData>()
+ : RefCounted<StyleRareInheritedData>(0)
, textStrokeColor(o.textStrokeColor)
, textStrokeWidth(o.textStrokeWidth)
, textFillColor(o.textFillColor)
}
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())
{
}
}
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)
{
}
// 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;
class CursorList : public RefCounted<CursorList> {
public:
+ CursorList() : RefCounted<CursorList>(0) { }
+
const CursorData& operator[](int i) const {
return m_vector[i];
}
// 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)
SVGRenderStyle *SVGRenderStyle::s_defaultStyle = 0;
SVGRenderStyle::SVGRenderStyle()
+ : RefCounted<SVGRenderStyle>(0)
{
if (!s_defaultStyle)
s_defaultStyle = new SVGRenderStyle(true);
}
SVGRenderStyle::SVGRenderStyle(bool)
+ : RefCounted<SVGRenderStyle>(0)
{
setBitDefaults();
markers.init();
}
-SVGRenderStyle::SVGRenderStyle(const SVGRenderStyle &other) : RefCounted<SVGRenderStyle>()
+SVGRenderStyle::SVGRenderStyle(const SVGRenderStyle& other)
+ : RefCounted<SVGRenderStyle>(0)
{
fill = other.fill;
stroke = other.stroke;
static SVGRenderStyle *s_defaultStyle;
private:
- SVGRenderStyle(const SVGRenderStyle*) { }
+ SVGRenderStyle(const SVGRenderStyle*) : RefCounted<SVGRenderStyle>(0) { }
void setBitDefaults()
{
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;
return paint == other.paint;
}
-StyleStrokeData::StyleStrokeData() : RefCounted<StyleStrokeData>()
+StyleStrokeData::StyleStrokeData()
+ : RefCounted<StyleStrokeData>(0)
{
width = SVGRenderStyle::initialStrokeWidth();
paint = SVGRenderStyle::initialStrokePaint();
dashArray = SVGRenderStyle::initialStrokeDashArray();
}
-StyleStrokeData::StyleStrokeData(const StyleStrokeData &other) : RefCounted<StyleStrokeData>()
+StyleStrokeData::StyleStrokeData(const StyleStrokeData& other)
+ : RefCounted<StyleStrokeData>(0)
{
width = other.width;
paint = other.paint;
(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;
(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;
}
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;
}
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;
}
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;
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();
baselineShiftValue = SVGRenderStyle::initialBaselineShiftValue();
}
-StyleMiscData::StyleMiscData(const StyleMiscData &other) : RefCounted<StyleMiscData>()
+StyleMiscData::StyleMiscData(const StyleMiscData& other)
+ : RefCounted<StyleMiscData>(0)
{
filter = other.filter;
floodColor = other.floodColor;
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; }
namespace WebCore {
SVGAngle::SVGAngle()
- : RefCounted<SVGAngle>()
+ : RefCounted<SVGAngle>(0)
, m_unitType(SVG_ANGLETYPE_UNKNOWN)
, m_value(0)
, m_valueInSpecifiedUnits(0)
};
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)
{
}
namespace WebCore {
SVGElementInstanceList::SVGElementInstanceList(PassRefPtr<SVGElementInstance> rootInstance)
- : m_rootInstance(rootInstance)
+ : RefCounted<SVGElementInstanceList>(0)
+ , m_rootInstance(rootInstance)
{
}
public:
SVGList(const QualifiedName& attributeName)
- : m_associatedAttributeName(attributeName)
+ : RefCounted<SVGList<Item> >(0)
+ , m_associatedAttributeName(attributeName)
{
}
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; }
#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 {
namespace WebCore {
SVGPreserveAspectRatio::SVGPreserveAspectRatio()
- : RefCounted<SVGPreserveAspectRatio>()
+ : RefCounted<SVGPreserveAspectRatio>(0)
, m_align(SVG_PRESERVEASPECTRATIO_XMIDYMID)
, m_meetOrSlice(SVG_MEETORSLICE_MEET)
{
namespace WebCore {
-class SVGRenderingIntent : public RefCounted<SVGRenderingIntent>
-{
+class SVGRenderingIntent : public RefCounted<SVGRenderingIntent> {
public:
enum SVGRenderingIntentType {
RENDERING_INTENT_UNKNOWN = 0,
RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5
};
- SVGRenderingIntent() { }
- ~SVGRenderingIntent() { }
+ SVGRenderingIntent() : RefCounted<SVGRenderingIntent>(0) { }
};
} // namespace WebCore
namespace WebCore {
-class SVGUnitTypes : public RefCounted<SVGUnitTypes>
-{
+class SVGUnitTypes : public RefCounted<SVGUnitTypes> {
public:
enum SVGUnitType {
SVG_UNIT_TYPE_UNKNOWN = 0,
SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2
};
- SVGUnitTypes() { }
- ~SVGUnitTypes() { }
+ SVGUnitTypes() : RefCounted<SVGUnitTypes>(0) { }
};
} // namespace WebCore
} QuartzGradientStop;
struct SharedStopCache : public RefCounted<SharedStopCache> {
+ SharedStopCache() : RefCounted<SharedStopCache>(0) { }
Vector<QuartzGradientStop> m_stops;
};
namespace WebCore {
SVGResource::SVGResource()
+ : RefCounted<SVGResource>(0)
{
}
/*
- * 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
}
XMLHttpRequest::XMLHttpRequest(Document* d)
- : m_doc(d)
+ : RefCounted<XMLHttpRequest>(0)
+ , m_doc(d)
, m_async(true)
, m_loader(0)
, m_state(Uninitialized)
/*
- * This file is part of the KDE libraries
* Copyright (C) 2003, 2006 Apple Computer, Inc.
* Copyright (C) 2006 Samuel Weinig (sam@webkit.org)
*
class XMLSerializer : public RefCounted<XMLSerializer> {
public:
+ XMLSerializer() : RefCounted<XMLSerializer>(0) { }
String serializeToString(Node*, ExceptionCode&);
};
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,
PassRefPtr<XPathResult> evaluate(Node* contextNode, unsigned short type, XPathResult*, ExceptionCode&);
private:
+ XPathExpression() : RefCounted<XPathExpression>(0) { }
+
XPath::Expression* m_topExpression;
};
class XPathNSResolver : public RefCounted<XPathNSResolver> {
public:
+ XPathNSResolver() : RefCounted<XPathNSResolver>(0) { }
virtual ~XPathNSResolver();
virtual String lookupNamespaceURI(const String& prefix) = 0;
};
};
XPathResult::XPathResult(EventTargetNode* eventTarget, const Value& value)
- : m_value(value)
+ : RefCounted<XPathResult>(0)
+ , m_value(value)
, m_eventTarget(eventTarget)
{
m_eventListener = new InvalidatingEventListener(this);
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;
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);