⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 175528 in webkit


Ignore:
Timestamp:
Nov 4, 2014, 2:05:41 AM (12 years ago)
Author:
akling@apple.com
Message:

RenderQuote shouldn't need a pre-destructor hook.
<https://webkit.org/b/138352>

Reviewed by Antti Koivisto.

The willBeDestroyed() hook in RenderQuote came from the time when it was
potential unsafe to access the RenderView from a renderer destructor.

Move the code to the plain ol' destructor instead.

  • rendering/RenderQuote.cpp:

(WebCore::RenderQuote::~RenderQuote):
(WebCore::RenderQuote::willBeDestroyed): Deleted.

  • rendering/RenderQuote.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r175527 r175528  
     12014-11-04  Andreas Kling  <akling@apple.com>
     2
     3        RenderQuote shouldn't need a pre-destructor hook.
     4        <https://webkit.org/b/138352>
     5
     6        Reviewed by Antti Koivisto.
     7
     8        The willBeDestroyed() hook in RenderQuote came from the time when it was
     9        potential unsafe to access the RenderView from a renderer destructor.
     10
     11        Move the code to the plain ol' destructor instead.
     12
     13        * rendering/RenderQuote.cpp:
     14        (WebCore::RenderQuote::~RenderQuote):
     15        (WebCore::RenderQuote::willBeDestroyed): Deleted.
     16        * rendering/RenderQuote.h:
     17
    1182014-11-04  Csaba Osztrogonác  <ossy@webkit.org>
    219
  • trunk/Source/WebCore/rendering/RenderQuote.cpp

    r174603 r175528  
    4444RenderQuote::~RenderQuote()
    4545{
     46    detachQuote();
     47
    4648    ASSERT(!m_isAttached);
    4749    ASSERT(!m_next);
    4850    ASSERT(!m_previous);
    49 }
    50 
    51 void RenderQuote::willBeDestroyed()
    52 {
    53     detachQuote();
    54     RenderInline::willBeDestroyed();
    5551}
    5652
  • trunk/Source/WebCore/rendering/RenderQuote.h

    r175084 r175528  
    3838    void detachQuote();
    3939
    40     virtual void willBeDestroyed() override;
    4140    virtual const char* renderName() const override { return "RenderQuote"; }
    4241    virtual bool isQuote() const override { return true; }
Note: See TracChangeset for help on using the changeset viewer.