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

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

Issue 1785123003: Rework embeddedContentBox into embeddedReplacedContent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void intrinsicSizeChanged() override 73 void intrinsicSizeChanged() override
74 { 74 {
75 if (m_imageResource) 75 if (m_imageResource)
76 imageChanged(m_imageResource->imagePtr()); 76 imageChanged(m_imageResource->imagePtr());
77 } 77 }
78 78
79 const char* name() const override { return "LayoutImage"; } 79 const char* name() const override { return "LayoutImage"; }
80 80
81 protected: 81 protected:
82 bool needsPreferredWidthsRecalculation() const final; 82 bool needsPreferredWidthsRecalculation() const final;
83 LayoutBox* embeddedContentBox() const final; 83 LayoutReplaced* embeddedReplacedContent() const final;
84 void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const final; 84 void computeIntrinsicSizingInfo(IntrinsicSizingInfo&) const final;
85 85
86 void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override; 86 void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override;
87 87
88 void paint(const PaintInfo&, const LayoutPoint&) const final; 88 void paint(const PaintInfo&, const LayoutPoint&) const final;
89 89
90 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectLayoutImage || LayoutReplaced::isOfType(type); } 90 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectLayoutImage || LayoutReplaced::isOfType(type); }
91 91
92 void willBeDestroyed() override; 92 void willBeDestroyed() override;
93 93
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutEmbeddedObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698