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

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

Issue 831993005: Remove custom element type extensions. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/Document.idl ('k') | sky/engine/core/dom/custom/CustomElementDescriptor.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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 classAttributeChanged(newValue); 670 classAttributeChanged(newValue);
671 } 671 }
672 672
673 // If there is currently no StyleResolver, we can't be sure that this attrib ute change won't affect style. 673 // If there is currently no StyleResolver, we can't be sure that this attrib ute change won't affect style.
674 if (!styleResolver) 674 if (!styleResolver)
675 setNeedsStyleRecalc(SubtreeStyleChange); 675 setNeedsStyleRecalc(SubtreeStyleChange);
676 } 676 }
677 677
678 inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName& name, const AtomicString& newValue, AttributeModificationReason reason) 678 inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName& name, const AtomicString& newValue, AttributeModificationReason reason)
679 { 679 {
680 if (name == HTMLNames::isAttr)
681 CustomElementRegistrationContext::setTypeExtension(this, newValue);
682 attributeChanged(name, newValue, reason); 680 attributeChanged(name, newValue, reason);
683 } 681 }
684 682
685 template <typename CharacterType> 683 template <typename CharacterType>
686 static inline bool classStringHasClassName(const CharacterType* characters, unsi gned length) 684 static inline bool classStringHasClassName(const CharacterType* characters, unsi gned length)
687 { 685 {
688 ASSERT(length > 0); 686 ASSERT(length > 0);
689 687
690 unsigned i = 0; 688 unsigned i = 0;
691 do { 689 do {
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1823 return false; 1821 return false;
1824 // Turn off style sharing for elements that can gain layers for reasons outs ide of the style system. 1822 // Turn off style sharing for elements that can gain layers for reasons outs ide of the style system.
1825 // See comments in RenderObject::setStyle(). 1823 // See comments in RenderObject::setStyle().
1826 // FIXME: Why does gaining a layer from outside the style system require dis abling sharing? 1824 // FIXME: Why does gaining a layer from outside the style system require dis abling sharing?
1827 if (isHTMLCanvasElement(*this)) 1825 if (isHTMLCanvasElement(*this))
1828 return false; 1826 return false;
1829 return true; 1827 return true;
1830 } 1828 }
1831 1829
1832 } // namespace blink 1830 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Document.idl ('k') | sky/engine/core/dom/custom/CustomElementDescriptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698