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

Side by Side Diff: Source/WebCore/accessibility/AccessibilityObject.cpp

Issue 12918021: Merge 145453 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 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) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 } 550 }
551 551
552 bool AccessibilityObject::press() const 552 bool AccessibilityObject::press() const
553 { 553 {
554 Element* actionElem = actionElement(); 554 Element* actionElem = actionElement();
555 if (!actionElem) 555 if (!actionElem)
556 return false; 556 return false;
557 if (Frame* f = actionElem->document()->frame()) 557 if (Frame* f = actionElem->document()->frame())
558 f->loader()->resetMultipleFormSubmissionProtection(); 558 f->loader()->resetMultipleFormSubmissionProtection();
559 559
560 UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGesture); 560 UserGestureIndicator gestureIndicator(DefinitelyProcessingNewUserGesture);
561 actionElem->accessKeyAction(true); 561 actionElem->accessKeyAction(true);
562 return true; 562 return true;
563 } 563 }
564 564
565 String AccessibilityObject::language() const 565 String AccessibilityObject::language() const
566 { 566 {
567 const AtomicString& lang = getAttribute(langAttr); 567 const AtomicString& lang = getAttribute(langAttr);
568 if (!lang.isEmpty()) 568 if (!lang.isEmpty())
569 return lang; 569 return lang;
570 570
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1860 1860
1861 bool result = computeAccessibilityIsIgnored(); 1861 bool result = computeAccessibilityIsIgnored();
1862 1862
1863 if (attributeCache) 1863 if (attributeCache)
1864 attributeCache->setIgnored(axObjectID(), result ? IgnoreObject : Include Object); 1864 attributeCache->setIgnored(axObjectID(), result ? IgnoreObject : Include Object);
1865 1865
1866 return result; 1866 return result;
1867 } 1867 }
1868 1868
1869 } // namespace WebCore 1869 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/accessibility/AccessibilityNodeObject.cpp ('k') | Source/WebCore/bindings/ScriptControllerBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698