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

Side by Side Diff: third_party/WebKit/Source/web/WebAXObject.cpp

Issue 2458003002: Remove ASSERT_WITH_SECURITY_IMPLICATION. (Closed)
Patch Set: Minor formatting fix Created 4 years, 1 month 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 Element* element = nullptr; 877 Element* element = nullptr;
878 if (node->isElementNode()) { 878 if (node->isElementNode()) {
879 element = toElement(node); 879 element = toElement(node);
880 } else if (node->isDocumentNode()) { 880 } else if (node->isDocumentNode()) {
881 element = node->document().documentElement(); 881 element = node->document().documentElement();
882 } else { 882 } else {
883 node->updateDistribution(); 883 node->updateDistribution();
884 ContainerNode* parent = FlatTreeTraversal::parent(*node); 884 ContainerNode* parent = FlatTreeTraversal::parent(*node);
885 if (!parent) 885 if (!parent)
886 return; 886 return;
887 ASSERT_WITH_SECURITY_IMPLICATION(parent->isElementNode()); 887 SECURITY_DCHECK(parent->isElementNode());
888 element = toElement(parent); 888 element = toElement(parent);
889 } 889 }
890 890
891 if (!element) 891 if (!element)
892 return; 892 return;
893 893
894 LocalFrame* frame = element->document().frame(); 894 LocalFrame* frame = element->document().frame();
895 if (!frame) 895 if (!frame)
896 return; 896 return;
897 897
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 WebAXObject& WebAXObject::operator=(AXObject* object) { 1463 WebAXObject& WebAXObject::operator=(AXObject* object) {
1464 m_private = object; 1464 m_private = object;
1465 return *this; 1465 return *this;
1466 } 1466 }
1467 1467
1468 WebAXObject::operator AXObject*() const { 1468 WebAXObject::operator AXObject*() const {
1469 return m_private.get(); 1469 return m_private.get();
1470 } 1470 }
1471 1471
1472 } // namespace blink 1472 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/TextFinder.cpp ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698