| 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) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights 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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE; | 339 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE; |
| 340 | 340 |
| 341 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const OVERRIDE; | 341 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const OVERRIDE; |
| 342 | 342 |
| 343 void computeRegionRangeForBlock(RenderFlowThread*); | 343 void computeRegionRangeForBlock(RenderFlowThread*); |
| 344 | 344 |
| 345 void updateBlockChildDirtyBitsBeforeLayout(bool relayoutChildren, RenderBox*
); | 345 void updateBlockChildDirtyBitsBeforeLayout(bool relayoutChildren, RenderBox*
); |
| 346 | 346 |
| 347 virtual bool isInlineBlockOrInlineTable() const OVERRIDE FINAL { return isIn
line() && isReplaced(); } | 347 virtual bool isInlineBlockOrInlineTable() const OVERRIDE FINAL { return isIn
line() && isReplaced(); } |
| 348 | 348 |
| 349 virtual void invalidateTreeAfterLayout(const RenderLayerModelObject&) OVERRI
DE; | 349 virtual void invalidateTreeAfterLayout(const InvalidationTreeWalkState&) OVE
RRIDE; |
| 350 | 350 |
| 351 private: | 351 private: |
| 352 virtual RenderObjectChildList* virtualChildren() OVERRIDE FINAL { return chi
ldren(); } | 352 virtual RenderObjectChildList* virtualChildren() OVERRIDE FINAL { return chi
ldren(); } |
| 353 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE FINAL
{ return children(); } | 353 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE FINAL
{ return children(); } |
| 354 | 354 |
| 355 virtual const char* renderName() const OVERRIDE; | 355 virtual const char* renderName() const OVERRIDE; |
| 356 | 356 |
| 357 virtual bool isRenderBlock() const OVERRIDE FINAL { return true; } | 357 virtual bool isRenderBlock() const OVERRIDE FINAL { return true; } |
| 358 | 358 |
| 359 void makeChildrenNonInline(RenderObject* insertionPoint = 0); | 359 void makeChildrenNonInline(RenderObject* insertionPoint = 0); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 virtual bool hitTestFloats(const HitTestRequest&, HitTestResult&, const HitT
estLocation&, const LayoutPoint&) { return false; } | 397 virtual bool hitTestFloats(const HitTestRequest&, HitTestResult&, const HitT
estLocation&, const LayoutPoint&) { return false; } |
| 398 | 398 |
| 399 virtual bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& loc
ationInContainer, const LayoutPoint& accumulatedOffset); | 399 virtual bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& loc
ationInContainer, const LayoutPoint& accumulatedOffset); |
| 400 | 400 |
| 401 void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutU
nit& maxLogicalWidth) const; | 401 void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutU
nit& maxLogicalWidth) const; |
| 402 | 402 |
| 403 // Obtains the nearest enclosing block (including this block) that contribut
es a first-line style to our inline | 403 // Obtains the nearest enclosing block (including this block) that contribut
es a first-line style to our inline |
| 404 // children. | 404 // children. |
| 405 virtual RenderBlock* firstLineBlock() const OVERRIDE; | 405 virtual RenderBlock* firstLineBlock() const OVERRIDE; |
| 406 | 406 |
| 407 virtual LayoutRect rectWithOutlineForPaintInvalidation(const RenderLayerMode
lObject* paintInvalidationContainer, LayoutUnit outlineWidth) const OVERRIDE FIN
AL; | 407 virtual LayoutRect rectWithOutlineForPaintInvalidation(const RenderLayerMode
lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const Invalidation
TreeWalkState* = 0) const OVERRIDE FINAL; |
| 408 virtual RenderStyle* outlineStyleForPaintInvalidation() const OVERRIDE FINAL
; | 408 virtual RenderStyle* outlineStyleForPaintInvalidation() const OVERRIDE FINAL
; |
| 409 | 409 |
| 410 virtual RenderObject* hoverAncestor() const OVERRIDE FINAL; | 410 virtual RenderObject* hoverAncestor() const OVERRIDE FINAL; |
| 411 virtual void updateDragState(bool dragOn) OVERRIDE FINAL; | 411 virtual void updateDragState(bool dragOn) OVERRIDE FINAL; |
| 412 virtual void childBecameNonInline(RenderObject* child) OVERRIDE FINAL; | 412 virtual void childBecameNonInline(RenderObject* child) OVERRIDE FINAL; |
| 413 | 413 |
| 414 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO
bject* paintInvalidationContainer, bool /*clipToVisibleContent*/) OVERRIDE FINAL | 414 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO
bject* paintInvalidationContainer, bool /*clipToVisibleContent*/) OVERRIDE FINAL |
| 415 { | 415 { |
| 416 return selectionGapRectsForRepaint(paintInvalidationContainer); | 416 return selectionGapRectsForRepaint(paintInvalidationContainer); |
| 417 } | 417 } |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 // FIXME: This is temporary as we move code that accesses block flow | 545 // FIXME: This is temporary as we move code that accesses block flow |
| 546 // member variables out of RenderBlock and into RenderBlockFlow. | 546 // member variables out of RenderBlock and into RenderBlockFlow. |
| 547 friend class RenderBlockFlow; | 547 friend class RenderBlockFlow; |
| 548 }; | 548 }; |
| 549 | 549 |
| 550 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 550 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
| 551 | 551 |
| 552 } // namespace WebCore | 552 } // namespace WebCore |
| 553 | 553 |
| 554 #endif // RenderBlock_h | 554 #endif // RenderBlock_h |
| OLD | NEW |