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

Side by Side Diff: Source/core/css/resolver/StyleResourceLoader.cpp

Issue 998333002: Oilpan: turn StyleResourceLoader into a traced part object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | « Source/core/css/resolver/StyleResourceLoader.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 28 matching lines...) Expand all
39 #include "core/layout/style/StylePendingImage.h" 39 #include "core/layout/style/StylePendingImage.h"
40 #include "core/layout/svg/ReferenceFilterBuilder.h" 40 #include "core/layout/svg/ReferenceFilterBuilder.h"
41 41
42 namespace blink { 42 namespace blink {
43 43
44 StyleResourceLoader::StyleResourceLoader(Document* document) 44 StyleResourceLoader::StyleResourceLoader(Document* document)
45 : m_document(document) 45 : m_document(document)
46 { 46 {
47 } 47 }
48 48
49 DEFINE_TRACE(StyleResourceLoader)
50 {
51 visitor->trace(m_document);
52 }
53
49 void StyleResourceLoader::loadPendingSVGDocuments(LayoutStyle* layoutStyle, Elem entStyleResources& elementStyleResources) 54 void StyleResourceLoader::loadPendingSVGDocuments(LayoutStyle* layoutStyle, Elem entStyleResources& elementStyleResources)
50 { 55 {
51 if (!layoutStyle->hasFilter() || elementStyleResources.pendingSVGDocuments() .isEmpty()) 56 if (!layoutStyle->hasFilter() || elementStyleResources.pendingSVGDocuments() .isEmpty())
52 return; 57 return;
53 58
54 FilterOperations::FilterOperationVector& filterOperations = layoutStyle->mut ableFilter().operations(); 59 FilterOperations::FilterOperationVector& filterOperations = layoutStyle->mut ableFilter().operations();
55 for (unsigned i = 0; i < filterOperations.size(); ++i) { 60 for (unsigned i = 0; i < filterOperations.size(); ++i) {
56 RefPtrWillBeRawPtr<FilterOperation> filterOperation = filterOperations.a t(i); 61 RefPtrWillBeRawPtr<FilterOperation> filterOperation = filterOperations.a t(i);
57 if (filterOperation->type() == FilterOperation::REFERENCE) { 62 if (filterOperation->type() == FilterOperation::REFERENCE) {
58 ReferenceFilterOperation* referenceFilter = toReferenceFilterOperati on(filterOperation.get()); 63 ReferenceFilterOperation* referenceFilter = toReferenceFilterOperati on(filterOperation.get());
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 void StyleResourceLoader::loadPendingResources(LayoutStyle* layoutStyle, Element StyleResources& elementStyleResources) 208 void StyleResourceLoader::loadPendingResources(LayoutStyle* layoutStyle, Element StyleResources& elementStyleResources)
204 { 209 {
205 // Start loading images referenced by this style. 210 // Start loading images referenced by this style.
206 loadPendingImages(layoutStyle, elementStyleResources); 211 loadPendingImages(layoutStyle, elementStyleResources);
207 212
208 // Start loading the SVG Documents referenced by this style. 213 // Start loading the SVG Documents referenced by this style.
209 loadPendingSVGDocuments(layoutStyle, elementStyleResources); 214 loadPendingSVGDocuments(layoutStyle, elementStyleResources);
210 } 215 }
211 216
212 } 217 }
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResourceLoader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698