| 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 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 return box->maxPreferredLogicalWidth(); | 965 return box->maxPreferredLogicalWidth(); |
| 966 return 0; | 966 return 0; |
| 967 } | 967 } |
| 968 | 968 |
| 969 void Element::setMaxContentWidth(double width) | 969 void Element::setMaxContentWidth(double width) |
| 970 { | 970 { |
| 971 if (RenderBox* box = renderBox()) | 971 if (RenderBox* box = renderBox()) |
| 972 return box->setMaxPreferredLogicalWidth(width); | 972 return box->setMaxPreferredLogicalWidth(width); |
| 973 } | 973 } |
| 974 | 974 |
| 975 double Element::alphabeticBaseline() const |
| 976 { |
| 977 if (RenderBox* box = renderBox()) |
| 978 return box->baselinePosition(AlphabeticBaseline, true, HorizontalLine, P
ositionOfInteriorLineBoxes); |
| 979 return 0; |
| 980 } |
| 981 |
| 982 double Element::ideographicBaseline() const |
| 983 { |
| 984 if (RenderBox* box = renderBox()) |
| 985 return box->baselinePosition(IdeographicBaseline, true, HorizontalLine,
PositionOfInteriorLineBoxes); |
| 986 return 0; |
| 987 } |
| 988 |
| 975 void Element::setNeedsLayout() | 989 void Element::setNeedsLayout() |
| 976 { | 990 { |
| 977 if (RenderBox* box = renderBox()) | 991 if (RenderBox* box = renderBox()) |
| 978 box->setNeedsLayout(); | 992 box->setNeedsLayout(); |
| 979 } | 993 } |
| 980 | 994 |
| 981 void Element::layout() | 995 void Element::layout() |
| 982 { | 996 { |
| 983 if (RenderBox* box = renderBox()) | 997 if (RenderBox* box = renderBox()) |
| 984 box->layoutIfNeeded(); | 998 box->layoutIfNeeded(); |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1694 GraphicsContext context(canvas->skCanvas()); | 1708 GraphicsContext context(canvas->skCanvas()); |
| 1695 | 1709 |
| 1696 // Very simplified painting to allow painting an arbitrary (layer-less) subt
ree. | 1710 // Very simplified painting to allow painting an arbitrary (layer-less) subt
ree. |
| 1697 Vector<RenderBox*> layers; | 1711 Vector<RenderBox*> layers; |
| 1698 PaintInfo paintInfo(&context, box->absoluteBoundingBoxRect(), box); | 1712 PaintInfo paintInfo(&context, box->absoluteBoundingBoxRect(), box); |
| 1699 box->paint(paintInfo, LayoutPoint(), layers); | 1713 box->paint(paintInfo, LayoutPoint(), layers); |
| 1700 // Note we're ignoring any layers encountered. | 1714 // Note we're ignoring any layers encountered. |
| 1701 } | 1715 } |
| 1702 | 1716 |
| 1703 } // namespace blink | 1717 } // namespace blink |
| OLD | NEW |