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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutImageResourceStyleImage.cpp

Issue 2469873002: [ImageResource 4] Split ImageResource into Resource and Image parts (Closed)
Patch Set: style Created 4 years 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 Lars Knoll <knoll@kde.org> 2 * Copyright (C) 1999 Lars Knoll <knoll@kde.org>
3 * Copyright (C) 1999 Antti Koivisto <koivisto@kde.org> 3 * Copyright (C) 1999 Antti Koivisto <koivisto@kde.org>
4 * Copyright (C) 2000 Dirk Mueller <mueller@kde.org> 4 * Copyright (C) 2000 Dirk Mueller <mueller@kde.org>
5 * Copyright (C) 2006 Allan Sandfeld Jensen <kde@carewolf.com> 5 * Copyright (C) 2006 Allan Sandfeld Jensen <kde@carewolf.com>
6 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 6 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * Copyright (C) 2010 Google Inc. All rights reserved. 9 * Copyright (C) 2010 Google Inc. All rights reserved.
10 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> 10 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com>
(...skipping 10 matching lines...) Expand all
21 * 21 *
22 * You should have received a copy of the GNU Library General Public License 22 * You should have received a copy of the GNU Library General Public License
23 * along with this library; see the file COPYING.LIB. If not, write to 23 * along with this library; see the file COPYING.LIB. If not, write to
24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
25 * Boston, MA 02110-1301, USA. 25 * Boston, MA 02110-1301, USA.
26 * 26 *
27 */ 27 */
28 28
29 #include "core/layout/LayoutImageResourceStyleImage.h" 29 #include "core/layout/LayoutImageResourceStyleImage.h"
30 30
31 #include "core/fetch/ImageResource.h"
32 #include "core/layout/LayoutReplaced.h" 31 #include "core/layout/LayoutReplaced.h"
33 #include "core/style/StyleFetchedImage.h" 32 #include "core/style/StyleFetchedImage.h"
34 33
35 namespace blink { 34 namespace blink {
36 35
37 LayoutImageResourceStyleImage::LayoutImageResourceStyleImage( 36 LayoutImageResourceStyleImage::LayoutImageResourceStyleImage(
38 StyleImage* styleImage) 37 StyleImage* styleImage)
39 : m_styleImage(styleImage) { 38 : m_styleImage(styleImage) {
40 ASSERT(m_styleImage); 39 ASSERT(m_styleImage);
41 } 40 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 *m_layoutObject, multiplier, 73 *m_layoutObject, multiplier,
75 LayoutSize(LayoutReplaced::defaultWidth, LayoutReplaced::defaultHeight)); 74 LayoutSize(LayoutReplaced::defaultWidth, LayoutReplaced::defaultHeight));
76 } 75 }
77 76
78 DEFINE_TRACE(LayoutImageResourceStyleImage) { 77 DEFINE_TRACE(LayoutImageResourceStyleImage) {
79 visitor->trace(m_styleImage); 78 visitor->trace(m_styleImage);
80 LayoutImageResource::trace(visitor); 79 LayoutImageResource::trace(visitor);
81 } 80 }
82 81
83 } // namespace blink 82 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698