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

Side by Side Diff: Source/core/paint/DeprecatedPaintLayer.cpp

Issue 1316173002: Move AbsoluteClipRects to the state machine (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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) 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 358
359 bool hadTransform = m_transform; 359 bool hadTransform = m_transform;
360 if (hasTransform != hadTransform) { 360 if (hasTransform != hadTransform) {
361 if (hasTransform) 361 if (hasTransform)
362 m_transform = adoptPtr(new TransformationMatrix); 362 m_transform = adoptPtr(new TransformationMatrix);
363 else 363 else
364 m_transform.clear(); 364 m_transform.clear();
365 365
366 // DeprecatedPaintLayers with transforms act as clip rects roots, so cle ar the cached clip rects here. 366 // DeprecatedPaintLayers with transforms act as clip rects roots, so cle ar the cached clip rects here.
367 m_clipper.clearClipRectsIncludingDescendants(); 367 m_clipper.clearClipRectsIncludingDescendants();
368 } else if (hasTransform) {
369 m_clipper.clearClipRectsIncludingDescendants(AbsoluteClipRects);
370 } 368 }
371 369
372 updateTransformationMatrix(); 370 updateTransformationMatrix();
373 371
374 if (had3DTransform != has3DTransform()) 372 if (had3DTransform != has3DTransform())
375 dirty3DTransformedDescendantStatus(); 373 dirty3DTransformedDescendantStatus();
376 } 374 }
377 375
378 static DeprecatedPaintLayer* enclosingLayerForContainingBlock(DeprecatedPaintLay er* layer) 376 static DeprecatedPaintLayer* enclosingLayerForContainingBlock(DeprecatedPaintLay er* layer)
379 { 377 {
(...skipping 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after
2681 2679
2682 void showLayerTree(const blink::LayoutObject* layoutObject) 2680 void showLayerTree(const blink::LayoutObject* layoutObject)
2683 { 2681 {
2684 if (!layoutObject) { 2682 if (!layoutObject) {
2685 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); 2683 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n");
2686 return; 2684 return;
2687 } 2685 }
2688 showLayerTree(layoutObject->enclosingLayer()); 2686 showLayerTree(layoutObject->enclosingLayer());
2689 } 2687 }
2690 #endif 2688 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/compositing/CompositingInputsUpdater.cpp ('k') | Source/core/paint/DeprecatedPaintLayerClipper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698