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, 2013 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights 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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 resolvers.append(scopedResolver); | 675 resolvers.append(scopedResolver); |
676 } | 676 } |
677 | 677 |
678 void StyleResolver::collectScopedResolversForHostedShadowTrees(const Element* el
ement, Vector<RawPtr<ScopedStyleResolver>, 8>& resolvers) | 678 void StyleResolver::collectScopedResolversForHostedShadowTrees(const Element* el
ement, Vector<RawPtr<ScopedStyleResolver>, 8>& resolvers) |
679 { | 679 { |
680 ElementShadow* shadow = element->shadow(); | 680 ElementShadow* shadow = element->shadow(); |
681 if (!shadow) | 681 if (!shadow) |
682 return; | 682 return; |
683 | 683 |
684 // Adding scoped resolver for active shadow roots for shadow host styling. | 684 // Adding scoped resolver for active shadow roots for shadow host styling. |
685 for (ShadowRoot* shadowRoot = shadow->youngestShadowRoot(); shadowRoot; shad
owRoot = shadowRoot->olderShadowRoot()) { | 685 if (ShadowRoot* shadowRoot = shadow->shadowRoot()) { |
686 if (shadowRoot->numberOfStyles() > 0) { | 686 if (shadowRoot->numberOfStyles() > 0) { |
687 if (ScopedStyleResolver* resolver = shadowRoot->scopedStyleResolver(
)) | 687 if (ScopedStyleResolver* resolver = shadowRoot->scopedStyleResolver(
)) |
688 resolvers.append(resolver); | 688 resolvers.append(resolver); |
689 } | 689 } |
690 } | 690 } |
691 } | 691 } |
692 | 692 |
693 void StyleResolver::styleTreeResolveScopedKeyframesRules(const Element* element,
Vector<RawPtr<ScopedStyleResolver>, 8>& resolvers) | 693 void StyleResolver::styleTreeResolveScopedKeyframesRules(const Element* element,
Vector<RawPtr<ScopedStyleResolver>, 8>& resolvers) |
694 { | 694 { |
695 Document& document = element->document(); | 695 Document& document = element->document(); |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 bool StyleResolver::mediaQueryAffectedByViewportChange() const | 995 bool StyleResolver::mediaQueryAffectedByViewportChange() const |
996 { | 996 { |
997 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) { | 997 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) { |
998 if (m_medium->eval(m_viewportDependentMediaQueryResults[i]->expression()
) != m_viewportDependentMediaQueryResults[i]->result()) | 998 if (m_medium->eval(m_viewportDependentMediaQueryResults[i]->expression()
) != m_viewportDependentMediaQueryResults[i]->result()) |
999 return true; | 999 return true; |
1000 } | 1000 } |
1001 return false; | 1001 return false; |
1002 } | 1002 } |
1003 | 1003 |
1004 } // namespace blink | 1004 } // namespace blink |
OLD | NEW |