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

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

Issue 81123002: Factor out common BorderImageLength code in CSSToStyleMap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address review comments Created 7 years 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/css/CSSToStyleMap.cpp ('k') | Source/core/rendering/style/BorderImageLengthBox.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Opera Software ASA. All rights reserved. 2 * Copyright (c) 2013, Opera Software ASA. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 23 matching lines...) Expand all
34 #include "platform/Length.h" 34 #include "platform/Length.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 // Represents an individual computed border image width or outset. 38 // Represents an individual computed border image width or outset.
39 // 39 //
40 // http://www.w3.org/TR/css3-background/#border-image-width 40 // http://www.w3.org/TR/css3-background/#border-image-width
41 // http://www.w3.org/TR/css3-background/#border-image-outset 41 // http://www.w3.org/TR/css3-background/#border-image-outset
42 class BorderImageLength { 42 class BorderImageLength {
43 public: 43 public:
44 BorderImageLength()
45 : m_length(Auto)
46 , m_number(0)
47 , m_type(LengthType)
48 {
49 }
50
51 BorderImageLength(double number) 44 BorderImageLength(double number)
52 : m_length(Undefined) 45 : m_length(Undefined)
53 , m_number(number) 46 , m_number(number)
54 , m_type(NumberType) 47 , m_type(NumberType)
55 { 48 {
56 } 49 }
57 50
58 BorderImageLength(const Length& length) 51 BorderImageLength(const Length& length)
59 : m_length(length) 52 : m_length(length)
60 , m_number(0) 53 , m_number(0)
(...skipping 26 matching lines...) Expand all
87 double m_number; 80 double m_number;
88 enum { 81 enum {
89 LengthType, 82 LengthType,
90 NumberType 83 NumberType
91 } m_type; 84 } m_type;
92 }; 85 };
93 86
94 } // namespace WebCore 87 } // namespace WebCore
95 88
96 #endif // BorderImageLength_h 89 #endif // BorderImageLength_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSToStyleMap.cpp ('k') | Source/core/rendering/style/BorderImageLengthBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698