| 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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 bool HTMLFormControlElement::isKeyboardFocusable(KeyboardEvent* event) const | 326 bool HTMLFormControlElement::isKeyboardFocusable(KeyboardEvent* event) const |
| 327 { | 327 { |
| 328 if (isFocusable()) | 328 if (isFocusable()) |
| 329 if (document()->frame()) | 329 if (document()->frame()) |
| 330 return document()->frame()->eventHandler()->tabsToAllFormControls(ev
ent); | 330 return document()->frame()->eventHandler()->tabsToAllFormControls(ev
ent); |
| 331 return false; | 331 return false; |
| 332 } | 332 } |
| 333 | 333 |
| 334 bool HTMLFormControlElement::isMouseFocusable() const | 334 bool HTMLFormControlElement::isMouseFocusable() const |
| 335 { | 335 { |
| 336 #if PLATFORM(GTK) || PLATFORM(QT) | |
| 337 return HTMLElement::isMouseFocusable(); | |
| 338 #else | |
| 339 return false; | 336 return false; |
| 340 #endif | |
| 341 } | 337 } |
| 342 | 338 |
| 343 short HTMLFormControlElement::tabIndex() const | 339 short HTMLFormControlElement::tabIndex() const |
| 344 { | 340 { |
| 345 // Skip the supportsFocus check in HTMLElement. | 341 // Skip the supportsFocus check in HTMLElement. |
| 346 return Element::tabIndex(); | 342 return Element::tabIndex(); |
| 347 } | 343 } |
| 348 | 344 |
| 349 bool HTMLFormControlElement::recalcWillValidate() const | 345 bool HTMLFormControlElement::recalcWillValidate() const |
| 350 { | 346 { |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 } | 483 } |
| 488 | 484 |
| 489 void HTMLFormControlElement::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf
o) const | 485 void HTMLFormControlElement::reportMemoryUsage(MemoryObjectInfo* memoryObjectInf
o) const |
| 490 { | 486 { |
| 491 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); | 487 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); |
| 492 LabelableElement::reportMemoryUsage(memoryObjectInfo); | 488 LabelableElement::reportMemoryUsage(memoryObjectInfo); |
| 493 info.addMember(m_validationMessage, "validationMessage"); | 489 info.addMember(m_validationMessage, "validationMessage"); |
| 494 } | 490 } |
| 495 | 491 |
| 496 } // namespace Webcore | 492 } // namespace Webcore |
| OLD | NEW |