| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 3 Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
| 4 Copyright (C) 2011 Rik Cabanier (cabanier@adobe.com) | 4 Copyright (C) 2011 Rik Cabanier (cabanier@adobe.com) |
| 5 Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 5 Copyright (C) 2011 Adobe Systems Incorporated. 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 bool isNegative() const | 245 bool isNegative() const |
| 246 { | 246 { |
| 247 if (isMaxSizeNone() || isCalculated()) | 247 if (isMaxSizeNone() || isCalculated()) |
| 248 return false; | 248 return false; |
| 249 | 249 |
| 250 return getFloatValue() < 0; | 250 return getFloatValue() < 0; |
| 251 } | 251 } |
| 252 | 252 |
| 253 bool isAuto() const { return type() == Auto; } | 253 bool isAuto() const { return type() == Auto; } |
| 254 bool isFixed() const { return type() == Fixed; } | 254 bool isFixed() const { return type() == Fixed; } |
| 255 bool isPercent() const { return type() == Percent; } |
| 255 bool isIntrinsicOrAuto() const { return type() == Auto || isIntrinsic(); } | 256 bool isIntrinsicOrAuto() const { return type() == Auto || isIntrinsic(); } |
| 256 bool isIntrinsic() const { return type() == MinContent || type() == MaxConte
nt || type() == FillAvailable || type() == FitContent; } | 257 bool isIntrinsic() const { return type() == MinContent || type() == MaxConte
nt || type() == FillAvailable || type() == FitContent; } |
| 257 bool isSpecified() const { return type() == Fixed || type() == Percent || ty
pe() == Calculated; } | 258 bool isSpecified() const { return type() == Fixed || type() == Percent || ty
pe() == Calculated; } |
| 258 bool isSpecifiedOrIntrinsic() const { return isSpecified() || isIntrinsic();
} | 259 bool isSpecifiedOrIntrinsic() const { return isSpecified() || isIntrinsic();
} |
| 259 bool isCalculated() const { return type() == Calculated; } | 260 bool isCalculated() const { return type() == Calculated; } |
| 260 bool isCalculatedEqual(const Length&) const; | 261 bool isCalculatedEqual(const Length&) const; |
| 261 bool isMinContent() const { return type() == MinContent; } | 262 bool isMinContent() const { return type() == MinContent; } |
| 262 bool isMaxContent() const { return type() == MaxContent; } | 263 bool isMaxContent() const { return type() == MaxContent; } |
| 263 bool isFillAvailable() const { return type() == FillAvailable; } | 264 bool isFillAvailable() const { return type() == FillAvailable; } |
| 264 bool isFitContent() const { return type() == FitContent; } | 265 bool isFitContent() const { return type() == FitContent; } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 float m_floatValue; | 327 float m_floatValue; |
| 327 }; | 328 }; |
| 328 bool m_quirk; | 329 bool m_quirk; |
| 329 unsigned char m_type; | 330 unsigned char m_type; |
| 330 bool m_isFloat; | 331 bool m_isFloat; |
| 331 }; | 332 }; |
| 332 | 333 |
| 333 } // namespace blink | 334 } // namespace blink |
| 334 | 335 |
| 335 #endif // Length_h | 336 #endif // Length_h |
| OLD | NEW |