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

Side by Side Diff: third_party/WebKit/Source/core/style/StyleBackgroundData.cpp

Issue 2481553002: Move outline out of StyleBackgroundData into StyleRareNonInheritedData (Closed)
Patch Set: - Created 4 years, 1 month 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) 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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleBackgroundData.h ('k') | third_party/WebKit/Source/core/style/StyleDifference.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698