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

Side by Side Diff: Source/core/dom/ProcessingInstruction.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2006 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 25 matching lines...) Expand all
36 public: 36 public:
37 static PassRefPtr<ProcessingInstruction> create(Document&, const String& tar get, const String& data); 37 static PassRefPtr<ProcessingInstruction> create(Document&, const String& tar get, const String& data);
38 virtual ~ProcessingInstruction(); 38 virtual ~ProcessingInstruction();
39 39
40 const String& target() const { return m_target; } 40 const String& target() const { return m_target; }
41 41
42 void setCreatedByParser(bool createdByParser) { m_createdByParser = createdB yParser; } 42 void setCreatedByParser(bool createdByParser) { m_createdByParser = createdB yParser; }
43 43
44 const String& localHref() const { return m_localHref; } 44 const String& localHref() const { return m_localHref; }
45 StyleSheet* sheet() const { return m_sheet.get(); } 45 StyleSheet* sheet() const { return m_sheet.get(); }
46 void setCSSStyleSheet(PassRefPtr<CSSStyleSheet>); 46 void setCSSStyleSheet(PassRefPtrWillBeRawPtr<CSSStyleSheet>);
47 47
48 bool isCSS() const { return m_isCSS; } 48 bool isCSS() const { return m_isCSS; }
49 bool isXSL() const { return m_isXSL; } 49 bool isXSL() const { return m_isXSL; }
50 50
51 bool isLoading() const; 51 bool isLoading() const;
52 52
53 private: 53 private:
54 friend class CharacterData; 54 friend class CharacterData;
55 ProcessingInstruction(Document&, const String& target, const String& data); 55 ProcessingInstruction(Document&, const String& target, const String& data);
56 56
57 virtual String nodeName() const OVERRIDE; 57 virtual String nodeName() const OVERRIDE;
58 virtual NodeType nodeType() const OVERRIDE; 58 virtual NodeType nodeType() const OVERRIDE;
59 virtual PassRefPtr<Node> cloneNode(bool deep = true) OVERRIDE; 59 virtual PassRefPtr<Node> cloneNode(bool deep = true) OVERRIDE;
60 60
61 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 61 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
62 virtual void removedFrom(ContainerNode*) OVERRIDE; 62 virtual void removedFrom(ContainerNode*) OVERRIDE;
63 63
64 void checkStyleSheet(); 64 void checkStyleSheet();
65 virtual void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*) OVERRIDE; 65 virtual void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*) OVERRIDE;
66 virtual void setXSLStyleSheet(const String& href, const KURL& baseURL, const String& sheet) OVERRIDE; 66 virtual void setXSLStyleSheet(const String& href, const KURL& baseURL, const String& sheet) OVERRIDE;
67 67
68 virtual bool sheetLoaded() OVERRIDE; 68 virtual bool sheetLoaded() OVERRIDE;
69 69
70 void parseStyleSheet(const String& sheet); 70 void parseStyleSheet(const String& sheet);
71 71
72 String m_target; 72 String m_target;
73 String m_localHref; 73 String m_localHref;
74 String m_title; 74 String m_title;
75 String m_media; 75 String m_media;
76 RefPtr<StyleSheet> m_sheet; 76 RefPtrWillBePersistent<StyleSheet> m_sheet;
77 bool m_loading; 77 bool m_loading;
78 bool m_alternate; 78 bool m_alternate;
79 bool m_createdByParser; 79 bool m_createdByParser;
80 bool m_isCSS; 80 bool m_isCSS;
81 bool m_isXSL; 81 bool m_isXSL;
82 }; 82 };
83 83
84 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS TRUCTION_NODE); 84 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS TRUCTION_NODE);
85 85
86 } // namespace WebCore 86 } // namespace WebCore
87 87
88 #endif 88 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentStyleSheetCollection.h ('k') | Source/core/dom/ProcessingInstruction.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698