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

Side by Side Diff: third_party/WebKit/WebCore/html/HTMLAnchorElement.cpp

Issue 21184: WebKit merge 40722:40785 (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved.
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 { 100 {
101 if (!isFocusable()) 101 if (!isFocusable())
102 return false; 102 return false;
103 103
104 if (!document()->frame()) 104 if (!document()->frame())
105 return false; 105 return false;
106 106
107 if (!document()->frame()->eventHandler()->tabsToLinks(event)) 107 if (!document()->frame()->eventHandler()->tabsToLinks(event))
108 return false; 108 return false;
109 109
110 if (!renderer() || !renderer()->isBox()) 110 if (!renderer() || !renderer()->isBoxModelObject())
111 return false; 111 return false;
112 112
113 // Before calling absoluteRects, check for the common case where the rendere r 113 // Before calling absoluteRects, check for the common case where the rendere r
114 // is non-empty, since this is a faster check and almost always returns true . 114 // is non-empty, since this is a faster check and almost always returns true .
115 RenderBox* box = toRenderBox(renderer()); 115 RenderBoxModelObject* box = toRenderBoxModelObject(renderer());
116 if (!box->borderBoundingBox().isEmpty()) 116 if (!box->borderBoundingBox().isEmpty())
117 return true; 117 return true;
118 118
119 Vector<IntRect> rects; 119 Vector<IntRect> rects;
120 FloatPoint absPos = renderer()->localToAbsolute(); 120 FloatPoint absPos = renderer()->localToAbsolute();
121 renderer()->absoluteRects(rects, absPos.x(), absPos.y()); 121 renderer()->absoluteRects(rects, absPos.x(), absPos.y());
122 size_t n = rects.size(); 122 size_t n = rects.size();
123 for (size_t i = 0; i < n; ++i) 123 for (size_t i = 0; i < n; ++i)
124 if (!rects[i].isEmpty()) 124 if (!rects[i].isEmpty())
125 return true; 125 return true;
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 // this link or if the shift key is down 500 // this link or if the shift key is down
501 case EditableLinkLiveWhenNotFocused: 501 case EditableLinkLiveWhenNotFocused:
502 return m_wasShiftKeyDownOnMouseDown || m_rootEditableElementForSelec tionOnMouseDown != rootEditableElement(); 502 return m_wasShiftKeyDownOnMouseDown || m_rootEditableElementForSelec tionOnMouseDown != rootEditableElement();
503 503
504 case EditableLinkOnlyLiveWithShiftKey: 504 case EditableLinkOnlyLiveWithShiftKey:
505 return m_wasShiftKeyDownOnMouseDown; 505 return m_wasShiftKeyDownOnMouseDown;
506 } 506 }
507 } 507 }
508 508
509 } 509 }
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/html/CanvasRenderingContext2D.cpp ('k') | third_party/WebKit/WebCore/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698