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

Side by Side Diff: Source/core/xml/XSLImportRule.h

Issue 196513007: Oilpan: Reapply: Remove all the RefPtrs and most of the raw pointers to style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix assertion for global persistents Created 6 years, 9 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
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.cpp ('k') | Source/core/xml/XSLStyleSheet.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of the XSL implementation. 2 * This file is part of the XSL implementation.
3 * 3 *
4 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void setParentStyleSheet(XSLStyleSheet* styleSheet) { m_parentStyleSheet = s tyleSheet; } 51 void setParentStyleSheet(XSLStyleSheet* styleSheet) { m_parentStyleSheet = s tyleSheet; }
52 52
53 bool isLoading(); 53 bool isLoading();
54 void loadSheet(); 54 void loadSheet();
55 55
56 private: 56 private:
57 XSLImportRule(XSLStyleSheet* parentSheet, const String& href); 57 XSLImportRule(XSLStyleSheet* parentSheet, const String& href);
58 58
59 virtual void setXSLStyleSheet(const String& href, const KURL& baseURL, const String& sheet) OVERRIDE; 59 virtual void setXSLStyleSheet(const String& href, const KURL& baseURL, const String& sheet) OVERRIDE;
60 60
61 // FIXME: Oilpan: This raw pointer is safe and has to be kept raw at this
62 // point to avoid cycles. When XSLImportRule is moved to the oilpan heap
63 // it should be a Member and be traced.
61 XSLStyleSheet* m_parentStyleSheet; 64 XSLStyleSheet* m_parentStyleSheet;
62 String m_strHref; 65 String m_strHref;
63 RefPtr<XSLStyleSheet> m_styleSheet; 66 RefPtrWillBePersistent<XSLStyleSheet> m_styleSheet;
64 ResourcePtr<XSLStyleSheetResource> m_resource; 67 ResourcePtr<XSLStyleSheetResource> m_resource;
65 bool m_loading; 68 bool m_loading;
66 }; 69 };
67 70
68 } // namespace WebCore 71 } // namespace WebCore
69 72
70 #endif // XSLImportRule_h 73 #endif // XSLImportRule_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.cpp ('k') | Source/core/xml/XSLStyleSheet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698