Changeset 175528 in webkit
- Timestamp:
- Nov 4, 2014, 2:05:41 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
rendering/RenderQuote.cpp (modified) (1 diff)
-
rendering/RenderQuote.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r175527 r175528 1 2014-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 1 18 2014-11-04 Csaba Osztrogonác <ossy@webkit.org> 2 19 -
trunk/Source/WebCore/rendering/RenderQuote.cpp
r174603 r175528 44 44 RenderQuote::~RenderQuote() 45 45 { 46 detachQuote(); 47 46 48 ASSERT(!m_isAttached); 47 49 ASSERT(!m_next); 48 50 ASSERT(!m_previous); 49 }50 51 void RenderQuote::willBeDestroyed()52 {53 detachQuote();54 RenderInline::willBeDestroyed();55 51 } 56 52 -
trunk/Source/WebCore/rendering/RenderQuote.h
r175084 r175528 38 38 void detachQuote(); 39 39 40 virtual void willBeDestroyed() override;41 40 virtual const char* renderName() const override { return "RenderQuote"; } 42 41 virtual bool isQuote() const override { return true; }
Note:
See TracChangeset
for help on using the changeset viewer.