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

Side by Side Diff: content/renderer/accessibility/render_accessibility_impl.cc

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 years 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/accessibility/render_accessibility_impl.h" 5 #include "content/renderer/accessibility/render_accessibility_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 // Ignore acks intended for a different or previous instance. 517 // Ignore acks intended for a different or previous instance.
518 if (ack_token_ != ack_token) 518 if (ack_token_ != ack_token)
519 return; 519 return;
520 520
521 DCHECK(ack_pending_); 521 DCHECK(ack_pending_);
522 ack_pending_ = false; 522 ack_pending_ = false;
523 SendPendingAccessibilityEvents(); 523 SendPendingAccessibilityEvents();
524 } 524 }
525 525
526 void RenderAccessibilityImpl::OnFatalError() { 526 void RenderAccessibilityImpl::OnFatalError() {
527 CHECK(false) << "Invalid accessibility tree."; 527 // Invalid accessibility tree.
528 CHECK(false);
528 } 529 }
529 530
530 void RenderAccessibilityImpl::OnHitTest(const gfx::Point& point) { 531 void RenderAccessibilityImpl::OnHitTest(const gfx::Point& point) {
531 const WebDocument& document = GetMainDocument(); 532 const WebDocument& document = GetMainDocument();
532 if (document.isNull()) 533 if (document.isNull())
533 return; 534 return;
534 WebAXObject root_obj = document.accessibilityObject(); 535 WebAXObject root_obj = document.accessibilityObject();
535 if (!root_obj.updateLayoutAndCheckValidity()) 536 if (!root_obj.updateLayoutAndCheckValidity())
536 return; 537 return;
537 538
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 659
659 const WebDocument& document = GetMainDocument(); 660 const WebDocument& document = GetMainDocument();
660 if (document.isNull()) 661 if (document.isNull())
661 return; 662 return;
662 663
663 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( 664 document.accessibilityObject().scrollToMakeVisibleWithSubFocus(
664 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); 665 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height()));
665 } 666 }
666 667
667 } // namespace content 668 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698