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

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

Issue 1115353002: Update renderer to layoutObject in core/html. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/core/html/HTMLAppletElement.cpp ('k') | Source/core/html/HTMLCanvasElement.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 * 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 { 207 {
208 if (focused() == shouldBeFocused) 208 if (focused() == shouldBeFocused)
209 return; 209 return;
210 210
211 HTMLAnchorElement::setFocus(shouldBeFocused); 211 HTMLAnchorElement::setFocus(shouldBeFocused);
212 212
213 HTMLImageElement* imageElement = this->imageElement(); 213 HTMLImageElement* imageElement = this->imageElement();
214 if (!imageElement) 214 if (!imageElement)
215 return; 215 return;
216 216
217 LayoutObject* renderer = imageElement->layoutObject(); 217 LayoutObject* layoutObject = imageElement->layoutObject();
218 if (!renderer || !renderer->isImage()) 218 if (!layoutObject || !layoutObject->isImage())
219 return; 219 return;
220 220
221 toLayoutImage(renderer)->areaElementFocusChanged(this); 221 toLayoutImage(layoutObject)->areaElementFocusChanged(this);
222 } 222 }
223 223
224 void HTMLAreaElement::updateFocusAppearance(bool restorePreviousSelection) 224 void HTMLAreaElement::updateFocusAppearance(bool restorePreviousSelection)
225 { 225 {
226 if (!isFocusable()) 226 if (!isFocusable())
227 return; 227 return;
228 228
229 HTMLImageElement* imageElement = this->imageElement(); 229 HTMLImageElement* imageElement = this->imageElement();
230 if (!imageElement) 230 if (!imageElement)
231 return; 231 return;
232 232
233 imageElement->updateFocusAppearance(restorePreviousSelection); 233 imageElement->updateFocusAppearance(restorePreviousSelection);
234 } 234 }
235 235
236 } 236 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLAppletElement.cpp ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698