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

Side by Side Diff: Source/core/html/canvas/HitRegion.h

Issue 463543002: Oilpan: Ensure that classes with virtual trace methods always have vtables for their left-most base… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef HitRegion_h 5 #ifndef HitRegion_h
6 #define HitRegion_h 6 #define HitRegion_h
7 7
8 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
9 #include "core/dom/Element.h" 9 #include "core/dom/Element.h"
10 #include "platform/graphics/Path.h" 10 #include "platform/graphics/Path.h"
(...skipping 28 matching lines...) Expand all
39 void removePixels(const Path&); 39 void removePixels(const Path&);
40 void updateAccessibility(Element* canvas); 40 void updateAccessibility(Element* canvas);
41 41
42 bool contains(const LayoutPoint&) const; 42 bool contains(const LayoutPoint&) const;
43 43
44 const String& id() const { return m_id; } 44 const String& id() const { return m_id; }
45 const Path& path() const { return m_path; } 45 const Path& path() const { return m_path; }
46 Element* control() const { return m_control.get(); } 46 Element* control() const { return m_control.get(); }
47 WindRule fillRule() const { return m_fillRule; } 47 WindRule fillRule() const { return m_fillRule; }
48 48
49 void trace(Visitor*); 49 virtual void trace(Visitor*);
50 50
51 private: 51 private:
52 explicit HitRegion(const HitRegionOptions&); 52 explicit HitRegion(const HitRegionOptions&);
53 53
54 String m_id; 54 String m_id;
55 RefPtrWillBeMember<Element> m_control; 55 RefPtrWillBeMember<Element> m_control;
56 Path m_path; 56 Path m_path;
57 WindRule m_fillRule; 57 WindRule m_fillRule;
58 }; 58 };
59 59
(...skipping 28 matching lines...) Expand all
88 typedef WillBeHeapHashMap<RefPtrWillBeMember<Element>, RefPtrWillBeMember<Hi tRegion> > HitRegionControlMap; 88 typedef WillBeHeapHashMap<RefPtrWillBeMember<Element>, RefPtrWillBeMember<Hi tRegion> > HitRegionControlMap;
89 89
90 HitRegionList m_hitRegionList; 90 HitRegionList m_hitRegionList;
91 HitRegionIdMap m_hitRegionIdMap; 91 HitRegionIdMap m_hitRegionIdMap;
92 HitRegionControlMap m_hitRegionControlMap; 92 HitRegionControlMap m_hitRegionControlMap;
93 }; 93 };
94 94
95 } // namespace blink 95 } // namespace blink
96 96
97 #endif 97 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698