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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 * | 19 * |
20 */ | 20 */ |
21 | 21 |
22 #include "core/layout/LayoutQuote.h" | 22 #include "core/layout/LayoutQuote.h" |
23 | 23 |
24 #include "core/dom/PseudoElement.h" | 24 #include "core/dom/PseudoElement.h" |
25 #include "core/layout/LayoutTextFragment.h" | 25 #include "core/layout/LayoutTextFragment.h" |
26 #include "core/layout/LayoutView.h" | 26 #include "core/layout/LayoutView.h" |
27 #include "wtf/StdLibExtras.h" | 27 #include "platform/wtf/StdLibExtras.h" |
28 #include "wtf/text/AtomicString.h" | 28 #include "platform/wtf/text/AtomicString.h" |
29 | 29 |
30 #include <algorithm> | 30 #include <algorithm> |
31 | 31 |
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 type_(quote), | 36 type_(quote), |
37 depth_(0), | 37 depth_(0), |
38 next_(nullptr), | 38 next_(nullptr), |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 if (depth_) | 395 if (depth_) |
396 depth_--; | 396 depth_--; |
397 break; | 397 break; |
398 } | 398 } |
399 } | 399 } |
400 if (old_depth != depth_) | 400 if (old_depth != depth_) |
401 UpdateText(); | 401 UpdateText(); |
402 } | 402 } |
403 | 403 |
404 } // namespace blink | 404 } // namespace blink |
OLD | NEW |