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

Side by Side Diff: Source/modules/accessibility/AXTableHeaderContainer.h

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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 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 21 matching lines...) Expand all
32 #include "modules/accessibility/AXMockObject.h" 32 #include "modules/accessibility/AXMockObject.h"
33 #include "modules/accessibility/AXTable.h" 33 #include "modules/accessibility/AXTable.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class AXObjectCacheImpl; 37 class AXObjectCacheImpl;
38 38
39 class AXTableHeaderContainer final : public AXMockObject { 39 class AXTableHeaderContainer final : public AXMockObject {
40 40
41 private: 41 private:
42 explicit AXTableHeaderContainer(AXObjectCacheImpl*); 42 explicit AXTableHeaderContainer(AXObjectCacheImpl&);
43 43
44 public: 44 public:
45 static PassRefPtr<AXTableHeaderContainer> create(AXObjectCacheImpl*); 45 static PassRefPtr<AXTableHeaderContainer> create(AXObjectCacheImpl&);
46 virtual ~AXTableHeaderContainer(); 46 virtual ~AXTableHeaderContainer();
47 47
48 virtual AccessibilityRole roleValue() const override { return TableHeaderCon tainerRole; } 48 virtual AccessibilityRole roleValue() const override { return TableHeaderCon tainerRole; }
49 49
50 virtual void addChildren() override; 50 virtual void addChildren() override;
51 51
52 virtual LayoutRect elementRect() const override; 52 virtual LayoutRect elementRect() const override;
53 53
54 private: 54 private:
55 LayoutRect m_headerRect; 55 LayoutRect m_headerRect;
56 56
57 virtual bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; 57 virtual bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
58 }; 58 };
59 59
60 } // namespace blink 60 } // namespace blink
61 61
62 #endif // AXTableHeaderContainer_h 62 #endif // AXTableHeaderContainer_h
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXTableColumn.cpp ('k') | Source/modules/accessibility/AXTableHeaderContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698