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

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

Issue 2472613004: Remove ShadowRoot::numberOfStyles(). (Closed)
Patch Set: Rebased Created 4 years, 1 month 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 virtual const AtomicString& type() const = 0; 43 virtual const AtomicString& type() const = 0;
44 virtual const AtomicString& media() const = 0; 44 virtual const AtomicString& media() const = 0;
45 45
46 CSSStyleSheet* sheet() const { return m_sheet.get(); } 46 CSSStyleSheet* sheet() const { return m_sheet.get(); }
47 47
48 bool isLoading() const; 48 bool isLoading() const;
49 bool sheetLoaded(Document&); 49 bool sheetLoaded(Document&);
50 void startLoadingDynamicSheet(Document&); 50 void startLoadingDynamicSheet(Document&);
51 51
52 void insertedInto(const Element&, ContainerNode* insertionPoint);
53 void removedFrom(Element&, ContainerNode* insertionPoint); 52 void removedFrom(Element&, ContainerNode* insertionPoint);
54 ProcessingResult processStyleSheet(Document&, Element&); 53 ProcessingResult processStyleSheet(Document&, Element&);
55 ProcessingResult childrenChanged(Element&); 54 ProcessingResult childrenChanged(Element&);
56 ProcessingResult finishParsingChildren(Element&); 55 ProcessingResult finishParsingChildren(Element&);
57 56
58 Member<CSSStyleSheet> m_sheet; 57 Member<CSSStyleSheet> m_sheet;
59 58
60 private: 59 private:
61 ProcessingResult createSheet(Element&, const String& text = String()); 60 ProcessingResult createSheet(Element&, const String& text = String());
62 ProcessingResult process(Element&); 61 ProcessingResult process(Element&);
63 void clearSheet(Element& ownerElement); 62 void clearSheet(Element& ownerElement);
64 63
65 bool m_createdByParser : 1; 64 bool m_createdByParser : 1;
66 bool m_loading : 1; 65 bool m_loading : 1;
67 bool m_registeredAsCandidate : 1; 66 bool m_registeredAsCandidate : 1;
68 TextPosition m_startPosition; 67 TextPosition m_startPosition;
69 StyleEngineContext m_styleEngineContext; 68 StyleEngineContext m_styleEngineContext;
70 }; 69 };
71 70
72 } // namespace blink 71 } // namespace blink
73 72
74 #endif 73 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolver.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