| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |