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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTable.h

Issue 2640143005: Support subpixel layout for borders. (Closed)
Patch Set: Rebaselined tests. Created 3 years, 10 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: third_party/WebKit/Source/core/layout/LayoutTable.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.h b/third_party/WebKit/Source/core/layout/LayoutTable.h
index 6b68432118cd1658fbedf42c5c95750b3033574f..73e0015f74a8d36c2c3144b95d52cbe2b9abdf18 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.h
@@ -148,33 +148,33 @@ class CORE_EXPORT LayoutTable final : public LayoutBlock {
return style()->borderCollapse() == EBorderCollapse::kCollapse;
}
- int borderStart() const override { return m_borderStart; }
- int borderEnd() const override { return m_borderEnd; }
- int borderBefore() const override;
- int borderAfter() const override;
+ LayoutUnit borderStart() const override { return LayoutUnit(m_borderStart); }
+ LayoutUnit borderEnd() const override { return LayoutUnit(m_borderEnd); }
+ LayoutUnit borderBefore() const override;
+ LayoutUnit borderAfter() const override;
- int borderLeft() const override {
+ LayoutUnit borderLeft() const override {
if (style()->isHorizontalWritingMode())
return style()->isLeftToRightDirection() ? borderStart() : borderEnd();
return style()->isFlippedBlocksWritingMode() ? borderAfter()
: borderBefore();
}
- int borderRight() const override {
+ LayoutUnit borderRight() const override {
if (style()->isHorizontalWritingMode())
return style()->isLeftToRightDirection() ? borderEnd() : borderStart();
return style()->isFlippedBlocksWritingMode() ? borderBefore()
: borderAfter();
}
- int borderTop() const override {
+ LayoutUnit borderTop() const override {
if (style()->isHorizontalWritingMode())
return style()->isFlippedBlocksWritingMode() ? borderAfter()
: borderBefore();
return style()->isLeftToRightDirection() ? borderStart() : borderEnd();
}
- int borderBottom() const override {
+ LayoutUnit borderBottom() const override {
if (style()->isHorizontalWritingMode())
return style()->isFlippedBlocksWritingMode() ? borderBefore()
: borderAfter();
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698