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

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

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 } 402 }
403 403
404 Document* CSSStyleSheet::ownerDocument() const 404 Document* CSSStyleSheet::ownerDocument() const
405 { 405 {
406 const CSSStyleSheet* root = this; 406 const CSSStyleSheet* root = this;
407 while (root->parentStyleSheet()) 407 while (root->parentStyleSheet())
408 root = root->parentStyleSheet(); 408 root = root->parentStyleSheet();
409 return root->ownerNode() ? &root->ownerNode()->document() : nullptr; 409 return root->ownerNode() ? &root->ownerNode()->document() : nullptr;
410 } 410 }
411 411
412 MediaQuerySet* CSSStyleSheet::mediaQueries() const
413 {
414 return m_mediaQueries.get();
415 }
416
412 void CSSStyleSheet::setAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allo wedOrigin) 417 void CSSStyleSheet::setAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allo wedOrigin)
413 { 418 {
414 m_allowRuleAccessFromOrigin = allowedOrigin; 419 m_allowRuleAccessFromOrigin = allowedOrigin;
415 } 420 }
416 421
417 void CSSStyleSheet::clearChildRuleCSSOMWrappers() 422 void CSSStyleSheet::clearChildRuleCSSOMWrappers()
418 { 423 {
419 m_childRuleCSSOMWrappers.clear(); 424 m_childRuleCSSOMWrappers.clear();
420 } 425 }
421 426
427 StyleSheetContents* CSSStyleSheet::contents() const
428 {
429 return m_contents.get();
430 }
431
422 bool CSSStyleSheet::sheetLoaded() 432 bool CSSStyleSheet::sheetLoaded()
423 { 433 {
424 ASSERT(m_ownerNode); 434 ASSERT(m_ownerNode);
425 setLoadCompleted(m_ownerNode->sheetLoaded()); 435 setLoadCompleted(m_ownerNode->sheetLoaded());
426 return m_loadCompleted; 436 return m_loadCompleted;
427 } 437 }
428 438
429 void CSSStyleSheet::startLoadingDynamicSheet() 439 void CSSStyleSheet::startLoadingDynamicSheet()
430 { 440 {
431 setLoadCompleted(false); 441 setLoadCompleted(false);
(...skipping 19 matching lines...) Expand all
451 visitor->trace(m_mediaQueries); 461 visitor->trace(m_mediaQueries);
452 visitor->trace(m_ownerNode); 462 visitor->trace(m_ownerNode);
453 visitor->trace(m_ownerRule); 463 visitor->trace(m_ownerRule);
454 visitor->trace(m_mediaCSSOMWrapper); 464 visitor->trace(m_mediaCSSOMWrapper);
455 visitor->trace(m_childRuleCSSOMWrappers); 465 visitor->trace(m_childRuleCSSOMWrappers);
456 visitor->trace(m_ruleListCSSOMWrapper); 466 visitor->trace(m_ruleListCSSOMWrapper);
457 StyleSheet::trace(visitor); 467 StyleSheet::trace(visitor);
458 } 468 }
459 469
460 } // namespace blink 470 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698