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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "core/animation/DocumentAnimations.h" | 46 #include "core/animation/DocumentAnimations.h" |
47 #include "core/animation/DocumentTimeline.h" | 47 #include "core/animation/DocumentTimeline.h" |
48 #include "core/animation/css/TransitionTimeline.h" | 48 #include "core/animation/css/TransitionTimeline.h" |
49 #include "core/css/CSSFontSelector.h" | 49 #include "core/css/CSSFontSelector.h" |
50 #include "core/css/CSSStyleDeclaration.h" | 50 #include "core/css/CSSStyleDeclaration.h" |
51 #include "core/css/CSSStyleSheet.h" | 51 #include "core/css/CSSStyleSheet.h" |
52 #include "core/css/MediaQueryMatcher.h" | 52 #include "core/css/MediaQueryMatcher.h" |
53 #include "core/css/StylePropertySet.h" | 53 #include "core/css/StylePropertySet.h" |
54 #include "core/css/StyleSheetContents.h" | 54 #include "core/css/StyleSheetContents.h" |
55 #include "core/css/StyleSheetList.h" | 55 #include "core/css/StyleSheetList.h" |
| 56 #include "core/css/invalidation/StyleInvalidator.h" |
56 #include "core/css/resolver/FontBuilder.h" | 57 #include "core/css/resolver/FontBuilder.h" |
57 #include "core/css/resolver/StyleResolver.h" | 58 #include "core/css/resolver/StyleResolver.h" |
58 #include "core/css/resolver/StyleResolverStats.h" | 59 #include "core/css/resolver/StyleResolverStats.h" |
59 #include "core/dom/AddConsoleMessageTask.h" | 60 #include "core/dom/AddConsoleMessageTask.h" |
60 #include "core/dom/Attr.h" | 61 #include "core/dom/Attr.h" |
61 #include "core/dom/CDATASection.h" | 62 #include "core/dom/CDATASection.h" |
62 #include "core/dom/Comment.h" | 63 #include "core/dom/Comment.h" |
63 #include "core/dom/ContextFeatures.h" | 64 #include "core/dom/ContextFeatures.h" |
64 #include "core/dom/DOMImplementation.h" | 65 #include "core/dom/DOMImplementation.h" |
65 #include "core/dom/DocumentFragment.h" | 66 #include "core/dom/DocumentFragment.h" |
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1584 | 1585 |
1585 void Document::updateStyleInvalidationIfNeeded() | 1586 void Document::updateStyleInvalidationIfNeeded() |
1586 { | 1587 { |
1587 if (!isActive()) | 1588 if (!isActive()) |
1588 return; | 1589 return; |
1589 if (!childNeedsStyleInvalidation()) | 1590 if (!childNeedsStyleInvalidation()) |
1590 return; | 1591 return; |
1591 TRACE_EVENT0("webkit", "Document::computeNeedsStyleRecalcState"); | 1592 TRACE_EVENT0("webkit", "Document::computeNeedsStyleRecalcState"); |
1592 ASSERT(styleResolver()); | 1593 ASSERT(styleResolver()); |
1593 | 1594 |
1594 styleResolver()->ruleFeatureSet().computeStyleInvalidation(*this); | 1595 StyleInvalidator(*this).invalidate(); |
1595 } | 1596 } |
1596 | 1597 |
1597 void Document::updateDistributionForNodeIfNeeded(Node* node) | 1598 void Document::updateDistributionForNodeIfNeeded(Node* node) |
1598 { | 1599 { |
1599 if (node->inDocument()) { | 1600 if (node->inDocument()) { |
1600 updateDistributionIfNeeded(); | 1601 updateDistributionIfNeeded(); |
1601 return; | 1602 return; |
1602 } | 1603 } |
1603 Node* root = node; | 1604 Node* root = node; |
1604 while (Node* host = root->shadowHost()) | 1605 while (Node* host = root->shadowHost()) |
(...skipping 3839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5444 } | 5445 } |
5445 | 5446 |
5446 void Document::invalidateNodeListCaches(const QualifiedName* attrName) | 5447 void Document::invalidateNodeListCaches(const QualifiedName* attrName) |
5447 { | 5448 { |
5448 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); | 5449 HashSet<LiveNodeListBase*>::iterator end = m_listsInvalidatedAtDocument.end(
); |
5449 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) | 5450 for (HashSet<LiveNodeListBase*>::iterator it = m_listsInvalidatedAtDocument.
begin(); it != end; ++it) |
5450 (*it)->invalidateCache(attrName); | 5451 (*it)->invalidateCache(attrName); |
5451 } | 5452 } |
5452 | 5453 |
5453 } // namespace WebCore | 5454 } // namespace WebCore |
OLD | NEW |