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

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

Issue 408883003: Remove shouldUseInputMethod (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: V2 Created 6 years, 5 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
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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 void Element::setTabIndex(int value) 213 void Element::setTabIndex(int value)
214 { 214 {
215 setIntegralAttribute(tabindexAttr, value); 215 setIntegralAttribute(tabindexAttr, value);
216 } 216 }
217 217
218 short Element::tabIndex() const 218 short Element::tabIndex() const
219 { 219 {
220 return hasRareData() ? elementRareData()->tabIndex() : 0; 220 return hasRareData() ? elementRareData()->tabIndex() : 0;
221 } 221 }
222 222
223 bool Element::shouldUseInputMethod()
224 {
225 return isContentEditable(UserSelectAllIsAlwaysNonEditable);
226 }
227
223 bool Element::rendererIsFocusable() const 228 bool Element::rendererIsFocusable() const
224 { 229 {
225 // Elements in canvas fallback content are not rendered, but they are allowe d to be 230 // Elements in canvas fallback content are not rendered, but they are allowe d to be
226 // focusable as long as their canvas is displayed and visible. 231 // focusable as long as their canvas is displayed and visible.
227 if (isInCanvasSubtree()) { 232 if (isInCanvasSubtree()) {
228 const HTMLCanvasElement* canvas = Traversal<HTMLCanvasElement>::firstAnc estorOrSelf(*this); 233 const HTMLCanvasElement* canvas = Traversal<HTMLCanvasElement>::firstAnc estorOrSelf(*this);
229 ASSERT(canvas); 234 ASSERT(canvas);
230 return canvas->renderer() && canvas->renderer()->style()->visibility() = = VISIBLE; 235 return canvas->renderer() && canvas->renderer()->style()->visibility() = = VISIBLE;
231 } 236 }
232 237
(...skipping 3134 matching lines...) Expand 10 before | Expand all | Expand 10 after
3367 { 3372 {
3368 #if ENABLE(OILPAN) 3373 #if ENABLE(OILPAN)
3369 if (hasRareData()) 3374 if (hasRareData())
3370 visitor->trace(elementRareData()); 3375 visitor->trace(elementRareData());
3371 visitor->trace(m_elementData); 3376 visitor->trace(m_elementData);
3372 #endif 3377 #endif
3373 ContainerNode::trace(visitor); 3378 ContainerNode::trace(visitor);
3374 } 3379 }
3375 3380
3376 } // namespace blink 3381 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698