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

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

Issue 1378743002: Refactor the API for setting dynamic resource load priorities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better names / cleanup Created 5 years, 2 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 protected: 81 protected:
82 bool needsPreferredWidthsRecalculation() const final; 82 bool needsPreferredWidthsRecalculation() const final;
83 LayoutBox* embeddedContentBox() const final; 83 LayoutBox* embeddedContentBox() const final;
84 void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, double& intr insicRatio) const final; 84 void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, double& intr insicRatio) 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 void layout() override; 90 void layout() override;
91 bool updateImageLoadingPriorities() final;
92 91
93 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectLayoutImage || LayoutReplaced::isOfType(type); } 92 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectLayoutImage || LayoutReplaced::isOfType(type); }
94 93
95 void willBeDestroyed() override; 94 void willBeDestroyed() override;
96 95
97 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ; 96 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
98 97
99 private: 98 private:
100 bool isImage() const override { return true; } 99 bool isImage() const override { return true; }
101 100
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // This field stores whether this image is generated with 'content'. 132 // This field stores whether this image is generated with 'content'.
134 bool m_isGeneratedContent; 133 bool m_isGeneratedContent;
135 float m_imageDevicePixelRatio; 134 float m_imageDevicePixelRatio;
136 }; 135 };
137 136
138 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage()); 137 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutImage, isLayoutImage());
139 138
140 } // namespace blink 139 } // namespace blink
141 140
142 #endif // LayoutImage_h 141 #endif // LayoutImage_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.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