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

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

Issue 306413002: Rename Repaint to Paint Invalidation Part 2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master Created 6 years, 6 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/frame/LocalFrame.cpp ('k') | Source/core/rendering/RenderView.h » ('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 1795 matching lines...) Expand 10 before | Expand all | Expand 10 after
1806 } 1806 }
1807 1807
1808 void RenderObject::repaintOverflowIfNeeded() 1808 void RenderObject::repaintOverflowIfNeeded()
1809 { 1809 {
1810 if (shouldInvalidateOverflowForPaint()) 1810 if (shouldInvalidateOverflowForPaint())
1811 repaintOverflow(); 1811 repaintOverflow();
1812 } 1812 }
1813 1813
1814 bool RenderObject::checkForRepaint() const 1814 bool RenderObject::checkForRepaint() const
1815 { 1815 {
1816 return !document().view()->needsFullRepaint() && everHadLayout(); 1816 return !document().view()->needsFullPaintInvalidation() && everHadLayout();
1817 } 1817 }
1818 1818
1819 bool RenderObject::checkForRepaintDuringLayout() const 1819 bool RenderObject::checkForRepaintDuringLayout() const
1820 { 1820 {
1821 return !RuntimeEnabledFeatures::repaintAfterLayoutEnabled() && checkForRepai nt(); 1821 return !RuntimeEnabledFeatures::repaintAfterLayoutEnabled() && checkForRepai nt();
1822 } 1822 }
1823 1823
1824 LayoutRect RenderObject::rectWithOutlineForRepaint(const RenderLayerModelObject* repaintContainer, LayoutUnit outlineWidth) const 1824 LayoutRect RenderObject::rectWithOutlineForRepaint(const RenderLayerModelObject* repaintContainer, LayoutUnit outlineWidth) const
1825 { 1825 {
1826 LayoutRect r(clippedOverflowRectForRepaint(repaintContainer)); 1826 LayoutRect r(clippedOverflowRectForRepaint(repaintContainer));
(...skipping 1730 matching lines...) Expand 10 before | Expand all | Expand 10 after
3557 { 3557 {
3558 if (object1) { 3558 if (object1) {
3559 const WebCore::RenderObject* root = object1; 3559 const WebCore::RenderObject* root = object1;
3560 while (root->parent()) 3560 while (root->parent())
3561 root = root->parent(); 3561 root = root->parent();
3562 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3562 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3563 } 3563 }
3564 } 3564 }
3565 3565
3566 #endif 3566 #endif
OLDNEW
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/rendering/RenderView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698