Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(598)

Side by Side Diff: sky/engine/core/dom/Element.cpp

Issue 950523002: Delete sky/engine/core/dom/custom (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/dom/Element.h ('k') | sky/engine/core/dom/custom/CustomElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Element.h ('k') | sky/engine/core/dom/custom/CustomElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698