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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 232 |
233 bool Element::layoutObjectIsFocusable() const { | 233 bool Element::layoutObjectIsFocusable() const { |
234 // Elements in canvas fallback content are not rendered, but they are allowed | 234 // Elements in canvas fallback content are not rendered, but they are allowed |
235 // to be focusable as long as their canvas is displayed and visible. | 235 // to be focusable as long as their canvas is displayed and visible. |
236 if (isInCanvasSubtree()) { | 236 if (isInCanvasSubtree()) { |
237 const HTMLCanvasElement* canvas = | 237 const HTMLCanvasElement* canvas = |
238 Traversal<HTMLCanvasElement>::firstAncestorOrSelf(*this); | 238 Traversal<HTMLCanvasElement>::firstAncestorOrSelf(*this); |
239 DCHECK(canvas); | 239 DCHECK(canvas); |
240 return canvas->layoutObject() && | 240 return canvas->layoutObject() && |
241 canvas->layoutObject()->style()->visibility() == | 241 canvas->layoutObject()->style()->visibility() == |
242 EVisibility::Visible; | 242 EVisibility::kVisible; |
243 } | 243 } |
244 | 244 |
245 // FIXME: Even if we are not visible, we might have a child that is visible. | 245 // FIXME: Even if we are not visible, we might have a child that is visible. |
246 // Hyatt wants to fix that some day with a "has visible content" flag or the | 246 // Hyatt wants to fix that some day with a "has visible content" flag or the |
247 // like. | 247 // like. |
248 return layoutObject() && | 248 return layoutObject() && |
249 layoutObject()->style()->visibility() == EVisibility::Visible; | 249 layoutObject()->style()->visibility() == EVisibility::kVisible; |
250 } | 250 } |
251 | 251 |
252 Node* Element::cloneNode(bool deep) { | 252 Node* Element::cloneNode(bool deep) { |
253 return deep ? cloneElementWithChildren() : cloneElementWithoutChildren(); | 253 return deep ? cloneElementWithChildren() : cloneElementWithoutChildren(); |
254 } | 254 } |
255 | 255 |
256 Element* Element::cloneElementWithChildren() { | 256 Element* Element::cloneElementWithChildren() { |
257 Element* clone = cloneElementWithoutChildren(); | 257 Element* clone = cloneElementWithoutChildren(); |
258 cloneChildNodes(clone); | 258 cloneChildNodes(clone); |
259 return clone; | 259 return clone; |
(...skipping 3852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4112 } | 4112 } |
4113 | 4113 |
4114 DEFINE_TRACE_WRAPPERS(Element) { | 4114 DEFINE_TRACE_WRAPPERS(Element) { |
4115 if (hasRareData()) { | 4115 if (hasRareData()) { |
4116 visitor->traceWrappers(elementRareData()); | 4116 visitor->traceWrappers(elementRareData()); |
4117 } | 4117 } |
4118 ContainerNode::traceWrappers(visitor); | 4118 ContainerNode::traceWrappers(visitor); |
4119 } | 4119 } |
4120 | 4120 |
4121 } // namespace blink | 4121 } // namespace blink |
OLD | NEW |