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

Side by Side Diff: Source/core/dom/StyleElement.h

Issue 23847002: Have StyleElement API take Document as a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | « no previous file | Source/core/dom/StyleElement.cpp » ('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 * Copyright (C) 2006, 2007 Rob Buis 2 * Copyright (C) 2006, 2007 Rob Buis
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 24 matching lines...) Expand all
35 StyleElement(Document*, bool createdByParser); 35 StyleElement(Document*, bool createdByParser);
36 virtual ~StyleElement(); 36 virtual ~StyleElement();
37 37
38 protected: 38 protected:
39 virtual const AtomicString& type() const = 0; 39 virtual const AtomicString& type() const = 0;
40 virtual const AtomicString& media() const = 0; 40 virtual const AtomicString& media() const = 0;
41 41
42 CSSStyleSheet* sheet() const { return m_sheet.get(); } 42 CSSStyleSheet* sheet() const { return m_sheet.get(); }
43 43
44 bool isLoading() const; 44 bool isLoading() const;
45 bool sheetLoaded(Document*); 45 bool sheetLoaded(Document&);
46 void startLoadingDynamicSheet(Document*); 46 void startLoadingDynamicSheet(Document&);
47 47
48 void processStyleSheet(Document*, Element*); 48 void processStyleSheet(Document&, Element*);
49 void removedFromDocument(Document*, Element*, ContainerNode* scopingNode = 0 ); 49 void removedFromDocument(Document&, Element*, ContainerNode* scopingNode = 0 );
50 void clearDocumentData(Document*, Element*); 50 void clearDocumentData(Document&, Element*);
51 void childrenChanged(Element*); 51 void childrenChanged(Element*);
52 void finishParsingChildren(Element*); 52 void finishParsingChildren(Element*);
53 53
54 RefPtr<CSSStyleSheet> m_sheet; 54 RefPtr<CSSStyleSheet> m_sheet;
55 55
56 private: 56 private:
57 void createSheet(Element*, const String& text = String()); 57 void createSheet(Element*, const String& text = String());
58 void process(Element*); 58 void process(Element*);
59 void clearSheet(); 59 void clearSheet();
60 60
61 bool m_createdByParser; 61 bool m_createdByParser;
62 bool m_loading; 62 bool m_loading;
63 TextPosition m_startPosition; 63 TextPosition m_startPosition;
64 }; 64 };
65 65
66 } 66 }
67 67
68 #endif 68 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/StyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698