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

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

Issue 551283002: Remove HTMLInputElement::isText and isTextType. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | « no previous file | Source/core/html/HTMLInputElement.h » ('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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 573
574 bool AXNodeObject::isNativeTextControl() const 574 bool AXNodeObject::isNativeTextControl() const
575 { 575 {
576 Node* node = this->node(); 576 Node* node = this->node();
577 if (!node) 577 if (!node)
578 return false; 578 return false;
579 579
580 if (isHTMLTextAreaElement(*node)) 580 if (isHTMLTextAreaElement(*node))
581 return true; 581 return true;
582 582
583 if (isHTMLInputElement(*node)) { 583 if (isHTMLInputElement(*node))
584 HTMLInputElement* input = toHTMLInputElement(node); 584 return toHTMLInputElement(node)->isTextField();
585 return input->isText() || input->type() == InputTypeNames::number;
586 }
587 585
588 return false; 586 return false;
589 } 587 }
590 588
591 bool AXNodeObject::isNonNativeTextControl() const 589 bool AXNodeObject::isNonNativeTextControl() const
592 { 590 {
593 if (isNativeTextControl()) 591 if (isNativeTextControl())
594 return false; 592 return false;
595 593
596 if (hasContentEditableAttributeSet()) 594 if (hasContentEditableAttributeSet())
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 float range = maxValueForRange() - minValueForRange(); 1696 float range = maxValueForRange() - minValueForRange();
1699 float value = valueForRange(); 1697 float value = valueForRange();
1700 1698
1701 value += range * (percentChange / 100); 1699 value += range * (percentChange / 100);
1702 setValue(String::number(value)); 1700 setValue(String::number(value));
1703 1701
1704 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru e); 1702 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru e);
1705 } 1703 }
1706 1704
1707 } // namespace blink 1705 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLInputElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698