OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "core/css/CSSGradientValue.h" | 27 #include "core/css/CSSGradientValue.h" |
28 | 28 |
29 #include "CSSValueKeywords.h" | 29 #include "CSSValueKeywords.h" |
30 #include "core/css/CSSCalculationValue.h" | 30 #include "core/css/CSSCalculationValue.h" |
31 #include "core/css/CSSToLengthConversionData.h" | 31 #include "core/css/CSSToLengthConversionData.h" |
32 #include "core/dom/NodeRenderStyle.h" | 32 #include "core/dom/NodeRenderStyle.h" |
33 #include "core/dom/TextLinkColors.h" | 33 #include "core/dom/TextLinkColors.h" |
34 #include "core/platform/graphics/Gradient.h" | |
35 #include "core/platform/graphics/GradientGeneratedImage.h" | 34 #include "core/platform/graphics/GradientGeneratedImage.h" |
36 #include "core/platform/graphics/Image.h" | |
37 #include "core/rendering/RenderObject.h" | 35 #include "core/rendering/RenderObject.h" |
38 #include "platform/geometry/IntSize.h" | 36 #include "platform/geometry/IntSize.h" |
| 37 #include "platform/graphics/Gradient.h" |
| 38 #include "platform/graphics/Image.h" |
39 #include "wtf/text/StringBuilder.h" | 39 #include "wtf/text/StringBuilder.h" |
40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
41 | 41 |
42 using namespace std; | 42 using namespace std; |
43 | 43 |
44 namespace WebCore { | 44 namespace WebCore { |
45 | 45 |
46 PassRefPtr<Image> CSSGradientValue::image(RenderObject* renderer, const IntSize&
size) | 46 PassRefPtr<Image> CSSGradientValue::image(RenderObject* renderer, const IntSize&
size) |
47 { | 47 { |
48 if (size.isEmpty()) | 48 if (size.isEmpty()) |
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1155 equalHorizontalAndVerticalSize = compareCSSValuePtr(m_endHorizontalSize,
other.m_endHorizontalSize) && compareCSSValuePtr(m_endVerticalSize, other.m_end
VerticalSize); | 1155 equalHorizontalAndVerticalSize = compareCSSValuePtr(m_endHorizontalSize,
other.m_endHorizontalSize) && compareCSSValuePtr(m_endVerticalSize, other.m_end
VerticalSize); |
1156 else { | 1156 else { |
1157 equalShape = !other.m_shape; | 1157 equalShape = !other.m_shape; |
1158 equalSizingBehavior = !other.m_sizingBehavior; | 1158 equalSizingBehavior = !other.m_sizingBehavior; |
1159 equalHorizontalAndVerticalSize = !other.m_endHorizontalSize && !other.m_
endVerticalSize; | 1159 equalHorizontalAndVerticalSize = !other.m_endHorizontalSize && !other.m_
endVerticalSize; |
1160 } | 1160 } |
1161 return equalShape && equalSizingBehavior && equalHorizontalAndVerticalSize &
& m_stops == other.m_stops; | 1161 return equalShape && equalSizingBehavior && equalHorizontalAndVerticalSize &
& m_stops == other.m_stops; |
1162 } | 1162 } |
1163 | 1163 |
1164 } // namespace WebCore | 1164 } // namespace WebCore |
OLD | NEW |