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

Side by Side Diff: Source/core/rendering/style/StyleBackgroundData.h

Issue 222473005: Don't repaint when setting border or outline 0 with style none (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: make cross platform Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 27 matching lines...) Expand all
38 static PassRefPtr<StyleBackgroundData> create() { return adoptRef(new StyleB ackgroundData); } 38 static PassRefPtr<StyleBackgroundData> create() { return adoptRef(new StyleB ackgroundData); }
39 PassRefPtr<StyleBackgroundData> copy() const { return adoptRef(new StyleBack groundData(*this)); } 39 PassRefPtr<StyleBackgroundData> copy() const { return adoptRef(new StyleBack groundData(*this)); }
40 ~StyleBackgroundData() { } 40 ~StyleBackgroundData() { }
41 41
42 bool operator==(const StyleBackgroundData& o) const; 42 bool operator==(const StyleBackgroundData& o) const;
43 bool operator!=(const StyleBackgroundData& o) const 43 bool operator!=(const StyleBackgroundData& o) const
44 { 44 {
45 return !(*this == o); 45 return !(*this == o);
46 } 46 }
47 47
48 bool visuallyEqual(const StyleBackgroundData&) const;
49
48 const FillLayer& background() const { return m_background; } 50 const FillLayer& background() const { return m_background; }
49 const StyleColor& color() const { return m_color; } 51 const StyleColor& color() const { return m_color; }
50 const OutlineValue& outline() const { return m_outline; } 52 const OutlineValue& outline() const { return m_outline; }
51 53
52 private: 54 private:
53 friend class RenderStyle; 55 friend class RenderStyle;
54 56
55 StyleBackgroundData(); 57 StyleBackgroundData();
56 StyleBackgroundData(const StyleBackgroundData&); 58 StyleBackgroundData(const StyleBackgroundData&);
57 59
58 FillLayer m_background; 60 FillLayer m_background;
59 StyleColor m_color; 61 StyleColor m_color;
60 OutlineValue m_outline; 62 OutlineValue m_outline;
61 }; 63 };
62 64
63 } // namespace WebCore 65 } // namespace WebCore
64 66
65 #endif // StyleBackgroundData_h 67 #endif // StyleBackgroundData_h
OLDNEW
« no previous file with comments | « Source/core/rendering/style/RenderStyle.cpp ('k') | Source/core/rendering/style/StyleBackgroundData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698