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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h

Issue 1574933002: Changed type of border-width longhands from unsigned to float. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added trivial tests safe to rebaseline to TestExpectations Created 4 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 unified diff | Download patch
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 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved.
5 * Copyright (C) 2010 Google Inc. All rights reserved. 5 * Copyright (C) 2010 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 virtual LayoutUnit paddingBottom() const { return computedCSSPaddingBottom() ; } 196 virtual LayoutUnit paddingBottom() const { return computedCSSPaddingBottom() ; }
197 virtual LayoutUnit paddingLeft() const { return computedCSSPaddingLeft(); } 197 virtual LayoutUnit paddingLeft() const { return computedCSSPaddingLeft(); }
198 virtual LayoutUnit paddingRight() const { return computedCSSPaddingRight(); } 198 virtual LayoutUnit paddingRight() const { return computedCSSPaddingRight(); }
199 virtual LayoutUnit paddingBefore() const { return computedCSSPaddingBefore() ; } 199 virtual LayoutUnit paddingBefore() const { return computedCSSPaddingBefore() ; }
200 virtual LayoutUnit paddingAfter() const { return computedCSSPaddingAfter(); } 200 virtual LayoutUnit paddingAfter() const { return computedCSSPaddingAfter(); }
201 virtual LayoutUnit paddingStart() const { return computedCSSPaddingStart(); } 201 virtual LayoutUnit paddingStart() const { return computedCSSPaddingStart(); }
202 virtual LayoutUnit paddingEnd() const { return computedCSSPaddingEnd(); } 202 virtual LayoutUnit paddingEnd() const { return computedCSSPaddingEnd(); }
203 LayoutUnit paddingOver() const { return computedCSSPaddingOver(); } 203 LayoutUnit paddingOver() const { return computedCSSPaddingOver(); }
204 LayoutUnit paddingUnder() const { return computedCSSPaddingUnder(); } 204 LayoutUnit paddingUnder() const { return computedCSSPaddingUnder(); }
205 205
206 virtual int borderTop() const { return style()->borderTopWidth(); } 206 virtual LayoutUnit borderTop() const { return style()->borderTopWidth(); }
207 virtual int borderBottom() const { return style()->borderBottomWidth(); } 207 virtual LayoutUnit borderBottom() const { return style()->borderBottomWidth( ); }
208 virtual int borderLeft() const { return style()->borderLeftWidth(); } 208 virtual LayoutUnit borderLeft() const { return style()->borderLeftWidth(); }
209 virtual int borderRight() const { return style()->borderRightWidth(); } 209 virtual LayoutUnit borderRight() const { return style()->borderRightWidth(); }
210 virtual int borderBefore() const { return style()->borderBeforeWidth(); } 210 virtual LayoutUnit borderBefore() const { return style()->borderBeforeWidth( ); }
211 virtual int borderAfter() const { return style()->borderAfterWidth(); } 211 virtual LayoutUnit borderAfter() const { return style()->borderAfterWidth(); }
212 virtual int borderStart() const { return style()->borderStartWidth(); } 212 virtual LayoutUnit borderStart() const { return style()->borderStartWidth(); }
213 virtual int borderEnd() const { return style()->borderEndWidth(); } 213 virtual LayoutUnit borderEnd() const { return style()->borderEndWidth(); }
214 int borderOver() const { return style()->borderOverWidth(); } 214 LayoutUnit borderOver() const { return style()->borderOverWidth(); }
215 int borderUnder() const { return style()->borderUnderWidth(); } 215 LayoutUnit borderUnder() const { return style()->borderUnderWidth(); }
216 216
217 int borderWidth() const { return borderLeft() + borderRight(); } 217 LayoutUnit borderWidth() const { return borderLeft() + borderRight(); }
218 int borderHeight() const { return borderTop() + borderBottom(); } 218 LayoutUnit borderHeight() const { return borderTop() + borderBottom(); }
219 219
220 // Insets from the border box to the inside of the border. 220 // Insets from the border box to the inside of the border.
221 LayoutRectOutsets borderInsets() const { return LayoutRectOutsets(-borderTop (), -borderRight(), -borderBottom(), -borderLeft()); } 221 LayoutRectOutsets borderInsets() const { return LayoutRectOutsets(-borderTop (), -borderRight(), -borderBottom(), -borderLeft()); }
222 222
223 bool hasBorderOrPadding() const { return style()->hasBorder() || style()->ha sPadding(); } 223 bool hasBorderOrPadding() const { return style()->hasBorder() || style()->ha sPadding(); }
224 224
225 LayoutUnit borderAndPaddingStart() const { return borderStart() + paddingSta rt(); } 225 LayoutUnit borderAndPaddingStart() const { return borderStart() + paddingSta rt(); }
226 LayoutUnit borderAndPaddingBefore() const { return borderBefore() + paddingB efore(); } 226 LayoutUnit borderAndPaddingBefore() const { return borderBefore() + paddingB efore(); }
227 LayoutUnit borderAndPaddingAfter() const { return borderAfter() + paddingAft er(); } 227 LayoutUnit borderAndPaddingAfter() const { return borderAfter() + paddingAft er(); }
228 LayoutUnit borderAndPaddingOver() const { return borderOver() + paddingOver( ); } 228 LayoutUnit borderAndPaddingOver() const { return borderOver() + paddingOver( ); }
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 // The PaintLayer associated with this object. 366 // The PaintLayer associated with this object.
367 // |m_layer| can be nullptr depending on the return value of layerTypeRequir ed(). 367 // |m_layer| can be nullptr depending on the return value of layerTypeRequir ed().
368 OwnPtr<PaintLayer> m_layer; 368 OwnPtr<PaintLayer> m_layer;
369 }; 369 };
370 370
371 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); 371 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject());
372 372
373 } // namespace blink 373 } // namespace blink
374 374
375 #endif // LayoutBoxModelObject_h 375 #endif // LayoutBoxModelObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698