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

Side by Side Diff: Source/modules/canvas2d/CanvasRenderingContext2DState.h

Issue 1225553002: CSSValue Immediates: Make CSSPrimitiveValue a container (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_1
Patch Set: Rebase Created 5 years, 4 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
« no previous file with comments | « Source/core/svg/SVGLength.cpp ('k') | Source/web/PluginPlaceholderImplTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CanvasRenderingContext2DState_h 5 #ifndef CanvasRenderingContext2DState_h
6 #define CanvasRenderingContext2DState_h 6 #define CanvasRenderingContext2DState_h
7 7
8 #include "core/css/CSSFontSelectorClient.h" 8 #include "core/css/CSSFontSelectorClient.h"
9 #include "core/css/CSSValue.h" 9 #include "core/css/CSSValue.h"
10 #include "modules/canvas2d/ClipList.h" 10 #include "modules/canvas2d/ClipList.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void setFont(const Font&, CSSFontSelector*); 77 void setFont(const Font&, CSSFontSelector*);
78 const Font& font() const; 78 const Font& font() const;
79 bool hasRealizedFont() const { return m_realizedFont; } 79 bool hasRealizedFont() const { return m_realizedFont; }
80 void setUnparsedFont(const String& font) { m_unparsedFont = font; } 80 void setUnparsedFont(const String& font) { m_unparsedFont = font; }
81 const String& unparsedFont() const { return m_unparsedFont; } 81 const String& unparsedFont() const { return m_unparsedFont; }
82 82
83 void setFilter(CSSValue); 83 void setFilter(CSSValue);
84 void setUnparsedFilter(const String& filterString) { m_unparsedFilter = filt erString; } 84 void setUnparsedFilter(const String& filterString) { m_unparsedFilter = filt erString; }
85 const String& unparsedFilter() const { return m_unparsedFilter; } 85 const String& unparsedFilter() const { return m_unparsedFilter; }
86 SkImageFilter* getFilter(Element*, const Font&) const; 86 SkImageFilter* getFilter(Element*, const Font&) const;
87 bool hasFilter() const { return m_filterValue; } 87 bool hasFilter() const { return (bool)m_filterValue; }
88 88
89 void setStrokeStyle(PassRefPtrWillBeRawPtr<CanvasStyle>); 89 void setStrokeStyle(PassRefPtrWillBeRawPtr<CanvasStyle>);
90 CanvasStyle* strokeStyle() const { return m_strokeStyle.get(); } 90 CanvasStyle* strokeStyle() const { return m_strokeStyle.get(); }
91 91
92 void setFillStyle(PassRefPtrWillBeRawPtr<CanvasStyle>); 92 void setFillStyle(PassRefPtrWillBeRawPtr<CanvasStyle>);
93 CanvasStyle* fillStyle() const { return m_fillStyle.get(); } 93 CanvasStyle* fillStyle() const { return m_fillStyle.get(); }
94 94
95 CanvasStyle* style(PaintType) const; 95 CanvasStyle* style(PaintType) const;
96 96
97 enum Direction { 97 enum Direction {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 mutable bool m_fillStyleDirty : 1; 215 mutable bool m_fillStyleDirty : 1;
216 mutable bool m_strokeStyleDirty : 1; 216 mutable bool m_strokeStyleDirty : 1;
217 mutable bool m_lineDashDirty : 1; 217 mutable bool m_lineDashDirty : 1;
218 218
219 ClipList m_clipList; 219 ClipList m_clipList;
220 }; 220 };
221 221
222 } // blink 222 } // blink
223 223
224 #endif 224 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLength.cpp ('k') | Source/web/PluginPlaceholderImplTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698