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

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

Issue 1825733002: Revert of Exposed the children of elements with role textbox in order to make rich text information available… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 return document.isContentEditable(); 378 return document.isContentEditable();
379 } 379 }
380 380
381 return AXNodeObject::isEditable(); 381 return AXNodeObject::isEditable();
382 } 382 }
383 383
384 // Requires layoutObject to be present because it relies on style 384 // Requires layoutObject to be present because it relies on style
385 // user-modify. Don't move this logic to AXNodeObject. 385 // user-modify. Don't move this logic to AXNodeObject.
386 bool AXLayoutObject::isRichlyEditable() const 386 bool AXLayoutObject::isRichlyEditable() const
387 { 387 {
388 if (isARIATextControl())
389 return false;
390
388 if (getNode() && getNode()->isContentRichlyEditable()) 391 if (getNode() && getNode()->isContentRichlyEditable())
389 return true; 392 return true;
390 393
391 if (isWebArea()) { 394 if (isWebArea()) {
392 Document& document = m_layoutObject->document(); 395 Document& document = m_layoutObject->document();
393 HTMLElement* body = document.body(); 396 HTMLElement* body = document.body();
394 if (body && body->isContentRichlyEditable()) 397 if (body && body->isContentRichlyEditable())
395 return true; 398 return true;
396 399
397 return document.isContentRichlyEditable(); 400 return document.isContentRichlyEditable();
(...skipping 2107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2505 if (label && label->layoutObject()) { 2508 if (label && label->layoutObject()) {
2506 LayoutRect labelRect = axObjectCache().getOrCreate(label)->elementRe ct(); 2509 LayoutRect labelRect = axObjectCache().getOrCreate(label)->elementRe ct();
2507 result.unite(labelRect); 2510 result.unite(labelRect);
2508 } 2511 }
2509 } 2512 }
2510 2513
2511 return result; 2514 return result;
2512 } 2515 }
2513 2516
2514 } // namespace blink 2517 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698