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) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1477 if (!newPseudoStyle) | 1477 if (!newPseudoStyle) |
1478 return true; | 1478 return true; |
1479 if (*newPseudoStyle != *pseudoStyleCache->at(i)) { | 1479 if (*newPseudoStyle != *pseudoStyleCache->at(i)) { |
1480 if (pseudoId < FIRST_INTERNAL_PSEUDOID) | 1480 if (pseudoId < FIRST_INTERNAL_PSEUDOID) |
1481 newStyle->setHasPseudoStyle(pseudoId); | 1481 newStyle->setHasPseudoStyle(pseudoId); |
1482 newStyle->addCachedPseudoStyle(newPseudoStyle); | 1482 newStyle->addCachedPseudoStyle(newPseudoStyle); |
1483 if (pseudoId == FIRST_LINE || pseudoId == FIRST_LINE_INHERITED) { | 1483 if (pseudoId == FIRST_LINE || pseudoId == FIRST_LINE_INHERITED) { |
1484 // FIXME: We should do an actual diff to determine whether a rep
aint vs. layout | 1484 // FIXME: We should do an actual diff to determine whether a rep
aint vs. layout |
1485 // is needed, but for now just assume a layout will be required.
The diff code | 1485 // is needed, but for now just assume a layout will be required.
The diff code |
1486 // in RenderObject::setStyle would need to be factored out so th
at it could be reused. | 1486 // in RenderObject::setStyle would need to be factored out so th
at it could be reused. |
1487 renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullRepaint(); | 1487 renderer()->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalid
ation(); |
1488 } | 1488 } |
1489 return true; | 1489 return true; |
1490 } | 1490 } |
1491 } | 1491 } |
1492 return false; | 1492 return false; |
1493 } | 1493 } |
1494 | 1494 |
1495 PassRefPtr<RenderStyle> Element::styleForRenderer() | 1495 PassRefPtr<RenderStyle> Element::styleForRenderer() |
1496 { | 1496 { |
1497 ASSERT(document().inStyleRecalc()); | 1497 ASSERT(document().inStyleRecalc()); |
(...skipping 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3321 | 3321 |
3322 void Element::trace(Visitor* visitor) | 3322 void Element::trace(Visitor* visitor) |
3323 { | 3323 { |
3324 if (hasRareData()) | 3324 if (hasRareData()) |
3325 visitor->trace(elementRareData()); | 3325 visitor->trace(elementRareData()); |
3326 | 3326 |
3327 ContainerNode::trace(visitor); | 3327 ContainerNode::trace(visitor); |
3328 } | 3328 } |
3329 | 3329 |
3330 } // namespace WebCore | 3330 } // namespace WebCore |
OLD | NEW |