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

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

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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, 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 bool CSSStyleSheet::canAccessRules() const 261 bool CSSStyleSheet::canAccessRules() const
262 { 262 {
263 if (m_isInlineStylesheet) 263 if (m_isInlineStylesheet)
264 return true; 264 return true;
265 KURL baseURL = m_contents->baseURL(); 265 KURL baseURL = m_contents->baseURL();
266 if (baseURL.isEmpty()) 266 if (baseURL.isEmpty())
267 return true; 267 return true;
268 Document* document = ownerDocument(); 268 Document* document = ownerDocument();
269 if (!document) 269 if (!document)
270 return true; 270 return true;
271 if (document->securityOrigin()->canRequestNoSuborigin(baseURL)) 271 if (document->getSecurityOrigin()->canRequestNoSuborigin(baseURL))
272 return true; 272 return true;
273 if (m_allowRuleAccessFromOrigin && document->securityOrigin()->canAccessChec kSuborigins(m_allowRuleAccessFromOrigin.get())) 273 if (m_allowRuleAccessFromOrigin && document->getSecurityOrigin()->canAccessC heckSuborigins(m_allowRuleAccessFromOrigin.get()))
274 return true; 274 return true;
275 return false; 275 return false;
276 } 276 }
277 277
278 PassRefPtrWillBeRawPtr<CSSRuleList> CSSStyleSheet::rules() 278 PassRefPtrWillBeRawPtr<CSSRuleList> CSSStyleSheet::rules()
279 { 279 {
280 return cssRules(); 280 return cssRules();
281 } 281 }
282 282
283 unsigned CSSStyleSheet::insertRule(const String& ruleString, unsigned index, Exc eptionState& exceptionState) 283 unsigned CSSStyleSheet::insertRule(const String& ruleString, unsigned index, Exc eptionState& exceptionState)
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 visitor->trace(m_mediaQueries); 454 visitor->trace(m_mediaQueries);
455 visitor->trace(m_ownerNode); 455 visitor->trace(m_ownerNode);
456 visitor->trace(m_ownerRule); 456 visitor->trace(m_ownerRule);
457 visitor->trace(m_mediaCSSOMWrapper); 457 visitor->trace(m_mediaCSSOMWrapper);
458 visitor->trace(m_childRuleCSSOMWrappers); 458 visitor->trace(m_childRuleCSSOMWrappers);
459 visitor->trace(m_ruleListCSSOMWrapper); 459 visitor->trace(m_ruleListCSSOMWrapper);
460 StyleSheet::trace(visitor); 460 StyleSheet::trace(visitor);
461 } 461 }
462 462
463 } // namespace blink 463 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSImageValue.cpp ('k') | third_party/WebKit/Source/core/css/FontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698