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" |
42 #include "core/html/HTMLImageElement.h" | 43 #include "core/html/HTMLImageElement.h" |
43 #include "core/html/HTMLInputElement.h" | 44 #include "core/html/HTMLInputElement.h" |
44 #include "core/html/HTMLLabelElement.h" | 45 #include "core/html/HTMLLabelElement.h" |
45 #include "core/html/HTMLOptionElement.h" | 46 #include "core/html/HTMLOptionElement.h" |
46 #include "core/html/HTMLSelectElement.h" | 47 #include "core/html/HTMLSelectElement.h" |
47 #include "core/layout/LayoutListBox.h" | 48 #include "core/layout/LayoutListBox.h" |
48 #include "core/layout/LayoutMenuList.h" | 49 #include "core/layout/LayoutMenuList.h" |
49 #include "core/layout/LayoutProgress.h" | 50 #include "core/layout/LayoutProgress.h" |
50 #include "core/layout/LayoutSlider.h" | 51 #include "core/layout/LayoutSlider.h" |
51 #include "core/layout/LayoutTable.h" | 52 #include "core/layout/LayoutTable.h" |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 } | 585 } |
585 | 586 |
586 void AXObjectCacheImpl::TextChanged(LayoutObject* layout_object) { | 587 void AXObjectCacheImpl::TextChanged(LayoutObject* layout_object) { |
587 TextChanged(GetOrCreate(layout_object)); | 588 TextChanged(GetOrCreate(layout_object)); |
588 } | 589 } |
589 | 590 |
590 void AXObjectCacheImpl::TextChanged(AXObjectImpl* obj) { | 591 void AXObjectCacheImpl::TextChanged(AXObjectImpl* obj) { |
591 if (!obj) | 592 if (!obj) |
592 return; | 593 return; |
593 | 594 |
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(); | |
599 } | 597 } |
600 | 598 |
601 void AXObjectCacheImpl::UpdateCacheAfterNodeIsAttached(Node* node) { | 599 void AXObjectCacheImpl::UpdateCacheAfterNodeIsAttached(Node* node) { |
602 // Calling get() will update the AX object if we had an AXNodeObject but now | 600 // Calling get() will update the AX object if we had an AXNodeObject but now |
603 // we need an AXLayoutObject, because it was reparented to a location outside | 601 // we need an AXLayoutObject, because it was reparented to a location outside |
604 // of a canvas. | 602 // of a canvas. |
605 Get(node); | 603 Get(node); |
606 if (node->IsElementNode()) | 604 if (node->IsElementNode()) |
607 UpdateTreeIfElementIdIsAriaOwned(ToElement(node)); | 605 UpdateTreeIfElementIdIsAriaOwned(ToElement(node)); |
608 } | 606 } |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 visitor->Trace(document_); | 1255 visitor->Trace(document_); |
1258 visitor->Trace(node_object_mapping_); | 1256 visitor->Trace(node_object_mapping_); |
1259 | 1257 |
1260 visitor->Trace(objects_); | 1258 visitor->Trace(objects_); |
1261 visitor->Trace(notifications_to_post_); | 1259 visitor->Trace(notifications_to_post_); |
1262 | 1260 |
1263 AXObjectCache::Trace(visitor); | 1261 AXObjectCache::Trace(visitor); |
1264 } | 1262 } |
1265 | 1263 |
1266 } // namespace blink | 1264 } // namespace blink |
OLD | NEW |