Changeset 147751 in webkit


Ignore:
Timestamp:
Apr 5, 2013 9:13:06 AM (11 years ago)
Author:
allan.jensen@digia.com
Message:

Fix GCC with C++11 build
https://bugs.webkit.org/show_bug.cgi?id=111579

Reviewed by Anders Carlsson.

If the destructor is private, MemoryInstrumentation can not create an inherited class.

  • css/PropertySetCSSStyleDeclaration.h:

(StyleRuleCSSStyleDeclaration):

  • dom/ShadowRoot.h:

(ShadowRoot):

  • loader/SubresourceLoader.h:

(SubresourceLoader):

  • platform/Timer.h:
Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r147750 r147751  
     12013-04-05  Allan Sandfeld Jensen  <allan.jensen@digia.com>
     2
     3        Fix GCC with C++11 build
     4        https://bugs.webkit.org/show_bug.cgi?id=111579
     5
     6        Reviewed by Anders Carlsson.
     7
     8        If the destructor is private, MemoryInstrumentation can not create an inherited class.
     9
     10        * css/PropertySetCSSStyleDeclaration.h:
     11        (StyleRuleCSSStyleDeclaration):
     12        * dom/ShadowRoot.h:
     13        (ShadowRoot):
     14        * loader/SubresourceLoader.h:
     15        (SubresourceLoader):
     16        * platform/Timer.h:
     17
    1182013-03-28  Allan Sandfeld Jensen  <allan.jensen@digia.com>
    219
  • trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.h

    r143926 r147751  
    9191        return adoptRef(new StyleRuleCSSStyleDeclaration(propertySet, parentRule));
    9292    }
     93    virtual ~StyleRuleCSSStyleDeclaration();
    9394
    9495    void clearParentRule() { m_parentRule = 0; }
     
    103104private:
    104105    StyleRuleCSSStyleDeclaration(StylePropertySet*, CSSRule*);
    105     virtual ~StyleRuleCSSStyleDeclaration();
    106106
    107107    virtual CSSStyleSheet* parentStyleSheet() const OVERRIDE;
  • trunk/Source/WebCore/dom/ShadowRoot.h

    r144735 r147751  
    5858    }
    5959
     60    virtual ~ShadowRoot();
     61
    6062    void recalcStyle(StyleChange);
    6163
     
    99101private:
    100102    ShadowRoot(Document*, ShadowRootType);
    101     virtual ~ShadowRoot();
    102103
    103104    virtual void dispose() OVERRIDE;
  • trunk/Source/WebCore/loader/SubresourceLoader.h

    r147730 r147751  
    4646    static PassRefPtr<SubresourceLoader> create(Frame*, CachedResource*, const ResourceRequest&, const ResourceLoaderOptions&);
    4747
     48    virtual ~SubresourceLoader();
     49
    4850    void cancelIfNotFinishing();
    4951    virtual bool isSubresourceLoader();
     
    5456private:
    5557    SubresourceLoader(Frame*, CachedResource*, const ResourceLoaderOptions&);
    56     virtual ~SubresourceLoader();
    5758
    5859    virtual bool init(const ResourceRequest&) OVERRIDE;
  • trunk/Source/WebCore/platform/Timer.h

    r142764 r147751  
    123123}
    124124
    125 template <typename TimerFiredClass> class DeferrableOneShotTimer : private TimerBase {
     125template <typename TimerFiredClass> class DeferrableOneShotTimer : protected TimerBase {
    126126public:
    127127    typedef void (TimerFiredClass::*TimerFiredFunction)(DeferrableOneShotTimer*);
Note: See TracChangeset for help on using the changeset viewer.