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

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

Issue 38823002: Web Animations CSS: Support animation of {text,box,-webkit-box}-shadow and fix blur clamping (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: use 0 instead of PassRefPtr<..>() 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 30 matching lines...) Expand all
41 , m_blur(blur) 41 , m_blur(blur)
42 , m_spread(spread) 42 , m_spread(spread)
43 , m_color(color) 43 , m_color(color)
44 , m_style(style) 44 , m_style(style)
45 { 45 {
46 } 46 }
47 47
48 bool operator==(const ShadowData&) const; 48 bool operator==(const ShadowData&) const;
49 bool operator!=(const ShadowData& o) const { return !(*this == o); } 49 bool operator!=(const ShadowData& o) const { return !(*this == o); }
50 50
51 ShadowData blend(const ShadowData& from, double progress) const;
52
51 int x() const { return m_location.x(); } 53 int x() const { return m_location.x(); }
52 int y() const { return m_location.y(); } 54 int y() const { return m_location.y(); }
53 IntPoint location() const { return m_location; } 55 IntPoint location() const { return m_location; }
54 int blur() const { return m_blur; } 56 int blur() const { return m_blur; }
55 int spread() const { return m_spread; } 57 int spread() const { return m_spread; }
56 ShadowStyle style() const { return m_style; } 58 ShadowStyle style() const { return m_style; }
57 const Color& color() const { return m_color; } 59 const Color& color() const { return m_color; }
58 60
59 private: 61 private:
60 IntPoint m_location; 62 IntPoint m_location;
61 int m_blur; 63 int m_blur;
62 int m_spread; 64 int m_spread;
63 Color m_color; 65 Color m_color;
64 ShadowStyle m_style; 66 ShadowStyle m_style;
65 }; 67 };
66 68
67 } // namespace WebCore 69 } // namespace WebCore
68 70
69 #endif // ShadowData_h 71 #endif // ShadowData_h
OLDNEW
« no previous file with comments | « Source/core/frame/animation/CSSPropertyAnimation.cpp ('k') | Source/core/rendering/style/ShadowData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698