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

Side by Side Diff: third_party/WebKit/Source/core/style/StyleGeneratedImage.cpp

Issue 1896893004: Hook up style invalidation for CSS Paint API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css-paint-register
Patch Set: rebase. Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 16 matching lines...) Expand all
27 #include "core/css/resolver/StyleResolver.h" 27 #include "core/css/resolver/StyleResolver.h"
28 #include "core/layout/LayoutObject.h" 28 #include "core/layout/LayoutObject.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 StyleGeneratedImage::StyleGeneratedImage(const CSSImageGeneratorValue& value) 32 StyleGeneratedImage::StyleGeneratedImage(const CSSImageGeneratorValue& value)
33 : m_imageGeneratorValue(const_cast<CSSImageGeneratorValue*>(&value)) 33 : m_imageGeneratorValue(const_cast<CSSImageGeneratorValue*>(&value))
34 , m_fixedSize(m_imageGeneratorValue->isFixedSize()) 34 , m_fixedSize(m_imageGeneratorValue->isFixedSize())
35 { 35 {
36 m_isGeneratedImage = true; 36 m_isGeneratedImage = true;
37 if (value.isPaintValue())
38 m_isPaintImage = true;
37 } 39 }
38 40
39 CSSValue* StyleGeneratedImage::cssValue() const 41 CSSValue* StyleGeneratedImage::cssValue() const
40 { 42 {
41 return m_imageGeneratorValue.get(); 43 return m_imageGeneratorValue.get();
42 } 44 }
43 45
44 CSSValue* StyleGeneratedImage::computedCSSValue() const 46 CSSValue* StyleGeneratedImage::computedCSSValue() const
45 { 47 {
46 return m_imageGeneratorValue->valueWithURLsMadeAbsolute(); 48 return m_imageGeneratorValue->valueWithURLsMadeAbsolute();
(...skipping 30 matching lines...) Expand all
77 return m_imageGeneratorValue->knownToBeOpaque(layoutObject); 79 return m_imageGeneratorValue->knownToBeOpaque(layoutObject);
78 } 80 }
79 81
80 DEFINE_TRACE(StyleGeneratedImage) 82 DEFINE_TRACE(StyleGeneratedImage)
81 { 83 {
82 visitor->trace(m_imageGeneratorValue); 84 visitor->trace(m_imageGeneratorValue);
83 StyleImage::trace(visitor); 85 StyleImage::trace(visitor);
84 } 86 }
85 87
86 } // namespace blink 88 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | third_party/WebKit/Source/core/style/StyleImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698