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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/StyleElement.h
diff --git a/third_party/WebKit/Source/core/dom/StyleElement.h b/third_party/WebKit/Source/core/dom/StyleElement.h
index 26aa216414c0426cc078c3c6501328b9362f50ee..e1a8a7e05510abebc4296af1fb7dfa02d9bc0e7c 100644
--- a/third_party/WebKit/Source/core/dom/StyleElement.h
+++ b/third_party/WebKit/Source/core/dom/StyleElement.h
@@ -52,18 +52,18 @@ protected:
bool sheetLoaded(Document&);
void startLoadingDynamicSheet(Document&);
- void insertedInto(Element*, ContainerNode* insertionPoint);
- void removedFrom(Element*, ContainerNode* insertionPoint);
- ProcessingResult processStyleSheet(Document&, Element*);
- ProcessingResult childrenChanged(Element*);
- ProcessingResult finishParsingChildren(Element*);
+ void insertedInto(const Element&, ContainerNode* insertionPoint);
+ void removedFrom(Element&, ContainerNode* insertionPoint);
+ ProcessingResult processStyleSheet(Document&, Element&);
+ ProcessingResult childrenChanged(Element&);
+ ProcessingResult finishParsingChildren(Element&);
Member<CSSStyleSheet> m_sheet;
private:
- ProcessingResult createSheet(Element*, const String& text = String());
- ProcessingResult process(Element*);
- void clearSheet(Element* ownerElement = 0);
+ ProcessingResult createSheet(Element&, const String& text = String());
+ ProcessingResult process(Element&);
+ void clearSheet(Element& ownerElement);
bool m_createdByParser : 1;
bool m_loading : 1;
« 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