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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 1403963002: Invalidate non-self-painting-layer descendants when creating a layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add spv2 expectation for the test Created 5 years, 2 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 void invalidatePaintRectangle(const LayoutRect&) const; 1022 void invalidatePaintRectangle(const LayoutRect&) const;
1023 void invalidatePaintRectangleNotInvalidatingDisplayItemClients(const LayoutR ect&) const; 1023 void invalidatePaintRectangleNotInvalidatingDisplayItemClients(const LayoutR ect&) const;
1024 1024
1025 // Walk the tree after layout issuing paint invalidations for layoutObjects that have changed or moved, updating bounds that have changed, and clearing pain t invalidation state. 1025 // Walk the tree after layout issuing paint invalidations for layoutObjects that have changed or moved, updating bounds that have changed, and clearing pain t invalidation state.
1026 virtual void invalidateTreeIfNeeded(PaintInvalidationState&); 1026 virtual void invalidateTreeIfNeeded(PaintInvalidationState&);
1027 1027
1028 virtual void invalidatePaintForOverflow(); 1028 virtual void invalidatePaintForOverflow();
1029 void invalidatePaintForOverflowIfNeeded(); 1029 void invalidatePaintForOverflowIfNeeded();
1030 1030
1031 void invalidatePaintIncludingNonCompositingDescendants(); 1031 void invalidatePaintIncludingNonCompositingDescendants();
1032 void invalidatePaintIncludingNonSelfPaintingLayerDescendants(const LayoutBox ModelObject& paintInvalidationContainer);
1032 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); 1033 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
1033 1034
1034 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's 1035 // Returns the rect that should have paint invalidated whenever this object changes. The rect is in the view's
1035 // coordinate space. This method deals with outlines and overflow. 1036 // coordinate space. This method deals with outlines and overflow.
1036 virtual LayoutRect absoluteClippedOverflowRect() const; 1037 virtual LayoutRect absoluteClippedOverflowRect() const;
1037 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const; 1038 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const;
1038 1039
1039 // Given a rect in the object's coordinate space, compute a rect suitable fo r invalidating paints of 1040 // Given a rect in the object's coordinate space, compute a rect suitable fo r invalidating paints of
1040 // that rect in the coordinate space of paintInvalidationContainer. 1041 // that rect in the coordinate space of paintInvalidationContainer.
1041 virtual void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const; 1042 virtual void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const;
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 // FIXME: This should be 'markContaingBoxChainForOverflowRecalc when we make LayoutBox 1458 // FIXME: This should be 'markContaingBoxChainForOverflowRecalc when we make LayoutBox
1458 // recomputeOverflow-capable. crbug.com/437012 and crbug.com/434700. 1459 // recomputeOverflow-capable. crbug.com/437012 and crbug.com/434700.
1459 inline void markContainingBlocksForOverflowRecalc(); 1460 inline void markContainingBlocksForOverflowRecalc();
1460 1461
1461 inline void markContainerChainForPaintInvalidation(); 1462 inline void markContainerChainForPaintInvalidation();
1462 1463
1463 inline void invalidateSelectionIfNeeded(const LayoutBoxModelObject&, PaintIn validationReason); 1464 inline void invalidateSelectionIfNeeded(const LayoutBoxModelObject&, PaintIn validationReason);
1464 1465
1465 inline void invalidateContainerPreferredLogicalWidths(); 1466 inline void invalidateContainerPreferredLogicalWidths();
1466 1467
1467 void invalidatePaintIncludingNonCompositingDescendantsInternal(const LayoutB oxModelObject& repaintContainer); 1468 void invalidatePaintOfPreviousPaintInvalidationRect(const LayoutBoxModelObje ct& paintInvalidationContainer, PaintInvalidationReason) const;
1468 1469
1469 LayoutRect previousSelectionRectForPaintInvalidation() const; 1470 LayoutRect previousSelectionRectForPaintInvalidation() const;
1470 void setPreviousSelectionRectForPaintInvalidation(const LayoutRect&); 1471 void setPreviousSelectionRectForPaintInvalidation(const LayoutRect&);
1471 1472
1472 LayoutObject* containerForAbsolutePosition(const LayoutBoxModelObject* paint InvalidationContainer = nullptr, bool* paintInvalidationContainerSkipped = nullp tr) const; 1473 LayoutObject* containerForAbsolutePosition(const LayoutBoxModelObject* paint InvalidationContainer = nullptr, bool* paintInvalidationContainerSkipped = nullp tr) const;
1473 1474
1474 const LayoutBoxModelObject* enclosingCompositedContainer() const; 1475 const LayoutBoxModelObject* enclosingCompositedContainer() const;
1475 1476
1476 LayoutFlowThread* locateFlowThreadContainingBlock() const; 1477 LayoutFlowThread* locateFlowThreadContainingBlock() const;
1477 void removeFromLayoutFlowThreadRecursive(LayoutFlowThread*); 1478 void removeFromLayoutFlowThreadRecursive(LayoutFlowThread*);
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
2000 void showTree(const blink::LayoutObject*); 2001 void showTree(const blink::LayoutObject*);
2001 void showLineTree(const blink::LayoutObject*); 2002 void showLineTree(const blink::LayoutObject*);
2002 void showLayoutTree(const blink::LayoutObject* object1); 2003 void showLayoutTree(const blink::LayoutObject* object1);
2003 // We don't make object2 an optional parameter so that showLayoutTree 2004 // We don't make object2 an optional parameter so that showLayoutTree
2004 // can be called from gdb easily. 2005 // can be called from gdb easily.
2005 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2006 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2006 2007
2007 #endif 2008 #endif
2008 2009
2009 #endif // LayoutObject_h 2010 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698