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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp

Issue 2633633003: Changed EInsideLink to an enum class with an unsigned type. (Closed)
Patch Set: Rebase. 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
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyleConstants.h ('k') | no next file » | 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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 return !hasEditableStyle(document); 417 return !hasEditableStyle(document);
418 } 418 }
419 419
420 return AXNodeObject::isReadOnly(); 420 return AXNodeObject::isReadOnly();
421 } 421 }
422 422
423 bool AXLayoutObject::isVisited() const { 423 bool AXLayoutObject::isVisited() const {
424 // FIXME: Is it a privacy violation to expose visited information to 424 // FIXME: Is it a privacy violation to expose visited information to
425 // accessibility APIs? 425 // accessibility APIs?
426 return m_layoutObject->style()->isLink() && 426 return m_layoutObject->style()->isLink() &&
427 m_layoutObject->style()->insideLink() == InsideVisitedLink; 427 m_layoutObject->style()->insideLink() ==
428 EInsideLink::kInsideVisitedLink;
428 } 429 }
429 430
430 // 431 //
431 // Check object state. 432 // Check object state.
432 // 433 //
433 434
434 bool AXLayoutObject::isFocused() const { 435 bool AXLayoutObject::isFocused() const {
435 if (!getDocument()) 436 if (!getDocument())
436 return false; 437 return false;
437 438
(...skipping 2051 matching lines...) Expand 10 before | Expand all | Expand 10 after
2489 2490
2490 bool AXLayoutObject::elementAttributeValue( 2491 bool AXLayoutObject::elementAttributeValue(
2491 const QualifiedName& attributeName) const { 2492 const QualifiedName& attributeName) const {
2492 if (!m_layoutObject) 2493 if (!m_layoutObject)
2493 return false; 2494 return false;
2494 2495
2495 return equalIgnoringCase(getAttribute(attributeName), "true"); 2496 return equalIgnoringCase(getAttribute(attributeName), "true");
2496 } 2497 }
2497 2498
2498 } // namespace blink 2499 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyleConstants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698