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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 virtual bool hitTestFloats(const HitTestRequest&, HitTestResult&, const HitT
estLocation&, const LayoutPoint&) { return false; } | 400 virtual bool hitTestFloats(const HitTestRequest&, HitTestResult&, const HitT
estLocation&, const LayoutPoint&) { return false; } |
401 | 401 |
402 virtual bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& loc
ationInContainer, const LayoutPoint& accumulatedOffset); | 402 virtual bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& loc
ationInContainer, const LayoutPoint& accumulatedOffset); |
403 | 403 |
404 void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutU
nit& maxLogicalWidth) const; | 404 void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutU
nit& maxLogicalWidth) const; |
405 | 405 |
406 // Obtains the nearest enclosing block (including this block) that contribut
es a first-line style to our inline | 406 // Obtains the nearest enclosing block (including this block) that contribut
es a first-line style to our inline |
407 // children. | 407 // children. |
408 virtual RenderBlock* firstLineBlock() const OVERRIDE; | 408 virtual RenderBlock* firstLineBlock() const OVERRIDE; |
409 | 409 |
410 virtual LayoutRect rectWithOutlineForRepaint(const RenderLayerModelObject* r
epaintContainer, LayoutUnit outlineWidth) const OVERRIDE FINAL; | 410 virtual LayoutRect rectWithOutlineForPaintInvalidation(const RenderLayerMode
lObject* paintInvalidationContainer, LayoutUnit outlineWidth) const OVERRIDE FIN
AL; |
411 virtual RenderStyle* outlineStyleForRepaint() const OVERRIDE FINAL; | 411 virtual RenderStyle* outlineStyleForPaintInvalidation() const OVERRIDE FINAL
; |
412 | 412 |
413 virtual RenderObject* hoverAncestor() const OVERRIDE FINAL; | 413 virtual RenderObject* hoverAncestor() const OVERRIDE FINAL; |
414 virtual void updateDragState(bool dragOn) OVERRIDE FINAL; | 414 virtual void updateDragState(bool dragOn) OVERRIDE FINAL; |
415 virtual void childBecameNonInline(RenderObject* child) OVERRIDE FINAL; | 415 virtual void childBecameNonInline(RenderObject* child) OVERRIDE FINAL; |
416 | 416 |
417 virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* rep
aintContainer, bool /*clipToVisibleContent*/) OVERRIDE FINAL | 417 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO
bject* paintInvalidationContainer, bool /*clipToVisibleContent*/) OVERRIDE FINAL |
418 { | 418 { |
419 return selectionGapRectsForRepaint(repaintContainer); | 419 return selectionGapRectsForRepaint(paintInvalidationContainer); |
420 } | 420 } |
421 virtual bool shouldPaintSelectionGaps() const OVERRIDE FINAL; | 421 virtual bool shouldPaintSelectionGaps() const OVERRIDE FINAL; |
422 bool isSelectionRoot() const; | 422 bool isSelectionRoot() const; |
423 GapRects selectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootBlockP
hysicalPosition, const LayoutSize& offsetFromRootBlock, | 423 GapRects selectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootBlockP
hysicalPosition, const LayoutSize& offsetFromRootBlock, |
424 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLe
ft, LayoutUnit& lastLogicalRight, const PaintInfo* = 0); | 424 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLe
ft, LayoutUnit& lastLogicalRight, const PaintInfo* = 0); |
425 GapRects blockSelectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootB
lockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 425 GapRects blockSelectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootB
lockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
426 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogi
calLeft, LayoutUnit& lastLogicalRight, const PaintInfo*); | 426 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogi
calLeft, LayoutUnit& lastLogicalRight, const PaintInfo*); |
427 LayoutRect blockSelectionGap(RenderBlock* rootBlock, const LayoutPoint& root
BlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 427 LayoutRect blockSelectionGap(RenderBlock* rootBlock, const LayoutPoint& root
BlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
428 LayoutUnit lastLogicalTop, LayoutUnit lastLogic
alLeft, LayoutUnit lastLogicalRight, LayoutUnit logicalBottom, const PaintInfo*)
; | 428 LayoutUnit lastLogicalTop, LayoutUnit lastLogic
alLeft, LayoutUnit lastLogicalRight, LayoutUnit logicalBottom, const PaintInfo*)
; |
429 virtual LayoutUnit logicalLeftSelectionOffset(RenderBlock* rootBlock, Layout
Unit position); | 429 virtual LayoutUnit logicalLeftSelectionOffset(RenderBlock* rootBlock, Layout
Unit position); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 // FIXME: This is temporary as we move code that accesses block flow | 551 // FIXME: This is temporary as we move code that accesses block flow |
552 // member variables out of RenderBlock and into RenderBlockFlow. | 552 // member variables out of RenderBlock and into RenderBlockFlow. |
553 friend class RenderBlockFlow; | 553 friend class RenderBlockFlow; |
554 }; | 554 }; |
555 | 555 |
556 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 556 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
557 | 557 |
558 } // namespace WebCore | 558 } // namespace WebCore |
559 | 559 |
560 #endif // RenderBlock_h | 560 #endif // RenderBlock_h |
OLD | NEW |