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

Side by Side Diff: Source/core/css/StyleSheetContents.cpp

Issue 185403016: Oilpan: Use weak pointers in StyleSheetContents caches. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/StyleEngine.cpp » ('j') | Source/core/dom/StyleEngine.cpp » ('J')
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, 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // FIXME: Copy import rules. 91 // FIXME: Copy import rules.
92 ASSERT(o.m_importRules.isEmpty()); 92 ASSERT(o.m_importRules.isEmpty());
93 93
94 for (unsigned i = 0; i < m_childRules.size(); ++i) 94 for (unsigned i = 0; i < m_childRules.size(); ++i)
95 m_childRules[i] = o.m_childRules[i]->copy(); 95 m_childRules[i] = o.m_childRules[i]->copy();
96 } 96 }
97 97
98 StyleSheetContents::~StyleSheetContents() 98 StyleSheetContents::~StyleSheetContents()
99 { 99 {
100 #if !ENABLE(OILPAN)
100 StyleEngine::removeSheet(this); 101 StyleEngine::removeSheet(this);
101 #if !ENABLE(OILPAN)
102 clearRules(); 102 clearRules();
103 #endif 103 #endif
104 } 104 }
105 105
106 void StyleSheetContents::setHasSyntacticallyValidCSSHeader(bool isValidCss) 106 void StyleSheetContents::setHasSyntacticallyValidCSSHeader(bool isValidCss)
107 { 107 {
108 if (maybeCacheable() && !isValidCss) 108 if (maybeCacheable() && !isValidCss)
109 StyleEngine::removeSheet(this); 109 StyleEngine::removeSheet(this);
110 m_hasSyntacticallyValidCSSHeader = isValidCss; 110 m_hasSyntacticallyValidCSSHeader = isValidCss;
111 } 111 }
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 } 616 }
617 617
618 void StyleSheetContents::trace(Visitor* visitor) 618 void StyleSheetContents::trace(Visitor* visitor)
619 { 619 {
620 visitor->trace(m_ownerRule); 620 visitor->trace(m_ownerRule);
621 visitor->trace(m_importRules); 621 visitor->trace(m_importRules);
622 visitor->trace(m_childRules); 622 visitor->trace(m_childRules);
623 } 623 }
624 624
625 } 625 }
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/StyleEngine.cpp » ('j') | Source/core/dom/StyleEngine.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698