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

Side by Side Diff: Source/core/rendering/compositing/CompositedLayerMapping.cpp

Issue 241713002: Remove some dead code from rendering/ folder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after
1686 RenderStyle* style = renderer()->style(); 1686 RenderStyle* style = renderer()->style();
1687 1687
1688 FloatPoint3D origin; 1688 FloatPoint3D origin;
1689 origin.setX(floatValueForLength(style->transformOriginX(), borderBox.width() )); 1689 origin.setX(floatValueForLength(style->transformOriginX(), borderBox.width() ));
1690 origin.setY(floatValueForLength(style->transformOriginY(), borderBox.height( ))); 1690 origin.setY(floatValueForLength(style->transformOriginY(), borderBox.height( )));
1691 origin.setZ(style->transformOriginZ()); 1691 origin.setZ(style->transformOriginZ());
1692 1692
1693 return origin; 1693 return origin;
1694 } 1694 }
1695 1695
1696 FloatPoint CompositedLayerMapping::computePerspectiveOrigin(const IntRect& borde rBox) const
1697 {
1698 RenderStyle* style = renderer()->style();
1699
1700 float boxWidth = borderBox.width();
1701 float boxHeight = borderBox.height();
1702
1703 FloatPoint origin;
1704 origin.setX(floatValueForLength(style->perspectiveOriginX(), boxWidth));
1705 origin.setY(floatValueForLength(style->perspectiveOriginY(), boxHeight));
1706
1707 return origin;
1708 }
1709
1710 // Return the offset from the top-left of this compositing layer at which the re nderer's contents are painted. 1696 // Return the offset from the top-left of this compositing layer at which the re nderer's contents are painted.
1711 LayoutSize CompositedLayerMapping::contentOffsetInCompostingLayer() const 1697 LayoutSize CompositedLayerMapping::contentOffsetInCompostingLayer() const
1712 { 1698 {
1713 return LayoutSize(-m_compositedBounds.x(), -m_compositedBounds.y()); 1699 return LayoutSize(-m_compositedBounds.x(), -m_compositedBounds.y());
1714 } 1700 }
1715 1701
1716 LayoutRect CompositedLayerMapping::contentsBox() const 1702 LayoutRect CompositedLayerMapping::contentsBox() const
1717 { 1703 {
1718 LayoutRect contentsBox = contentsRect(renderer()); 1704 LayoutRect contentsBox = contentsRect(renderer());
1719 contentsBox.move(contentOffsetInCompostingLayer()); 1705 contentsBox.move(contentOffsetInCompostingLayer());
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
2153 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { 2139 } else if (graphicsLayer == m_scrollingContentsLayer.get()) {
2154 name = "Scrolling Contents Layer"; 2140 name = "Scrolling Contents Layer";
2155 } else { 2141 } else {
2156 ASSERT_NOT_REACHED(); 2142 ASSERT_NOT_REACHED();
2157 } 2143 }
2158 2144
2159 return name; 2145 return name;
2160 } 2146 }
2161 2147
2162 } // namespace WebCore 2148 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/compositing/CompositedLayerMapping.h ('k') | Source/core/rendering/compositing/RenderLayerCompositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698