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

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

Issue 210043008: Kill outlineBox (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 * Copyright (C) 2004, 2005, 2006, 2009, 2011 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2009, 2011 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 { 96 {
97 if (!obj) 97 if (!obj)
98 return Path(); 98 return Path();
99 99
100 // FIXME: This doesn't work correctly with transforms. 100 // FIXME: This doesn't work correctly with transforms.
101 FloatPoint absPos = obj->localToAbsolute(); 101 FloatPoint absPos = obj->localToAbsolute();
102 102
103 // Default should default to the size of the containing object. 103 // Default should default to the size of the containing object.
104 LayoutSize size = m_lastSize; 104 LayoutSize size = m_lastSize;
105 if (m_shape == Default) 105 if (m_shape == Default)
106 size = obj->absoluteOutlineBounds().size(); 106 size = obj->absoluteClippedOverflowRect().size();
eseidel 2014/03/25 06:32:18 absoluteClippedOverflowRect does a walk up your pa
Julien - ping for review 2014/03/25 21:52:34 It did as it called localToContainerQuad or mapToC
107 107
108 Path p = getRegion(size); 108 Path p = getRegion(size);
109 float zoomFactor = obj->style()->effectiveZoom(); 109 float zoomFactor = obj->style()->effectiveZoom();
110 if (zoomFactor != 1.0f) { 110 if (zoomFactor != 1.0f) {
111 AffineTransform zoomTransform; 111 AffineTransform zoomTransform;
112 zoomTransform.scale(zoomFactor); 112 zoomTransform.scale(zoomFactor);
113 p.transform(zoomTransform); 113 p.transform(zoomTransform);
114 } 114 }
115 115
116 p.translate(toFloatSize(absPos)); 116 p.translate(toFloatSize(absPos));
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 240 }
241 241
242 bool HTMLAreaElement::supportsFocus() const 242 bool HTMLAreaElement::supportsFocus() const
243 { 243 {
244 // If the AREA element was a link, it should support focus. 244 // If the AREA element was a link, it should support focus.
245 // FIXME: This means that an AREA that is not a link cannot be made focusabl e through contenteditable or tabindex. Is it correct? 245 // FIXME: This means that an AREA that is not a link cannot be made focusabl e through contenteditable or tabindex. Is it correct?
246 return isLink(); 246 return isLink();
247 } 247 }
248 248
249 } 249 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698