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&, bool* wasFixed = 0) const; | 519 virtual void mapLocalToContainer(RenderBoxModelObject* repaintContainer, boo
l fixed, bool useTransforms, TransformState&, 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); |
| 549 |
524 private: | 550 private: |
525 bool fixedElementLaysOutRelativeToFrame(Frame*, FrameView*) const; | 551 bool fixedElementLaysOutRelativeToFrame(Frame*, FrameView*) const; |
526 | 552 |
527 bool includeVerticalScrollbarSize() const; | 553 bool includeVerticalScrollbarSize() const; |
528 bool includeHorizontalScrollbarSize() const; | 554 bool includeHorizontalScrollbarSize() const; |
529 | 555 |
530 // Returns true if we did a full repaint | 556 // Returns true if we did a full repaint |
531 bool repaintLayerRectsForImage(WrappedImagePtr image, const FillLayer* layer
s, bool drawingBackground); | 557 bool repaintLayerRectsForImage(WrappedImagePtr image, const FillLayer* layer
s, bool drawingBackground); |
532 | 558 |
533 LayoutUnit containingBlockLogicalWidthForPositioned(const RenderBoxModelObje
ct* containingBlock, RenderRegion* = 0, | 559 LayoutUnit containingBlockLogicalWidthForPositioned(const RenderBoxModelObje
ct* containingBlock, RenderRegion* = 0, |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 bool onlyOverflowHidden = style()->overflowX() == OHIDDEN && style()->overfl
owY() == OHIDDEN; | 659 bool onlyOverflowHidden = style()->overflowX() == OHIDDEN && style()->overfl
owY() == OHIDDEN; |
634 | 660 |
635 // Currently {push|pop}ContentsClip do not handle properly all cases involvi
ng a clip | 661 // Currently {push|pop}ContentsClip do not handle properly all cases involvi
ng a clip |
636 // with a border radius so we need a RenderLayer to handle them. | 662 // with a border radius so we need a RenderLayer to handle them. |
637 return !onlyOverflowHidden || style()->hasBorderRadius(); | 663 return !onlyOverflowHidden || style()->hasBorderRadius(); |
638 } | 664 } |
639 | 665 |
640 } // namespace WebCore | 666 } // namespace WebCore |
641 | 667 |
642 #endif // RenderBox_h | 668 #endif // RenderBox_h |
OLD | NEW |