| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 | 28 |
| 29 StyleBackgroundData::StyleBackgroundData() | 29 StyleBackgroundData::StyleBackgroundData() |
| 30 : m_background(BackgroundFillLayer, true), | 30 : m_background(BackgroundFillLayer, true), |
| 31 m_color(ComputedStyle::initialBackgroundColor()) {} | 31 m_color(ComputedStyle::initialBackgroundColor()) {} |
| 32 | 32 |
| 33 StyleBackgroundData::StyleBackgroundData(const StyleBackgroundData& o) | 33 StyleBackgroundData::StyleBackgroundData(const StyleBackgroundData& o) |
| 34 : RefCounted<StyleBackgroundData>(), | 34 : RefCounted<StyleBackgroundData>(), |
| 35 m_background(o.m_background), | 35 m_background(o.m_background), |
| 36 m_color(o.m_color), | 36 m_color(o.m_color) {} |
| 37 m_outline(o.m_outline) {} | |
| 38 | 37 |
| 39 bool StyleBackgroundData::operator==(const StyleBackgroundData& o) const { | 38 bool StyleBackgroundData::operator==(const StyleBackgroundData& o) const { |
| 40 return m_background == o.m_background && m_color == o.m_color && | 39 return m_background == o.m_background && m_color == o.m_color; |
| 41 m_outline == o.m_outline; | |
| 42 } | |
| 43 | |
| 44 bool StyleBackgroundData::visuallyEqual(const StyleBackgroundData& o) const { | |
| 45 return m_background == o.m_background && m_color == o.m_color && | |
| 46 m_outline.visuallyEqual(o.m_outline); | |
| 47 } | 40 } |
| 48 | 41 |
| 49 } // namespace blink | 42 } // namespace blink |
| OLD | NEW |