OLD | NEW |
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...) Loading... |
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...) Loading... |
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 |
OLD | NEW |