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

Unified Diff: Source/core/rendering/style/ShadowData.h

Issue 23241010: Support subpixel values for text-shadow and box-shadow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: found one more spot Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/style/ShadowData.h
diff --git a/Source/core/rendering/style/ShadowData.h b/Source/core/rendering/style/ShadowData.h
index 30a981f91ff73a42c4f935f155b0191bec90507c..a08a78df94b08c5757467c9a9800cc4a6e40a48a 100644
--- a/Source/core/rendering/style/ShadowData.h
+++ b/Source/core/rendering/style/ShadowData.h
@@ -40,7 +40,7 @@ class ShadowData {
WTF_MAKE_FAST_ALLOCATED;
public:
static PassOwnPtr<ShadowData> create() { return adoptPtr(new ShadowData); }
- static PassOwnPtr<ShadowData> create(const IntPoint& location, int blur, int spread, ShadowStyle style, const StyleColor& color)
+ static PassOwnPtr<ShadowData> create(const LayoutPoint& location, LayoutUnit blur, LayoutUnit spread, ShadowStyle style, const StyleColor& color)
{
return adoptPtr(new ShadowData(location, blur, spread, style, color));
}
@@ -53,19 +53,19 @@ public:
bool operator==(const ShadowData&) const;
bool operator!=(const ShadowData& o) const { return !(*this == o); }
- int x() const { return m_location.x(); }
- int y() const { return m_location.y(); }
- IntPoint location() const { return m_location; }
- int blur() const { return m_blur; }
- int spread() const { return m_spread; }
+ LayoutUnit x() const { return m_location.x(); }
+ LayoutUnit y() const { return m_location.y(); }
+ LayoutPoint location() const { return m_location; }
+ LayoutUnit blur() const { return m_blur; }
+ LayoutUnit spread() const { return m_spread; }
ShadowStyle style() const { return m_style; }
const StyleColor& color() const { return m_color; }
const ShadowData* next() const { return m_next.get(); }
void setNext(PassOwnPtr<ShadowData> shadow) { m_next = shadow; }
- void adjustRectForShadow(LayoutRect&, int additionalOutlineSize = 0) const;
- void adjustRectForShadow(FloatRect&, int additionalOutlineSize = 0) const;
+ void adjustRectForShadow(LayoutRect&, LayoutUnit additionalOutlineSize = 0) const;
+ void adjustRectForShadow(FloatRect&, LayoutUnit additionalOutlineSize = 0) const;
private:
ShadowData()
@@ -75,7 +75,7 @@ private:
{
}
- ShadowData(const IntPoint& location, int blur, int spread, ShadowStyle style, const StyleColor& color)
+ ShadowData(const LayoutPoint& location, LayoutUnit blur, LayoutUnit spread, ShadowStyle style, const StyleColor& color)
: m_location(location)
, m_blur(blur)
, m_spread(spread)
@@ -86,9 +86,9 @@ private:
ShadowData(const ShadowData&);
- IntPoint m_location;
- int m_blur;
- int m_spread;
+ LayoutPoint m_location;
+ LayoutUnit m_blur;
+ LayoutUnit m_spread;
StyleColor m_color;
ShadowStyle m_style;
OwnPtr<ShadowData> m_next;

Powered by Google App Engine
This is Rietveld 408576698