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

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

Issue 1658923004: PurgeMemory. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 return; 437 return;
438 438
439 m_loadCompleted = completed; 439 m_loadCompleted = completed;
440 440
441 if (completed) 441 if (completed)
442 m_contents->clientLoadCompleted(this); 442 m_contents->clientLoadCompleted(this);
443 else 443 else
444 m_contents->clientLoadStarted(this); 444 m_contents->clientLoadStarted(this);
445 } 445 }
446 446
447 void CSSStyleSheet::purgeMemory()
448 {
449 if (m_contents)
450 m_contents->purgeMemory();
451 }
452
447 DEFINE_TRACE(CSSStyleSheet) 453 DEFINE_TRACE(CSSStyleSheet)
448 { 454 {
449 visitor->trace(m_contents); 455 visitor->trace(m_contents);
450 visitor->trace(m_mediaQueries); 456 visitor->trace(m_mediaQueries);
451 visitor->trace(m_ownerNode); 457 visitor->trace(m_ownerNode);
452 visitor->trace(m_ownerRule); 458 visitor->trace(m_ownerRule);
453 visitor->trace(m_mediaCSSOMWrapper); 459 visitor->trace(m_mediaCSSOMWrapper);
454 visitor->trace(m_childRuleCSSOMWrappers); 460 visitor->trace(m_childRuleCSSOMWrappers);
455 visitor->trace(m_ruleListCSSOMWrapper); 461 visitor->trace(m_ruleListCSSOMWrapper);
456 StyleSheet::trace(visitor); 462 StyleSheet::trace(visitor);
457 } 463 }
458 464
459 } // namespace blink 465 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.h ('k') | third_party/WebKit/Source/core/css/CSSValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698