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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 setConsumesSubtreeChangeNotification(); | 46 setConsumesSubtreeChangeNotification(); |
47 registerSubtreeChangeListenerOnDescendants(true); | 47 registerSubtreeChangeListenerOnDescendants(true); |
48 } | 48 } |
49 | 49 |
50 void LayoutListItem::styleDidChange(StyleDifference diff, | 50 void LayoutListItem::styleDidChange(StyleDifference diff, |
51 const ComputedStyle* oldStyle) { | 51 const ComputedStyle* oldStyle) { |
52 LayoutBlockFlow::styleDidChange(diff, oldStyle); | 52 LayoutBlockFlow::styleDidChange(diff, oldStyle); |
53 | 53 |
54 StyleImage* currentImage = style()->listStyleImage(); | 54 StyleImage* currentImage = style()->listStyleImage(); |
55 if (style()->listStyleType() != EListStyleType::None || | 55 if (style()->listStyleType() != EListStyleType::kNone || |
56 (currentImage && !currentImage->errorOccurred())) { | 56 (currentImage && !currentImage->errorOccurred())) { |
57 if (!m_marker) | 57 if (!m_marker) |
58 m_marker = LayoutListMarker::createAnonymous(this); | 58 m_marker = LayoutListMarker::createAnonymous(this); |
59 m_marker->listItemStyleDidChange(); | 59 m_marker->listItemStyleDidChange(); |
60 notifyOfSubtreeChange(); | 60 notifyOfSubtreeChange(); |
61 } else if (m_marker) { | 61 } else if (m_marker) { |
62 m_marker->destroy(); | 62 m_marker->destroy(); |
63 m_marker = nullptr; | 63 m_marker = nullptr; |
64 } | 64 } |
65 | 65 |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 // assume that all the following ones have too. | 540 // assume that all the following ones have too. |
541 // This gives us the opportunity to stop here and avoid | 541 // This gives us the opportunity to stop here and avoid |
542 // marking the same nodes again. | 542 // marking the same nodes again. |
543 break; | 543 break; |
544 } | 544 } |
545 item->updateValue(); | 545 item->updateValue(); |
546 } | 546 } |
547 } | 547 } |
548 | 548 |
549 } // namespace blink | 549 } // namespace blink |
OLD | NEW |