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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // Block flows subclass availableWidth to handle multi column layout (shrink
ing the width available to children when laying out.) | 149 // Block flows subclass availableWidth to handle multi column layout (shrink
ing the width available to children when laying out.) |
150 virtual LayoutUnit availableLogicalWidth() const OVERRIDE FINAL; | 150 virtual LayoutUnit availableLogicalWidth() const OVERRIDE FINAL; |
151 | 151 |
152 LayoutPoint flipForWritingModeIncludingColumns(const LayoutPoint&) const; | 152 LayoutPoint flipForWritingModeIncludingColumns(const LayoutPoint&) const; |
153 void adjustStartEdgeForWritingModeIncludingColumns(LayoutRect&) const; | 153 void adjustStartEdgeForWritingModeIncludingColumns(LayoutRect&) const; |
154 | 154 |
155 LayoutUnit blockDirectionOffset(const LayoutSize& offsetFromBlock) const; | 155 LayoutUnit blockDirectionOffset(const LayoutSize& offsetFromBlock) const; |
156 LayoutUnit inlineDirectionOffset(const LayoutSize& offsetFromBlock) const; | 156 LayoutUnit inlineDirectionOffset(const LayoutSize& offsetFromBlock) const; |
157 | 157 |
158 virtual bool shouldPaintSelectionGaps() const OVERRIDE FINAL; | 158 virtual bool shouldPaintSelectionGaps() const OVERRIDE FINAL; |
159 GapRects selectionGapRectsForRepaint(const RenderLayerModelObject* repaintCo
ntainer); | 159 GapRects selectionGapRectsForPaintInvalidation(const RenderLayerModelObject*
paintInvalidationContainer); |
160 LayoutRect logicalLeftSelectionGap(RenderBlock* rootBlock, const LayoutPoint
& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 160 LayoutRect logicalLeftSelectionGap(RenderBlock* rootBlock, const LayoutPoint
& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
161 RenderObject* selObj, LayoutUnit logicalL
eft, LayoutUnit logicalTop, LayoutUnit logicalHeight, const PaintInfo*); | 161 RenderObject* selObj, LayoutUnit logicalL
eft, LayoutUnit logicalTop, LayoutUnit logicalHeight, const PaintInfo*); |
162 LayoutRect logicalRightSelectionGap(RenderBlock* rootBlock, const LayoutPoin
t& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 162 LayoutRect logicalRightSelectionGap(RenderBlock* rootBlock, const LayoutPoin
t& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
163 RenderObject* selObj, LayoutUnit logical
Right, LayoutUnit logicalTop, LayoutUnit logicalHeight, const PaintInfo*); | 163 RenderObject* selObj, LayoutUnit logical
Right, LayoutUnit logicalTop, LayoutUnit logicalHeight, const PaintInfo*); |
164 void getSelectionGapInfo(SelectionState, bool& leftGap, bool& rightGap); | 164 void getSelectionGapInfo(SelectionState, bool& leftGap, bool& rightGap); |
165 RenderBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const; | 165 RenderBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const; |
166 | 166 |
167 virtual void setSelectionState(SelectionState) OVERRIDE; | 167 virtual void setSelectionState(SelectionState) OVERRIDE; |
168 | 168 |
169 LayoutRect logicalRectToPhysicalRect(const LayoutPoint& physicalPosition, co
nst LayoutRect& logicalRect); | 169 LayoutRect logicalRectToPhysicalRect(const LayoutPoint& physicalPosition, co
nst LayoutRect& logicalRect); |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; | 286 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const OVERRIDE; |
287 virtual void computePreferredLogicalWidths() OVERRIDE; | 287 virtual void computePreferredLogicalWidths() OVERRIDE; |
288 void adjustIntrinsicLogicalWidthsForColumns(LayoutUnit& minLogicalWidth, Lay
outUnit& maxLogicalWidth) const; | 288 void adjustIntrinsicLogicalWidthsForColumns(LayoutUnit& minLogicalWidth, Lay
outUnit& maxLogicalWidth) const; |
289 | 289 |
290 virtual int firstLineBoxBaseline() const OVERRIDE; | 290 virtual int firstLineBoxBaseline() const OVERRIDE; |
291 virtual int inlineBlockBaseline(LineDirectionMode) const OVERRIDE; | 291 virtual int inlineBlockBaseline(LineDirectionMode) const OVERRIDE; |
292 int lastLineBoxBaseline(LineDirectionMode) const; | 292 int lastLineBoxBaseline(LineDirectionMode) const; |
293 | 293 |
294 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&) OVERRID
E; | 294 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&) OVERRID
E; |
295 | 295 |
296 // Delay update scrollbar until finishDelayRepaint() will be | 296 // Delay update scrollbar until finishDelayUpdateScrollInfo() will be |
297 // called. This function is used when a flexbox is laying out its | 297 // called. This function is used when a flexbox is laying out its |
298 // descendant. If multiple calls are made to startDelayRepaint(), | 298 // descendant. If multiple calls are made to startDelayUpdateScrollInfo(), |
299 // finishDelayRepaint() will do nothing until finishDelayRepaint() | 299 // finishDelayUpdateScrollInfo() will do nothing until finishDelayUpdateScro
llInfo() |
300 // is called the same number of times. | 300 // is called the same number of times. |
301 static void startDelayUpdateScrollInfo(); | 301 static void startDelayUpdateScrollInfo(); |
302 static void finishDelayUpdateScrollInfo(); | 302 static void finishDelayUpdateScrollInfo(); |
303 | 303 |
304 void updateScrollInfoAfterLayout(); | 304 void updateScrollInfoAfterLayout(); |
305 | 305 |
306 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle) O
VERRIDE; | 306 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle) O
VERRIDE; |
307 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE; | 307 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE; |
308 | 308 |
309 virtual bool hasLineIfEmpty() const; | 309 virtual bool hasLineIfEmpty() const; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 | 391 |
392 virtual LayoutRect rectWithOutlineForPaintInvalidation(const RenderLayerMode
lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalid
ationState* = 0) const OVERRIDE FINAL; | 392 virtual LayoutRect rectWithOutlineForPaintInvalidation(const RenderLayerMode
lObject* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalid
ationState* = 0) const OVERRIDE FINAL; |
393 virtual RenderStyle* outlineStyle() const OVERRIDE FINAL; | 393 virtual RenderStyle* outlineStyle() const OVERRIDE FINAL; |
394 | 394 |
395 virtual RenderObject* hoverAncestor() const OVERRIDE FINAL; | 395 virtual RenderObject* hoverAncestor() const OVERRIDE FINAL; |
396 virtual void updateDragState(bool dragOn) OVERRIDE FINAL; | 396 virtual void updateDragState(bool dragOn) OVERRIDE FINAL; |
397 virtual void childBecameNonInline(RenderObject* child) OVERRIDE FINAL; | 397 virtual void childBecameNonInline(RenderObject* child) OVERRIDE FINAL; |
398 | 398 |
399 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO
bject* paintInvalidationContainer, bool /*clipToVisibleContent*/) OVERRIDE FINAL | 399 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO
bject* paintInvalidationContainer, bool /*clipToVisibleContent*/) OVERRIDE FINAL |
400 { | 400 { |
401 return selectionGapRectsForRepaint(paintInvalidationContainer); | 401 return selectionGapRectsForPaintInvalidation(paintInvalidationContainer)
; |
402 } | 402 } |
403 bool isSelectionRoot() const; | 403 bool isSelectionRoot() const; |
404 GapRects selectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootBlockP
hysicalPosition, const LayoutSize& offsetFromRootBlock, | 404 GapRects selectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootBlockP
hysicalPosition, const LayoutSize& offsetFromRootBlock, |
405 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLe
ft, LayoutUnit& lastLogicalRight, const PaintInfo* = 0); | 405 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLe
ft, LayoutUnit& lastLogicalRight, const PaintInfo* = 0); |
406 GapRects blockSelectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootB
lockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 406 GapRects blockSelectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootB
lockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
407 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogi
calLeft, LayoutUnit& lastLogicalRight, const PaintInfo*); | 407 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogi
calLeft, LayoutUnit& lastLogicalRight, const PaintInfo*); |
408 LayoutRect blockSelectionGap(RenderBlock* rootBlock, const LayoutPoint& root
BlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 408 LayoutRect blockSelectionGap(RenderBlock* rootBlock, const LayoutPoint& root
BlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
409 LayoutUnit lastLogicalTop, LayoutUnit lastLogic
alLeft, LayoutUnit lastLogicalRight, LayoutUnit logicalBottom, const PaintInfo*)
; | 409 LayoutUnit lastLogicalTop, LayoutUnit lastLogic
alLeft, LayoutUnit lastLogicalRight, LayoutUnit logicalBottom, const PaintInfo*)
; |
410 virtual LayoutUnit logicalLeftSelectionOffset(RenderBlock* rootBlock, Layout
Unit position); | 410 virtual LayoutUnit logicalLeftSelectionOffset(RenderBlock* rootBlock, Layout
Unit position); |
411 virtual LayoutUnit logicalRightSelectionOffset(RenderBlock* rootBlock, Layou
tUnit position); | 411 virtual LayoutUnit logicalRightSelectionOffset(RenderBlock* rootBlock, Layou
tUnit position); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 // FIXME: This is temporary as we move code that accesses block flow | 508 // FIXME: This is temporary as we move code that accesses block flow |
509 // member variables out of RenderBlock and into RenderBlockFlow. | 509 // member variables out of RenderBlock and into RenderBlockFlow. |
510 friend class RenderBlockFlow; | 510 friend class RenderBlockFlow; |
511 }; | 511 }; |
512 | 512 |
513 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); | 513 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); |
514 | 514 |
515 } // namespace blink | 515 } // namespace blink |
516 | 516 |
517 #endif // RenderBlock_h | 517 #endif // RenderBlock_h |
OLD | NEW |