OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 12 matching lines...) Expand all Loading... |
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 #include "core/rendering/RenderReplica.h" | 30 #include "core/rendering/RenderReplica.h" |
31 | 31 |
32 #include "core/paint/ReplicaPainter.h" | 32 #include "core/paint/ReplicaPainter.h" |
33 #include "core/rendering/GraphicsContextAnnotator.h" | |
34 #include "core/rendering/RenderLayer.h" | 33 #include "core/rendering/RenderLayer.h" |
35 | 34 |
36 namespace blink { | 35 namespace blink { |
37 | 36 |
38 RenderReplica::RenderReplica() | 37 RenderReplica::RenderReplica() |
39 : RenderBox(0) | 38 : RenderBox(0) |
40 { | 39 { |
41 // This is a hack. Replicas are synthetic, and don't pick up the attributes
of the | 40 // This is a hack. Replicas are synthetic, and don't pick up the attributes
of the |
42 // renderers being replicated, so they always report that they are inline, n
on-replaced. | 41 // renderers being replicated, so they always report that they are inline, n
on-replaced. |
43 // However, we need transforms to be applied to replicas for reflections, so
have to pass | 42 // However, we need transforms to be applied to replicas for reflections, so
have to pass |
(...skipping 26 matching lines...) Expand all Loading... |
70 m_maxPreferredLogicalWidth = m_minPreferredLogicalWidth; | 69 m_maxPreferredLogicalWidth = m_minPreferredLogicalWidth; |
71 clearPreferredLogicalWidthsDirty(); | 70 clearPreferredLogicalWidthsDirty(); |
72 } | 71 } |
73 | 72 |
74 void RenderReplica::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) | 73 void RenderReplica::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) |
75 { | 74 { |
76 ReplicaPainter(*this).paint(paintInfo, paintOffset); | 75 ReplicaPainter(*this).paint(paintInfo, paintOffset); |
77 } | 76 } |
78 | 77 |
79 } // namespace blink | 78 } // namespace blink |
OLD | NEW |