| OLD | NEW |
| 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 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1363 void RenderObject::invalidatePaintForOverflow() | 1363 void RenderObject::invalidatePaintForOverflow() |
| 1364 { | 1364 { |
| 1365 } | 1365 } |
| 1366 | 1366 |
| 1367 void RenderObject::invalidatePaintForOverflowIfNeeded() | 1367 void RenderObject::invalidatePaintForOverflowIfNeeded() |
| 1368 { | 1368 { |
| 1369 if (shouldInvalidateOverflowForPaint()) | 1369 if (shouldInvalidateOverflowForPaint()) |
| 1370 invalidatePaintForOverflow(); | 1370 invalidatePaintForOverflow(); |
| 1371 } | 1371 } |
| 1372 | 1372 |
| 1373 bool RenderObject::checkForPaintInvalidation() const | |
| 1374 { | |
| 1375 return !document().view()->needsFullPaintInvalidation() && everHadLayout(); | |
| 1376 } | |
| 1377 | |
| 1378 LayoutRect RenderObject::rectWithOutlineForPaintInvalidation(const RenderLayerMo
delObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInval
idationState* paintInvalidationState) const | 1373 LayoutRect RenderObject::rectWithOutlineForPaintInvalidation(const RenderLayerMo
delObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInval
idationState* paintInvalidationState) const |
| 1379 { | 1374 { |
| 1380 LayoutRect r(clippedOverflowRectForPaintInvalidation(paintInvalidationContai
ner, paintInvalidationState)); | 1375 LayoutRect r(clippedOverflowRectForPaintInvalidation(paintInvalidationContai
ner, paintInvalidationState)); |
| 1381 r.inflate(outlineWidth); | 1376 r.inflate(outlineWidth); |
| 1382 return r; | 1377 return r; |
| 1383 } | 1378 } |
| 1384 | 1379 |
| 1385 LayoutRect RenderObject::absoluteClippedOverflowRect() const | 1380 LayoutRect RenderObject::absoluteClippedOverflowRect() const |
| 1386 { | 1381 { |
| 1387 return clippedOverflowRectForPaintInvalidation(view()); | 1382 return clippedOverflowRectForPaintInvalidation(view()); |
| (...skipping 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3139 { | 3134 { |
| 3140 if (object1) { | 3135 if (object1) { |
| 3141 const blink::RenderObject* root = object1; | 3136 const blink::RenderObject* root = object1; |
| 3142 while (root->parent()) | 3137 while (root->parent()) |
| 3143 root = root->parent(); | 3138 root = root->parent(); |
| 3144 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3139 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 3145 } | 3140 } |
| 3146 } | 3141 } |
| 3147 | 3142 |
| 3148 #endif | 3143 #endif |
| OLD | NEW |