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

Side by Side Diff: third_party/WebKit/Source/core/style/CachedUAStyle.h

Issue 2850173003: Move LengthSizes border-*-radius out of BorderData (Closed)
Patch Set: Rebase Created 3 years, 7 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) 2013 Google, Inc. 2 * Copyright (C) 2013 Google, Inc.
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
5 * All rights reserved. 5 * 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 27 matching lines...) Expand all
38 class CachedUAStyle { 38 class CachedUAStyle {
39 USING_FAST_MALLOC(CachedUAStyle); 39 USING_FAST_MALLOC(CachedUAStyle);
40 WTF_MAKE_NONCOPYABLE(CachedUAStyle); 40 WTF_MAKE_NONCOPYABLE(CachedUAStyle);
41 41
42 public: 42 public:
43 static std::unique_ptr<CachedUAStyle> Create(const ComputedStyle* style) { 43 static std::unique_ptr<CachedUAStyle> Create(const ComputedStyle* style) {
44 return WTF::WrapUnique(new CachedUAStyle(style)); 44 return WTF::WrapUnique(new CachedUAStyle(style));
45 } 45 }
46 46
47 BorderData border; 47 BorderData border;
48 LengthSize top_left_;
49 LengthSize top_right_;
50 LengthSize bottom_left_;
51 LengthSize bottom_right_;
48 FillLayer background_layers; 52 FillLayer background_layers;
49 StyleColor background_color; 53 StyleColor background_color;
50 54
51 private: 55 private:
52 explicit CachedUAStyle(const ComputedStyle* style) 56 explicit CachedUAStyle(const ComputedStyle* style)
53 : border(style->Border()), 57 : border(style->Border()),
58 top_left_(style->BorderTopLeftRadius()),
59 top_right_(style->BorderTopRightRadius()),
60 bottom_left_(style->BorderBottomLeftRadius()),
61 bottom_right_(style->BorderBottomRightRadius()),
54 background_layers(style->BackgroundLayers()), 62 background_layers(style->BackgroundLayers()),
55 background_color(style->BackgroundColor()) {} 63 background_color(style->BackgroundColor()) {}
56 }; 64 };
57 65
58 } // namespace blink 66 } // namespace blink
59 67
60 #endif // CachedUAStyle_h 68 #endif // CachedUAStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/BorderData.h ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698