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, 2009, 2010 Apple Inc. All rights reserv
ed. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserv
ed. |
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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 } | 278 } |
279 | 279 |
280 void subtractCaptionRect(LayoutRect&) const; | 280 void subtractCaptionRect(LayoutRect&) const; |
281 | 281 |
282 const char* name() const override { return "LayoutTable"; } | 282 const char* name() const override { return "LayoutTable"; } |
283 | 283 |
284 protected: | 284 protected: |
285 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | 285 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
286 void simplifiedNormalFlowLayout() override; | 286 void simplifiedNormalFlowLayout() override; |
287 PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationState&, con
st LayoutBoxModelObject& paintInvalidationContainer) override; | 287 PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationState&, con
st LayoutBoxModelObject& paintInvalidationContainer) override; |
| 288 PaintInvalidationReason invalidatePaintIfNeededForSlimmingPaintV2(const Layo
utPoint& newPaintOffset) override; |
288 void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState&) override; | 289 void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState&) override; |
289 | 290 |
290 private: | 291 private: |
291 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectTable || LayoutBlock::isOfType(type); } | 292 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectTable || LayoutBlock::isOfType(type); } |
292 | 293 |
293 void paintObject(const PaintInfo&, const LayoutPoint&) override; | 294 void paintObject(const PaintInfo&, const LayoutPoint&) override; |
294 void layout() override; | 295 void layout() override; |
295 void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidt
h) const override; | 296 void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidt
h) const override; |
296 void computePreferredLogicalWidths() override; | 297 void computePreferredLogicalWidths() override; |
297 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer,
const LayoutPoint& accumulatedOffset, HitTestAction) override; | 298 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer,
const LayoutPoint& accumulatedOffset, HitTestAction) override; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 if (m_firstBody) | 367 if (m_firstBody) |
367 return m_firstBody; | 368 return m_firstBody; |
368 return m_foot; | 369 return m_foot; |
369 } | 370 } |
370 | 371 |
371 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); | 372 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); |
372 | 373 |
373 } // namespace blink | 374 } // namespace blink |
374 | 375 |
375 #endif // LayoutTable_h | 376 #endif // LayoutTable_h |
OLD | NEW |