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

Side by Side Diff: Source/core/accessibility/AXNodeObject.cpp

Issue 413783002: Use isHTMLPlugInElement to replace checks (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove WindowNameCollection change Created 6 years, 5 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 | « no previous file | Source/core/dom/Element.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) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, Google 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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 557
558 bool AXNodeObject::isNativeImage() const 558 bool AXNodeObject::isNativeImage() const
559 { 559 {
560 Node* node = this->node(); 560 Node* node = this->node();
561 if (!node) 561 if (!node)
562 return false; 562 return false;
563 563
564 if (isHTMLImageElement(*node)) 564 if (isHTMLImageElement(*node))
565 return true; 565 return true;
566 566
567 if (isHTMLAppletElement(*node) || isHTMLEmbedElement(*node) || isHTMLObjectE lement(*node)) 567 if (isHTMLPlugInElement(*node))
568 return true; 568 return true;
569 569
570 if (isHTMLInputElement(*node)) 570 if (isHTMLInputElement(*node))
571 return toHTMLInputElement(*node).isImageButton(); 571 return toHTMLInputElement(*node).isImageButton();
572 572
573 return false; 573 return false;
574 } 574 }
575 575
576 bool AXNodeObject::isNativeTextControl() const 576 bool AXNodeObject::isNativeTextControl() const
577 { 577 {
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1704 float range = maxValueForRange() - minValueForRange(); 1704 float range = maxValueForRange() - minValueForRange();
1705 float value = valueForRange(); 1705 float value = valueForRange();
1706 1706
1707 value += range * (percentChange / 100); 1707 value += range * (percentChange / 100);
1708 setValue(String::number(value)); 1708 setValue(String::number(value));
1709 1709
1710 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru e); 1710 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru e);
1711 } 1711 }
1712 1712
1713 } // namespace blink 1713 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698