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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineFlowBox.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/line/InlineFlowBox.h
diff --git a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
index 7cf8ddd3b51922418453d0e1917d708c1d1fbbbb..dd11dee4b608591a64406502b6baf51d0ddf4cb3 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
+++ b/third_party/WebKit/Source/core/layout/line/InlineFlowBox.h
@@ -174,27 +174,23 @@ class InlineFlowBox : public InlineBox {
LayoutUnit marginLogicalWidth() const {
return marginLogicalLeft() + marginLogicalRight();
}
- int borderLogicalLeft() const {
+ LayoutUnit borderLogicalLeft() const {
if (!includeLogicalLeftEdge())
- return 0;
- return isHorizontal()
- ? getLineLayoutItem()
- .style(isFirstLineStyle())
- ->borderLeftWidth()
- : getLineLayoutItem()
- .style(isFirstLineStyle())
- ->borderTopWidth();
- }
- int borderLogicalRight() const {
+ return LayoutUnit();
+ return LayoutUnit(
+ isHorizontal()
+ ? getLineLayoutItem().style(isFirstLineStyle())->borderLeftWidth()
+ : getLineLayoutItem().style(isFirstLineStyle())->borderTopWidth());
+ }
+ LayoutUnit borderLogicalRight() const {
if (!includeLogicalRightEdge())
- return 0;
- return isHorizontal()
- ? getLineLayoutItem()
- .style(isFirstLineStyle())
- ->borderRightWidth()
- : getLineLayoutItem()
- .style(isFirstLineStyle())
- ->borderBottomWidth();
+ return LayoutUnit();
+ return LayoutUnit(
+ isHorizontal()
+ ? getLineLayoutItem().style(isFirstLineStyle())->borderRightWidth()
+ : getLineLayoutItem()
+ .style(isFirstLineStyle())
+ ->borderBottomWidth());
}
int paddingLogicalLeft() const {
if (!includeLogicalLeftEdge())

Powered by Google App Engine
This is Rietveld 408576698