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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSStyleSheet.h

Issue 2392343005: Reflow comments in core/css (Closed)
Patch Set: Revert clang-format Created 4 years, 2 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
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, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights
4 * reserved.
4 * 5 *
5 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
9 * 10 *
10 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 14 * Library General Public License for more details.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 95
95 CSSRule* ownerRule() const override { return m_ownerRule; } 96 CSSRule* ownerRule() const override { return m_ownerRule; }
96 KURL baseURL() const override; 97 KURL baseURL() const override;
97 bool isLoading() const override; 98 bool isLoading() const override;
98 99
99 void clearOwnerRule() { m_ownerRule = nullptr; } 100 void clearOwnerRule() { m_ownerRule = nullptr; }
100 Document* ownerDocument() const; 101 Document* ownerDocument() const;
101 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); } 102 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); }
102 void setMediaQueries(MediaQuerySet*); 103 void setMediaQueries(MediaQuerySet*);
103 void setTitle(const String& title) { m_title = title; } 104 void setTitle(const String& title) { m_title = title; }
104 // Set by LinkStyle iff CORS-enabled fetch of stylesheet succeeded from this o rigin. 105 // Set by LinkStyle iff CORS-enabled fetch of stylesheet succeeded from this
106 // origin.
105 void setAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allowedOrigin); 107 void setAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allowedOrigin);
106 108
107 class RuleMutationScope { 109 class RuleMutationScope {
108 WTF_MAKE_NONCOPYABLE(RuleMutationScope); 110 WTF_MAKE_NONCOPYABLE(RuleMutationScope);
109 STACK_ALLOCATED(); 111 STACK_ALLOCATED();
110 112
111 public: 113 public:
112 explicit RuleMutationScope(CSSStyleSheet*); 114 explicit RuleMutationScope(CSSStyleSheet*);
113 explicit RuleMutationScope(CSSRule*); 115 explicit RuleMutationScope(CSSRule*);
114 ~RuleMutationScope(); 116 ~RuleMutationScope();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 188
187 DEFINE_TYPE_CASTS(CSSStyleSheet, 189 DEFINE_TYPE_CASTS(CSSStyleSheet,
188 StyleSheet, 190 StyleSheet,
189 sheet, 191 sheet,
190 sheet->isCSSStyleSheet(), 192 sheet->isCSSStyleSheet(),
191 sheet.isCSSStyleSheet()); 193 sheet.isCSSStyleSheet());
192 194
193 } // namespace blink 195 } // namespace blink
194 196
195 #endif 197 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleDeclaration.h ('k') | third_party/WebKit/Source/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698