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

Side by Side Diff: Source/core/css/CSSStyleSheet.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSStyleDeclaration.h ('k') | Source/core/css/Counter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 CSSStyleSheet::CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> contents , CSSImportRule* ownerRule) 117 CSSStyleSheet::CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> contents , CSSImportRule* ownerRule)
118 : m_contents(contents) 118 : m_contents(contents)
119 , m_isInlineStylesheet(false) 119 , m_isInlineStylesheet(false)
120 , m_isDisabled(false) 120 , m_isDisabled(false)
121 , m_ownerNode(nullptr) 121 , m_ownerNode(nullptr)
122 , m_ownerRule(ownerRule) 122 , m_ownerRule(ownerRule)
123 , m_startPosition(TextPosition::minimumPosition()) 123 , m_startPosition(TextPosition::minimumPosition())
124 , m_loadCompleted(false) 124 , m_loadCompleted(false)
125 { 125 {
126 ScriptWrappable::init(this);
127 m_contents->registerClient(this); 126 m_contents->registerClient(this);
128 } 127 }
129 128
130 CSSStyleSheet::CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> contents , Node* ownerNode, bool isInlineStylesheet, const TextPosition& startPosition) 129 CSSStyleSheet::CSSStyleSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> contents , Node* ownerNode, bool isInlineStylesheet, const TextPosition& startPosition)
131 : m_contents(contents) 130 : m_contents(contents)
132 , m_isInlineStylesheet(isInlineStylesheet) 131 , m_isInlineStylesheet(isInlineStylesheet)
133 , m_isDisabled(false) 132 , m_isDisabled(false)
134 , m_ownerNode(ownerNode) 133 , m_ownerNode(ownerNode)
135 , m_ownerRule(nullptr) 134 , m_ownerRule(nullptr)
136 , m_startPosition(startPosition) 135 , m_startPosition(startPosition)
137 , m_loadCompleted(false) 136 , m_loadCompleted(false)
138 { 137 {
139 ScriptWrappable::init(this);
140 ASSERT(isAcceptableCSSStyleSheetParent(ownerNode)); 138 ASSERT(isAcceptableCSSStyleSheetParent(ownerNode));
141 m_contents->registerClient(this); 139 m_contents->registerClient(this);
142 } 140 }
143 141
144 CSSStyleSheet::~CSSStyleSheet() 142 CSSStyleSheet::~CSSStyleSheet()
145 { 143 {
146 // With oilpan the parent style sheet pointer is strong and the sheet and 144 // With oilpan the parent style sheet pointer is strong and the sheet and
147 // its RuleCSSOMWrappers die together and we don't need to clear them here. 145 // its RuleCSSOMWrappers die together and we don't need to clear them here.
148 // Also with oilpan the StyleSheetContents client pointers are weak and 146 // Also with oilpan the StyleSheetContents client pointers are weak and
149 // therefore do not need to be cleared here. 147 // therefore do not need to be cleared here.
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 visitor->trace(m_mediaQueries); 460 visitor->trace(m_mediaQueries);
463 visitor->trace(m_ownerNode); 461 visitor->trace(m_ownerNode);
464 visitor->trace(m_ownerRule); 462 visitor->trace(m_ownerRule);
465 visitor->trace(m_mediaCSSOMWrapper); 463 visitor->trace(m_mediaCSSOMWrapper);
466 visitor->trace(m_childRuleCSSOMWrappers); 464 visitor->trace(m_childRuleCSSOMWrappers);
467 visitor->trace(m_ruleListCSSOMWrapper); 465 visitor->trace(m_ruleListCSSOMWrapper);
468 StyleSheet::trace(visitor); 466 StyleSheet::trace(visitor);
469 } 467 }
470 468
471 } // namespace blink 469 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/CSSStyleDeclaration.h ('k') | Source/core/css/Counter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698