OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010 Apple 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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
684 void AXObjectCache::childrenChanged(AXObject* obj) | 684 void AXObjectCache::childrenChanged(AXObject* obj) |
685 { | 685 { |
686 if (!obj) | 686 if (!obj) |
687 return; | 687 return; |
688 | 688 |
689 obj->childrenChanged(); | 689 obj->childrenChanged(); |
690 } | 690 } |
691 | 691 |
692 void AXObjectCache::notificationPostTimerFired(Timer<AXObjectCache>*) | 692 void AXObjectCache::notificationPostTimerFired(Timer<AXObjectCache>*) |
693 { | 693 { |
694 RefPtr<Document> protectorForCacheOwner(m_document); | 694 RefPtrWillBeRawPtr<Document> protectorForCacheOwner(m_document); |
dmazzoni
2014/06/04 06:27:26
In this particular case, the RefPtr is purely ther
Mads Ager (chromium)
2014/06/04 06:30:13
Yes, exactly, this just have to go when we can tur
haraken
2014/06/04 06:31:50
You're right. We've discussed introducing RefPtrWi
zerny-chromium
2014/06/04 06:31:52
The RefPtrWillBeRaw<T> protect(foo) is sufficient.
| |
695 | 695 |
696 m_notificationPostTimer.stop(); | 696 m_notificationPostTimer.stop(); |
697 | 697 |
698 unsigned i = 0, count = m_notificationsToPost.size(); | 698 unsigned i = 0, count = m_notificationsToPost.size(); |
699 for (i = 0; i < count; ++i) { | 699 for (i = 0; i < count; ++i) { |
700 AXObject* obj = m_notificationsToPost[i].first.get(); | 700 AXObject* obj = m_notificationsToPost[i].first.get(); |
701 if (!obj->axObjectID()) | 701 if (!obj->axObjectID()) |
702 continue; | 702 continue; |
703 | 703 |
704 if (!obj->axObjectCache()) | 704 if (!obj->axObjectCache()) |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1012 { | 1012 { |
1013 postPlatformNotification(getOrCreate(scrollView), AXScrollPositionChanged); | 1013 postPlatformNotification(getOrCreate(scrollView), AXScrollPositionChanged); |
1014 } | 1014 } |
1015 | 1015 |
1016 void AXObjectCache::handleScrollPositionChanged(RenderObject* renderObject) | 1016 void AXObjectCache::handleScrollPositionChanged(RenderObject* renderObject) |
1017 { | 1017 { |
1018 postPlatformNotification(getOrCreate(renderObject), AXScrollPositionChanged) ; | 1018 postPlatformNotification(getOrCreate(renderObject), AXScrollPositionChanged) ; |
1019 } | 1019 } |
1020 | 1020 |
1021 } // namespace WebCore | 1021 } // namespace WebCore |
OLD | NEW |