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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
160 | 160 |
161 LayoutPoint flipForWritingModeIncludingColumns(const LayoutPoint&) const; | 161 LayoutPoint flipForWritingModeIncludingColumns(const LayoutPoint&) const; |
162 void adjustStartEdgeForWritingModeIncludingColumns(LayoutRect&) const; | 162 void adjustStartEdgeForWritingModeIncludingColumns(LayoutRect&) const; |
163 | 163 |
164 LayoutUnit blockDirectionOffset(const LayoutSize& offsetFromBlock) const; | 164 LayoutUnit blockDirectionOffset(const LayoutSize& offsetFromBlock) const; |
165 LayoutUnit inlineDirectionOffset(const LayoutSize& offsetFromBlock) const; | 165 LayoutUnit inlineDirectionOffset(const LayoutSize& offsetFromBlock) const; |
166 | 166 |
167 RootInlineBox* firstRootBox() const { return static_cast<RootInlineBox*>(fir stLineBox()); } | 167 RootInlineBox* firstRootBox() const { return static_cast<RootInlineBox*>(fir stLineBox()); } |
168 RootInlineBox* lastRootBox() const { return static_cast<RootInlineBox*>(last LineBox()); } | 168 RootInlineBox* lastRootBox() const { return static_cast<RootInlineBox*>(last LineBox()); } |
169 | 169 |
170 virtual bool shouldPaintSelectionGaps() const OVERRIDE FINAL; | |
Ian Vollick
2014/06/13 17:07:49
This change will need approval from someone famili
| |
170 GapRects selectionGapRectsForRepaint(const RenderLayerModelObject* repaintCo ntainer); | 171 GapRects selectionGapRectsForRepaint(const RenderLayerModelObject* repaintCo ntainer); |
171 LayoutRect logicalLeftSelectionGap(RenderBlock* rootBlock, const LayoutPoint & rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 172 LayoutRect logicalLeftSelectionGap(RenderBlock* rootBlock, const LayoutPoint & rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
172 RenderObject* selObj, LayoutUnit logicalL eft, LayoutUnit logicalTop, LayoutUnit logicalHeight, const PaintInfo*); | 173 RenderObject* selObj, LayoutUnit logicalL eft, LayoutUnit logicalTop, LayoutUnit logicalHeight, const PaintInfo*); |
173 LayoutRect logicalRightSelectionGap(RenderBlock* rootBlock, const LayoutPoin t& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 174 LayoutRect logicalRightSelectionGap(RenderBlock* rootBlock, const LayoutPoin t& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
174 RenderObject* selObj, LayoutUnit logical Right, LayoutUnit logicalTop, LayoutUnit logicalHeight, const PaintInfo*); | 175 RenderObject* selObj, LayoutUnit logical Right, LayoutUnit logicalTop, LayoutUnit logicalHeight, const PaintInfo*); |
175 void getSelectionGapInfo(SelectionState, bool& leftGap, bool& rightGap); | 176 void getSelectionGapInfo(SelectionState, bool& leftGap, bool& rightGap); |
176 RenderBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const; | 177 RenderBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const; |
177 | 178 |
178 LayoutRect logicalRectToPhysicalRect(const LayoutPoint& physicalPosition, co nst LayoutRect& logicalRect); | 179 LayoutRect logicalRectToPhysicalRect(const LayoutPoint& physicalPosition, co nst LayoutRect& logicalRect); |
179 | 180 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
411 virtual RenderStyle* outlineStyleForPaintInvalidation() const OVERRIDE FINAL ; | 412 virtual RenderStyle* outlineStyleForPaintInvalidation() const OVERRIDE FINAL ; |
412 | 413 |
413 virtual RenderObject* hoverAncestor() const OVERRIDE FINAL; | 414 virtual RenderObject* hoverAncestor() const OVERRIDE FINAL; |
414 virtual void updateDragState(bool dragOn) OVERRIDE FINAL; | 415 virtual void updateDragState(bool dragOn) OVERRIDE FINAL; |
415 virtual void childBecameNonInline(RenderObject* child) OVERRIDE FINAL; | 416 virtual void childBecameNonInline(RenderObject* child) OVERRIDE FINAL; |
416 | 417 |
417 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO bject* paintInvalidationContainer, bool /*clipToVisibleContent*/) OVERRIDE FINAL | 418 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO bject* paintInvalidationContainer, bool /*clipToVisibleContent*/) OVERRIDE FINAL |
418 { | 419 { |
419 return selectionGapRectsForRepaint(paintInvalidationContainer); | 420 return selectionGapRectsForRepaint(paintInvalidationContainer); |
420 } | 421 } |
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); |
430 virtual LayoutUnit logicalRightSelectionOffset(RenderBlock* rootBlock, Layou tUnit position); | 430 virtual LayoutUnit logicalRightSelectionOffset(RenderBlock* rootBlock, Layou tUnit position); |
431 | 431 |
(...skipping 119 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 |