OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Nokia Inc. All rights reserved. | 2 * Copyright (C) 2011 Nokia Inc. All rights reserved. |
3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 int m_depth; | 76 int m_depth; |
77 | 77 |
78 // The next and previous LayoutQuote in layout tree order. | 78 // The next and previous LayoutQuote in layout tree order. |
79 // LayoutQuotes are linked together by this doubly-linked list. | 79 // LayoutQuotes are linked together by this doubly-linked list. |
80 // Those are used to compute |m_depth| in an efficient manner. | 80 // Those are used to compute |m_depth| in an efficient manner. |
81 LayoutQuote* m_next; | 81 LayoutQuote* m_next; |
82 LayoutQuote* m_previous; | 82 LayoutQuote* m_previous; |
83 | 83 |
84 // The pseudo-element that owns us. | 84 // The pseudo-element that owns us. |
85 // | 85 // |
| 86 // TODO(ecobos@igalia.com): This is also in m_node, should we make that |
| 87 // protected instead of private? Seems easy to misuse. |
| 88 // |
86 // Lifetime is the same as LayoutObject::m_node, so this is safe. | 89 // Lifetime is the same as LayoutObject::m_node, so this is safe. |
87 UntracedMember<PseudoElement> m_owningPseudo; | 90 UntracedMember<PseudoElement> m_owningPseudo; |
88 | 91 |
89 // This tracks whether this LayoutQuote was inserted into the layout tree | 92 // This tracks whether this LayoutQuote was inserted into the layout tree |
90 // and its position in the linked list is correct (m_next and m_previous). | 93 // and its position in the linked list is correct (m_next and m_previous). |
91 // It's used for both performance (avoid unneeded tree walks to find the | 94 // It's used for both performance (avoid unneeded tree walks to find the |
92 // previous and next quotes) and conformance (|m_depth| relies on an | 95 // previous and next quotes) and conformance (|m_depth| relies on an |
93 // up-to-date linked list positions). | 96 // up-to-date linked list positions). |
94 bool m_attached; | 97 bool m_attached; |
95 | 98 |
96 // Cached text for this quote. | 99 // Cached text for this quote. |
97 String m_text; | 100 String m_text; |
98 }; | 101 }; |
99 | 102 |
100 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutQuote, isQuote()); | 103 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutQuote, isQuote()); |
101 | 104 |
102 } // namespace blink | 105 } // namespace blink |
103 | 106 |
104 #endif // LayoutQuote_h | 107 #endif // LayoutQuote_h |
OLD | NEW |