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 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 6 * Copyright (C) 2011 Motorola Mobility. 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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 // even in spatial navigation mode instead of handling it as a "click" actio
n. | 943 // even in spatial navigation mode instead of handling it as a "click" actio
n. |
944 if (isTextFormControl() || isContentEditable()) | 944 if (isTextFormControl() || isContentEditable()) |
945 return; | 945 return; |
946 int charCode = event->charCode(); | 946 int charCode = event->charCode(); |
947 if (charCode == '\r' || charCode == ' ') { | 947 if (charCode == '\r' || charCode == ' ') { |
948 dispatchSimulatedClick(event); | 948 dispatchSimulatedClick(event); |
949 event->setDefaultHandled(); | 949 event->setDefaultHandled(); |
950 } | 950 } |
951 } | 951 } |
952 | 952 |
| 953 void HTMLElement::trace(Visitor* visitor) |
| 954 { |
| 955 Element::trace(visitor); |
| 956 } |
| 957 |
953 } // namespace WebCore | 958 } // namespace WebCore |
954 | 959 |
955 #ifndef NDEBUG | 960 #ifndef NDEBUG |
956 | 961 |
957 // For use in the debugger | 962 // For use in the debugger |
958 void dumpInnerHTML(WebCore::HTMLElement*); | 963 void dumpInnerHTML(WebCore::HTMLElement*); |
959 | 964 |
960 void dumpInnerHTML(WebCore::HTMLElement* element) | 965 void dumpInnerHTML(WebCore::HTMLElement* element) |
961 { | 966 { |
962 printf("%s\n", element->innerHTML().ascii().data()); | 967 printf("%s\n", element->innerHTML().ascii().data()); |
963 } | 968 } |
964 #endif | 969 #endif |
OLD | NEW |