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

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

Issue 1461193003: Revert of [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make patch applicable 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
417 void CSSStyleSheet::setAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allo wedOrigin) 412 void CSSStyleSheet::setAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allo wedOrigin)
418 { 413 {
419 m_allowRuleAccessFromOrigin = allowedOrigin; 414 m_allowRuleAccessFromOrigin = allowedOrigin;
420 } 415 }
421 416
422 void CSSStyleSheet::clearChildRuleCSSOMWrappers() 417 void CSSStyleSheet::clearChildRuleCSSOMWrappers()
423 { 418 {
424 m_childRuleCSSOMWrappers.clear(); 419 m_childRuleCSSOMWrappers.clear();
425 } 420 }
426 421
427 StyleSheetContents* CSSStyleSheet::contents() const
428 {
429 return m_contents.get();
430 }
431
432 bool CSSStyleSheet::sheetLoaded() 422 bool CSSStyleSheet::sheetLoaded()
433 { 423 {
434 ASSERT(m_ownerNode); 424 ASSERT(m_ownerNode);
435 setLoadCompleted(m_ownerNode->sheetLoaded()); 425 setLoadCompleted(m_ownerNode->sheetLoaded());
436 return m_loadCompleted; 426 return m_loadCompleted;
437 } 427 }
438 428
439 void CSSStyleSheet::startLoadingDynamicSheet() 429 void CSSStyleSheet::startLoadingDynamicSheet()
440 { 430 {
441 setLoadCompleted(false); 431 setLoadCompleted(false);
(...skipping 19 matching lines...) Expand all
461 visitor->trace(m_mediaQueries); 451 visitor->trace(m_mediaQueries);
462 visitor->trace(m_ownerNode); 452 visitor->trace(m_ownerNode);
463 visitor->trace(m_ownerRule); 453 visitor->trace(m_ownerRule);
464 visitor->trace(m_mediaCSSOMWrapper); 454 visitor->trace(m_mediaCSSOMWrapper);
465 visitor->trace(m_childRuleCSSOMWrappers); 455 visitor->trace(m_childRuleCSSOMWrappers);
466 visitor->trace(m_ruleListCSSOMWrapper); 456 visitor->trace(m_ruleListCSSOMWrapper);
467 StyleSheet::trace(visitor); 457 StyleSheet::trace(visitor);
468 } 458 }
469 459
470 } // namespace blink 460 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.h ('k') | third_party/WebKit/Source/core/css/FontFace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698