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

Side by Side Diff: sky/engine/core/rendering/RenderImage.h

Issue 878023002: Merge outline paint phases into the foreground phase. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase Created 5 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 virtual void intrinsicSizeChanged() override; 52 virtual void intrinsicSizeChanged() override;
53 53
54 private: 54 private:
55 virtual bool needsPreferredWidthsRecalculation() const override final; 55 virtual bool needsPreferredWidthsRecalculation() const override final;
56 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub le& intrinsicRatio) const override final; 56 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub le& intrinsicRatio) const override final;
57 57
58 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) final; 58 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) final;
59 59
60 void paintIntoRect(GraphicsContext*, const LayoutRect&); 60 void paintIntoRect(GraphicsContext*, const LayoutRect&);
61 virtual void paint(PaintInfo&, const LayoutPoint&) override final;
62 virtual void layout() override; 61 virtual void layout() override;
63 62
64 virtual const char* renderName() const override { return "RenderImage"; } 63 virtual const char* renderName() const override { return "RenderImage"; }
65 64
66 virtual bool isImage() const override { return true; } 65 virtual bool isImage() const override { return true; }
67 virtual bool isRenderImage() const override final { return true; } 66 virtual bool isRenderImage() const override final { return true; }
68 67
69 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) override; 68 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) override;
70 69
71 virtual LayoutUnit minimumReplacedHeight() const override; 70 virtual LayoutUnit minimumReplacedHeight() const override;
72 71
73 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) override final; 72 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) override final;
74 73
75 void updateIntrinsicSizeIfNeeded(const LayoutSize& newSize); 74 void updateIntrinsicSizeIfNeeded(const LayoutSize& newSize);
76 // Update the size of the image to be rendered. Object-fit may cause this to be different from the CSS box's content rect. 75 // Update the size of the image to be rendered. Object-fit may cause this to be different from the CSS box's content rect.
77 void updateInnerContentRect(); 76 void updateInnerContentRect();
78 77
79 void paintAreaElementFocusRing(PaintInfo&);
80
81 OwnPtr<RenderImageResource> m_imageResource; 78 OwnPtr<RenderImageResource> m_imageResource;
82 float m_imageDevicePixelRatio; 79 float m_imageDevicePixelRatio;
83 80
84 friend class RenderImageScaleObserver; 81 friend class RenderImageScaleObserver;
85 }; 82 };
86 83
87 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage()); 84 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderImage, isRenderImage());
88 85
89 } // namespace blink 86 } // namespace blink
90 87
91 #endif // SKY_ENGINE_CORE_RENDERING_RENDERIMAGE_H_ 88 #endif // SKY_ENGINE_CORE_RENDERING_RENDERIMAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698