| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 4 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 4 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. |
| 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 10 * | 10 * |
| (...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1052 } | 1052 } |
| 1053 | 1053 |
| 1054 if (!selectedOption && firstOption && !m_multiple && m_size <= 1) | 1054 if (!selectedOption && firstOption && !m_multiple && m_size <= 1) |
| 1055 firstOption->setSelectedState(true); | 1055 firstOption->setSelectedState(true); |
| 1056 | 1056 |
| 1057 setOptionsChangedOnRenderer(); | 1057 setOptionsChangedOnRenderer(); |
| 1058 setNeedsStyleRecalc(); | 1058 setNeedsStyleRecalc(); |
| 1059 setNeedsValidityCheck(); | 1059 setNeedsValidityCheck(); |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 #if !OS(WINDOWS) | 1062 #if !OS(WIN) |
| 1063 bool HTMLSelectElement::platformHandleKeydownEvent(KeyboardEvent* event) | 1063 bool HTMLSelectElement::platformHandleKeydownEvent(KeyboardEvent* event) |
| 1064 { | 1064 { |
| 1065 if (!RenderTheme::theme().popsMenuByArrowKeys()) | 1065 if (!RenderTheme::theme().popsMenuByArrowKeys()) |
| 1066 return false; | 1066 return false; |
| 1067 | 1067 |
| 1068 if (!isSpatialNavigationEnabled(document().frame())) { | 1068 if (!isSpatialNavigationEnabled(document().frame())) { |
| 1069 if (event->keyIdentifier() == "Down" || event->keyIdentifier() == "Up")
{ | 1069 if (event->keyIdentifier() == "Down" || event->keyIdentifier() == "Up")
{ |
| 1070 focus(); | 1070 focus(); |
| 1071 // Calling focus() may cause us to lose our renderer. Return true so | 1071 // Calling focus() may cause us to lose our renderer. Return true so |
| 1072 // that our caller doesn't process the event further, but don't set | 1072 // that our caller doesn't process the event further, but don't set |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1573 return true; | 1573 return true; |
| 1574 } | 1574 } |
| 1575 | 1575 |
| 1576 bool HTMLSelectElement::anonymousIndexedSetterRemove(unsigned index, ExceptionSt
ate& es) | 1576 bool HTMLSelectElement::anonymousIndexedSetterRemove(unsigned index, ExceptionSt
ate& es) |
| 1577 { | 1577 { |
| 1578 remove(index); | 1578 remove(index); |
| 1579 return true; | 1579 return true; |
| 1580 } | 1580 } |
| 1581 | 1581 |
| 1582 } // namespace | 1582 } // namespace |
| OLD | NEW |