Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 26 matching lines...) Expand all Loading... | |
| 37 #include "core/style/StyleFetchedImage.h" | 37 #include "core/style/StyleFetchedImage.h" |
| 38 #include "core/style/StyleFetchedImageSet.h" | 38 #include "core/style/StyleFetchedImageSet.h" |
| 39 #include "core/style/StyleGeneratedImage.h" | 39 #include "core/style/StyleGeneratedImage.h" |
| 40 #include "core/style/StyleImage.h" | 40 #include "core/style/StyleImage.h" |
| 41 #include "core/style/StyleInvalidImage.h" | 41 #include "core/style/StyleInvalidImage.h" |
| 42 #include "core/style/StylePendingImage.h" | 42 #include "core/style/StylePendingImage.h" |
| 43 #include "platform/graphics/filters/FilterOperation.h" | 43 #include "platform/graphics/filters/FilterOperation.h" |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 ElementStyleResources::ElementStyleResources() | |
|
esprehn
2016/09/12 20:53:12
All the methods crash
| |
| 48 { | |
| 49 } | |
| 50 | |
| 47 ElementStyleResources::ElementStyleResources(Document& document, float deviceSca leFactor) | 51 ElementStyleResources::ElementStyleResources(Document& document, float deviceSca leFactor) |
| 48 : m_document(&document) | 52 : m_document(&document) |
| 49 , m_deviceScaleFactor(deviceScaleFactor) | 53 , m_deviceScaleFactor(deviceScaleFactor) |
| 50 { | 54 { |
| 51 } | 55 } |
| 52 | 56 |
| 53 StyleImage* ElementStyleResources::styleImage(CSSPropertyID property, const CSSV alue& value) | 57 StyleImage* ElementStyleResources::styleImage(CSSPropertyID property, const CSSV alue& value) |
| 54 { | 58 { |
| 55 if (value.isImageValue()) | 59 if (value.isImageValue()) |
| 56 return cachedOrPendingFromValue(property, toCSSImageValue(value)); | 60 return cachedOrPendingFromValue(property, toCSSImageValue(value)); |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 252 } | 256 } |
| 253 } | 257 } |
| 254 | 258 |
| 255 void ElementStyleResources::loadPendingResources(ComputedStyle* computedStyle) | 259 void ElementStyleResources::loadPendingResources(ComputedStyle* computedStyle) |
| 256 { | 260 { |
| 257 loadPendingImages(computedStyle); | 261 loadPendingImages(computedStyle); |
| 258 loadPendingSVGDocuments(computedStyle); | 262 loadPendingSVGDocuments(computedStyle); |
| 259 } | 263 } |
| 260 | 264 |
| 261 } // namespace blink | 265 } // namespace blink |
| OLD | NEW |