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

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

Issue 15387004: Remove some unused includes from core/css and core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 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 unified diff | Download patch
« no previous file with comments | « Source/core/css/CSSStyleRule.cpp ('k') | Source/core/css/CSSSupportsRule.cpp » ('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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #include "config.h" 21 #include "config.h"
22 #include "core/css/CSSStyleSheet.h" 22 #include "core/css/CSSStyleSheet.h"
23 23
24 #include <wtf/MemoryInstrumentationVector.h> 24 #include <wtf/MemoryInstrumentationVector.h>
25 #include <wtf/text/StringBuilder.h> 25 #include <wtf/text/StringBuilder.h>
26 #include "HTMLNames.h" 26 #include "HTMLNames.h"
27 #include "SVGNames.h" 27 #include "SVGNames.h"
28 #include "core/css/CSSCharsetRule.h" 28 #include "core/css/CSSCharsetRule.h"
29 #include "core/css/CSSFontFaceRule.h"
30 #include "core/css/CSSImportRule.h" 29 #include "core/css/CSSImportRule.h"
31 #include "core/css/CSSParser.h" 30 #include "core/css/CSSParser.h"
32 #include "core/css/CSSRuleList.h" 31 #include "core/css/CSSRuleList.h"
33 #include "core/css/CSSStyleRule.h"
34 #include "core/css/MediaList.h" 32 #include "core/css/MediaList.h"
35 #include "core/css/StyleRule.h" 33 #include "core/css/StyleRule.h"
36 #include "core/css/StyleSheetContents.h" 34 #include "core/css/StyleSheetContents.h"
37 #include "core/dom/Document.h" 35 #include "core/dom/Document.h"
38 #include "core/dom/ExceptionCode.h" 36 #include "core/dom/ExceptionCode.h"
39 #include "core/dom/Node.h" 37 #include "core/dom/Node.h"
40 #include "core/dom/WebCoreMemoryInstrumentation.h" 38 #include "core/dom/WebCoreMemoryInstrumentation.h"
41 #include "core/loader/cache/CachedCSSStyleSheet.h"
42 #include "weborigin/SecurityOrigin.h" 39 #include "weborigin/SecurityOrigin.h"
43 40
44 namespace WebCore { 41 namespace WebCore {
45 42
46 class StyleSheetCSSRuleList : public CSSRuleList { 43 class StyleSheetCSSRuleList : public CSSRuleList {
47 public: 44 public:
48 StyleSheetCSSRuleList(CSSStyleSheet* sheet) : m_styleSheet(sheet) { } 45 StyleSheetCSSRuleList(CSSStyleSheet* sheet) : m_styleSheet(sheet) { }
49 46
50 private: 47 private:
51 virtual void ref() { m_styleSheet->ref(); } 48 virtual void ref() { m_styleSheet->ref(); }
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 root = root->parentStyleSheet(); 381 root = root->parentStyleSheet();
385 return root->ownerNode() ? root->ownerNode()->document() : 0; 382 return root->ownerNode() ? root->ownerNode()->document() : 0;
386 } 383 }
387 384
388 void CSSStyleSheet::clearChildRuleCSSOMWrappers() 385 void CSSStyleSheet::clearChildRuleCSSOMWrappers()
389 { 386 {
390 m_childRuleCSSOMWrappers.clear(); 387 m_childRuleCSSOMWrappers.clear();
391 } 388 }
392 389
393 } 390 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSStyleRule.cpp ('k') | Source/core/css/CSSSupportsRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698