OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
3 * (C) 1997 Torben Weis (weis@kde.org) | 3 * (C) 1997 Torben Weis (weis@kde.org) |
4 * (C) 1998 Waldo Bastian (bastian@kde.org) | 4 * (C) 1998 Waldo Bastian (bastian@kde.org) |
5 * (C) 1999 Lars Knoll (knoll@kde.org) | 5 * (C) 1999 Lars Knoll (knoll@kde.org) |
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2013 Apple Inc. All rights
reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2013 Apple Inc. All rights
reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 #if ENABLE(ASSERT) | 211 #if ENABLE(ASSERT) |
212 bool isFirstOrLastCellInRow() const | 212 bool isFirstOrLastCellInRow() const |
213 { | 213 { |
214 return !table()->cellAfter(this) || !table()->cellBefore(this); | 214 return !table()->cellAfter(this) || !table()->cellBefore(this); |
215 } | 215 } |
216 #endif | 216 #endif |
217 protected: | 217 protected: |
218 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov
erride; | 218 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov
erride; |
219 virtual void computePreferredLogicalWidths() override; | 219 virtual void computePreferredLogicalWidths() override; |
220 | 220 |
221 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur
rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container
Rect) const override; | 221 virtual void addLayerHitTestRects(LayerHitTestRects&, const Layer* currentCo
mpositedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect)
const override; |
222 | 222 |
223 private: | 223 private: |
224 virtual const char* renderName() const override { return (isAnonymous() || i
sPseudoElement()) ? "LayoutTableCell (anonymous)" : "LayoutTableCell"; } | 224 virtual const char* renderName() const override { return (isAnonymous() || i
sPseudoElement()) ? "LayoutTableCell (anonymous)" : "LayoutTableCell"; } |
225 | 225 |
226 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectTableCell || RenderBlockFlow::isOfType(type); } | 226 virtual bool isOfType(RenderObjectType type) const override { return type ==
RenderObjectTableCell || RenderBlockFlow::isOfType(type); } |
227 | 227 |
228 virtual void willBeRemovedFromTree() override; | 228 virtual void willBeRemovedFromTree() override; |
229 | 229 |
230 virtual void updateLogicalWidth() override; | 230 virtual void updateLogicalWidth() override; |
231 | 231 |
232 virtual void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoin
t&) override; | 232 virtual void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoin
t&) override; |
233 virtual void paintMask(const PaintInfo&, const LayoutPoint&) override; | 233 virtual void paintMask(const PaintInfo&, const LayoutPoint&) override; |
234 | 234 |
235 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance,
InlineFlowBox*) const override; | 235 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance,
InlineFlowBox*) const override; |
236 | 236 |
237 virtual LayoutSize offsetFromContainer(const RenderObject*, const LayoutPoin
t&, bool* offsetDependsOnPoint = 0) const override; | 237 virtual LayoutSize offsetFromContainer(const RenderObject*, const LayoutPoin
t&, bool* offsetDependsOnPoint = 0) const override; |
238 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer
ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons
t override; | 238 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutLayer
ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons
t override; |
239 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject*
paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o
verride; | 239 virtual void mapRectToPaintInvalidationBacking(const LayoutLayerModelObject*
paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o
verride; |
240 | 240 |
241 int borderHalfLeft(bool outer) const; | 241 int borderHalfLeft(bool outer) const; |
242 int borderHalfRight(bool outer) const; | 242 int borderHalfRight(bool outer) const; |
243 int borderHalfTop(bool outer) const; | 243 int borderHalfTop(bool outer) const; |
244 int borderHalfBottom(bool outer) const; | 244 int borderHalfBottom(bool outer) const; |
245 | 245 |
246 int borderHalfStart(bool outer) const; | 246 int borderHalfStart(bool outer) const; |
247 int borderHalfEnd(bool outer) const; | 247 int borderHalfEnd(bool outer) const; |
248 int borderHalfBefore(bool outer) const; | 248 int borderHalfBefore(bool outer) const; |
249 int borderHalfAfter(bool outer) const; | 249 int borderHalfAfter(bool outer) const; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 304 |
305 inline LayoutTableCell* LayoutTableRow::lastCell() const | 305 inline LayoutTableCell* LayoutTableRow::lastCell() const |
306 { | 306 { |
307 ASSERT(children() == virtualChildren()); | 307 ASSERT(children() == virtualChildren()); |
308 return toLayoutTableCell(children()->lastChild()); | 308 return toLayoutTableCell(children()->lastChild()); |
309 } | 309 } |
310 | 310 |
311 } // namespace blink | 311 } // namespace blink |
312 | 312 |
313 #endif // LayoutTableCell_h | 313 #endif // LayoutTableCell_h |
OLD | NEW |