| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // FIXME: We should allow pseudo elements, but we need to change how the
y hook | 109 // FIXME: We should allow pseudo elements, but we need to change how the
y hook |
| 110 // into recalcStyle by moving them to recalcOwnStyle instead of recalcCh
ildStyle. | 110 // into recalcStyle by moving them to recalcOwnStyle instead of recalcCh
ildStyle. |
| 111 | 111 |
| 112 // FIXME: next up: Tag and Id. | 112 // FIXME: next up: Tag and Id. |
| 113 if (component->m_match == CSSSelector::Class) { | 113 if (component->m_match == CSSSelector::Class) { |
| 114 if (!foundDescendantRelation) | 114 if (!foundDescendantRelation) |
| 115 foundIdent = true; | 115 foundIdent = true; |
| 116 } else if (!isSkippableComponentForInvalidation(*component)) { | 116 } else if (!isSkippableComponentForInvalidation(*component)) { |
| 117 return false; | 117 return false; |
| 118 } | 118 } |
| 119 // FIXME: We can probably support ChildTree and DescendantTree. | 119 // FIXME: We can probably support ShadowAll and ShadowDeep. |
| 120 switch (component->relation()) { | 120 switch (component->relation()) { |
| 121 case CSSSelector::Descendant: | 121 case CSSSelector::Descendant: |
| 122 case CSSSelector::Child: | 122 case CSSSelector::Child: |
| 123 foundDescendantRelation = true; | 123 foundDescendantRelation = true; |
| 124 // Fall through! | 124 // Fall through! |
| 125 case CSSSelector::SubSelector: | 125 case CSSSelector::SubSelector: |
| 126 continue; | 126 continue; |
| 127 default: | 127 default: |
| 128 return false; | 128 return false; |
| 129 } | 129 } |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 } | 438 } |
| 439 | 439 |
| 440 invalidationClasses.remove(oldSize, invalidationClasses.size() - oldSize); | 440 invalidationClasses.remove(oldSize, invalidationClasses.size() - oldSize); |
| 441 element->clearChildNeedsStyleInvalidation(); | 441 element->clearChildNeedsStyleInvalidation(); |
| 442 element->clearNeedsStyleInvalidation(); | 442 element->clearNeedsStyleInvalidation(); |
| 443 | 443 |
| 444 return thisElementNeedsStyleRecalc; | 444 return thisElementNeedsStyleRecalc; |
| 445 } | 445 } |
| 446 | 446 |
| 447 } // namespace WebCore | 447 } // namespace WebCore |
| OLD | NEW |