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

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

Issue 2547713003: Returned MediaQuerySet should be const. (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | 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, 2008, 2009, 2010, 2012 Apple Inc. All rights 3 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights
4 * reserved. 4 * reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * 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.
10 * 10 *
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 CSSRule* item(unsigned index); 92 CSSRule* item(unsigned index);
93 93
94 void clearOwnerNode() override; 94 void clearOwnerNode() override;
95 95
96 CSSRule* ownerRule() const override { return m_ownerRule; } 96 CSSRule* ownerRule() const override { return m_ownerRule; }
97 KURL baseURL() const override; 97 KURL baseURL() const override;
98 bool isLoading() const override; 98 bool isLoading() const override;
99 99
100 void clearOwnerRule() { m_ownerRule = nullptr; } 100 void clearOwnerRule() { m_ownerRule = nullptr; }
101 Document* ownerDocument() const; 101 Document* ownerDocument() const;
102 MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); } 102 const MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); }
sof 2016/12/02 09:30:11 nit: get() is redundant.
rune 2016/12/02 09:52:52 Done.
103 void setMediaQueries(MediaQuerySet*); 103 void setMediaQueries(MediaQuerySet*);
104 void setTitle(const String& title) { m_title = title; } 104 void setTitle(const String& title) { m_title = title; }
105 // Set by LinkStyle iff CORS-enabled fetch of stylesheet succeeded from this 105 // Set by LinkStyle iff CORS-enabled fetch of stylesheet succeeded from this
106 // origin. 106 // origin.
107 void setAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allowedOrigin); 107 void setAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allowedOrigin);
108 108
109 class RuleMutationScope { 109 class RuleMutationScope {
110 WTF_MAKE_NONCOPYABLE(RuleMutationScope); 110 WTF_MAKE_NONCOPYABLE(RuleMutationScope);
111 STACK_ALLOCATED(); 111 STACK_ALLOCATED();
112 112
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 DEFINE_TYPE_CASTS(CSSStyleSheet, 189 DEFINE_TYPE_CASTS(CSSStyleSheet,
190 StyleSheet, 190 StyleSheet,
191 sheet, 191 sheet,
192 sheet->isCSSStyleSheet(), 192 sheet->isCSSStyleSheet(),
193 sheet.isCSSStyleSheet()); 193 sheet.isCSSStyleSheet());
194 194
195 } // namespace blink 195 } // namespace blink
196 196
197 #endif 197 #endif
OLDNEW
« 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