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

Side by Side Diff: Source/core/rendering/RenderScrollbar.h

Issue 318583002: Oilpan: Replace RefPtrs to Node and its subclasses in core/rendering with Oilpan transition types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2009 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 void updateScrollbarParts(bool destroy = false); 75 void updateScrollbarParts(bool destroy = false);
76 76
77 PassRefPtr<RenderStyle> getScrollbarPseudoStyle(ScrollbarPart, PseudoId); 77 PassRefPtr<RenderStyle> getScrollbarPseudoStyle(ScrollbarPart, PseudoId);
78 void updateScrollbarPart(ScrollbarPart, bool destroy = false); 78 void updateScrollbarPart(ScrollbarPart, bool destroy = false);
79 79
80 // This Scrollbar(Widget) may outlive the DOM which created it (during tear down), 80 // This Scrollbar(Widget) may outlive the DOM which created it (during tear down),
81 // so we keep a reference to the Node which caused this custom scrollbar cre ation. 81 // so we keep a reference to the Node which caused this custom scrollbar cre ation.
82 // This will not create a reference cycle as the Widget tree is owned by our containing 82 // This will not create a reference cycle as the Widget tree is owned by our containing
83 // FrameView which this Node pointer can in no way keep alive. See webkit bu g 80610. 83 // FrameView which this Node pointer can in no way keep alive. See webkit bu g 80610.
84 RefPtr<Node> m_owner; 84 RefPtrWillBePersistent<Node> m_owner;
85 85
86 LocalFrame* m_owningFrame; 86 LocalFrame* m_owningFrame;
87 HashMap<unsigned, RenderScrollbarPart*> m_parts; 87 HashMap<unsigned, RenderScrollbarPart*> m_parts;
88 }; 88 };
89 89
90 DEFINE_TYPE_CASTS(RenderScrollbar, ScrollbarThemeClient, scrollbar, scrollbar->i sCustomScrollbar(), scrollbar.isCustomScrollbar()); 90 DEFINE_TYPE_CASTS(RenderScrollbar, ScrollbarThemeClient, scrollbar, scrollbar->i sCustomScrollbar(), scrollbar.isCustomScrollbar());
91 91
92 } // namespace WebCore 92 } // namespace WebCore
93 93
94 #endif // RenderScrollbar_h 94 #endif // RenderScrollbar_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerFilterInfo.h ('k') | Source/core/rendering/RenderTreeAsText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698