equal
deleted
inserted
replaced
36 namespace WebCore { |
36 namespace WebCore { |
37 |
37 |
38 typedef WTF::HashMap<const RootInlineBox*, EllipsisBox*> EllipsisBoxMap; |
38 typedef WTF::HashMap<const RootInlineBox*, EllipsisBox*> EllipsisBoxMap; |
39 static EllipsisBoxMap* gEllipsisBoxMap = 0; |
39 static EllipsisBoxMap* gEllipsisBoxMap = 0; |
40 |
40 |
|
41 struct EllipsisBoxCleanup { |
|
42 ~EllipsisBoxCleanup() { |
|
43 if( gEllipsisBoxMap ) { |
|
44 gEllipsisBoxMap->clear(); |
|
45 delete gEllipsisBoxMap; |
|
46 gEllipsisBoxMap = 0; |
|
47 } |
|
48 } |
|
49 }; |
|
50 struct EllipsisBoxCleanup ellipsisCleaner; |
|
51 |
41 void* RootInlineBox::Overflow::operator new(size_t sz, RenderArena* renderArena) throw() |
52 void* RootInlineBox::Overflow::operator new(size_t sz, RenderArena* renderArena) throw() |
42 { |
53 { |
43 return renderArena->allocate(sz); |
54 return renderArena->allocate(sz); |
44 } |
55 } |
45 |
56 |