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

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

Issue 2808703002: Make NinePieceImageData use RefCountedCopyable. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « third_party/WebKit/Source/core/style/NinePieceImage.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2013 Apple Inc. All rights 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2013 Apple Inc. All rights
6 * reserved. 6 * reserved.
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 image_slices(Length(100, kPercent), 62 image_slices(Length(100, kPercent),
63 Length(100, kPercent), 63 Length(100, kPercent),
64 Length(100, kPercent), 64 Length(100, kPercent),
65 Length(100, kPercent)), 65 Length(100, kPercent)),
66 border_slices(1.0, 1.0, 1.0, 1.0), 66 border_slices(1.0, 1.0, 1.0, 1.0),
67 outset(Length(0, kFixed), 67 outset(Length(0, kFixed),
68 Length(0, kFixed), 68 Length(0, kFixed),
69 Length(0, kFixed), 69 Length(0, kFixed),
70 Length(0, kFixed)) {} 70 Length(0, kFixed)) {}
71 71
72 NinePieceImageData::NinePieceImageData(const NinePieceImageData& other)
73 : RefCounted<NinePieceImageData>(),
74 fill(other.fill),
75 horizontal_rule(other.horizontal_rule),
76 vertical_rule(other.vertical_rule),
77 image(other.image),
78 image_slices(other.image_slices),
79 border_slices(other.border_slices),
80 outset(other.outset) {}
81
82 bool NinePieceImageData::operator==(const NinePieceImageData& other) const { 72 bool NinePieceImageData::operator==(const NinePieceImageData& other) const {
83 return DataEquivalent(image, other.image) && 73 return DataEquivalent(image, other.image) &&
84 image_slices == other.image_slices && fill == other.fill && 74 image_slices == other.image_slices && fill == other.fill &&
85 border_slices == other.border_slices && outset == other.outset && 75 border_slices == other.border_slices && outset == other.outset &&
86 horizontal_rule == other.horizontal_rule && 76 horizontal_rule == other.horizontal_rule &&
87 vertical_rule == other.vertical_rule; 77 vertical_rule == other.vertical_rule;
88 } 78 }
89 79
90 } // namespace blink 80 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/NinePieceImage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698