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

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

Issue 2692993003: Invalidate throttling-related dirty bits when changing cross-origin status. (Closed)
Patch Set: none Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 return parentRects.posClipRect(); 438 return parentRects.posClipRect();
439 439
440 return parentRects.overflowClipRect(); 440 return parentRects.overflowClipRect();
441 } 441 }
442 442
443 ClipRect PaintLayerClipper::clipRectWithGeometryMapper( 443 ClipRect PaintLayerClipper::clipRectWithGeometryMapper(
444 const ClipRectsContext& context, 444 const ClipRectsContext& context,
445 bool isForeground) const { 445 bool isForeground) const {
446 DCHECK(m_geometryMapper); 446 DCHECK(m_geometryMapper);
447 const auto* properties = m_layer.layoutObject()->paintProperties(); 447 const auto* properties = m_layer.layoutObject()->paintProperties();
448 // TODO(chrishtr): fix the underlying bug that causes this situation.
449 DCHECK(properties && properties->localBorderBoxProperties()); 448 DCHECK(properties && properties->localBorderBoxProperties());
450 449
451 PropertyTreeState propertyTreeState = *properties->localBorderBoxProperties(); 450 PropertyTreeState propertyTreeState = *properties->localBorderBoxProperties();
452 const auto* ancestorProperties = 451 const auto* ancestorProperties =
453 context.rootLayer->layoutObject()->paintProperties(); 452 context.rootLayer->layoutObject()->paintProperties();
454 DCHECK(ancestorProperties && ancestorProperties->localBorderBoxProperties()); 453 DCHECK(ancestorProperties && ancestorProperties->localBorderBoxProperties());
455 PropertyTreeState destinationPropertyTreeState = 454 PropertyTreeState destinationPropertyTreeState =
456 *ancestorProperties->localBorderBoxProperties(); 455 *ancestorProperties->localBorderBoxProperties();
457 456
458 if (&m_layer == context.rootLayer) { 457 if (&m_layer == context.rootLayer) {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 const LayoutSize& subpixelAccumulation) const { 582 const LayoutSize& subpixelAccumulation) const {
584 DCHECK(!m_geometryMapper); 583 DCHECK(!m_geometryMapper);
585 ClipRectsContext context(rootLayer, PaintingClipRects, 584 ClipRectsContext context(rootLayer, PaintingClipRects,
586 IgnoreOverlayScrollbarSize, subpixelAccumulation); 585 IgnoreOverlayScrollbarSize, subpixelAccumulation);
587 if (respectOverflowClip == IgnoreOverflowClip) 586 if (respectOverflowClip == IgnoreOverflowClip)
588 context.setIgnoreOverflowClip(); 587 context.setIgnoreOverflowClip();
589 return getClipRects(context); 588 return getClipRects(context);
590 } 589 }
591 590
592 } // namespace blink 591 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698