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

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, 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 public: 48 public:
49 // These are the paddings to use when displaying either alt text or an image . 49 // These are the paddings to use when displaying either alt text or an image .
50 static const unsigned short paddingWidth = 4; 50 static const unsigned short paddingWidth = 4;
51 static const unsigned short paddingHeight = 4; 51 static const unsigned short paddingHeight = 4;
52 52
53 LayoutImage(Element*); 53 LayoutImage(Element*);
54 ~LayoutImage() override; 54 ~LayoutImage() override;
55 55
56 static LayoutImage* createAnonymous(Document*); 56 static LayoutImage* createAnonymous(Document*);
57 57
58 void setImageResource(PassOwnPtrWillBeRawPtr<LayoutImageResource>); 58 void setImageResource(RawPtr<LayoutImageResource>);
59 59
60 LayoutImageResource* imageResource() { return m_imageResource.get(); } 60 LayoutImageResource* imageResource() { return m_imageResource.get(); }
61 const LayoutImageResource* imageResource() const { return m_imageResource.ge t(); } 61 const LayoutImageResource* imageResource() const { return m_imageResource.ge t(); }
62 ImageResource* cachedImage() const { return m_imageResource ? m_imageResourc e->cachedImage() : 0; } 62 ImageResource* cachedImage() const { return m_imageResource ? m_imageResourc e->cachedImage() : 0; }
63 63
64 HTMLMapElement* imageMap() const; 64 HTMLMapElement* imageMap() const;
65 void areaElementFocusChanged(HTMLAreaElement*); 65 void areaElementFocusChanged(HTMLAreaElement*);
66 66
67 void setIsGeneratedContent(bool generated = true) { m_isGeneratedContent = g enerated; } 67 void setIsGeneratedContent(bool generated = true) { m_isGeneratedContent = g enerated; }
68 68
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 // This member wraps the associated decoded image. 117 // This member wraps the associated decoded image.
118 // 118 //
119 // This field is set using setImageResource above which can be called in 119 // This field is set using setImageResource above which can be called in
120 // several ways: 120 // several ways:
121 // * For normal images, from the network stack (ImageLoader) once we have 121 // * For normal images, from the network stack (ImageLoader) once we have
122 // some image data. 122 // some image data.
123 // * For generated content, the resource is loaded during style resolution 123 // * For generated content, the resource is loaded during style resolution
124 // and thus is stored in ComputedStyle (see ContentData::image) that gets 124 // and thus is stored in ComputedStyle (see ContentData::image) that gets
125 // propagated to the anonymous LayoutImage in LayoutObject::createObject. 125 // propagated to the anonymous LayoutImage in LayoutObject::createObject.
126 OwnPtrWillBePersistent<LayoutImageResource> m_imageResource; 126 Persistent<LayoutImageResource> m_imageResource;
127 bool m_didIncrementVisuallyNonEmptyPixelCount; 127 bool m_didIncrementVisuallyNonEmptyPixelCount;
128 128
129 // This field stores whether this image is generated with 'content'. 129 // This field stores whether this image is generated with 'content'.
130 bool m_isGeneratedContent; 130 bool m_isGeneratedContent;
131 float m_imageDevicePixelRatio; 131 float m_imageDevicePixelRatio;
132 }; 132 };
133 133
134 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); 134 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage());
135 135
136 } // namespace blink 136 } // namespace blink
137 137
138 #endif // LayoutImage_h 138 #endif // LayoutImage_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/HitTestResult.h ('k') | third_party/WebKit/Source/core/layout/LayoutImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698