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

Unified Diff: Source/core/inspector/InspectorStyleSheet.cpp

Issue 1186823005: Oilpan: fix build after r197129. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorStyleSheet.cpp
diff --git a/Source/core/inspector/InspectorStyleSheet.cpp b/Source/core/inspector/InspectorStyleSheet.cpp
index 8749811e940f9f1db628a6cbff938ac9c2476c5b..6b1e58219d6ba14776ce8b76f4bf2cf6302e54b4 100644
--- a/Source/core/inspector/InspectorStyleSheet.cpp
+++ b/Source/core/inspector/InspectorStyleSheet.cpp
@@ -337,7 +337,10 @@ void StyleSheetHandler::endMediaQuery()
class ParsedStyleSheet : public NoBaseWillBeGarbageCollectedFinalized<ParsedStyleSheet> {
public:
- ParsedStyleSheet(CSSStyleSheet* pageStyleSheet);
+ static PassOwnPtrWillBeRawPtr<ParsedStyleSheet> create(CSSStyleSheet* pageStyleSheet)
+ {
+ return adoptPtrWillBeNoop(new ParsedStyleSheet(pageStyleSheet));
+ }
const String& text() const { ASSERT(m_hasText); return m_text; }
void setText(const String&);
@@ -350,6 +353,8 @@ public:
DECLARE_TRACE();
private:
+ explicit ParsedStyleSheet(CSSStyleSheet* pageStyleSheet);
+
void flattenSourceData(RuleSourceDataList*);
void setSourceData(PassOwnPtrWillBeRawPtr<RuleSourceDataList>);
@@ -948,7 +953,7 @@ InspectorStyleSheet::InspectorStyleSheet(InspectorResourceAgent* resourceAgent,
, m_origin(origin)
, m_documentURL(documentURL)
{
- m_parsedStyleSheet = adoptPtr(new ParsedStyleSheet(m_pageStyleSheet.get()));
+ m_parsedStyleSheet = ParsedStyleSheet::create(m_pageStyleSheet.get());
}
InspectorStyleSheet::~InspectorStyleSheet()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698