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

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2316303006: Make default spellchecking behavior in html elements configurable via WebSettings. (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | no next file » | 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 3190 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698