| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |