| 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) 2000 Simon Hausmann <hausmann@kde.org> | 4 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
| 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
| 6 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * (C) 2006 Graham Dennis (graham.dennis@gmail.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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 if (!isLink()) | 140 if (!isLink()) |
| 141 return HTMLElement::isKeyboardFocusable(event); | 141 return HTMLElement::isKeyboardFocusable(event); |
| 142 | 142 |
| 143 if (!isFocusable()) | 143 if (!isFocusable()) |
| 144 return false; | 144 return false; |
| 145 | 145 |
| 146 Page* page = document()->page(); | 146 Page* page = document()->page(); |
| 147 if (!page) | 147 if (!page) |
| 148 return false; | 148 return false; |
| 149 | 149 |
| 150 if (!page->chrome()->client()->tabsToLinks()) | 150 if (!page->chrome().client()->tabsToLinks()) |
| 151 return false; | 151 return false; |
| 152 | 152 |
| 153 if (isInCanvasSubtree()) | 153 if (isInCanvasSubtree()) |
| 154 return true; | 154 return true; |
| 155 | 155 |
| 156 return hasNonEmptyBoundingBox(); | 156 return hasNonEmptyBoundingBox(); |
| 157 } | 157 } |
| 158 | 158 |
| 159 static void appendServerMapMousePosition(StringBuilder& url, Event* event) | 159 static void appendServerMapMousePosition(StringBuilder& url, Event* event) |
| 160 { | 160 { |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 HistogramSupport::histogramCustomCounts("MouseEventPrefetch.TapDownDurat
ion_Click", tapDownDuration * 1000, 0, 10000, 100); | 747 HistogramSupport::histogramCustomCounts("MouseEventPrefetch.TapDownDurat
ion_Click", tapDownDuration * 1000, 0, 10000, 100); |
| 748 } | 748 } |
| 749 | 749 |
| 750 int flags = (m_hadTapUnconfirmed ? 2 : 0) | (capturedTapDown ? 1 : 0); | 750 int flags = (m_hadTapUnconfirmed ? 2 : 0) | (capturedTapDown ? 1 : 0); |
| 751 HistogramSupport::histogramEnumeration("MouseEventPrefetch.PreTapEventsFollo
wedByClick", flags, 4); | 751 HistogramSupport::histogramEnumeration("MouseEventPrefetch.PreTapEventsFollo
wedByClick", flags, 4); |
| 752 | 752 |
| 753 reset(); | 753 reset(); |
| 754 } | 754 } |
| 755 | 755 |
| 756 } | 756 } |
| OLD | NEW |