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

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

Issue 845873004: Delete a bunch of paint invalidation rect computing code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 LayoutRect localSelectionRect(bool checkWhetherSelected = true) const; // Th is is in local coordinates, but it's a physical rect (so the top left corner is physical top left). 71 LayoutRect localSelectionRect(bool checkWhetherSelected = true) const; // Th is is in local coordinates, but it's a physical rect (so the top left corner is physical top left).
72 72
73 private: 73 private:
74 virtual const char* renderName() const override { return "RenderReplaced"; } 74 virtual const char* renderName() const override { return "RenderReplaced"; }
75 75
76 virtual bool canHaveChildren() const override { return false; } 76 virtual bool canHaveChildren() const override { return false; }
77 77
78 virtual void computePreferredLogicalWidths() override final; 78 virtual void computePreferredLogicalWidths() override final;
79 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) { } 79 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) { }
80 80
81 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t override;
82
83 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override f inal; 81 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override f inal;
84 82
85 virtual bool canBeSelectionLeaf() const override { return true; } 83 virtual bool canBeSelectionLeaf() const override { return true; }
86 84
87 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO bject* paintInvalidationContainer, bool clipToVisibleContent = true) override fi nal; 85 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO bject* paintInvalidationContainer, bool clipToVisibleContent = true) override fi nal;
88 void computeAspectRatioInformationForRenderBox(FloatSize& constrainedSize, d ouble& intrinsicRatio) const; 86 void computeAspectRatioInformationForRenderBox(FloatSize& constrainedSize, d ouble& intrinsicRatio) const;
89 87
90 mutable LayoutSize m_intrinsicSize; 88 mutable LayoutSize m_intrinsicSize;
91 }; 89 };
92 90
93 } 91 }
94 92
95 #endif // SKY_ENGINE_CORE_RENDERING_RENDERREPLACED_H_ 93 #endif // SKY_ENGINE_CORE_RENDERING_RENDERREPLACED_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderObject.cpp ('k') | sky/engine/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698