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

Side by Side Diff: Source/core/layout/LayoutObject.cpp

Issue 1278543002: Include the whole outline into visual overflow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 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
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 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 void LayoutObject::invalidatePaintForOverflow() 1468 void LayoutObject::invalidatePaintForOverflow()
1469 { 1469 {
1470 } 1470 }
1471 1471
1472 void LayoutObject::invalidatePaintForOverflowIfNeeded() 1472 void LayoutObject::invalidatePaintForOverflowIfNeeded()
1473 { 1473 {
1474 if (shouldInvalidateOverflowForPaint()) 1474 if (shouldInvalidateOverflowForPaint())
1475 invalidatePaintForOverflow(); 1475 invalidatePaintForOverflow();
1476 } 1476 }
1477 1477
1478 LayoutRect LayoutObject::rectWithOutlineForPaintInvalidation(const LayoutBoxMode lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalid ationState* paintInvalidationState) const
1479 {
1480 LayoutRect r(clippedOverflowRectForPaintInvalidation(paintInvalidationContai ner, paintInvalidationState));
1481 r.inflate(outlineWidth);
1482 return r;
1483 }
1484
1485 LayoutRect LayoutObject::absoluteClippedOverflowRect() const 1478 LayoutRect LayoutObject::absoluteClippedOverflowRect() const
1486 { 1479 {
1487 return clippedOverflowRectForPaintInvalidation(view()); 1480 return clippedOverflowRectForPaintInvalidation(view());
1488 } 1481 }
1489 1482
1490 LayoutRect LayoutObject::clippedOverflowRectForPaintInvalidation(const LayoutBox ModelObject*, const PaintInvalidationState*) const 1483 LayoutRect LayoutObject::clippedOverflowRectForPaintInvalidation(const LayoutBox ModelObject*, const PaintInvalidationState*) const
1491 { 1484 {
1492 ASSERT_NOT_REACHED(); 1485 ASSERT_NOT_REACHED();
1493 return LayoutRect(); 1486 return LayoutRect();
1494 } 1487 }
(...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after
3377 const blink::LayoutObject* root = object1; 3370 const blink::LayoutObject* root = object1;
3378 while (root->parent()) 3371 while (root->parent())
3379 root = root->parent(); 3372 root = root->parent();
3380 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3373 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3381 } else { 3374 } else {
3382 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3375 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3383 } 3376 }
3384 } 3377 }
3385 3378
3386 #endif 3379 #endif
OLDNEW
« Source/core/layout/LayoutBoxModelObject.cpp ('K') | « Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698