| 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 12 matching lines...) Expand all Loading... |
| 23 #ifndef StyleResourceLoader_h | 23 #ifndef StyleResourceLoader_h |
| 24 #define StyleResourceLoader_h | 24 #define StyleResourceLoader_h |
| 25 | 25 |
| 26 #include "platform/heap/Handle.h" | 26 #include "platform/heap/Handle.h" |
| 27 #include "wtf/Forward.h" | 27 #include "wtf/Forward.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 class ElementStyleResources; | 31 class ElementStyleResources; |
| 32 class Document; | 32 class Document; |
| 33 class LayoutStyle; | 33 class ComputedStyle; |
| 34 class RenderStyle; | 34 class RenderStyle; |
| 35 class ShapeValue; | 35 class ShapeValue; |
| 36 class StyleImage; | 36 class StyleImage; |
| 37 class StylePendingImage; | 37 class StylePendingImage; |
| 38 | 38 |
| 39 // Manages loading of resources, requested by the stylesheets. | 39 // Manages loading of resources, requested by the stylesheets. |
| 40 // Expects the same lifetime as StyleResolver, because | 40 // Expects the same lifetime as StyleResolver, because |
| 41 // it expects Document to never change. | 41 // it expects Document to never change. |
| 42 class StyleResourceLoader final { | 42 class StyleResourceLoader final { |
| 43 WTF_MAKE_NONCOPYABLE(StyleResourceLoader); | 43 WTF_MAKE_NONCOPYABLE(StyleResourceLoader); |
| 44 DISALLOW_ALLOCATION(); | 44 DISALLOW_ALLOCATION(); |
| 45 public: | 45 public: |
| 46 explicit StyleResourceLoader(Document*); | 46 explicit StyleResourceLoader(Document*); |
| 47 | 47 |
| 48 void loadPendingResources(LayoutStyle*, ElementStyleResources&); | 48 void loadPendingResources(ComputedStyle*, ElementStyleResources&); |
| 49 | 49 |
| 50 DECLARE_TRACE(); | 50 DECLARE_TRACE(); |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 void loadPendingSVGDocuments(LayoutStyle*, ElementStyleResources&); | 53 void loadPendingSVGDocuments(ComputedStyle*, ElementStyleResources&); |
| 54 | 54 |
| 55 PassRefPtr<StyleImage> loadPendingImage(StylePendingImage*, float deviceScal
eFactor); | 55 PassRefPtr<StyleImage> loadPendingImage(StylePendingImage*, float deviceScal
eFactor); |
| 56 void loadPendingImages(LayoutStyle*, ElementStyleResources&); | 56 void loadPendingImages(ComputedStyle*, ElementStyleResources&); |
| 57 void loadPendingShapeImage(LayoutStyle*, ShapeValue*, float deviceScaleFacto
r); | 57 void loadPendingShapeImage(ComputedStyle*, ShapeValue*, float deviceScaleFac
tor); |
| 58 | 58 |
| 59 RawPtrWillBeMember<Document> m_document; | 59 RawPtrWillBeMember<Document> m_document; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace blink | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif // StyleResourceLoader_h | 64 #endif // StyleResourceLoader_h |
| OLD | NEW |