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

Side by Side Diff: sky/engine/core/rendering/RenderLayer.cpp

Issue 943333005: Remove some dead filters related code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.h ('k') | sky/engine/core/rendering/style/RenderStyle.h » ('j') | 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, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 382
383 const RenderLayer* RenderLayer::compositingContainer() const 383 const RenderLayer* RenderLayer::compositingContainer() const
384 { 384 {
385 if (stackingNode()->isNormalFlowOnly()) 385 if (stackingNode()->isNormalFlowOnly())
386 return parent(); 386 return parent();
387 if (RenderLayerStackingNode* ancestorStackingNode = stackingNode()->ancestor StackingContextNode()) 387 if (RenderLayerStackingNode* ancestorStackingNode = stackingNode()->ancestor StackingContextNode())
388 return ancestorStackingNode->layer(); 388 return ancestorStackingNode->layer();
389 return 0; 389 return 0;
390 } 390 }
391 391
392 RenderLayer* RenderLayer::enclosingFilterLayer(IncludeSelfOrNot includeSelf) con st
393 {
394 const RenderLayer* curr = (includeSelf == IncludeSelf) ? this : parent();
395 for (; curr; curr = curr->parent()) {
396 if (curr->requiresFullLayerImageForFilters())
397 return const_cast<RenderLayer*>(curr);
398 }
399
400 return 0;
401 }
402
403 bool RenderLayer::hasAncestorWithFilterOutsets() const
404 {
405 for (const RenderLayer* curr = this; curr; curr = curr->parent()) {
406 RenderBox* renderer = curr->renderer();
407 if (renderer->style()->hasFilterOutsets())
408 return true;
409 }
410 return false;
411 }
412
413 enum TransparencyClipBoxBehavior { 392 enum TransparencyClipBoxBehavior {
414 PaintingTransparencyClipBox, 393 PaintingTransparencyClipBox,
415 HitTestingTransparencyClipBox 394 HitTestingTransparencyClipBox
416 }; 395 };
417 396
418 static LayoutRect transparencyClipBox(const RenderLayer*, const RenderLayer* roo tLayer, const LayoutSize& subPixelAccumulation); 397 static LayoutRect transparencyClipBox(const RenderLayer*, const RenderLayer* roo tLayer, const LayoutSize& subPixelAccumulation);
419 398
420 static void expandClipRectForDescendantsAndReflection(LayoutRect& clipRect, cons t RenderLayer* layer, const RenderLayer* rootLayer, 399 static void expandClipRectForDescendantsAndReflection(LayoutRect& clipRect, cons t RenderLayer* layer, const RenderLayer* rootLayer,
421 const LayoutSize& subPixelAccumulation) 400 const LayoutSize& subPixelAccumulation)
422 { 401 {
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 } 965 }
987 } 966 }
988 967
989 void showLayerTree(const blink::RenderObject* renderer) 968 void showLayerTree(const blink::RenderObject* renderer)
990 { 969 {
991 if (!renderer) 970 if (!renderer)
992 return; 971 return;
993 showLayerTree(renderer->enclosingLayer()); 972 showLayerTree(renderer->enclosingLayer());
994 } 973 }
995 #endif 974 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.h ('k') | sky/engine/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698