| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 230 |
| 231 AXObjectCacheImpl* axObjectCache = toAXObjectCacheImpl(ownerFrame().frame()-
>document()->existingAXObjectCache()); | 231 AXObjectCacheImpl* axObjectCache = toAXObjectCacheImpl(ownerFrame().frame()-
>document()->existingAXObjectCache()); |
| 232 if (!axObjectCache) | 232 if (!axObjectCache) |
| 233 return; | 233 return; |
| 234 | 234 |
| 235 AXObject* startObject = axObjectCache->get(m_activeMatch->startContainer()); | 235 AXObject* startObject = axObjectCache->get(m_activeMatch->startContainer()); |
| 236 AXObject* endObject = axObjectCache->get(m_activeMatch->endContainer()); | 236 AXObject* endObject = axObjectCache->get(m_activeMatch->endContainer()); |
| 237 if (!startObject || !endObject) | 237 if (!startObject || !endObject) |
| 238 return; | 238 return; |
| 239 | 239 |
| 240 // Notify the client of new text marker data. |
| 241 axObjectCache->postNotification(startObject, AXObjectCache::AXNotification::
AXChildrenChanged); |
| 242 if (startObject != endObject) |
| 243 axObjectCache->postNotification(endObject, AXObjectCache::AXNotification
::AXChildrenChanged); |
| 244 |
| 240 if (ownerFrame().client()) { | 245 if (ownerFrame().client()) { |
| 241 ownerFrame().client()->handleAccessibilityFindInPageResult( | 246 ownerFrame().client()->handleAccessibilityFindInPageResult( |
| 242 identifier, m_activeMatchIndex + 1, | 247 identifier, m_activeMatchIndex + 1, |
| 243 WebAXObject(startObject), m_activeMatch->startOffset(), | 248 WebAXObject(startObject), m_activeMatch->startOffset(), |
| 244 WebAXObject(endObject), m_activeMatch->endOffset()); | 249 WebAXObject(endObject), m_activeMatch->endOffset()); |
| 245 } | 250 } |
| 246 } | 251 } |
| 247 | 252 |
| 248 void TextFinder::scopeStringMatches(int identifier, const WebString& searchText,
const WebFindOptions& options, bool reset) | 253 void TextFinder::scopeStringMatches(int identifier, const WebString& searchText,
const WebFindOptions& options, bool reset) |
| 249 { | 254 { |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 DEFINE_TRACE(TextFinder) | 739 DEFINE_TRACE(TextFinder) |
| 735 { | 740 { |
| 736 visitor->trace(m_ownerFrame); | 741 visitor->trace(m_ownerFrame); |
| 737 visitor->trace(m_activeMatch); | 742 visitor->trace(m_activeMatch); |
| 738 visitor->trace(m_resumeScopingFromRange); | 743 visitor->trace(m_resumeScopingFromRange); |
| 739 visitor->trace(m_deferredScopingWork); | 744 visitor->trace(m_deferredScopingWork); |
| 740 visitor->trace(m_findMatchesCache); | 745 visitor->trace(m_findMatchesCache); |
| 741 } | 746 } |
| 742 | 747 |
| 743 } // namespace blink | 748 } // namespace blink |
| OLD | NEW |