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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 | 514 |
515 void computePositionedLogicalWidth(RenderRegion* = 0, LayoutUnit offsetFromL
ogicalTopOfFirstPage = 0); | 515 void computePositionedLogicalWidth(RenderRegion* = 0, LayoutUnit offsetFromL
ogicalTopOfFirstPage = 0); |
516 | 516 |
517 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i
sInlineBlockOrInlineTable(); } | 517 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i
sInlineBlockOrInlineTable(); } |
518 | 518 |
519 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, boo
l fixed, bool useTransforms, TransformState&, ApplyContainerFlipOrNot = ApplyCon
tainerFlip, bool* wasFixed = 0) const; | 519 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, boo
l fixed, bool useTransforms, TransformState&, ApplyContainerFlipOrNot = ApplyCon
tainerFlip, bool* wasFixed = 0) const; |
520 virtual void mapAbsoluteToLocalPoint(bool fixed, bool useTransforms, Transfo
rmState&) const; | 520 virtual void mapAbsoluteToLocalPoint(bool fixed, bool useTransforms, Transfo
rmState&) const; |
521 | 521 |
522 void paintRootBoxFillLayers(const PaintInfo&); | 522 void paintRootBoxFillLayers(const PaintInfo&); |
523 | 523 |
524 // These functions are only used internally to manipulate the render tree st
ructure via remove/insert/appendChildNode. | |
525 // Since they are typically called only to move objects around within anonym
ous blocks (which only have layers in | |
526 // the case of column spans), the default for fullRemoveInsert is false rath
er than true. | |
527 void moveChildTo(RenderBox* toBox, RenderObject* child, RenderObject* before
Child, bool fullRemoveInsert = false); | |
528 void moveChildTo(RenderBox* to, RenderObject* child, bool fullRemoveInsert =
false) | |
529 { | |
530 moveChildTo(to, child, 0, fullRemoveInsert); | |
531 } | |
532 void moveAllChildrenTo(RenderBox* toBox, bool fullRemoveInsert = false) | |
533 { | |
534 moveAllChildrenTo(toBox, 0, fullRemoveInsert); | |
535 } | |
536 void moveAllChildrenTo(RenderBox* toBox, RenderObject* beforeChild, bool ful
lRemoveInsert = false) | |
537 { | |
538 moveChildrenTo(toBox, firstChild(), 0, beforeChild, fullRemoveInsert); | |
539 } | |
540 // Move all of the kids from |startChild| up to but excluding |endChild|. 0
can be passed as the |endChild| to denote | |
541 // that all the kids from |startChild| onwards should be moved. | |
542 void moveChildrenTo(RenderBox* toBox, RenderObject* startChild, RenderObject
* endChild, bool fullRemoveInsert = false) | |
543 { | |
544 moveChildrenTo(toBox, startChild, endChild, 0, fullRemoveInsert); | |
545 } | |
546 void moveChildrenTo(RenderBox* toBox, RenderObject* startChild, RenderObject
* endChild, RenderObject* beforeChild, bool fullRemoveInsert = false); | |
547 | |
548 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild); | 524 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild); |
549 | 525 |
550 private: | 526 private: |
551 bool fixedElementLaysOutRelativeToFrame(Frame*, FrameView*) const; | 527 bool fixedElementLaysOutRelativeToFrame(Frame*, FrameView*) const; |
552 | 528 |
553 bool includeVerticalScrollbarSize() const; | 529 bool includeVerticalScrollbarSize() const; |
554 bool includeHorizontalScrollbarSize() const; | 530 bool includeHorizontalScrollbarSize() const; |
555 | 531 |
556 // Returns true if we did a full repaint | 532 // Returns true if we did a full repaint |
557 bool repaintLayerRectsForImage(WrappedImagePtr image, const FillLayer* layer
s, bool drawingBackground); | 533 bool repaintLayerRectsForImage(WrappedImagePtr image, const FillLayer* layer
s, bool drawingBackground); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 } | 617 } |
642 | 618 |
643 inline RenderBox* RenderBox::lastChildBox() const | 619 inline RenderBox* RenderBox::lastChildBox() const |
644 { | 620 { |
645 return toRenderBox(lastChild()); | 621 return toRenderBox(lastChild()); |
646 } | 622 } |
647 | 623 |
648 } // namespace WebCore | 624 } // namespace WebCore |
649 | 625 |
650 #endif // RenderBox_h | 626 #endif // RenderBox_h |
OLD | NEW |