Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 214 virtual LayoutUnit offsetHeight() const { return height(); } | 214 virtual LayoutUnit offsetHeight() const { return height(); } |
| 215 | 215 |
| 216 virtual int pixelSnappedOffsetWidth() const OVERRIDE FINAL; | 216 virtual int pixelSnappedOffsetWidth() const OVERRIDE FINAL; |
| 217 virtual int pixelSnappedOffsetHeight() const OVERRIDE FINAL; | 217 virtual int pixelSnappedOffsetHeight() const OVERRIDE FINAL; |
| 218 | 218 |
| 219 bool requiresLayoutToDetermineWidth() const; | 219 bool requiresLayoutToDetermineWidth() const; |
| 220 LayoutUnit fixedOffsetWidth() const; | 220 LayoutUnit fixedOffsetWidth() const; |
| 221 | 221 |
| 222 // More IE extensions. clientWidth and clientHeight represent the interior of an object | 222 // More IE extensions. clientWidth and clientHeight represent the interior of an object |
| 223 // excluding border and scrollbar. clientLeft/Top are just the borderLeftWi dth and borderTopWidth. | 223 // excluding border and scrollbar. clientLeft/Top are just the borderLeftWi dth and borderTopWidth. |
| 224 LayoutUnit clientLeft() const { return borderLeft(); } | 224 LayoutUnit clientLeft() const { return borderLeft() + (style()->shouldPlaceB lockDirectionScrollbarOnLogicalLeft() ? verticalScrollbarWidth() : 0); } |
|
ojan
2013/10/01 19:24:52
This changes the web exposed behavior of clientLef
pals
2013/10/03 10:54:06
Removed the change from this patch. I shall create
| |
| 225 LayoutUnit clientTop() const { return borderTop(); } | 225 LayoutUnit clientTop() const { return borderTop(); } |
| 226 LayoutUnit clientWidth() const; | 226 LayoutUnit clientWidth() const; |
| 227 LayoutUnit clientHeight() const; | 227 LayoutUnit clientHeight() const; |
| 228 LayoutUnit clientLogicalWidth() const { return style()->isHorizontalWritingM ode() ? clientWidth() : clientHeight(); } | 228 LayoutUnit clientLogicalWidth() const { return style()->isHorizontalWritingM ode() ? clientWidth() : clientHeight(); } |
| 229 LayoutUnit clientLogicalHeight() const { return style()->isHorizontalWriting Mode() ? clientHeight() : clientWidth(); } | 229 LayoutUnit clientLogicalHeight() const { return style()->isHorizontalWriting Mode() ? clientHeight() : clientWidth(); } |
| 230 LayoutUnit clientLogicalBottom() const { return borderBefore() + clientLogic alHeight(); } | 230 LayoutUnit clientLogicalBottom() const { return borderBefore() + clientLogic alHeight(); } |
| 231 LayoutRect clientBoxRect() const { return LayoutRect(clientLeft(), clientTop (), clientWidth(), clientHeight()); } | 231 LayoutRect clientBoxRect() const { return LayoutRect(clientLeft(), clientTop (), clientWidth(), clientHeight()); } |
| 232 | 232 |
| 233 int pixelSnappedClientWidth() const; | 233 int pixelSnappedClientWidth() const; |
| 234 int pixelSnappedClientHeight() const; | 234 int pixelSnappedClientHeight() const; |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 764 if (UNLIKELY(m_inlineBoxWrapper != 0)) | 764 if (UNLIKELY(m_inlineBoxWrapper != 0)) |
| 765 deleteLineBoxWrapper(); | 765 deleteLineBoxWrapper(); |
| 766 } | 766 } |
| 767 | 767 |
| 768 m_inlineBoxWrapper = boxWrapper; | 768 m_inlineBoxWrapper = boxWrapper; |
| 769 } | 769 } |
| 770 | 770 |
| 771 } // namespace WebCore | 771 } // namespace WebCore |
| 772 | 772 |
| 773 #endif // RenderBox_h | 773 #endif // RenderBox_h |
| OLD | NEW |