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 23 matching lines...) Expand all Loading... | |
| 34 class CSSCursorImageValue; | 34 class CSSCursorImageValue; |
| 35 class CSSImageValue; | 35 class CSSImageValue; |
| 36 class CSSImageGeneratorValue; | 36 class CSSImageGeneratorValue; |
| 37 class CSSImageSetValue; | 37 class CSSImageSetValue; |
| 38 class CSSSVGDocumentValue; | 38 class CSSSVGDocumentValue; |
| 39 class CSSValue; | 39 class CSSValue; |
| 40 class FilterOperation; | 40 class FilterOperation; |
| 41 class StyleImage; | 41 class StyleImage; |
| 42 class TextLinkColors; | 42 class TextLinkColors; |
| 43 | 43 |
| 44 typedef WillBePersistentHeapHashMap<FilterOperation*, RefPtrWillBeMember<CSSSVGD ocumentValue> > PendingSVGDocumentMap; | 44 typedef WillBeHeapHashMap<FilterOperation*, RefPtrWillBeMember<CSSSVGDocumentVal ue> > PendingSVGDocumentMap; |
| 45 typedef WillBePersistentHeapHashMap<CSSPropertyID, RefPtrWillBeMember<CSSValue> > PendingImagePropertyMap; | 45 typedef WillBeHeapHashMap<CSSPropertyID, RefPtrWillBeMember<CSSValue> > PendingI magePropertyMap; |
| 46 | 46 |
| 47 // Holds information about resources, requested by stylesheets. | 47 // Holds information about resources, requested by stylesheets. |
| 48 // Lifetime: per-element style resolve. | 48 // Lifetime: per-element style resolve. |
| 49 class ElementStyleResources { | 49 class ElementStyleResources { |
| 50 STACK_ALLOCATED(); | |
| 50 WTF_MAKE_NONCOPYABLE(ElementStyleResources); | 51 WTF_MAKE_NONCOPYABLE(ElementStyleResources); |
|
haraken
2014/03/21 13:51:30
Nit: Fix indentation.
wibling-chromium
2014/03/24 07:59:17
Done.
| |
| 51 public: | 52 public: |
| 52 ElementStyleResources(); | 53 ElementStyleResources(); |
| 53 | 54 |
| 54 PassRefPtr<StyleImage> styleImage(const TextLinkColors&, Color currentColor, CSSPropertyID, CSSValue*); | 55 PassRefPtr<StyleImage> styleImage(const TextLinkColors&, Color currentColor, CSSPropertyID, CSSValue*); |
| 55 | 56 |
| 56 PassRefPtr<StyleImage> generatedOrPendingFromValue(CSSPropertyID, CSSImageGe neratorValue*); | 57 PassRefPtr<StyleImage> generatedOrPendingFromValue(CSSPropertyID, CSSImageGe neratorValue*); |
| 57 PassRefPtr<StyleImage> cachedOrPendingFromValue(CSSPropertyID, CSSImageValue *); | 58 PassRefPtr<StyleImage> cachedOrPendingFromValue(CSSPropertyID, CSSImageValue *); |
| 58 PassRefPtr<StyleImage> setOrPendingFromValue(CSSPropertyID, CSSImageSetValue *); | 59 PassRefPtr<StyleImage> setOrPendingFromValue(CSSPropertyID, CSSImageSetValue *); |
| 59 PassRefPtr<StyleImage> cursorOrPendingFromValue(CSSPropertyID, CSSCursorImag eValue*); | 60 PassRefPtr<StyleImage> cursorOrPendingFromValue(CSSPropertyID, CSSCursorImag eValue*); |
| 60 | 61 |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 71 | 72 |
| 72 private: | 73 private: |
| 73 PendingImagePropertyMap m_pendingImageProperties; | 74 PendingImagePropertyMap m_pendingImageProperties; |
| 74 PendingSVGDocumentMap m_pendingSVGDocuments; | 75 PendingSVGDocumentMap m_pendingSVGDocuments; |
| 75 float m_deviceScaleFactor; | 76 float m_deviceScaleFactor; |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace WebCore | 79 } // namespace WebCore |
| 79 | 80 |
| 80 #endif // ElementStyleResources_h | 81 #endif // ElementStyleResources_h |
| OLD | NEW |