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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 } | 283 } |
284 | 284 |
285 // FIXME: Even if we are not visible, we might have a child that is visible. | 285 // FIXME: Even if we are not visible, we might have a child that is visible. |
286 // Hyatt wants to fix that some day with a "has visible content" flag or the
like. | 286 // Hyatt wants to fix that some day with a "has visible content" flag or the
like. |
287 if (!renderer() || renderer()->style()->visibility() != VISIBLE) | 287 if (!renderer() || renderer()->style()->visibility() != VISIBLE) |
288 return false; | 288 return false; |
289 | 289 |
290 return true; | 290 return true; |
291 } | 291 } |
292 | 292 |
293 DEFINE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(Element, blur); | |
294 DEFINE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(Element, error); | |
295 DEFINE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(Element, focus); | |
296 DEFINE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(Element, load); | |
297 DEFINE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(Element, scroll); | |
298 | |
299 PassRefPtr<Node> Element::cloneNode(bool deep) | 293 PassRefPtr<Node> Element::cloneNode(bool deep) |
300 { | 294 { |
301 return deep ? cloneElementWithChildren() : cloneElementWithoutChildren(); | 295 return deep ? cloneElementWithChildren() : cloneElementWithoutChildren(); |
302 } | 296 } |
303 | 297 |
304 PassRefPtr<Element> Element::cloneElementWithChildren() | 298 PassRefPtr<Element> Element::cloneElementWithChildren() |
305 { | 299 { |
306 RefPtr<Element> clone = cloneElementWithoutChildren(); | 300 RefPtr<Element> clone = cloneElementWithoutChildren(); |
307 cloneChildNodes(clone.get()); | 301 cloneChildNodes(clone.get()); |
308 return clone.release(); | 302 return clone.release(); |
(...skipping 3118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3427 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems | 3421 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems |
3428 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 | 3422 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 |
3429 if (hasTagName(optionTag) || hasTagName(optgroupTag)) | 3423 if (hasTagName(optionTag) || hasTagName(optgroupTag)) |
3430 return false; | 3424 return false; |
3431 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3425 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
3432 return false; | 3426 return false; |
3433 return true; | 3427 return true; |
3434 } | 3428 } |
3435 | 3429 |
3436 } // namespace WebCore | 3430 } // namespace WebCore |
OLD | NEW |