| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |