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

Unified Diff: third_party/WebKit/Source/core/css/StyleSheetContents.h

Issue 1989093003: Remove the prefinalizer of Resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp1985033003
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/StyleSheetContents.h
diff --git a/third_party/WebKit/Source/core/css/StyleSheetContents.h b/third_party/WebKit/Source/core/css/StyleSheetContents.h
index ba368f34f9d533ac5f6d784377d5a255e7f8a4ee..c9ef7b2093508c58d2d0c15443de88d06698a4a1 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetContents.h
+++ b/third_party/WebKit/Source/core/css/StyleSheetContents.h
@@ -142,8 +142,9 @@ public:
void removeSheetFromCache(Document*);
- bool isReferencedFromResource() const { return m_isReferencedFromResource; }
- void setReferencedFromResource(bool);
+ bool isReferencedFromResource() const { return m_referencedFromResource; }
+ void setReferencedFromResource(CSSStyleSheetResource*);
+ void clearReferencedFromResource();
void setHasMediaQueries();
bool hasMediaQueries() const { return m_hasMediaQueries; }
@@ -177,11 +178,11 @@ private:
using PrefixNamespaceURIMap = HashMap<AtomicString, AtomicString>;
PrefixNamespaceURIMap m_namespaces;
AtomicString m_defaultNamespace;
+ WeakMember<CSSStyleSheetResource> m_referencedFromResource;
bool m_hasSyntacticallyValidCSSHeader : 1;
bool m_didLoadErrorOccur : 1;
bool m_isMutable : 1;
- bool m_isReferencedFromResource : 1;
bool m_hasFontFaceRule : 1;
bool m_hasMediaQueries : 1;
bool m_hasSingleOwnerDocument : 1;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698