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

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

Issue 2354773003: Make stylesheet owner node a reference instead of pointer. (Closed)
Patch Set: const Created 4 years, 2 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 virtual const AtomicString& type() const = 0; 46 virtual const AtomicString& type() const = 0;
47 virtual const AtomicString& media() const = 0; 47 virtual const AtomicString& media() const = 0;
48 48
49 CSSStyleSheet* sheet() const { return m_sheet.get(); } 49 CSSStyleSheet* sheet() const { return m_sheet.get(); }
50 50
51 bool isLoading() const; 51 bool isLoading() const;
52 bool sheetLoaded(Document&); 52 bool sheetLoaded(Document&);
53 void startLoadingDynamicSheet(Document&); 53 void startLoadingDynamicSheet(Document&);
54 54
55 void insertedInto(Element*, ContainerNode* insertionPoint); 55 void insertedInto(const Element&, ContainerNode* insertionPoint);
56 void removedFrom(Element*, ContainerNode* insertionPoint); 56 void removedFrom(Element&, ContainerNode* insertionPoint);
57 ProcessingResult processStyleSheet(Document&, Element*); 57 ProcessingResult processStyleSheet(Document&, Element&);
58 ProcessingResult childrenChanged(Element*); 58 ProcessingResult childrenChanged(Element&);
59 ProcessingResult finishParsingChildren(Element*); 59 ProcessingResult finishParsingChildren(Element&);
60 60
61 Member<CSSStyleSheet> m_sheet; 61 Member<CSSStyleSheet> m_sheet;
62 62
63 private: 63 private:
64 ProcessingResult createSheet(Element*, const String& text = String()); 64 ProcessingResult createSheet(Element&, const String& text = String());
65 ProcessingResult process(Element*); 65 ProcessingResult process(Element&);
66 void clearSheet(Element* ownerElement = 0); 66 void clearSheet(Element& ownerElement);
67 67
68 bool m_createdByParser : 1; 68 bool m_createdByParser : 1;
69 bool m_loading : 1; 69 bool m_loading : 1;
70 bool m_registeredAsCandidate : 1; 70 bool m_registeredAsCandidate : 1;
71 TextPosition m_startPosition; 71 TextPosition m_startPosition;
72 StyleEngineContext m_styleEngineContext; 72 StyleEngineContext m_styleEngineContext;
73 }; 73 };
74 74
75 } // namespace blink 75 } // namespace blink
76 76
77 #endif 77 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp ('k') | third_party/WebKit/Source/core/dom/StyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698