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

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

Issue 15820002: Page::chrome() should return a reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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 | Annotate | Revision Log
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/BaseChooserOnlyDateAndTimeInputType.cpp ('k') | Source/core/html/HTMLFormControlElementWithState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698