| 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, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) | 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) |
| 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 29 matching lines...) Expand all Loading... |
| 40 LayoutListItem::LayoutListItem(Element* element) | 40 LayoutListItem::LayoutListItem(Element* element) |
| 41 : LayoutBlockFlow(element) | 41 : LayoutBlockFlow(element) |
| 42 , m_marker(nullptr) | 42 , m_marker(nullptr) |
| 43 , m_hasExplicitValue(false) | 43 , m_hasExplicitValue(false) |
| 44 , m_isValueUpToDate(false) | 44 , m_isValueUpToDate(false) |
| 45 , m_notInList(false) | 45 , m_notInList(false) |
| 46 { | 46 { |
| 47 setInline(false); | 47 setInline(false); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void LayoutListItem::styleDidChange(StyleDifference diff, const LayoutStyle* old
Style) | 50 void LayoutListItem::styleDidChange(StyleDifference diff, const ComputedStyle* o
ldStyle) |
| 51 { | 51 { |
| 52 LayoutBlockFlow::styleDidChange(diff, oldStyle); | 52 LayoutBlockFlow::styleDidChange(diff, oldStyle); |
| 53 | 53 |
| 54 if (style()->listStyleType() != NoneListStyle | 54 if (style()->listStyleType() != NoneListStyle |
| 55 || (style()->listStyleImage() && !style()->listStyleImage()->errorOccurr
ed())) { | 55 || (style()->listStyleImage() && !style()->listStyleImage()->errorOccurr
ed())) { |
| 56 if (!m_marker) | 56 if (!m_marker) |
| 57 m_marker = LayoutListMarker::createAnonymous(this); | 57 m_marker = LayoutListMarker::createAnonymous(this); |
| 58 m_marker->listItemStyleDidChange(); | 58 m_marker->listItemStyleDidChange(); |
| 59 } else if (m_marker) { | 59 } else if (m_marker) { |
| 60 m_marker->destroy(); | 60 m_marker->destroy(); |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 // assume that all the following ones have too. | 528 // assume that all the following ones have too. |
| 529 // This gives us the opportunity to stop here and avoid | 529 // This gives us the opportunity to stop here and avoid |
| 530 // marking the same nodes again. | 530 // marking the same nodes again. |
| 531 break; | 531 break; |
| 532 } | 532 } |
| 533 item->updateValue(); | 533 item->updateValue(); |
| 534 } | 534 } |
| 535 } | 535 } |
| 536 | 536 |
| 537 } // namespace blink | 537 } // namespace blink |
| OLD | NEW |