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

Changeset 175946 in webkit


Ignore:
Timestamp:
Nov 11, 2014, 9:33:43 AM (12 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r175528 - 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:
releases/WebKitGTK/webkit-2.6/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.6/Source/WebCore/ChangeLog

    r175945 r175946  
     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-03  Philippe Normand  <pnormand@igalia.com>
    219
  • releases/WebKitGTK/webkit-2.6/Source/WebCore/rendering/RenderQuote.cpp

    r170774 r175946  
    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
  • releases/WebKitGTK/webkit-2.6/Source/WebCore/rendering/RenderQuote.h

    r162972 r175946  
    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.