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

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

Issue 468343002: Rename repaint to paintInvalidation in core/rendering/compositing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix invalidator spelling 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/RenderLayerRepainter.cpp ('k') | Source/core/rendering/RenderView.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 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after
1522 1522
1523 // For querying RenderLayer::compositingState() 1523 // For querying RenderLayer::compositingState()
1524 DisableCompositingQueryAsserts disabler; 1524 DisableCompositingQueryAsserts disabler;
1525 1525
1526 if (paintInvalidationContainer->isRenderFlowThread()) { 1526 if (paintInvalidationContainer->isRenderFlowThread()) {
1527 toRenderFlowThread(paintInvalidationContainer)->repaintRectangleInRegion s(r); 1527 toRenderFlowThread(paintInvalidationContainer)->repaintRectangleInRegion s(r);
1528 return; 1528 return;
1529 } 1529 }
1530 1530
1531 if (paintInvalidationContainer->hasFilter() && paintInvalidationContainer->l ayer()->requiresFullLayerImageForFilters()) { 1531 if (paintInvalidationContainer->hasFilter() && paintInvalidationContainer->l ayer()->requiresFullLayerImageForFilters()) {
1532 paintInvalidationContainer->layer()->repainter().setFilterBackendNeedsRe paintingInRect(r); 1532 paintInvalidationContainer->layer()->paintInvalidator().setFilterBackend NeedsRepaintingInRect(r);
1533 return; 1533 return;
1534 } 1534 }
1535 1535
1536 if (paintInvalidationContainer->isRenderView()) { 1536 if (paintInvalidationContainer->isRenderView()) {
1537 toRenderView(paintInvalidationContainer)->invalidatePaintForRectangle(r) ; 1537 toRenderView(paintInvalidationContainer)->invalidatePaintForRectangle(r) ;
1538 return; 1538 return;
1539 } 1539 }
1540 1540
1541 if (view()->usesCompositing()) { 1541 if (view()->usesCompositing()) {
1542 ASSERT(paintInvalidationContainer->hasLayer() && (paintInvalidationConta iner->layer()->compositingState() == PaintsIntoOwnBacking || paintInvalidationCo ntainer->layer()->compositingState() == PaintsIntoGroupedBacking)); 1542 ASSERT(paintInvalidationContainer->hasLayer() && (paintInvalidationConta iner->layer()->compositingState() == PaintsIntoOwnBacking || paintInvalidationCo ntainer->layer()->compositingState() == PaintsIntoGroupedBacking));
1543 paintInvalidationContainer->layer()->repainter().setBackingNeedsRepaintI nRect(r); 1543 paintInvalidationContainer->layer()->paintInvalidator().setBackingNeedsR epaintInRect(r);
1544 } 1544 }
1545 } 1545 }
1546 1546
1547 void RenderObject::paintInvalidationForWholeRenderer() const 1547 void RenderObject::paintInvalidationForWholeRenderer() const
1548 { 1548 {
1549 if (!isRooted()) 1549 if (!isRooted())
1550 return; 1550 return;
1551 1551
1552 if (view()->document().printing()) 1552 if (view()->document().printing())
1553 return; // Don't invalidate paints if we're printing. 1553 return; // Don't invalidate paints if we're printing.
(...skipping 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after
3472 { 3472 {
3473 if (object1) { 3473 if (object1) {
3474 const blink::RenderObject* root = object1; 3474 const blink::RenderObject* root = object1;
3475 while (root->parent()) 3475 while (root->parent())
3476 root = root->parent(); 3476 root = root->parent();
3477 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3477 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3478 } 3478 }
3479 } 3479 }
3480 3480
3481 #endif 3481 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerRepainter.cpp ('k') | Source/core/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698