| 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 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 | 869 |
| 870 void Element::setNeedsAnimationStyleRecalc() | 870 void Element::setNeedsAnimationStyleRecalc() |
| 871 { | 871 { |
| 872 if (styleChangeType() != NoStyleChange) | 872 if (styleChangeType() != NoStyleChange) |
| 873 return; | 873 return; |
| 874 | 874 |
| 875 setNeedsStyleRecalc(LocalStyleChange); | 875 setNeedsStyleRecalc(LocalStyleChange); |
| 876 setAnimationStyleChange(true); | 876 setAnimationStyleChange(true); |
| 877 } | 877 } |
| 878 | 878 |
| 879 void Element::setCustomElementDefinition(PassRefPtr<CustomElementDefinition> def
inition) | |
| 880 { | |
| 881 ASSERT(!m_customElementDefinition); | |
| 882 m_customElementDefinition = definition; | |
| 883 } | |
| 884 | |
| 885 CustomElementDefinition* Element::customElementDefinition() const | |
| 886 { | |
| 887 return m_customElementDefinition.get(); | |
| 888 } | |
| 889 | |
| 890 // TODO(esprehn): Implement the sky spec where shadow roots are a custom | 879 // TODO(esprehn): Implement the sky spec where shadow roots are a custom |
| 891 // element registration feature. | 880 // element registration feature. |
| 892 PassRefPtr<ShadowRoot> Element::ensureShadowRoot(ExceptionState& exceptionState) | 881 PassRefPtr<ShadowRoot> Element::ensureShadowRoot(ExceptionState& exceptionState) |
| 893 { | 882 { |
| 894 if (ShadowRoot* root = shadowRoot()) | 883 if (ShadowRoot* root = shadowRoot()) |
| 895 return root; | 884 return root; |
| 896 return PassRefPtr<ShadowRoot>(ensureShadow().addShadowRoot(*this)); | 885 return PassRefPtr<ShadowRoot>(ensureShadow().addShadowRoot(*this)); |
| 897 } | 886 } |
| 898 | 887 |
| 899 ShadowRoot* Element::shadowRoot() const | 888 ShadowRoot* Element::shadowRoot() const |
| (...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1578 return false; | 1567 return false; |
| 1579 if (treeScope().scopedStyleResolver().hasSelectorForId(idValue)) | 1568 if (treeScope().scopedStyleResolver().hasSelectorForId(idValue)) |
| 1580 return true; | 1569 return true; |
| 1581 // Host rules could also have effects. | 1570 // Host rules could also have effects. |
| 1582 if (ShadowRoot* shadowRoot = this->shadowRoot()) | 1571 if (ShadowRoot* shadowRoot = this->shadowRoot()) |
| 1583 return shadowRoot->scopedStyleResolver().hasSelectorForId(idValue); | 1572 return shadowRoot->scopedStyleResolver().hasSelectorForId(idValue); |
| 1584 return false; | 1573 return false; |
| 1585 } | 1574 } |
| 1586 | 1575 |
| 1587 } // namespace blink | 1576 } // namespace blink |
| OLD | NEW |