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 21 matching lines...) Expand all Loading... |
32 namespace blink { | 32 namespace blink { |
33 | 33 |
34 LayoutQuote::LayoutQuote(PseudoElement& pseudo, QuoteType quote) | 34 LayoutQuote::LayoutQuote(PseudoElement& pseudo, QuoteType quote) |
35 : LayoutInline(nullptr), | 35 : LayoutInline(nullptr), |
36 m_type(quote), | 36 m_type(quote), |
37 m_depth(0), | 37 m_depth(0), |
38 m_next(nullptr), | 38 m_next(nullptr), |
39 m_previous(nullptr), | 39 m_previous(nullptr), |
40 m_owningPseudo(&pseudo), | 40 m_owningPseudo(&pseudo), |
41 m_attached(false) { | 41 m_attached(false) { |
42 setDocumentForAnonymous(&pseudo.document()); | 42 setPseudoForAnonymous(pseudo); |
43 } | 43 } |
44 | 44 |
45 LayoutQuote::~LayoutQuote() { | 45 LayoutQuote::~LayoutQuote() { |
46 ASSERT(!m_attached); | 46 ASSERT(!m_attached); |
47 ASSERT(!m_next && !m_previous); | 47 ASSERT(!m_next && !m_previous); |
48 } | 48 } |
49 | 49 |
50 void LayoutQuote::willBeDestroyed() { | 50 void LayoutQuote::willBeDestroyed() { |
51 detachQuote(); | 51 detachQuote(); |
52 LayoutInline::willBeDestroyed(); | 52 LayoutInline::willBeDestroyed(); |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 if (m_depth) | 393 if (m_depth) |
394 m_depth--; | 394 m_depth--; |
395 break; | 395 break; |
396 } | 396 } |
397 } | 397 } |
398 if (oldDepth != m_depth) | 398 if (oldDepth != m_depth) |
399 updateText(); | 399 updateText(); |
400 } | 400 } |
401 | 401 |
402 } // namespace blink | 402 } // namespace blink |
OLD | NEW |