Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: Source/modules/accessibility/AXProgressIndicator.cpp

Issue 1175533004: Refactor: Clear m_axObjectCache when AXObject detaches (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added ASSERT Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 12 matching lines...) Expand all
23 23
24 #include "core/html/HTMLProgressElement.h" 24 #include "core/html/HTMLProgressElement.h"
25 #include "core/layout/LayoutProgress.h" 25 #include "core/layout/LayoutProgress.h"
26 #include "modules/accessibility/AXObjectCacheImpl.h" 26 #include "modules/accessibility/AXObjectCacheImpl.h"
27 #include "platform/FloatConversion.h" 27 #include "platform/FloatConversion.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 using namespace HTMLNames; 31 using namespace HTMLNames;
32 32
33 AXProgressIndicator::AXProgressIndicator(LayoutProgress* layoutObject, AXObjectC acheImpl* axObjectCache) 33 AXProgressIndicator::AXProgressIndicator(LayoutProgress* layoutObject, AXObjectC acheImpl& axObjectCache)
34 : AXLayoutObject(layoutObject, axObjectCache) 34 : AXLayoutObject(layoutObject, axObjectCache)
35 { 35 {
36 } 36 }
37 37
38 PassRefPtr<AXProgressIndicator> AXProgressIndicator::create(LayoutProgress* layo utObject, AXObjectCacheImpl* axObjectCache) 38 PassRefPtr<AXProgressIndicator> AXProgressIndicator::create(LayoutProgress* layo utObject, AXObjectCacheImpl& axObjectCache)
39 { 39 {
40 return adoptRef(new AXProgressIndicator(layoutObject, axObjectCache)); 40 return adoptRef(new AXProgressIndicator(layoutObject, axObjectCache));
41 } 41 }
42 42
43 AccessibilityRole AXProgressIndicator::determineAccessibilityRole() 43 AccessibilityRole AXProgressIndicator::determineAccessibilityRole()
44 { 44 {
45 if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole) 45 if ((m_ariaRole = determineAriaRoleAttribute()) != UnknownRole)
46 return m_ariaRole; 46 return m_ariaRole;
47 return ProgressIndicatorRole; 47 return ProgressIndicatorRole;
48 } 48 }
(...skipping 30 matching lines...) Expand all
79 return 0.0f; 79 return 0.0f;
80 } 80 }
81 81
82 HTMLProgressElement* AXProgressIndicator::element() const 82 HTMLProgressElement* AXProgressIndicator::element() const
83 { 83 {
84 return toLayoutProgress(m_layoutObject)->progressElement(); 84 return toLayoutProgress(m_layoutObject)->progressElement();
85 } 85 }
86 86
87 87
88 } // namespace blink 88 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXProgressIndicator.h ('k') | Source/modules/accessibility/AXSVGRoot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698