OLD | NEW |
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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 if (isHTMLParagraphElement(*node())) | 251 if (isHTMLParagraphElement(*node())) |
252 return ParagraphRole; | 252 return ParagraphRole; |
253 if (isHTMLLabelElement(*node())) | 253 if (isHTMLLabelElement(*node())) |
254 return LabelRole; | 254 return LabelRole; |
255 if (isHTMLRubyElement(*node())) | 255 if (isHTMLRubyElement(*node())) |
256 return RubyRole; | 256 return RubyRole; |
257 if (isHTMLDListElement(*node())) | 257 if (isHTMLDListElement(*node())) |
258 return DescriptionListRole; | 258 return DescriptionListRole; |
259 if (node()->isElementNode() && node()->hasTagName(blockquoteTag)) | 259 if (node()->isElementNode() && node()->hasTagName(blockquoteTag)) |
260 return BlockquoteRole; | 260 return BlockquoteRole; |
| 261 if (node()->isElementNode() && node()->hasTagName(captionTag)) |
| 262 return CaptionRole; |
261 if (node()->isElementNode() && node()->hasTagName(figcaptionTag)) | 263 if (node()->isElementNode() && node()->hasTagName(figcaptionTag)) |
262 return FigcaptionRole; | 264 return FigcaptionRole; |
263 if (node()->isElementNode() && node()->hasTagName(figureTag)) | 265 if (node()->isElementNode() && node()->hasTagName(figureTag)) |
264 return FigureRole; | 266 return FigureRole; |
265 if (isHTMLAnchorElement(*node()) && isClickable()) | 267 if (isHTMLAnchorElement(*node()) && isClickable()) |
266 return LinkRole; | 268 return LinkRole; |
267 if (isHTMLIFrameElement(*node())) | 269 if (isHTMLIFrameElement(*node())) |
268 return IframeRole; | 270 return IframeRole; |
269 if (isEmbeddedObject()) | 271 if (isEmbeddedObject()) |
270 return EmbeddedObjectRole; | 272 return EmbeddedObjectRole; |
(...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1927 float range = maxValueForRange() - minValueForRange(); | 1929 float range = maxValueForRange() - minValueForRange(); |
1928 float value = valueForRange(); | 1930 float value = valueForRange(); |
1929 | 1931 |
1930 value += range * (percentChange / 100); | 1932 value += range * (percentChange / 100); |
1931 setValue(String::number(value)); | 1933 setValue(String::number(value)); |
1932 | 1934 |
1933 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged,
true); | 1935 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged,
true); |
1934 } | 1936 } |
1935 | 1937 |
1936 } // namespace blink | 1938 } // namespace blink |
OLD | NEW |