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

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: Add comment for LayoutObject::addOutlineRects() Created 5 years, 3 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 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after
1505 void LayoutObject::invalidatePaintForOverflow() 1505 void LayoutObject::invalidatePaintForOverflow()
1506 { 1506 {
1507 } 1507 }
1508 1508
1509 void LayoutObject::invalidatePaintForOverflowIfNeeded() 1509 void LayoutObject::invalidatePaintForOverflowIfNeeded()
1510 { 1510 {
1511 if (shouldInvalidateOverflowForPaint()) 1511 if (shouldInvalidateOverflowForPaint())
1512 invalidatePaintForOverflow(); 1512 invalidatePaintForOverflow();
1513 } 1513 }
1514 1514
1515 LayoutRect LayoutObject::rectWithOutlineForPaintInvalidation(const LayoutBoxMode lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalid ationState* paintInvalidationState) const
1516 {
1517 LayoutRect r(clippedOverflowRectForPaintInvalidation(paintInvalidationContai ner, paintInvalidationState));
1518 r.inflate(outlineWidth);
1519 return r;
1520 }
1521
1522 LayoutRect LayoutObject::absoluteClippedOverflowRect() const 1515 LayoutRect LayoutObject::absoluteClippedOverflowRect() const
1523 { 1516 {
1524 return clippedOverflowRectForPaintInvalidation(view()); 1517 return clippedOverflowRectForPaintInvalidation(view());
1525 } 1518 }
1526 1519
1527 LayoutRect LayoutObject::clippedOverflowRectForPaintInvalidation(const LayoutBox ModelObject*, const PaintInvalidationState*) const 1520 LayoutRect LayoutObject::clippedOverflowRectForPaintInvalidation(const LayoutBox ModelObject*, const PaintInvalidationState*) const
1528 { 1521 {
1529 ASSERT_NOT_REACHED(); 1522 ASSERT_NOT_REACHED();
1530 return LayoutRect(); 1523 return LayoutRect();
1531 } 1524 }
(...skipping 1876 matching lines...) Expand 10 before | Expand all | Expand 10 after
3408 const blink::LayoutObject* root = object1; 3401 const blink::LayoutObject* root = object1;
3409 while (root->parent()) 3402 while (root->parent())
3410 root = root->parent(); 3403 root = root->parent();
3411 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3404 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3412 } else { 3405 } else {
3413 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3406 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3414 } 3407 }
3415 } 3408 }
3416 3409
3417 #endif 3410 #endif
OLDNEW
« Source/core/layout/LayoutObject.h ('K') | « Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698