| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014, Google Inc. All rights reserved. | 2 * Copyright (C) 2014, 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 | 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 21 matching lines...) Expand all Loading... |
| 32 #include "core/InputTypeNames.h" | 32 #include "core/InputTypeNames.h" |
| 33 #include "core/dom/AccessibleNode.h" | 33 #include "core/dom/AccessibleNode.h" |
| 34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
| 35 #include "core/dom/TaskRunnerHelper.h" | 35 #include "core/dom/TaskRunnerHelper.h" |
| 36 #include "core/editing/EditingUtilities.h" | 36 #include "core/editing/EditingUtilities.h" |
| 37 #include "core/frame/FrameView.h" | 37 #include "core/frame/FrameView.h" |
| 38 #include "core/frame/LocalFrame.h" | 38 #include "core/frame/LocalFrame.h" |
| 39 #include "core/frame/Settings.h" | 39 #include "core/frame/Settings.h" |
| 40 #include "core/html/HTMLAreaElement.h" | 40 #include "core/html/HTMLAreaElement.h" |
| 41 #include "core/html/HTMLCanvasElement.h" | 41 #include "core/html/HTMLCanvasElement.h" |
| 42 #include "core/html/HTMLFrameOwnerElement.h" | |
| 43 #include "core/html/HTMLImageElement.h" | 42 #include "core/html/HTMLImageElement.h" |
| 44 #include "core/html/HTMLInputElement.h" | 43 #include "core/html/HTMLInputElement.h" |
| 45 #include "core/html/HTMLLabelElement.h" | 44 #include "core/html/HTMLLabelElement.h" |
| 46 #include "core/html/HTMLOptionElement.h" | 45 #include "core/html/HTMLOptionElement.h" |
| 47 #include "core/html/HTMLSelectElement.h" | 46 #include "core/html/HTMLSelectElement.h" |
| 48 #include "core/layout/LayoutListBox.h" | 47 #include "core/layout/LayoutListBox.h" |
| 49 #include "core/layout/LayoutMenuList.h" | 48 #include "core/layout/LayoutMenuList.h" |
| 50 #include "core/layout/LayoutProgress.h" | 49 #include "core/layout/LayoutProgress.h" |
| 51 #include "core/layout/LayoutSlider.h" | 50 #include "core/layout/LayoutSlider.h" |
| 52 #include "core/layout/LayoutTable.h" | 51 #include "core/layout/LayoutTable.h" |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 } | 584 } |
| 586 | 585 |
| 587 void AXObjectCacheImpl::TextChanged(LayoutObject* layout_object) { | 586 void AXObjectCacheImpl::TextChanged(LayoutObject* layout_object) { |
| 588 TextChanged(GetOrCreate(layout_object)); | 587 TextChanged(GetOrCreate(layout_object)); |
| 589 } | 588 } |
| 590 | 589 |
| 591 void AXObjectCacheImpl::TextChanged(AXObjectImpl* obj) { | 590 void AXObjectCacheImpl::TextChanged(AXObjectImpl* obj) { |
| 592 if (!obj) | 591 if (!obj) |
| 593 return; | 592 return; |
| 594 | 593 |
| 594 bool parent_already_exists = obj->ParentObjectIfExists(); |
| 595 obj->TextChanged(); | 595 obj->TextChanged(); |
| 596 PostNotification(obj, AXObjectCacheImpl::kAXTextChanged); | 596 PostNotification(obj, AXObjectCacheImpl::kAXTextChanged); |
| 597 if (parent_already_exists) |
| 598 obj->NotifyIfIgnoredValueChanged(); |
| 597 } | 599 } |
| 598 | 600 |
| 599 void AXObjectCacheImpl::UpdateCacheAfterNodeIsAttached(Node* node) { | 601 void AXObjectCacheImpl::UpdateCacheAfterNodeIsAttached(Node* node) { |
| 600 // Calling get() will update the AX object if we had an AXNodeObject but now | 602 // Calling get() will update the AX object if we had an AXNodeObject but now |
| 601 // we need an AXLayoutObject, because it was reparented to a location outside | 603 // we need an AXLayoutObject, because it was reparented to a location outside |
| 602 // of a canvas. | 604 // of a canvas. |
| 603 Get(node); | 605 Get(node); |
| 604 if (node->IsElementNode()) | 606 if (node->IsElementNode()) |
| 605 UpdateTreeIfElementIdIsAriaOwned(ToElement(node)); | 607 UpdateTreeIfElementIdIsAriaOwned(ToElement(node)); |
| 606 } | 608 } |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 visitor->Trace(document_); | 1257 visitor->Trace(document_); |
| 1256 visitor->Trace(node_object_mapping_); | 1258 visitor->Trace(node_object_mapping_); |
| 1257 | 1259 |
| 1258 visitor->Trace(objects_); | 1260 visitor->Trace(objects_); |
| 1259 visitor->Trace(notifications_to_post_); | 1261 visitor->Trace(notifications_to_post_); |
| 1260 | 1262 |
| 1261 AXObjectCache::Trace(visitor); | 1263 AXObjectCache::Trace(visitor); |
| 1262 } | 1264 } |
| 1263 | 1265 |
| 1264 } // namespace blink | 1266 } // namespace blink |
| OLD | NEW |