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

Side by Side Diff: Source/core/css/CSSGradientValue.cpp

Issue 25494003: Move geometry classes from core/platform/graphics to platform/geometry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSCursorImageValue.h ('k') | Source/core/css/CSSMatrix.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) 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 15 matching lines...) Expand all
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/dom/NodeRenderStyle.h" 31 #include "core/dom/NodeRenderStyle.h"
32 #include "core/dom/TextLinkColors.h" 32 #include "core/dom/TextLinkColors.h"
33 #include "core/platform/graphics/GeneratorGeneratedImage.h" 33 #include "core/platform/graphics/GeneratorGeneratedImage.h"
34 #include "core/platform/graphics/Gradient.h" 34 #include "core/platform/graphics/Gradient.h"
35 #include "core/platform/graphics/Image.h" 35 #include "core/platform/graphics/Image.h"
36 #include "core/platform/graphics/IntSize.h"
37 #include "core/rendering/RenderObject.h" 36 #include "core/rendering/RenderObject.h"
37 #include "platform/geometry/IntSize.h"
38 #include "wtf/text/StringBuilder.h" 38 #include "wtf/text/StringBuilder.h"
39 #include "wtf/text/WTFString.h" 39 #include "wtf/text/WTFString.h"
40 40
41 using namespace std; 41 using namespace std;
42 42
43 namespace WebCore { 43 namespace WebCore {
44 44
45 PassRefPtr<Image> CSSGradientValue::image(RenderObject* renderer, const IntSize& size) 45 PassRefPtr<Image> CSSGradientValue::image(RenderObject* renderer, const IntSize& size)
46 { 46 {
47 if (size.isEmpty()) 47 if (size.isEmpty())
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 equalHorizontalAndVerticalSize = compareCSSValuePtr(m_endHorizontalSize, other.m_endHorizontalSize) && compareCSSValuePtr(m_endVerticalSize, other.m_end VerticalSize); 1162 equalHorizontalAndVerticalSize = compareCSSValuePtr(m_endHorizontalSize, other.m_endHorizontalSize) && compareCSSValuePtr(m_endVerticalSize, other.m_end VerticalSize);
1163 else { 1163 else {
1164 equalShape = !other.m_shape; 1164 equalShape = !other.m_shape;
1165 equalSizingBehavior = !other.m_sizingBehavior; 1165 equalSizingBehavior = !other.m_sizingBehavior;
1166 equalHorizontalAndVerticalSize = !other.m_endHorizontalSize && !other.m_ endVerticalSize; 1166 equalHorizontalAndVerticalSize = !other.m_endHorizontalSize && !other.m_ endVerticalSize;
1167 } 1167 }
1168 return equalShape && equalSizingBehavior && equalHorizontalAndVerticalSize & & m_stops == other.m_stops; 1168 return equalShape && equalSizingBehavior && equalHorizontalAndVerticalSize & & m_stops == other.m_stops;
1169 } 1169 }
1170 1170
1171 } // namespace WebCore 1171 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSCursorImageValue.h ('k') | Source/core/css/CSSMatrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698