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

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

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 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 | Annotate | Revision Log
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 StyleResourceLoader::StyleResourceLoader(ResourceFetcher* fetcher) 43 StyleResourceLoader::StyleResourceLoader(ResourceFetcher* fetcher)
44 : m_fetcher(fetcher) 44 : m_fetcher(fetcher)
45 { 45 {
46 } 46 }
47 47
48 void StyleResourceLoader::loadPendingSVGDocuments(RenderStyle* renderStyle, Elem entStyleResources& elementStyleResources) 48 void StyleResourceLoader::loadPendingSVGDocuments(RenderStyle* renderStyle, Elem entStyleResources& elementStyleResources)
49 { 49 {
50 if (!renderStyle->hasFilter() || elementStyleResources.pendingSVGDocuments() .isEmpty()) 50 if (!renderStyle->hasFilter() || elementStyleResources.pendingSVGDocuments() .isEmpty())
51 return; 51 return;
52 52
53 Vector<RefPtr<FilterOperation> >& filterOperations = renderStyle->mutableFil ter().operations(); 53 FilterOperations::FilterOperationVector& filterOperations = renderStyle->mut ableFilter().operations();
54 for (unsigned i = 0; i < filterOperations.size(); ++i) { 54 for (unsigned i = 0; i < filterOperations.size(); ++i) {
55 RefPtr<FilterOperation> filterOperation = filterOperations.at(i); 55 RefPtrWillBeRawPtr<FilterOperation> filterOperation = filterOperations.a t(i);
56 if (filterOperation->type() == FilterOperation::REFERENCE) { 56 if (filterOperation->type() == FilterOperation::REFERENCE) {
57 ReferenceFilterOperation* referenceFilter = toReferenceFilterOperati on(filterOperation.get()); 57 ReferenceFilterOperation* referenceFilter = toReferenceFilterOperati on(filterOperation.get());
58 58
59 CSSSVGDocumentValue* value = elementStyleResources.pendingSVGDocumen ts().get(referenceFilter); 59 CSSSVGDocumentValue* value = elementStyleResources.pendingSVGDocumen ts().get(referenceFilter);
60 if (!value) 60 if (!value)
61 continue; 61 continue;
62 DocumentResource* resource = value->load(m_fetcher); 62 DocumentResource* resource = value->load(m_fetcher);
63 if (!resource) 63 if (!resource)
64 continue; 64 continue;
65 65
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 void StyleResourceLoader::loadPendingResources(RenderStyle* renderStyle, Element StyleResources& elementStyleResources) 202 void StyleResourceLoader::loadPendingResources(RenderStyle* renderStyle, Element StyleResources& elementStyleResources)
203 { 203 {
204 // Start loading images referenced by this style. 204 // Start loading images referenced by this style.
205 loadPendingImages(renderStyle, elementStyleResources); 205 loadPendingImages(renderStyle, elementStyleResources);
206 206
207 // Start loading the SVG Documents referenced by this style. 207 // Start loading the SVG Documents referenced by this style.
208 loadPendingSVGDocuments(renderStyle, elementStyleResources); 208 loadPendingSVGDocuments(renderStyle, elementStyleResources);
209 } 209 }
210 210
211 } 211 }
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleBuilderConverter.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698