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

Unified Diff: Source/core/layout/LayoutTableCell.cpp

Issue 1269123002: Preparation for combining paths of focus rings and outlines (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove debug from fast/css/focus-ring-recursive-continuations.html 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/layout/LayoutTableCell.cpp
diff --git a/Source/core/layout/LayoutTableCell.cpp b/Source/core/layout/LayoutTableCell.cpp
index 296f32745de18e8ac7e8a83a55ad847d749a1ac4..5ee5ab007ec4d90f76d9a31493dc17d81c53d52e 100644
--- a/Source/core/layout/LayoutTableCell.cpp
+++ b/Source/core/layout/LayoutTableCell.cpp
@@ -322,11 +322,11 @@ LayoutRect LayoutTableCell::clippedOverflowRectForPaintInvalidation(const Layout
return LayoutBlockFlow::clippedOverflowRectForPaintInvalidation(paintInvalidationContainer, paintInvalidationState);
bool rtl = !styleForCellFlow().isLeftToRightDirection();
- int outlineSize = style()->outlineSize();
- int left = std::max(borderHalfLeft(true), outlineSize);
- int right = std::max(borderHalfRight(true), outlineSize);
- int top = std::max(borderHalfTop(true), outlineSize);
- int bottom = std::max(borderHalfBottom(true), outlineSize);
+ int outlineOutset = style()->outlineOutsetExtent();
+ int left = std::max(borderHalfLeft(true), outlineOutset);
+ int right = std::max(borderHalfRight(true), outlineOutset);
+ int top = std::max(borderHalfTop(true), outlineOutset);
+ int bottom = std::max(borderHalfBottom(true), outlineOutset);
if ((left && !rtl) || (right && rtl)) {
if (LayoutTableCell* before = table()->cellBefore(this)) {
top = std::max(top, before->borderHalfTop(true));

Powered by Google App Engine
This is Rietveld 408576698