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

Side by Side Diff: Source/core/rendering/RenderReplaced.h

Issue 25105004: Use srcset's resource pixel density to determine intrinsic size (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cleantests
Patch Set: Fixed expected test results Created 7 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 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 27 matching lines...) Expand all
38 bool hasReplacedLogicalWidth() const; 38 bool hasReplacedLogicalWidth() const;
39 bool hasReplacedLogicalHeight() const; 39 bool hasReplacedLogicalHeight() const;
40 40
41 virtual bool needsPreferredWidthsRecalculation() const OVERRIDE; 41 virtual bool needsPreferredWidthsRecalculation() const OVERRIDE;
42 42
43 protected: 43 protected:
44 virtual void willBeDestroyed(); 44 virtual void willBeDestroyed();
45 45
46 virtual void layout(); 46 virtual void layout();
47 47
48 virtual LayoutSize intrinsicSize() const OVERRIDE FINAL { return m_intrinsic Size; } 48 virtual LayoutSize intrinsicSize() const OVERRIDE { return m_intrinsicSize; }
49 LayoutRect replacedContentRect(const LayoutSize* overriddenIntrinsicSize = 0 ) const; 49 LayoutRect replacedContentRect(const LayoutSize* overriddenIntrinsicSize = 0 ) const;
50 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub le& intrinsicRatio, bool& isPercentageIntrinsicSize) const; 50 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub le& intrinsicRatio, bool& isPercentageIntrinsicSize) const;
51 51
52 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const OVERRIDE FINAL; 52 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const OVERRIDE FINAL;
53 53
54 virtual LayoutUnit minimumReplacedHeight() const { return LayoutUnit(); } 54 virtual LayoutUnit minimumReplacedHeight() const { return LayoutUnit(); }
55 55
56 virtual void setSelectionState(SelectionState) OVERRIDE FINAL; 56 virtual void setSelectionState(SelectionState) OVERRIDE FINAL;
57 57
58 bool isSelected() const; 58 bool isSelected() const;
(...skipping 25 matching lines...) Expand all
84 84
85 virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* rep aintContainer, bool clipToVisibleContent = true) OVERRIDE FINAL; 85 virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* rep aintContainer, bool clipToVisibleContent = true) OVERRIDE FINAL;
86 void computeAspectRatioInformationForRenderBox(RenderBox*, FloatSize& constr ainedSize, double& intrinsicRatio, bool& isPercentageIntrinsicSize) const; 86 void computeAspectRatioInformationForRenderBox(RenderBox*, FloatSize& constr ainedSize, double& intrinsicRatio, bool& isPercentageIntrinsicSize) const;
87 87
88 mutable LayoutSize m_intrinsicSize; 88 mutable LayoutSize m_intrinsicSize;
89 }; 89 };
90 90
91 } 91 }
92 92
93 #endif 93 #endif
OLDNEW
« Source/core/rendering/RenderObject.h ('K') | « Source/core/rendering/RenderObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698