Chromium Code Reviews| 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. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. |
| 8 * All rights reserved. | 8 * All rights reserved. |
| 9 * (C) 2007 Eric Seidel (eric@webkit.org) | 9 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 10 * | 10 * |
| (...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1440 } | 1440 } |
| 1441 | 1441 |
| 1442 const QualifiedName& Element::SubResourceAttributeName() const { | 1442 const QualifiedName& Element::SubResourceAttributeName() const { |
| 1443 return QualifiedName::Null(); | 1443 return QualifiedName::Null(); |
| 1444 } | 1444 } |
| 1445 | 1445 |
| 1446 inline void Element::AttributeChangedFromParserOrByCloning( | 1446 inline void Element::AttributeChangedFromParserOrByCloning( |
| 1447 const QualifiedName& name, | 1447 const QualifiedName& name, |
| 1448 const AtomicString& new_value, | 1448 const AtomicString& new_value, |
| 1449 AttributeModificationReason reason) { | 1449 AttributeModificationReason reason) { |
| 1450 if (name == isAttr) | 1450 if (name == isAttr) { |
| 1451 V0CustomElementRegistrationContext::SetTypeExtension(this, new_value); | 1451 V0CustomElementRegistrationContext::SetTypeExtension(this, new_value); |
| 1452 if (RuntimeEnabledFeatures::CustomElementsBuiltinEnabled() && | |
|
dominicc (has gone to gerrit)
2017/06/26 03:03:19
I thought the timing of processing these was diffe
Anton Obzhirov
2017/06/27 19:19:00
Well it is wrong place to set the state, you are r
| |
| 1453 GetCustomElementState() == CustomElementState::kUncustomized) { | |
| 1454 SetCustomElementState(CustomElementState::kUndefined); | |
| 1455 } | |
| 1456 } | |
| 1457 | |
| 1452 AttributeChanged( | 1458 AttributeChanged( |
| 1453 AttributeModificationParams(name, g_null_atom, new_value, reason)); | 1459 AttributeModificationParams(name, g_null_atom, new_value, reason)); |
| 1454 } | 1460 } |
| 1455 | 1461 |
| 1456 template <typename CharacterType> | 1462 template <typename CharacterType> |
| 1457 static inline ClassStringContent ClassStringHasClassName( | 1463 static inline ClassStringContent ClassStringHasClassName( |
| 1458 const CharacterType* characters, | 1464 const CharacterType* characters, |
| 1459 unsigned length) { | 1465 unsigned length) { |
| 1460 DCHECK_GT(length, 0u); | 1466 DCHECK_GT(length, 0u); |
| 1461 | 1467 |
| (...skipping 2949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4411 } | 4417 } |
| 4412 | 4418 |
| 4413 DEFINE_TRACE_WRAPPERS(Element) { | 4419 DEFINE_TRACE_WRAPPERS(Element) { |
| 4414 if (HasRareData()) { | 4420 if (HasRareData()) { |
| 4415 visitor->TraceWrappers(GetElementRareData()); | 4421 visitor->TraceWrappers(GetElementRareData()); |
| 4416 } | 4422 } |
| 4417 ContainerNode::TraceWrappers(visitor); | 4423 ContainerNode::TraceWrappers(visitor); |
| 4418 } | 4424 } |
| 4419 | 4425 |
| 4420 } // namespace blink | 4426 } // namespace blink |
| OLD | NEW |