Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: Source/core/html/HTMLAnchorElement.cpp

Issue 14763003: HashTraits<RefPtr<P> >::PeekType should be raw pointer for better performance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/css/StyleResolver.cpp ('k') | Source/core/html/HTMLFormElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/css/StyleResolver.cpp ('k') | Source/core/html/HTMLFormElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698