| 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 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
| 6 * All rights reserved. | 6 * All rights reserved. |
| 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 break; | 217 break; |
| 218 } | 218 } |
| 219 } | 219 } |
| 220 | 220 |
| 221 void FirstLetterPseudoElement::setRemainingTextLayoutObject( | 221 void FirstLetterPseudoElement::setRemainingTextLayoutObject( |
| 222 LayoutTextFragment* fragment) { | 222 LayoutTextFragment* fragment) { |
| 223 // The text fragment we get our content from is being destroyed. We need | 223 // The text fragment we get our content from is being destroyed. We need |
| 224 // to tell our parent element to recalcStyle so we can get cleaned up | 224 // to tell our parent element to recalcStyle so we can get cleaned up |
| 225 // as well. | 225 // as well. |
| 226 if (!fragment) | 226 if (!fragment) |
| 227 setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::create( | 227 setNeedsStyleRecalc( |
| 228 StyleChangeReason::PseudoClass)); | 228 LocalStyleChange, |
| 229 StyleChangeReasonForTracing::create(StyleChangeReason::PseudoClass)); |
| 229 | 230 |
| 230 m_remainingTextLayoutObject = fragment; | 231 m_remainingTextLayoutObject = fragment; |
| 231 } | 232 } |
| 232 | 233 |
| 233 void FirstLetterPseudoElement::attachLayoutTree(const AttachContext& context) { | 234 void FirstLetterPseudoElement::attachLayoutTree(const AttachContext& context) { |
| 234 PseudoElement::attachLayoutTree(context); | 235 PseudoElement::attachLayoutTree(context); |
| 235 attachFirstLetterTextLayoutObjects(); | 236 attachFirstLetterTextLayoutObjects(); |
| 236 } | 237 } |
| 237 | 238 |
| 238 void FirstLetterPseudoElement::detachLayoutTree(const AttachContext& context) { | 239 void FirstLetterPseudoElement::detachLayoutTree(const AttachContext& context) { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 | 343 |
| 343 // We only manage the style for the generated content items. | 344 // We only manage the style for the generated content items. |
| 344 if (!child->isText() && !child->isQuote() && !child->isImage()) | 345 if (!child->isText() && !child->isQuote() && !child->isImage()) |
| 345 continue; | 346 continue; |
| 346 | 347 |
| 347 child->setPseudoStyle(layoutObject->mutableStyle()); | 348 child->setPseudoStyle(layoutObject->mutableStyle()); |
| 348 } | 349 } |
| 349 } | 350 } |
| 350 | 351 |
| 351 } // namespace blink | 352 } // namespace blink |
| OLD | NEW |