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. 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 3190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3201 switch (element->spellcheckAttributeState()) { | 3201 switch (element->spellcheckAttributeState()) { |
| 3202 case SpellcheckAttributeTrue: | 3202 case SpellcheckAttributeTrue: |
| 3203 return true; | 3203 return true; |
| 3204 case SpellcheckAttributeFalse: | 3204 case SpellcheckAttributeFalse: |
| 3205 return false; | 3205 return false; |
| 3206 case SpellcheckAttributeDefault: | 3206 case SpellcheckAttributeDefault: |
| 3207 break; | 3207 break; |
| 3208 } | 3208 } |
| 3209 } | 3209 } |
| 3210 | 3210 |
| 3211 #if OS(ANDROID) | |
| 3212 return false; | |
|
Peter Beverloo
2016/09/12 14:59:02
This should probably be a decision made by the emb
Rick Byers
2016/09/14 15:21:00
Yes, we avoid adding #ifdefs like this in Blink.
timvolodine
2016/09/14 17:16:31
ok, sounds right, thanks for the suggestion Peter!
| |
| 3213 #else | |
| 3211 return true; | 3214 return true; |
| 3215 #endif | |
| 3212 } | 3216 } |
| 3213 | 3217 |
| 3214 #if DCHECK_IS_ON() | 3218 #if DCHECK_IS_ON() |
| 3215 bool Element::fastAttributeLookupAllowed(const QualifiedName& name) const | 3219 bool Element::fastAttributeLookupAllowed(const QualifiedName& name) const |
| 3216 { | 3220 { |
| 3217 if (name == HTMLNames::styleAttr) | 3221 if (name == HTMLNames::styleAttr) |
| 3218 return false; | 3222 return false; |
| 3219 | 3223 |
| 3220 if (isSVGElement()) | 3224 if (isSVGElement()) |
| 3221 return !toSVGElement(this)->isAnimatableAttribute(name); | 3225 return !toSVGElement(this)->isAnimatableAttribute(name); |
| (...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3818 | 3822 |
| 3819 DEFINE_TRACE_WRAPPERS(Element) | 3823 DEFINE_TRACE_WRAPPERS(Element) |
| 3820 { | 3824 { |
| 3821 if (hasRareData()) { | 3825 if (hasRareData()) { |
| 3822 visitor->traceWrappers(elementRareData()); | 3826 visitor->traceWrappers(elementRareData()); |
| 3823 } | 3827 } |
| 3824 ContainerNode::traceWrappers(visitor); | 3828 ContainerNode::traceWrappers(visitor); |
| 3825 } | 3829 } |
| 3826 | 3830 |
| 3827 } // namespace blink | 3831 } // namespace blink |
| OLD | NEW |