Changeset 151164 in webkit
- Timestamp:
- Jun 4, 2013 3:26:51 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r151160 r151164 1 2013-06-04 Kangil Han <kangil.han@samsung.com> 2 3 Use ASSERT_DISABLED option for assertion purpose code in InlineBox 4 https://bugs.webkit.org/show_bug.cgi?id=117146 5 6 Reviewed by Alexey Proskuryakov. 7 8 We can distinguish assertion code with debug purpose by using ASSERT_DISABLED option. 9 10 * rendering/InlineBox.cpp: 11 (WebCore::InlineBox::~InlineBox): 12 (WebCore::InlineBox::destroy): 13 (WebCore::InlineBox::operator delete): 14 * rendering/InlineBox.h: 15 (WebCore::InlineBox::InlineBox): 16 1 17 2013-06-04 Kent Tamura <tkent@chromium.org> 2 18 -
trunk/Source/WebCore/rendering/InlineBox.cpp
r148921 r151164 45 45 float c; 46 46 uint32_t d : 32; 47 #if ndef NDEBUG47 #if !ASSERT_DISABLED 48 48 bool f; 49 49 #endif … … 52 52 COMPILE_ASSERT(sizeof(InlineBox) == sizeof(SameSizeAsInlineBox), InlineBox_size_guard); 53 53 54 #if ndef NDEBUG54 #if !ASSERT_DISABLED 55 55 static bool inInlineBoxDetach; 56 56 #endif 57 57 58 #ifndef NDEBUG 59 58 #if !ASSERT_DISABLED 60 59 InlineBox::~InlineBox() 61 60 { … … 63 62 m_parent->setHasBadChildList(); 64 63 } 65 66 64 #endif 67 65 … … 74 72 void InlineBox::destroy(RenderArena* renderArena) 75 73 { 76 #if ndef NDEBUG74 #if !ASSERT_DISABLED 77 75 inInlineBoxDetach = true; 78 76 #endif 79 77 delete this; 80 #if ndef NDEBUG78 #if !ASSERT_DISABLED 81 79 inInlineBoxDetach = false; 82 80 #endif … … 94 92 { 95 93 ASSERT(inInlineBoxDetach); 96 97 94 // Stash size where destroy can find it. 98 95 *(size_t *)ptr = sz; -
trunk/Source/WebCore/rendering/InlineBox.h
r148921 r151164 41 41 , m_renderer(obj) 42 42 , m_logicalWidth(0) 43 #if ndef NDEBUG43 #if !ASSERT_DISABLED 44 44 , m_hasBadParent(false) 45 45 #endif … … 56 56 , m_logicalWidth(logicalWidth) 57 57 , m_bitfields(firstLine, constructed, dirty, extracted, isHorizontal) 58 #if ndef NDEBUG58 #if !ASSERT_DISABLED 59 59 , m_hasBadParent(false) 60 60 #endif … … 273 273 virtual float placeEllipsisBox(bool ltr, float visibleLeftEdge, float visibleRightEdge, float ellipsisWidth, float &truncatedWidth, bool&); 274 274 275 #if ndef NDEBUG275 #if !ASSERT_DISABLED 276 276 void setHasBadParent(); 277 277 #endif … … 416 416 bool extracted() const { return m_bitfields.extracted(); } 417 417 418 #if ndef NDEBUG418 #if !ASSERT_DISABLED 419 419 private: 420 420 bool m_hasBadParent; … … 422 422 }; 423 423 424 #if def NDEBUG424 #if ASSERT_DISABLED 425 425 inline InlineBox::~InlineBox() 426 426 { … … 428 428 #endif 429 429 430 #if ndef NDEBUG430 #if !ASSERT_DISABLED 431 431 inline void InlineBox::setHasBadParent() 432 432 {
Note: See TracChangeset
for help on using the changeset viewer.