OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Dirk Mueller (mueller@kde.org) | 3 * (C) 2000 Dirk Mueller (mueller@kde.org) |
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 unsigned variables[1]; | 64 unsigned variables[1]; |
65 unsigned short variables2[2]; | 65 unsigned short variables2[2]; |
66 void* pointers[2]; | 66 void* pointers[2]; |
67 }; | 67 }; |
68 | 68 |
69 COMPILE_ASSERT(sizeof(InlineTextBox) == sizeof(SameSizeAsInlineTextBox), InlineT
extBox_should_stay_small); | 69 COMPILE_ASSERT(sizeof(InlineTextBox) == sizeof(SameSizeAsInlineTextBox), InlineT
extBox_should_stay_small); |
70 | 70 |
71 typedef WTF::HashMap<const InlineTextBox*, LayoutRect> InlineTextBoxOverflowMap; | 71 typedef WTF::HashMap<const InlineTextBox*, LayoutRect> InlineTextBoxOverflowMap; |
72 static InlineTextBoxOverflowMap* gTextBoxesWithOverflow; | 72 static InlineTextBoxOverflowMap* gTextBoxesWithOverflow; |
73 | 73 |
74 | |
75 void InlineTextBox::destroy() | 74 void InlineTextBox::destroy() |
76 { | 75 { |
77 AbstractInlineTextBox::willDestroy(this); | 76 AbstractInlineTextBox::willDestroy(this); |
78 | 77 |
79 if (!knownToHaveNoOverflow() && gTextBoxesWithOverflow) | 78 if (!knownToHaveNoOverflow() && gTextBoxesWithOverflow) |
80 gTextBoxesWithOverflow->remove(this); | 79 gTextBoxesWithOverflow->remove(this); |
81 InlineTextBoxPainter::removeFromTextBlobCache(*this); | 80 InlineTextBoxPainter::removeFromTextBlobCache(*this); |
82 InlineBox::destroy(); | 81 InlineBox::destroy(); |
83 } | 82 } |
84 | 83 |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 printedCharacters = fprintf(stderr, "\t%s %p", obj.renderName(), &obj); | 554 printedCharacters = fprintf(stderr, "\t%s %p", obj.renderName(), &obj); |
556 const int rendererCharacterOffset = 24; | 555 const int rendererCharacterOffset = 24; |
557 for (; printedCharacters < rendererCharacterOffset; printedCharacters++) | 556 for (; printedCharacters < rendererCharacterOffset; printedCharacters++) |
558 fputc(' ', stderr); | 557 fputc(' ', stderr); |
559 fprintf(stderr, "(%d,%d) \"%s\"\n", start(), start() + len(), value.utf8().d
ata()); | 558 fprintf(stderr, "(%d,%d) \"%s\"\n", start(), start() + len(), value.utf8().d
ata()); |
560 } | 559 } |
561 | 560 |
562 #endif | 561 #endif |
563 | 562 |
564 } // namespace blink | 563 } // namespace blink |
OLD | NEW |