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

Side by Side Diff: Source/core/rendering/style/SVGRenderStyleDefs.h

Issue 22482004: Add support for the object-fit CSS property. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase for landing Created 7 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
OLDNEW
1 /* 1 /*
2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005 Rob Buis <buis@kde.org> 3 2004, 2005 Rob Buis <buis@kde.org>
4 Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 Copyright (C) Research In Motion Limited 2010. All rights reserved.
5 5
6 Based on khtml code by: 6 Based on khtml code by:
7 Copyright (C) 2000-2003 Lars Knoll (knoll@kde.org) 7 Copyright (C) 2000-2003 Lars Knoll (knoll@kde.org)
8 (C) 2000 Antti Koivisto (koivisto@kde.org) 8 (C) 2000 Antti Koivisto (koivisto@kde.org)
9 (C) 2000-2003 Dirk Mueller (mueller@kde.org) 9 (C) 2000-2003 Dirk Mueller (mueller@kde.org)
10 (C) 2002-2003 Apple Computer, Inc. 10 (C) 2002-2003 Apple Computer, Inc.
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 BR_AUTO, 85 BR_AUTO,
86 BR_DYNAMIC, 86 BR_DYNAMIC,
87 BR_STATIC 87 BR_STATIC
88 }; 88 };
89 89
90 enum EMaskType { 90 enum EMaskType {
91 MT_LUMINANCE, 91 MT_LUMINANCE,
92 MT_ALPHA 92 MT_ALPHA
93 }; 93 };
94 94
95 enum EPaintOrderType {
96 PT_NONE = 0,
97 PT_FILL = 1,
98 PT_STROKE = 2,
99 PT_MARKERS = 3
100 };
101
102 const int kPaintOrderBitwidth = 2;
103 typedef unsigned EPaintOrder;
104 const unsigned PO_NORMAL = PT_FILL | PT_STROKE << 2 | PT_MARKERS << 4;
105
95 class CSSValue; 106 class CSSValue;
96 class CSSValueList; 107 class CSSValueList;
97 class SVGPaint; 108 class SVGPaint;
98 109
99 // Inherited/Non-Inherited Style Datastructures 110 // Inherited/Non-Inherited Style Datastructures
100 class StyleFillData : public RefCounted<StyleFillData> { 111 class StyleFillData : public RefCounted<StyleFillData> {
101 public: 112 public:
102 static PassRefPtr<StyleFillData> create() { return adoptRef(new StyleFil lData); } 113 static PassRefPtr<StyleFillData> create() { return adoptRef(new StyleFil lData); }
103 PassRefPtr<StyleFillData> copy() const { return adoptRef(new StyleFillDa ta(*this)); } 114 PassRefPtr<StyleFillData> copy() const { return adoptRef(new StyleFillDa ta(*this)); }
104 115
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 String markerEnd; 261 String markerEnd;
251 262
252 private: 263 private:
253 StyleInheritedResourceData(); 264 StyleInheritedResourceData();
254 StyleInheritedResourceData(const StyleInheritedResourceData&); 265 StyleInheritedResourceData(const StyleInheritedResourceData&);
255 }; 266 };
256 267
257 } // namespace WebCore 268 } // namespace WebCore
258 269
259 #endif // SVGRenderStyleDefs_h 270 #endif // SVGRenderStyleDefs_h
OLDNEW
« no previous file with comments | « Source/core/rendering/style/SVGRenderStyle.cpp ('k') | Source/core/rendering/svg/RenderSVGShape.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698