Changeset 175485 in webkit
- Timestamp:
- Nov 3, 2014 12:17:44 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r175484 r175485 1 2014-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 1 21 2014-11-03 Tim Horton <timothy_horton@apple.com> 2 22 -
trunk/Source/WebCore/rendering/RenderCounter.cpp
r174759 r175485 351 351 RenderCounter::~RenderCounter() 352 352 { 353 view().removeRenderCounter(); 354 353 355 if (m_counterNode) { 354 356 m_counterNode->removeRenderer(this); 355 357 ASSERT(!m_counterNode); 356 358 } 357 }358 359 void RenderCounter::willBeDestroyed()360 {361 view().removeRenderCounter();362 RenderText::willBeDestroyed();363 359 } 364 360 -
trunk/Source/WebCore/rendering/RenderCounter.h
r175084 r175485 43 43 void updateCounter(); 44 44 45 protected:46 virtual void willBeDestroyed() override;47 48 45 private: 49 46 virtual const char* renderName() const override;
Note: See TracChangeset
for help on using the changeset viewer.