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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 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
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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 return isFocusable(); 190 return isFocusable();
191 } 191 }
192 192
193 bool HTMLAreaElement::isMouseFocusable() const { 193 bool HTMLAreaElement::isMouseFocusable() const {
194 return isFocusable(); 194 return isFocusable();
195 } 195 }
196 196
197 bool HTMLAreaElement::layoutObjectIsFocusable() const { 197 bool HTMLAreaElement::layoutObjectIsFocusable() const {
198 HTMLImageElement* image = imageElement(); 198 HTMLImageElement* image = imageElement();
199 if (!image || !image->layoutObject() || 199 if (!image || !image->layoutObject() ||
200 image->layoutObject()->style()->visibility() != EVisibility::Visible) 200 image->layoutObject()->style()->visibility() != EVisibility::kVisible)
201 return false; 201 return false;
202 202
203 return supportsFocus() && Element::tabIndex() >= 0; 203 return supportsFocus() && Element::tabIndex() >= 0;
204 } 204 }
205 205
206 void HTMLAreaElement::setFocused(bool shouldBeFocused) { 206 void HTMLAreaElement::setFocused(bool shouldBeFocused) {
207 if (isFocused() == shouldBeFocused) 207 if (isFocused() == shouldBeFocused)
208 return; 208 return;
209 209
210 HTMLAnchorElement::setFocused(shouldBeFocused); 210 HTMLAnchorElement::setFocused(shouldBeFocused);
(...skipping 13 matching lines...) Expand all
224 SelectionBehaviorOnFocus selectionBehavior) { 224 SelectionBehaviorOnFocus selectionBehavior) {
225 document().updateStyleAndLayoutTreeForNode(this); 225 document().updateStyleAndLayoutTreeForNode(this);
226 if (!isFocusable()) 226 if (!isFocusable())
227 return; 227 return;
228 228
229 if (HTMLImageElement* imageElement = this->imageElement()) 229 if (HTMLImageElement* imageElement = this->imageElement())
230 imageElement->updateFocusAppearance(selectionBehavior); 230 imageElement->updateFocusAppearance(selectionBehavior);
231 } 231 }
232 232
233 } // namespace blink 233 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698