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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 1890913005: Update widget geometries when transforming a layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp » ('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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 // PaintLayers with transforms act as clip rects roots, so clear the cac hed clip rects here. 413 // PaintLayers with transforms act as clip rects roots, so clear the cac hed clip rects here.
414 clipper().clearClipRectsIncludingDescendants(); 414 clipper().clearClipRectsIncludingDescendants();
415 } else if (hasTransform) { 415 } else if (hasTransform) {
416 clipper().clearClipRectsIncludingDescendants(AbsoluteClipRects); 416 clipper().clearClipRectsIncludingDescendants(AbsoluteClipRects);
417 } 417 }
418 418
419 updateTransformationMatrix(); 419 updateTransformationMatrix();
420 420
421 if (had3DTransform != has3DTransform()) 421 if (had3DTransform != has3DTransform())
422 dirty3DTransformedDescendantStatus(); 422 dirty3DTransformedDescendantStatus();
423
424 if (FrameView* frameView = layoutObject()->document().view())
425 frameView->setNeedsUpdateWidgetGeometries();
423 } 426 }
424 427
425 static PaintLayer* enclosingLayerForContainingBlock(PaintLayer* layer) 428 static PaintLayer* enclosingLayerForContainingBlock(PaintLayer* layer)
426 { 429 {
427 if (LayoutObject* containingBlock = layer->layoutObject()->containingBlock() ) 430 if (LayoutObject* containingBlock = layer->layoutObject()->containingBlock() )
428 return containingBlock->enclosingLayer(); 431 return containingBlock->enclosingLayer();
429 return 0; 432 return 0;
430 } 433 }
431 434
432 static const PaintLayer* enclosingLayerForContainingBlock(const PaintLayer* laye r) 435 static const PaintLayer* enclosingLayerForContainingBlock(const PaintLayer* laye r)
(...skipping 2469 matching lines...) Expand 10 before | Expand all | Expand 10 after
2902 2905
2903 void showLayerTree(const blink::LayoutObject* layoutObject) 2906 void showLayerTree(const blink::LayoutObject* layoutObject)
2904 { 2907 {
2905 if (!layoutObject) { 2908 if (!layoutObject) {
2906 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); 2909 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n");
2907 return; 2910 return;
2908 } 2911 }
2909 showLayerTree(layoutObject->enclosingLayer()); 2912 showLayerTree(layoutObject->enclosingLayer());
2910 } 2913 }
2911 #endif 2914 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698