| 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 | 472 |
| 473 // FIXME: Only HTMLInputElement uses these, they don't need to be virtual. | 473 // FIXME: Only HTMLInputElement uses these, they don't need to be virtual. |
| 474 virtual bool wasChangedSinceLastFormControlChangeEvent() const { return fals
e; } | 474 virtual bool wasChangedSinceLastFormControlChangeEvent() const { return fals
e; } |
| 475 virtual void setChangedSinceLastFormControlChangeEvent(bool) { } | 475 virtual void setChangedSinceLastFormControlChangeEvent(bool) { } |
| 476 virtual void dispatchFormControlChangeEvent() { } | 476 virtual void dispatchFormControlChangeEvent() { } |
| 477 | 477 |
| 478 // Used for disabled form elements; if true, prevents mouse events from bein
g dispatched | 478 // Used for disabled form elements; if true, prevents mouse events from bein
g dispatched |
| 479 // to event listeners, and prevents DOMActivate events from being sent at al
l. | 479 // to event listeners, and prevents DOMActivate events from being sent at al
l. |
| 480 virtual bool isDisabledFormControl() const { return false; } | 480 virtual bool isDisabledFormControl() const { return false; } |
| 481 | 481 |
| 482 virtual bool shouldBeReparentedUnderRenderView(const RenderStyle*) const { r
eturn isInTopLayer(); } | |
| 483 | |
| 484 bool hasPendingResources() const; | 482 bool hasPendingResources() const; |
| 485 void setHasPendingResources(); | 483 void setHasPendingResources(); |
| 486 void clearHasPendingResources(); | 484 void clearHasPendingResources(); |
| 487 virtual void buildPendingResource() { }; | 485 virtual void buildPendingResource() { }; |
| 488 | 486 |
| 489 enum { | 487 enum { |
| 490 ALLOW_KEYBOARD_INPUT = 1 << 0, | 488 ALLOW_KEYBOARD_INPUT = 1 << 0, |
| 491 LEGACY_MOZILLA_REQUEST = 1 << 1, | 489 LEGACY_MOZILLA_REQUEST = 1 << 1, |
| 492 }; | 490 }; |
| 493 | 491 |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 } | 895 } |
| 898 | 896 |
| 899 inline bool isShadowHost(const Element* element) | 897 inline bool isShadowHost(const Element* element) |
| 900 { | 898 { |
| 901 return element && element->shadow(); | 899 return element && element->shadow(); |
| 902 } | 900 } |
| 903 | 901 |
| 904 } // namespace | 902 } // namespace |
| 905 | 903 |
| 906 #endif | 904 #endif |
| OLD | NEW |