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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutImage.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 public: 47 public:
48 // These are the paddings to use when displaying either alt text or an image . 48 // These are the paddings to use when displaying either alt text or an image .
49 static const unsigned short paddingWidth = 4; 49 static const unsigned short paddingWidth = 4;
50 static const unsigned short paddingHeight = 4; 50 static const unsigned short paddingHeight = 4;
51 51
52 LayoutImage(Element*); 52 LayoutImage(Element*);
53 ~LayoutImage() override; 53 ~LayoutImage() override;
54 54
55 static LayoutImage* createAnonymous(Document*); 55 static LayoutImage* createAnonymous(Document*);
56 56
57 void setImageResource(PassOwnPtrWillBeRawPtr<LayoutImageResource>); 57 void setImageResource(RawPtr<LayoutImageResource>);
58 58
59 LayoutImageResource* imageResource() { return m_imageResource.get(); } 59 LayoutImageResource* imageResource() { return m_imageResource.get(); }
60 const LayoutImageResource* imageResource() const { return m_imageResource.ge t(); } 60 const LayoutImageResource* imageResource() const { return m_imageResource.ge t(); }
61 ImageResource* cachedImage() const { return m_imageResource ? m_imageResourc e->cachedImage() : 0; } 61 ImageResource* cachedImage() const { return m_imageResource ? m_imageResourc e->cachedImage() : 0; }
62 62
63 HTMLMapElement* imageMap() const; 63 HTMLMapElement* imageMap() const;
64 void areaElementFocusChanged(HTMLAreaElement*); 64 void areaElementFocusChanged(HTMLAreaElement*);
65 65
66 void setIsGeneratedContent(bool generated = true) { m_isGeneratedContent = g enerated; } 66 void setIsGeneratedContent(bool generated = true) { m_isGeneratedContent = g enerated; }
67 67
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 // This member wraps the associated decoded image. 116 // This member wraps the associated decoded image.
117 // 117 //
118 // This field is set using setImageResource above which can be called in 118 // This field is set using setImageResource above which can be called in
119 // several ways: 119 // several ways:
120 // * For normal images, from the network stack (ImageLoader) once we have 120 // * For normal images, from the network stack (ImageLoader) once we have
121 // some image data. 121 // some image data.
122 // * For generated content, the resource is loaded during style resolution 122 // * For generated content, the resource is loaded during style resolution
123 // and thus is stored in ComputedStyle (see ContentData::image) that gets 123 // and thus is stored in ComputedStyle (see ContentData::image) that gets
124 // propagated to the anonymous LayoutImage in LayoutObject::createObject. 124 // propagated to the anonymous LayoutImage in LayoutObject::createObject.
125 OwnPtrWillBePersistent<LayoutImageResource> m_imageResource; 125 Persistent<LayoutImageResource> m_imageResource;
126 bool m_didIncrementVisuallyNonEmptyPixelCount; 126 bool m_didIncrementVisuallyNonEmptyPixelCount;
127 127
128 // This field stores whether this image is generated with 'content'. 128 // This field stores whether this image is generated with 'content'.
129 bool m_isGeneratedContent; 129 bool m_isGeneratedContent;
130 float m_imageDevicePixelRatio; 130 float m_imageDevicePixelRatio;
131 }; 131 };
132 132
133 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); 133 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage());
134 134
135 } // namespace blink 135 } // namespace blink
136 136
137 #endif // LayoutImage_h 137 #endif // LayoutImage_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698