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

Changeset 175943 in webkit


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

Merge r175485 - RenderCounter shouldn't need a pre-destructor hook.
<https://webkit.org/b/138316>

Reviewed by Antti Koivisto.

RenderCounter will automatically register/unregister itself with
the RenderView when constructed/destroyed.

It was using a willBeDestroyed() hook because it used to be that you
couldn't get to the RenderView in the destructor. That's no longer
an issue as Document promises that RenderView is the last render tree
node to go away.

  • rendering/RenderCounter.cpp:

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

  • rendering/RenderCounter.h:
Location:
releases/WebKitGTK/webkit-2.6/Source/WebCore
Files:
3 edited

Legend:

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

    r175942 r175943  
     12014-11-03  Andreas Kling  <akling@apple.com>
     2
     3        RenderCounter shouldn't need a pre-destructor hook.
     4        <https://webkit.org/b/138316>
     5
     6        Reviewed by Antti Koivisto.
     7
     8        RenderCounter will automatically register/unregister itself with
     9        the RenderView when constructed/destroyed.
     10
     11        It was using a willBeDestroyed() hook because it used to be that you
     12        couldn't get to the RenderView in the destructor. That's no longer
     13        an issue as Document promises that RenderView is the last render tree
     14        node to go away.
     15
     16        * rendering/RenderCounter.cpp:
     17        (WebCore::RenderCounter::~RenderCounter):
     18        (WebCore::RenderCounter::willBeDestroyed): Deleted.
     19        * rendering/RenderCounter.h:
     20
    1212014-11-03  Alexey Proskuryakov  <ap@apple.com>
    222
  • releases/WebKitGTK/webkit-2.6/Source/WebCore/rendering/RenderCounter.cpp

    r172730 r175943  
    351351RenderCounter::~RenderCounter()
    352352{
     353    view().removeRenderCounter();
     354
    353355    if (m_counterNode) {
    354356        m_counterNode->removeRenderer(this);
    355357        ASSERT(!m_counterNode);
    356358    }
    357 }
    358 
    359 void RenderCounter::willBeDestroyed()
    360 {
    361     view().removeRenderCounter();
    362     RenderText::willBeDestroyed();
    363359}
    364360
  • releases/WebKitGTK/webkit-2.6/Source/WebCore/rendering/RenderCounter.h

    r172730 r175943  
    4343    void updateCounter();
    4444
    45 protected:
    46     virtual void willBeDestroyed();
    47 
    4845private:
    4946    virtual const char* renderName() const;
Note: See TracChangeset for help on using the changeset viewer.