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 30 matching lines...) Expand all Loading... |
41 class BasicShape; | 41 class BasicShape; |
42 class BidiContext; | 42 class BidiContext; |
43 class InlineIterator; | 43 class InlineIterator; |
44 class LayoutStateMaintainer; | 44 class LayoutStateMaintainer; |
45 class LineLayoutState; | 45 class LineLayoutState; |
46 class LineWidth; | 46 class LineWidth; |
47 class RenderInline; | 47 class RenderInline; |
48 class RenderText; | 48 class RenderText; |
49 | 49 |
50 struct BidiRun; | 50 struct BidiRun; |
51 struct PaintInfo; | 51 class PaintInfo; |
52 class LineInfo; | 52 class LineInfo; |
53 class RenderRubyRun; | 53 class RenderRubyRun; |
54 class TextLayout; | 54 class TextLayout; |
55 class WordMeasurement; | 55 class WordMeasurement; |
56 | 56 |
57 template <class Iterator, class Run> class BidiResolver; | 57 template <class Iterator, class Run> class BidiResolver; |
58 template <class Run> class BidiRunList; | 58 template <class Run> class BidiRunList; |
59 template <class Iterator> struct MidpointState; | 59 template <class Iterator> struct MidpointState; |
60 typedef BidiResolver<InlineIterator, BidiRun> InlineBidiResolver; | 60 typedef BidiResolver<InlineIterator, BidiRun> InlineBidiResolver; |
61 typedef MidpointState<InlineIterator> LineMidpointState; | 61 typedef MidpointState<InlineIterator> LineMidpointState; |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 virtual LayoutUnit availableLogicalWidth() const OVERRIDE FINAL; | 233 virtual LayoutUnit availableLogicalWidth() const OVERRIDE FINAL; |
234 | 234 |
235 LayoutPoint flipForWritingModeIncludingColumns(const LayoutPoint&) const; | 235 LayoutPoint flipForWritingModeIncludingColumns(const LayoutPoint&) const; |
236 void adjustStartEdgeForWritingModeIncludingColumns(LayoutRect&) const; | 236 void adjustStartEdgeForWritingModeIncludingColumns(LayoutRect&) const; |
237 | 237 |
238 RootInlineBox* firstRootBox() const { return static_cast<RootInlineBox*>(fir
stLineBox()); } | 238 RootInlineBox* firstRootBox() const { return static_cast<RootInlineBox*>(fir
stLineBox()); } |
239 RootInlineBox* lastRootBox() const { return static_cast<RootInlineBox*>(last
LineBox()); } | 239 RootInlineBox* lastRootBox() const { return static_cast<RootInlineBox*>(last
LineBox()); } |
240 | 240 |
241 GapRects selectionGapRectsForRepaint(const RenderLayerModelObject* repaintCo
ntainer); | 241 GapRects selectionGapRectsForRepaint(const RenderLayerModelObject* repaintCo
ntainer); |
242 LayoutRect logicalLeftSelectionGap(RenderBlock* rootBlock, const LayoutPoint
& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 242 LayoutRect logicalLeftSelectionGap(RenderBlock* rootBlock, const LayoutPoint
& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
243 RenderObject* selObj, LayoutUnit logicalL
eft, LayoutUnit logicalTop, LayoutUnit logicalHeight, const PaintInfo*); | 243 RenderObject* selObj, LayoutUnit logicalLeft, LayoutUnit logicalTop, Lay
outUnit logicalHeight, PaintInfo*); |
244 LayoutRect logicalRightSelectionGap(RenderBlock* rootBlock, const LayoutPoin
t& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 244 LayoutRect logicalRightSelectionGap(RenderBlock* rootBlock, const LayoutPoin
t& rootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
245 RenderObject* selObj, LayoutUnit logical
Right, LayoutUnit logicalTop, LayoutUnit logicalHeight, const PaintInfo*); | 245 RenderObject* selObj, LayoutUnit logicalRight, LayoutUnit logicalTop, La
youtUnit logicalHeight, PaintInfo*); |
246 void getSelectionGapInfo(SelectionState, bool& leftGap, bool& rightGap); | 246 void getSelectionGapInfo(SelectionState, bool& leftGap, bool& rightGap); |
247 RenderBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const; | 247 RenderBlock* blockBeforeWithinSelectionRoot(LayoutSize& offset) const; |
248 | 248 |
249 LayoutRect logicalRectToPhysicalRect(const LayoutPoint& physicalPosition, co
nst LayoutRect& logicalRect); | 249 LayoutRect logicalRectToPhysicalRect(const LayoutPoint& physicalPosition, co
nst LayoutRect& logicalRect); |
250 | 250 |
251 // Helper methods for computing line counts and heights for line counts. | 251 // Helper methods for computing line counts and heights for line counts. |
252 RootInlineBox* lineAtIndex(int) const; | 252 RootInlineBox* lineAtIndex(int) const; |
253 int lineCount(const RootInlineBox* = 0, bool* = 0) const; | 253 int lineCount(const RootInlineBox* = 0, bool* = 0) const; |
254 int heightForLineCount(int); | 254 int heightForLineCount(int); |
255 void clearTruncation(); | 255 void clearTruncation(); |
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 virtual void updateDragState(bool dragOn) OVERRIDE FINAL; | 928 virtual void updateDragState(bool dragOn) OVERRIDE FINAL; |
929 virtual void childBecameNonInline(RenderObject* child) OVERRIDE FINAL; | 929 virtual void childBecameNonInline(RenderObject* child) OVERRIDE FINAL; |
930 | 930 |
931 virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* rep
aintContainer, bool /*clipToVisibleContent*/) OVERRIDE FINAL | 931 virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* rep
aintContainer, bool /*clipToVisibleContent*/) OVERRIDE FINAL |
932 { | 932 { |
933 return selectionGapRectsForRepaint(repaintContainer); | 933 return selectionGapRectsForRepaint(repaintContainer); |
934 } | 934 } |
935 virtual bool shouldPaintSelectionGaps() const OVERRIDE FINAL; | 935 virtual bool shouldPaintSelectionGaps() const OVERRIDE FINAL; |
936 bool isSelectionRoot() const; | 936 bool isSelectionRoot() const; |
937 GapRects selectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootBlockP
hysicalPosition, const LayoutSize& offsetFromRootBlock, | 937 GapRects selectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootBlockP
hysicalPosition, const LayoutSize& offsetFromRootBlock, |
938 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLe
ft, LayoutUnit& lastLogicalRight, const PaintInfo* = 0); | 938 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, PaintInfo* = 0); |
939 GapRects inlineSelectionGaps(RenderBlock* rootBlock, const LayoutPoint& root
BlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 939 GapRects inlineSelectionGaps(RenderBlock* rootBlock, const LayoutPoint& root
BlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
940 LayoutUnit& lastLogicalTop, LayoutUnit& lastLog
icalLeft, LayoutUnit& lastLogicalRight, const PaintInfo*); | 940 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, PaintInfo*); |
941 GapRects blockSelectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootB
lockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 941 GapRects blockSelectionGaps(RenderBlock* rootBlock, const LayoutPoint& rootB
lockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
942 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogi
calLeft, LayoutUnit& lastLogicalRight, const PaintInfo*); | 942 LayoutUnit& lastLogicalTop, LayoutUnit& lastLogicalLeft, LayoutUnit& las
tLogicalRight, PaintInfo*); |
943 LayoutRect blockSelectionGap(RenderBlock* rootBlock, const LayoutPoint& root
BlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, | 943 LayoutRect blockSelectionGap(RenderBlock* rootBlock, const LayoutPoint& root
BlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, |
944 LayoutUnit lastLogicalTop, LayoutUnit lastLogic
alLeft, LayoutUnit lastLogicalRight, LayoutUnit logicalBottom, const PaintInfo*)
; | 944 LayoutUnit lastLogicalTop, LayoutUnit lastLogicalLeft, LayoutUnit lastLo
gicalRight, LayoutUnit logicalBottom, PaintInfo*); |
945 LayoutUnit logicalLeftSelectionOffset(RenderBlock* rootBlock, LayoutUnit pos
ition); | 945 LayoutUnit logicalLeftSelectionOffset(RenderBlock* rootBlock, LayoutUnit pos
ition); |
946 LayoutUnit logicalRightSelectionOffset(RenderBlock* rootBlock, LayoutUnit po
sition); | 946 LayoutUnit logicalRightSelectionOffset(RenderBlock* rootBlock, LayoutUnit po
sition); |
947 | 947 |
948 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const; | 948 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const; |
949 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const; | 949 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const; |
950 | 950 |
951 LayoutUnit desiredColumnWidth() const; | 951 LayoutUnit desiredColumnWidth() const; |
952 unsigned desiredColumnCount() const; | 952 unsigned desiredColumnCount() const; |
953 | 953 |
954 void paintContinuationOutlines(PaintInfo&, const LayoutPoint&); | 954 void paintContinuationOutlines(PaintInfo&, const LayoutPoint&); |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1348 static String string(const int value); | 1348 static String string(const int value); |
1349 }; | 1349 }; |
1350 template<> struct ValueToString<RenderBlock::FloatingObject*> { | 1350 template<> struct ValueToString<RenderBlock::FloatingObject*> { |
1351 static String string(const RenderBlock::FloatingObject*); | 1351 static String string(const RenderBlock::FloatingObject*); |
1352 }; | 1352 }; |
1353 #endif | 1353 #endif |
1354 | 1354 |
1355 } // namespace WebCore | 1355 } // namespace WebCore |
1356 | 1356 |
1357 #endif // RenderBlock_h | 1357 #endif // RenderBlock_h |
OLD | NEW |