Commit 58ea1c13 authored by ggaren@apple.com's avatar ggaren@apple.com

JavaScriptCore:

        Reviewed by Anders Carlsson.

        Renamed Shared to RefCounted.

        * API/JSClassRef.h:
        * JavaScriptCore.xcodeproj/project.pbxproj:
        * kjs/interpreter.h:
        * kjs/regexp.h:
        * wtf/RefCounted.h: Copied from JavaScriptCore/wtf/Shared.h.
        (WTF::RefCounted::RefCounted):
        * wtf/Shared.h: Removed.

JavaScriptGlue:

        Reviewed by Anders Carlsson.

        Renamed Shared to RefCounted.

        * ForwardingHeaders/wtf/RefCounted.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/Shared.h.
        * ForwardingHeaders/wtf/Shared.h: Removed.

WebCore:

        Reviewed by Anders Carlsson.

        Renamed Shared to RefCounted.

        * ForwardingHeaders/wtf/RefCounted.h: Copied from WebCore/ForwardingHeaders/wtf/Shared.h.
        * ForwardingHeaders/wtf/Shared.h: Removed.
        * bindings/js/JSSVGPODTypeWrapper.h:
        * css/CSSFontFace.h:
        * css/CSSRuleList.h:
        * css/Counter.h:
        * css/Pair.h:
        * css/Rect.h:
        * css/StyleBase.h:
        * css/StyleSheetList.h:
        * dom/Attribute.h:
        * dom/Clipboard.h:
        * dom/DOMImplementation.h:
        * dom/Event.h:
        * dom/EventListener.h:
        * dom/NamedNodeMap.h:
        * dom/NodeFilter.h:
        * dom/NodeFilterCondition.h:
        * dom/NodeList.h:
        * dom/QualifiedName.h:
        * dom/Range.h:
        * dom/RangeException.h:
        * dom/RegisteredEventListener.h:
        * dom/Traversal.h:
        * editing/EditCommand.h:
        * history/BackForwardList.h:
        * history/CachedPage.h:
        * history/HistoryItem.cpp:
        (WebCore::HistoryItem::HistoryItem):
        * history/HistoryItem.h:
        * html/CanvasGradient.h:
        * html/CanvasPattern.h:
        * html/CanvasRenderingContext2D.h:
        * html/CanvasStyle.h:
        * html/HTMLCollection.h:
        * html/MediaError.h:
        * html/TimeRanges.h:
        * html/VoidCallback.h:
        * ksvg2/css/SVGRenderStyle.cpp:
        (WebCore::SVGRenderStyle::SVGRenderStyle):
        * ksvg2/css/SVGRenderStyle.h:
        * ksvg2/css/SVGRenderStyleDefs.cpp:
        (StyleFillData::StyleFillData):
        (StyleStrokeData::StyleStrokeData):
        (StyleStopData::StyleStopData):
        (StyleTextData::StyleTextData):
        (StyleClipData::StyleClipData):
        (StyleMaskData::StyleMaskData):
        (StyleMarkerData::StyleMarkerData):
        (StyleMiscData::StyleMiscData):
        * ksvg2/css/SVGRenderStyleDefs.h:
        * ksvg2/svg/SVGAngle.cpp:
        (WebCore::SVGAngle::SVGAngle):
        * ksvg2/svg/SVGAngle.h:
        * ksvg2/svg/SVGAnimatedTemplate.h:
        * ksvg2/svg/SVGElementInstanceList.h:
        * ksvg2/svg/SVGException.h:
        * ksvg2/svg/SVGList.h:
        * ksvg2/svg/SVGPathSeg.h:
        * ksvg2/svg/SVGPreserveAspectRatio.cpp:
        (WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
        * ksvg2/svg/SVGPreserveAspectRatio.h:
        * ksvg2/svg/SVGRenderingIntent.h:
        * ksvg2/svg/SVGTransform.h:
        * ksvg2/svg/SVGUnitTypes.h:
        * loader/DocumentLoader.h:
        * loader/FormState.h:
        * loader/ResourceLoader.h:
        * loader/TextResourceDecoder.h:
        * loader/icon/IconRecord.h:
        * page/BarInfo.h:
        * page/Console.h:
        * page/DOMSelection.h:
        * page/DOMWindow.h:
        * page/Frame.h:
        * page/History.h:
        * page/InspectorController.cpp:
        * page/Plugin.h:
        * page/Screen.h:
        * platform/ArrayImpl.h:
        * platform/CString.h:
        * platform/Cursor.h:
        * platform/DeprecatedValueListImpl.cpp:
        (WebCore::DeprecatedValueListImpl::Private::Private):
        * platform/FileChooser.h:
        * platform/FontFallbackList.h:
        * platform/FontFamily.cpp:
        (WebCore::FontFamily::FontFamily):
        * platform/FontFamily.h:
        * platform/FontSelector.h:
        * platform/GlyphPageTreeNode.h:
        * platform/PopupMenu.h:
        * platform/RegularExpression.cpp:
        * platform/ScrollBar.h:
        * platform/SharedBuffer.h:
        * platform/StringImpl.h:
        * platform/graphics/Icon.h:
        * platform/graphics/svg/SVGResource.h:
        * platform/network/FormData.cpp:
        (WebCore::FormData::FormData):
        * platform/network/FormData.h:
        * platform/network/ResourceHandle.h:
        * platform/network/ResourceHandleClient.h:
        * 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:
        * rendering/SVGCharacterLayoutInfo.h:
        (WebCore::SVGCharOnPath::SVGCharOnPath):
        * storage/SQLResultSetRowList.h:
        * xml/DOMParser.h:
        * xml/XMLHttpRequest.h:
        * xml/XMLSerializer.h:
        * xml/XPathEvaluator.h:
        * xml/XPathExpression.h:
        * xml/XPathNSResolver.h:
        * xml/XPathResult.h:
        * xml/XPathValue.h:
        * xml/XSLTProcessor.h:

WebKit/mac:

        Reviewed by Anders Carlsson.
        
        Renamed Shared to RefCounted.

        * ForwardingHeaders/wtf/RefCounted.h: Copied from WebKit/mac/ForwardingHeaders/wtf/Shared.h.
        * ForwardingHeaders/wtf/Shared.h: Removed.
        * WebCoreSupport/WebContextMenuClient.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27776 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 779397d4
......@@ -55,7 +55,7 @@ struct StaticFunctionEntry {
JSPropertyAttributes attributes;
};
struct OpaqueJSClass : public Shared<OpaqueJSClass> {
struct OpaqueJSClass : public RefCounted<OpaqueJSClass> {
static OpaqueJSClass* create(const JSClassDefinition*);
static OpaqueJSClass* createNoAutomaticPrototype(const JSClassDefinition*);
~OpaqueJSClass();
......
2007-11-13 Geoffrey Garen <ggaren@apple.com>
Reviewed by Anders Carlsson.
Renamed Shared to RefCounted.
* API/JSClassRef.h:
* JavaScriptCore.xcodeproj/project.pbxproj:
* kjs/interpreter.h:
* kjs/regexp.h:
* wtf/RefCounted.h: Copied from JavaScriptCore/wtf/Shared.h.
(WTF::RefCounted::RefCounted):
* wtf/Shared.h: Removed.
2007-11-13 Adam Roben <aroben@apple.com>
Build fix
......
......@@ -38,7 +38,7 @@
/* Begin PBXBuildFile section */
141211310A48794D00480255 /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 932F5BD90822A1C700736975 /* JavaScriptCore.framework */; };
141211340A48795800480255 /* minidom.c in Sources */ = {isa = PBXBuildFile; fileRef = 141211020A48780900480255 /* minidom.c */; };
1419D2010CEA4D0D00FF507A /* Shared.h in Headers */ = {isa = PBXBuildFile; fileRef = 1419D1030CEA472C00FF507A /* Shared.h */; settings = {ATTRIBUTES = (Private, ); }; };
1419D32D0CEA7CDE00FF507A /* RefCounted.h in Headers */ = {isa = PBXBuildFile; fileRef = 1419D32C0CEA7CDE00FF507A /* RefCounted.h */; settings = {ATTRIBUTES = (Private, ); }; };
1421359B0A677F4F00A8195E /* JSBase.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1421359A0A677F4F00A8195E /* JSBase.cpp */; };
142711390A460BBB0080EEEA /* JSBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 142711380A460BBB0080EEEA /* JSBase.h */; settings = {ATTRIBUTES = (Public, ); }; };
143A97E60A4A06E200456B66 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6560A4CF04B3B3E7008AE952 /* CoreFoundation.framework */; };
......@@ -393,7 +393,7 @@
141211020A48780900480255 /* minidom.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = minidom.c; sourceTree = "<group>"; };
1412110D0A48788700480255 /* minidom.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = minidom.js; sourceTree = "<group>"; };
141211200A48793C00480255 /* minidom */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = minidom; sourceTree = BUILT_PRODUCTS_DIR; };
1419D1030CEA472C00FF507A /* Shared.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Shared.h; sourceTree = "<group>"; };
1419D32C0CEA7CDE00FF507A /* RefCounted.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RefCounted.h; sourceTree = "<group>"; };
1421359A0A677F4F00A8195E /* JSBase.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSBase.cpp; sourceTree = "<group>"; };
142711380A460BBB0080EEEA /* JSBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JSBase.h; path = ../API/JSBase.h; sourceTree = "<group>"; };
1440051F0A531D3B0005F061 /* Node.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Node.h; sourceTree = "<group>"; };
......@@ -855,15 +855,13 @@
isa = PBXGroup;
children = (
E195678D09E7CF1200B89D13 /* unicode */,
65E217B808E7EECC0023E5F6 /* Assertions.cpp */,
65E217B908E7EECC0023E5F6 /* FastMalloc.cpp */,
65DFC92D08EA173A00F7300B /* HashTable.cpp */,
93AA4F770957251F0084B3A7 /* AlwaysInline.h */,
1482B78A0A4305AB00517CFC /* APICast.h */,
938772E5038BFE19008635CE /* array_instance.h */,
F692A84E0255597D01FF60F7 /* array_object.h */,
65B1749909D0FEB700820339 /* array_object.lut.h */,
938C4F690CA06BC700D9310A /* ASCIICType.h */,
65E217B808E7EECC0023E5F6 /* Assertions.cpp */,
65E217B708E7EECC0023E5F6 /* Assertions.h */,
704FD35305697E6D003DBED9 /* bool_object.h */,
5182A53B06012C3000CBD2F2 /* c_class.h */,
......@@ -885,6 +883,7 @@
651F6413039D5B5F0078395C /* dtoa.h */,
F692A85B0255597D01FF60F7 /* error_object.h */,
14BD53F30A3E12D800BAF59C /* ExecState.h */,
65E217B908E7EECC0023E5F6 /* FastMalloc.cpp */,
65E217BA08E7EECC0023E5F6 /* FastMalloc.h */,
935AF46909E9D9DB00ACD1D8 /* Forward.h */,
F692A85F0255597D01FF60F7 /* function.h */,
......@@ -896,6 +895,7 @@
652246A40C8D7A0E007BDAF7 /* HashIterators.h */,
65DFC92B08EA173A00F7300B /* HashMap.h */,
65DFC92C08EA173A00F7300B /* HashSet.h */,
65DFC92D08EA173A00F7300B /* HashTable.cpp */,
65DFC92E08EA173A00F7300B /* HashTable.h */,
65DFC92F08EA173A00F7300B /* HashTraits.h */,
933A349A038AE7C6008635CE /* identifier.h */,
......@@ -965,6 +965,7 @@
65621E6C089E859700760F35 /* property_slot.h */,
65400C100A69BAF200509887 /* PropertyNameArray.h */,
65C02FBB0637462A003E7EE6 /* protect.h */,
1419D32C0CEA7CDE00FF507A /* RefCounted.h */,
65C647B3093EF8D60022C380 /* RefPtr.h */,
F692A87E0255597D01FF60F7 /* regexp.h */,
F692A87C0255597D01FF60F7 /* regexp_object.h */,
......@@ -977,13 +978,13 @@
5114F47C05E4426200D1BBBD /* runtime_root.h */,
14BD534A0A3E0AEA00BAF59C /* SavedBuiltins.h */,
9374D3A7038D9D74008635CE /* scope_chain.h */,
1419D1030CEA472C00FF507A /* Shared.h */,
F692A8800255597D01FF60F7 /* string_object.h */,
65B174F409D100FA00820339 /* string_object.lut.h */,
E11D51750B2E798D0056C188 /* StringExtras.h */,
14A396A60CD2933100B5B4FF /* SymbolTable.h */,
6541BD6E08E80A17002CBEE7 /* TCPageMap.h */,
6541BD6F08E80A17002CBEE7 /* TCSpinLock.h */,
6541BD7008E80A17002CBEE7 /* TCSystemAlloc.cpp */,
6541BD7108E80A17002CBEE7 /* TCSystemAlloc.h */,
F692A8840255597D01FF60F7 /* types.h */,
93E26BFC08B151D400F85226 /* ucpinternal.h */,
......@@ -996,7 +997,6 @@
6592C316098B7DE10003D4F6 /* Vector.h */,
6592C317098B7DE10003D4F6 /* VectorTraits.h */,
1CAF34880A6C421700ABE06E /* WebScriptObject.h */,
6541BD7008E80A17002CBEE7 /* TCSystemAlloc.cpp */,
);
path = wtf;
sourceTree = "<group>";
......@@ -1126,7 +1126,6 @@
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
1419D2010CEA4D0D00FF507A /* Shared.h in Headers */,
1482B78B0A4305AB00517CFC /* APICast.h in Headers */,
938C4F6A0CA06BC700D9310A /* ASCIICType.h in Headers */,
93AA4F780957251F0084B3A7 /* AlwaysInline.h in Headers */,
......@@ -1264,6 +1263,7 @@
932F5B5C0822A1C700736975 /* ustring.h in Headers */,
14ABB36F099C076400E2A24F /* value.h in Headers */,
E1EF79AB0CE97BA60088D500 /* UTF8.h in Headers */,
1419D32D0CEA7CDE00FF507A /* RefCounted.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......
......@@ -28,7 +28,7 @@
#include "protect.h"
#include "types.h"
#include "value.h"
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
namespace KJS {
......@@ -76,7 +76,7 @@ namespace KJS {
* evaluation, and also provides access to built-in properties such as
* " Object" and "Number".
*/
class Interpreter : public Shared<Interpreter> {
class Interpreter : public RefCounted<Interpreter> {
friend class Collector;
public:
/**
......
......@@ -30,7 +30,7 @@
namespace KJS {
class RegExp : public Shared<RegExp> {
class RegExp : public RefCounted<RegExp> {
private:
enum {
Global = 1,
......
......@@ -18,17 +18,17 @@
*
*/
#ifndef Shared_h
#define Shared_h
#ifndef RefCounted_h
#define RefCounted_h
#include <wtf/Assertions.h>
#include <wtf/Noncopyable.h>
namespace WTF {
template<class T> class Shared : Noncopyable {
template<class T> class RefCounted : Noncopyable {
public:
Shared()
RefCounted()
: m_refCount(0)
#ifndef NDEBUG
, m_deletionHasBegun(false)
......@@ -73,6 +73,6 @@ private:
} // namespace WTF
using WTF::Shared;
using WTF::RefCounted;
#endif
#endif // RefCounted_h
2007-11-13 Geoffrey Garen <ggaren@apple.com>
Reviewed by Anders Carlsson.
Renamed Shared to RefCounted.
* ForwardingHeaders/wtf/RefCounted.h: Copied from JavaScriptGlue/ForwardingHeaders/wtf/Shared.h.
* ForwardingHeaders/wtf/Shared.h: Removed.
2007-11-13 Geoffrey Garen <ggaren@apple.com>
Reviewed by Sam Weinig.
......
#include <JavaScriptCore/RefCounted.h>
2007-11-13 Geoffrey Garen <ggaren@apple.com>
Reviewed by Anders Carlsson.
Renamed Shared to RefCounted.
* ForwardingHeaders/wtf/RefCounted.h: Copied from WebCore/ForwardingHeaders/wtf/Shared.h.
* ForwardingHeaders/wtf/Shared.h: Removed.
* bindings/js/JSSVGPODTypeWrapper.h:
* css/CSSFontFace.h:
* css/CSSRuleList.h:
* css/Counter.h:
* css/Pair.h:
* css/Rect.h:
* css/StyleBase.h:
* css/StyleSheetList.h:
* dom/Attribute.h:
* dom/Clipboard.h:
* dom/DOMImplementation.h:
* dom/Event.h:
* dom/EventListener.h:
* dom/NamedNodeMap.h:
* dom/NodeFilter.h:
* dom/NodeFilterCondition.h:
* dom/NodeList.h:
* dom/QualifiedName.h:
* dom/Range.h:
* dom/RangeException.h:
* dom/RegisteredEventListener.h:
* dom/Traversal.h:
* editing/EditCommand.h:
* history/BackForwardList.h:
* history/CachedPage.h:
* history/HistoryItem.cpp:
(WebCore::HistoryItem::HistoryItem):
* history/HistoryItem.h:
* html/CanvasGradient.h:
* html/CanvasPattern.h:
* html/CanvasRenderingContext2D.h:
* html/CanvasStyle.h:
* html/HTMLCollection.h:
* html/MediaError.h:
* html/TimeRanges.h:
* html/VoidCallback.h:
* ksvg2/css/SVGRenderStyle.cpp:
(WebCore::SVGRenderStyle::SVGRenderStyle):
* ksvg2/css/SVGRenderStyle.h:
* ksvg2/css/SVGRenderStyleDefs.cpp:
(StyleFillData::StyleFillData):
(StyleStrokeData::StyleStrokeData):
(StyleStopData::StyleStopData):
(StyleTextData::StyleTextData):
(StyleClipData::StyleClipData):
(StyleMaskData::StyleMaskData):
(StyleMarkerData::StyleMarkerData):
(StyleMiscData::StyleMiscData):
* ksvg2/css/SVGRenderStyleDefs.h:
* ksvg2/svg/SVGAngle.cpp:
(WebCore::SVGAngle::SVGAngle):
* ksvg2/svg/SVGAngle.h:
* ksvg2/svg/SVGAnimatedTemplate.h:
* ksvg2/svg/SVGElementInstanceList.h:
* ksvg2/svg/SVGException.h:
* ksvg2/svg/SVGList.h:
* ksvg2/svg/SVGPathSeg.h:
* ksvg2/svg/SVGPreserveAspectRatio.cpp:
(WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
* ksvg2/svg/SVGPreserveAspectRatio.h:
* ksvg2/svg/SVGRenderingIntent.h:
* ksvg2/svg/SVGTransform.h:
* ksvg2/svg/SVGUnitTypes.h:
* loader/DocumentLoader.h:
* loader/FormState.h:
* loader/ResourceLoader.h:
* loader/TextResourceDecoder.h:
* loader/icon/IconRecord.h:
* page/BarInfo.h:
* page/Console.h:
* page/DOMSelection.h:
* page/DOMWindow.h:
* page/Frame.h:
* page/History.h:
* page/InspectorController.cpp:
* page/Plugin.h:
* page/Screen.h:
* platform/ArrayImpl.h:
* platform/CString.h:
* platform/Cursor.h:
* platform/DeprecatedValueListImpl.cpp:
(WebCore::DeprecatedValueListImpl::Private::Private):
* platform/FileChooser.h:
* platform/FontFallbackList.h:
* platform/FontFamily.cpp:
(WebCore::FontFamily::FontFamily):
* platform/FontFamily.h:
* platform/FontSelector.h:
* platform/GlyphPageTreeNode.h:
* platform/PopupMenu.h:
* platform/RegularExpression.cpp:
* platform/ScrollBar.h:
* platform/SharedBuffer.h:
* platform/StringImpl.h:
* platform/graphics/Icon.h:
* platform/graphics/svg/SVGResource.h:
* platform/network/FormData.cpp:
(WebCore::FormData::FormData):
* platform/network/FormData.h:
* platform/network/ResourceHandle.h:
* platform/network/ResourceHandleClient.h:
* 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:
* rendering/SVGCharacterLayoutInfo.h:
(WebCore::SVGCharOnPath::SVGCharOnPath):
* storage/SQLResultSetRowList.h:
* xml/DOMParser.h:
* xml/XMLHttpRequest.h:
* xml/XMLSerializer.h:
* xml/XPathEvaluator.h:
* xml/XPathExpression.h:
* xml/XPathNSResolver.h:
* xml/XPathResult.h:
* xml/XPathValue.h:
* xml/XSLTProcessor.h:
2007-11-13 Brady Eidson <beidson@apple.com>
Reviewed by Mark Rowe
......
#include <JavaScriptCore/RefCounted.h>
#include <JavaScriptCore/Shared.h>
......@@ -29,7 +29,7 @@
#if ENABLE(SVG)
#include "Frame.h"
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
#include "SVGElement.h"
#include <wtf/Assertions.h>
......@@ -38,7 +38,7 @@
namespace WebCore {
template<typename PODType>
class JSSVGPODTypeWrapper : public Shared<JSSVGPODTypeWrapper<PODType> >
class JSSVGPODTypeWrapper : public RefCounted<JSSVGPODTypeWrapper<PODType> >
{
public:
virtual ~JSSVGPODTypeWrapper() { }
......
......@@ -27,7 +27,7 @@
#define CSSFontFace_h
#include <wtf/Vector.h>
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
namespace WebCore {
......@@ -36,7 +36,7 @@ class CSSFontSelector;
class FontData;
class FontDescription;
class CSSFontFace : public Shared<CSSFontFace> {
class CSSFontFace : public RefCounted<CSSFontFace> {
public:
CSSFontFace(CSSFontSelector*);
~CSSFontFace();
......
......@@ -25,14 +25,14 @@
#define CSSRuleList_h
#include "DeprecatedPtrList.h"
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
namespace WebCore {
class CSSRule;
class StyleList;
class CSSRuleList : public Shared<CSSRuleList> {
class CSSRuleList : public RefCounted<CSSRuleList> {
public:
CSSRuleList();
CSSRuleList(StyleList*, bool omitCharsetRules = false);
......
......@@ -25,12 +25,12 @@
#include "CSSPrimitiveValue.h"
#include "PlatformString.h"
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
#include <wtf/PassRefPtr.h>
namespace WebCore {
class Counter : public Shared<Counter> {
class Counter : public RefCounted<Counter> {
public:
Counter(PassRefPtr<CSSPrimitiveValue> identifier, PassRefPtr<CSSPrimitiveValue> listStyle, PassRefPtr<CSSPrimitiveValue> separator)
: m_identifier(identifier)
......
......@@ -23,7 +23,7 @@
#ifndef Pair_h
#define Pair_h
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
#include "CSSPrimitiveValue.h"
#include <wtf/PassRefPtr.h>
......@@ -33,7 +33,7 @@ namespace WebCore {
// and border-spacing (all of which are space-separated sets of two values). At the moment we are only using it for
// border-radius and background-size, but (FIXME) border-spacing and background-position could be converted over to use
// it (eliminating some extra -webkit- internal properties).
class Pair : public Shared<Pair> {
class Pair : public RefCounted<Pair> {
public:
Pair() : m_first(0), m_second(0) { }
Pair(PassRefPtr<CSSPrimitiveValue> first, PassRefPtr<CSSPrimitiveValue> second)
......
......@@ -22,13 +22,13 @@
#define Rect_h
#include "CSSPrimitiveValue.h"
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
#include <wtf/PassRefPtr.h>
#include <wtf/RefPtr.h>
namespace WebCore {
class Rect : public Shared<Rect> {
class Rect : public RefCounted<Rect> {
public:
virtual ~Rect() { }
......
......@@ -25,7 +25,7 @@
#ifndef StyleBase_h
#define StyleBase_h
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
namespace WebCore {
......@@ -33,7 +33,7 @@ namespace WebCore {
class StyleSheet;
// a style class which has a parent (almost all have)
class StyleBase : public Shared<StyleBase> {
class StyleBase : public RefCounted<StyleBase> {
public:
StyleBase(StyleBase* parent)
: m_parent(parent)
......
......@@ -21,7 +21,7 @@
#ifndef StyleSheetList_h
#define StyleSheetList_h
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
#include "DeprecatedPtrList.h"
namespace WebCore {
......@@ -31,7 +31,7 @@ class HTMLStyleElement;
class StyleSheet;
class String;
class StyleSheetList : public Shared<StyleSheetList> {
class StyleSheetList : public RefCounted<StyleSheetList> {
public:
StyleSheetList(Document*);
~StyleSheetList();
......
......@@ -41,7 +41,7 @@ class NamedAttrMap;
// the actual Attr (Attr) with its value as textchild
// is only allocated on demand by the DOM bindings.
// Any use of Attr inside khtml should be avoided.
class Attribute : public Shared<Attribute> {
class Attribute : public RefCounted<Attribute> {
friend class Attr;
friend class Element;
friend class NamedAttrMap;
......
......@@ -33,7 +33,7 @@
#include "DragImage.h"
#include "IntPoint.h"
#include "Node.h"
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
namespace WebCore {
......@@ -46,7 +46,7 @@ namespace WebCore {
class String;
// State available during IE's events for drag and drop and copy/paste
class Clipboard : public Shared<Clipboard> {
class Clipboard : public RefCounted<Clipboard> {
public:
Clipboard(ClipboardAccessPolicy policy, bool isForDragging);
virtual ~Clipboard() { }
......
......@@ -26,7 +26,7 @@
#ifndef DOMImplementation_h
#define DOMImplementation_h
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
#include <wtf/Forward.h>
namespace WebCore {
......@@ -40,7 +40,7 @@ class String;
typedef int ExceptionCode;
class DOMImplementation : public Shared<DOMImplementation> {
class DOMImplementation : public RefCounted<DOMImplementation> {
public:
virtual ~DOMImplementation();
......
......@@ -28,7 +28,7 @@
#include "AtomicString.h"
#include "EventTarget.h"
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
namespace WebCore {
......@@ -42,7 +42,7 @@ namespace WebCore {
const int EventExceptionMax = 199;
enum EventExceptionCode { UNSPECIFIED_EVENT_TYPE_ERR = EventExceptionOffset };
class Event : public Shared<Event> {
class Event : public RefCounted<Event> {
public:
enum PhaseType {
CAPTURING_PHASE = 1,
......
......@@ -21,13 +21,13 @@
#ifndef EventListener_h
#define EventListener_h
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
namespace WebCore {
class Event;
class EventListener : public Shared<EventListener> {
class EventListener : public RefCounted<EventListener> {
public:
virtual ~EventListener() { }
virtual void handleEvent(Event*, bool isWindowEvent = false) = 0;
......
......@@ -26,7 +26,7 @@
#ifndef NamedNodeMap_h
#define NamedNodeMap_h
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
#include <wtf/PassRefPtr.h>
namespace WebCore {
......@@ -39,7 +39,7 @@ typedef int ExceptionCode;
// Generic NamedNodeMap interface
// Other classes implement this for more specific situations e.g. attributes of an element.
class NamedNodeMap : public Shared<NamedNodeMap> {
class NamedNodeMap : public RefCounted<NamedNodeMap> {
public:
NamedNodeMap() { }
virtual ~NamedNodeMap() { }
......
......@@ -32,7 +32,7 @@
namespace WebCore {
class NodeFilter : public Shared<NodeFilter> {
class NodeFilter : public RefCounted<NodeFilter> {
public:
/**
* The following constants are returned by the acceptNode()
......
......@@ -27,13 +27,13 @@
#ifndef NodeFilterCondition_h
#define NodeFilterCondition_h
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
namespace WebCore {
class Node;
class NodeFilterCondition : public Shared<NodeFilterCondition> {
class NodeFilterCondition : public RefCounted<NodeFilterCondition> {
public:
virtual ~NodeFilterCondition() { }
virtual short acceptNode(Node*) const;
......
......@@ -26,7 +26,7 @@
#ifndef NodeList_h
#define NodeList_h
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>
#include <wtf/Forward.h>
#include <wtf/RefPtr.h>
......@@ -35,7 +35,7 @@ namespace WebCore {
class AtomicString;
class Node;
class NodeList : public Shared<NodeList> {
class NodeList : public RefCounted<NodeList> {
public:
struct Caches {
......
......@@ -28,7 +28,7 @@ namespace WebCore {
class QualifiedName {
public:
class QualifiedNameImpl : public Shared<QualifiedNameImpl> {
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) {}
......
......@@ -27,7 +27,7 @@
#ifndef Range_h
#define Range_h
#include <wtf/Shared.h>
#include <wtf/RefCounted.h>