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

Side by Side Diff: Source/core/rendering/RenderObject.cpp

Issue 478733002: Rename repaint to paintInvalidation for remaining methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/RenderObjectChildList.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 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) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after
1511 return; 1511 return;
1512 1512
1513 TRACE_EVENT2(TRACE_DISABLED_BY_DEFAULT("blink.invalidation"), "RenderObject: :invalidatePaintUsingContainer()", 1513 TRACE_EVENT2(TRACE_DISABLED_BY_DEFAULT("blink.invalidation"), "RenderObject: :invalidatePaintUsingContainer()",
1514 "object", this->debugName().ascii(), 1514 "object", this->debugName().ascii(),
1515 "info", jsonObjectForPaintInvalidationInfo(r, invalidationReasonToString (invalidationReason))); 1515 "info", jsonObjectForPaintInvalidationInfo(r, invalidationReasonToString (invalidationReason)));
1516 1516
1517 // For querying RenderLayer::compositingState() 1517 // For querying RenderLayer::compositingState()
1518 DisableCompositingQueryAsserts disabler; 1518 DisableCompositingQueryAsserts disabler;
1519 1519
1520 if (paintInvalidationContainer->isRenderFlowThread()) { 1520 if (paintInvalidationContainer->isRenderFlowThread()) {
1521 toRenderFlowThread(paintInvalidationContainer)->repaintRectangleInRegion s(r); 1521 toRenderFlowThread(paintInvalidationContainer)->paintInvalidationRectang leInRegions(r);
1522 return; 1522 return;
1523 } 1523 }
1524 1524
1525 if (paintInvalidationContainer->hasFilter() && paintInvalidationContainer->l ayer()->requiresFullLayerImageForFilters()) { 1525 if (paintInvalidationContainer->hasFilter() && paintInvalidationContainer->l ayer()->requiresFullLayerImageForFilters()) {
1526 paintInvalidationContainer->layer()->paintInvalidator().setFilterBackend NeedsRepaintingInRect(r); 1526 paintInvalidationContainer->layer()->paintInvalidator().setFilterBackend NeedsPaintInvalidationInRect(r);
1527 return; 1527 return;
1528 } 1528 }
1529 1529
1530 RenderView* v = view(); 1530 RenderView* v = view();
1531 if (paintInvalidationContainer->isRenderView()) { 1531 if (paintInvalidationContainer->isRenderView()) {
1532 ASSERT(paintInvalidationContainer == v); 1532 ASSERT(paintInvalidationContainer == v);
1533 v->invalidatePaintForRectangle(r); 1533 v->invalidatePaintForRectangle(r);
1534 return; 1534 return;
1535 } 1535 }
1536 1536
1537 if (v->usesCompositing()) { 1537 if (v->usesCompositing()) {
1538 ASSERT(paintInvalidationContainer->hasLayer() && (paintInvalidationConta iner->layer()->compositingState() == PaintsIntoOwnBacking || paintInvalidationCo ntainer->layer()->compositingState() == PaintsIntoGroupedBacking)); 1538 ASSERT(paintInvalidationContainer->hasLayer() && (paintInvalidationConta iner->layer()->compositingState() == PaintsIntoOwnBacking || paintInvalidationCo ntainer->layer()->compositingState() == PaintsIntoGroupedBacking));
1539 paintInvalidationContainer->layer()->paintInvalidator().setBackingNeedsR epaintInRect(r); 1539 paintInvalidationContainer->layer()->paintInvalidator().setBackingNeedsP aintInvalidationInRect(r);
1540 } 1540 }
1541 } 1541 }
1542 1542
1543 void RenderObject::paintInvalidationForWholeRenderer() const 1543 void RenderObject::paintInvalidationForWholeRenderer() const
1544 { 1544 {
1545 if (!isRooted()) 1545 if (!isRooted())
1546 return; 1546 return;
1547 1547
1548 if (view()->document().printing()) 1548 if (view()->document().printing())
1549 return; // Don't invalidate paints if we're printing. 1549 return; // Don't invalidate paints if we're printing.
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 1778
1779 if (RenderObject* o = parent()) { 1779 if (RenderObject* o = parent()) {
1780 if (o->isRenderBlockFlow()) { 1780 if (o->isRenderBlockFlow()) {
1781 RenderBlock* cb = toRenderBlock(o); 1781 RenderBlock* cb = toRenderBlock(o);
1782 if (cb->hasColumns()) 1782 if (cb->hasColumns())
1783 cb->adjustRectForColumns(rect); 1783 cb->adjustRectForColumns(rect);
1784 } 1784 }
1785 1785
1786 if (o->hasOverflowClip()) { 1786 if (o->hasOverflowClip()) {
1787 RenderBox* boxParent = toRenderBox(o); 1787 RenderBox* boxParent = toRenderBox(o);
1788 boxParent->applyCachedClipAndScrollOffsetForRepaint(rect); 1788 boxParent->applyCachedClipAndScrollOffsetForPaintInvalidation(rect);
1789 if (rect.isEmpty()) 1789 if (rect.isEmpty())
1790 return; 1790 return;
1791 } 1791 }
1792 1792
1793 o->mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, f ixed, paintInvalidationState); 1793 o->mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, f ixed, paintInvalidationState);
1794 } 1794 }
1795 } 1795 }
1796 1796
1797 void RenderObject::computeFloatRectForPaintInvalidation(const RenderLayerModelOb ject*, FloatRect&, bool, const PaintInvalidationState*) const 1797 void RenderObject::computeFloatRectForPaintInvalidation(const RenderLayerModelOb ject*, FloatRect&, bool, const PaintInvalidationState*) const
1798 { 1798 {
(...skipping 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after
3463 { 3463 {
3464 if (object1) { 3464 if (object1) {
3465 const blink::RenderObject* root = object1; 3465 const blink::RenderObject* root = object1;
3466 while (root->parent()) 3466 while (root->parent())
3467 root = root->parent(); 3467 root = root->parent();
3468 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3468 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3469 } 3469 }
3470 } 3470 }
3471 3471
3472 #endif 3472 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/RenderObjectChildList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698