| 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.
All rights reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // applyMatchedProperties for later use during adjustComputedStyle. | 36 // applyMatchedProperties for later use during adjustComputedStyle. |
| 37 class CachedUAStyle { | 37 class CachedUAStyle { |
| 38 USING_FAST_MALLOC(CachedUAStyle); | 38 USING_FAST_MALLOC(CachedUAStyle); |
| 39 WTF_MAKE_NONCOPYABLE(CachedUAStyle); | 39 WTF_MAKE_NONCOPYABLE(CachedUAStyle); |
| 40 public: | 40 public: |
| 41 static std::unique_ptr<CachedUAStyle> create(const ComputedStyle* style) | 41 static std::unique_ptr<CachedUAStyle> create(const ComputedStyle* style) |
| 42 { | 42 { |
| 43 return wrapUnique(new CachedUAStyle(style)); | 43 return wrapUnique(new CachedUAStyle(style)); |
| 44 } | 44 } |
| 45 | 45 |
| 46 BorderData border; | 46 //BorderData border; |
| 47 FillLayer backgroundLayers; | 47 //FillLayer backgroundLayers; |
| 48 StyleColor backgroundColor; | 48 StyleColor backgroundColor; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 explicit CachedUAStyle(const ComputedStyle* style) | 51 explicit CachedUAStyle(const ComputedStyle* style) |
| 52 : border(style->border()) | 52 : //border(style->border()) |
| 53 , backgroundLayers(style->backgroundLayers()) | 53 //, backgroundLayers(style->backgroundLayers()) |
| 54 , backgroundColor(style->backgroundColor()) | 54 backgroundColor(style->backgroundColor()) |
| 55 { | 55 { |
| 56 } | 56 } |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 | 59 |
| 60 | 60 |
| 61 } // namespace blink | 61 } // namespace blink |
| 62 | 62 |
| 63 #endif // CachedUAStyle_h | 63 #endif // CachedUAStyle_h |
| OLD | NEW |