| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. |
| 5 * All rights reserved. | 5 * All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 virtual ~SameSizeAsLayoutInline() {} | 48 virtual ~SameSizeAsLayoutInline() {} |
| 49 LayoutObjectChildList m_children; | 49 LayoutObjectChildList m_children; |
| 50 LineBoxList m_lineBoxes; | 50 LineBoxList m_lineBoxes; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 static_assert(sizeof(LayoutInline) == sizeof(SameSizeAsLayoutInline), | 53 static_assert(sizeof(LayoutInline) == sizeof(SameSizeAsLayoutInline), |
| 54 "LayoutInline should stay small"); | 54 "LayoutInline should stay small"); |
| 55 | 55 |
| 56 LayoutInline::LayoutInline(Element* element) : LayoutBoxModelObject(element) { | 56 LayoutInline::LayoutInline(Element* element) : LayoutBoxModelObject(element) { |
| 57 setChildrenInline(true); | 57 setChildrenInline(true); |
| 58 m_rareStat.addReason(ReasonLIAll); |
| 58 } | 59 } |
| 59 | 60 |
| 60 void LayoutInline::willBeDestroyed() { | 61 void LayoutInline::willBeDestroyed() { |
| 61 // Make sure to destroy anonymous children first while they are still | 62 // Make sure to destroy anonymous children first while they are still |
| 62 // connected to the rest of the tree, so that they will properly dirty line | 63 // connected to the rest of the tree, so that they will properly dirty line |
| 63 // boxes that they are removed from. Effects that do :before/:after only on | 64 // boxes that they are removed from. Effects that do :before/:after only on |
| 64 // hover could crash otherwise. | 65 // hover could crash otherwise. |
| 65 children()->destroyLeftoverChildren(); | 66 children()->destroyLeftoverChildren(); |
| 66 | 67 |
| 67 // Destroy our continuation before anything other than anonymous children. | 68 // Destroy our continuation before anything other than anonymous children. |
| (...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1534 paintInvalidator.invalidateDisplayItemClient(*box, invalidationReason); | 1535 paintInvalidator.invalidateDisplayItemClient(*box, invalidationReason); |
| 1535 } | 1536 } |
| 1536 | 1537 |
| 1537 // TODO(lunalu): Not to just dump 0, 0 as the x and y here | 1538 // TODO(lunalu): Not to just dump 0, 0 as the x and y here |
| 1538 LayoutRect LayoutInline::debugRect() const { | 1539 LayoutRect LayoutInline::debugRect() const { |
| 1539 IntRect linesBox = enclosingIntRect(linesBoundingBox()); | 1540 IntRect linesBox = enclosingIntRect(linesBoundingBox()); |
| 1540 return LayoutRect(IntRect(0, 0, linesBox.width(), linesBox.height())); | 1541 return LayoutRect(IntRect(0, 0, linesBox.width(), linesBox.height())); |
| 1541 } | 1542 } |
| 1542 | 1543 |
| 1543 } // namespace blink | 1544 } // namespace blink |
| OLD | NEW |