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

Side by Side Diff: Source/WebCore/rendering/RenderLayer.cpp

Issue 11569024: Merge 136554 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years 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
« no previous file with comments | « LayoutTests/mathml/mfenced-root-layer-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 const LayoutRect borderBox = toRenderBox(renderer())->borderBoxRect(); 953 const LayoutRect borderBox = toRenderBox(renderer())->borderBoxRect();
954 RenderStyle* style = renderer()->style(); 954 RenderStyle* style = renderer()->style();
955 955
956 return FloatPoint(floatValueForLength(style->perspectiveOriginX(), borderBox .width()), 956 return FloatPoint(floatValueForLength(style->perspectiveOriginX(), borderBox .width()),
957 floatValueForLength(style->perspectiveOriginY(), borderBox .height())); 957 floatValueForLength(style->perspectiveOriginY(), borderBox .height()));
958 } 958 }
959 959
960 RenderLayer* RenderLayer::stackingContext() const 960 RenderLayer* RenderLayer::stackingContext() const
961 { 961 {
962 RenderLayer* layer = parent(); 962 RenderLayer* layer = parent();
963 while (layer && !layer->isRootLayer() && !layer->renderer()->isRoot() && lay er->renderer()->style()->hasAutoZIndex()) 963 while (layer && !layer->isStackingContext())
964 layer = layer->parent(); 964 layer = layer->parent();
965
966 ASSERT(!layer || layer->isStackingContext());
965 return layer; 967 return layer;
966 } 968 }
967 969
968 static inline bool isPositionedContainer(RenderLayer* layer) 970 static inline bool isPositionedContainer(RenderLayer* layer)
969 { 971 {
970 RenderLayerModelObject* layerRenderer = layer->renderer(); 972 RenderLayerModelObject* layerRenderer = layer->renderer();
971 return layer->isRootLayer() || layerRenderer->isPositioned() || layer->hasTr ansform(); 973 return layer->isRootLayer() || layerRenderer->isPositioned() || layer->hasTr ansform();
972 } 974 }
973 975
974 static inline bool isFixedPositionedContainer(RenderLayer* layer) 976 static inline bool isFixedPositionedContainer(RenderLayer* layer)
(...skipping 4166 matching lines...) Expand 10 before | Expand all | Expand 10 after
5141 } 5143 }
5142 } 5144 }
5143 5145
5144 void showLayerTree(const WebCore::RenderObject* renderer) 5146 void showLayerTree(const WebCore::RenderObject* renderer)
5145 { 5147 {
5146 if (!renderer) 5148 if (!renderer)
5147 return; 5149 return;
5148 showLayerTree(renderer->enclosingLayer()); 5150 showLayerTree(renderer->enclosingLayer());
5149 } 5151 }
5150 #endif 5152 #endif
OLDNEW
« no previous file with comments | « LayoutTests/mathml/mfenced-root-layer-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698