| 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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 static RootEditableElementMap& rootEditableElementMap() | 609 static RootEditableElementMap& rootEditableElementMap() |
| 610 { | 610 { |
| 611 DEFINE_STATIC_LOCAL(RootEditableElementMap, map, ()); | 611 DEFINE_STATIC_LOCAL(RootEditableElementMap, map, ()); |
| 612 return map; | 612 return map; |
| 613 } | 613 } |
| 614 | 614 |
| 615 Element* HTMLAnchorElement::rootEditableElementForSelectionOnMouseDown() const | 615 Element* HTMLAnchorElement::rootEditableElementForSelectionOnMouseDown() const |
| 616 { | 616 { |
| 617 if (!m_hasRootEditableElementForSelectionOnMouseDown) | 617 if (!m_hasRootEditableElementForSelectionOnMouseDown) |
| 618 return 0; | 618 return 0; |
| 619 return rootEditableElementMap().get(this).get(); | 619 return rootEditableElementMap().get(this); |
| 620 } | 620 } |
| 621 | 621 |
| 622 void HTMLAnchorElement::clearRootEditableElementForSelectionOnMouseDown() | 622 void HTMLAnchorElement::clearRootEditableElementForSelectionOnMouseDown() |
| 623 { | 623 { |
| 624 if (!m_hasRootEditableElementForSelectionOnMouseDown) | 624 if (!m_hasRootEditableElementForSelectionOnMouseDown) |
| 625 return; | 625 return; |
| 626 rootEditableElementMap().remove(this); | 626 rootEditableElementMap().remove(this); |
| 627 m_hasRootEditableElementForSelectionOnMouseDown = false; | 627 m_hasRootEditableElementForSelectionOnMouseDown = false; |
| 628 } | 628 } |
| 629 | 629 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 double mouseDownDuration = convertDOMTimeStampToSeconds(event->timeStamp
() - m_mouseDownTimestamp); | 706 double mouseDownDuration = convertDOMTimeStampToSeconds(event->timeStamp
() - m_mouseDownTimestamp); |
| 707 | 707 |
| 708 HistogramSupport::histogramCustomCounts("MouseEventPrefetch.MouseDownDur
ation_Click", mouseDownDuration * 1000, 0, 10000, 100); | 708 HistogramSupport::histogramCustomCounts("MouseEventPrefetch.MouseDownDur
ation_Click", mouseDownDuration * 1000, 0, 10000, 100); |
| 709 } | 709 } |
| 710 | 710 |
| 711 m_mouseOverTimestamp = 0; | 711 m_mouseOverTimestamp = 0; |
| 712 m_mouseDownTimestamp = 0; | 712 m_mouseDownTimestamp = 0; |
| 713 } | 713 } |
| 714 | 714 |
| 715 } | 715 } |
| OLD | NEW |