Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1000)

Side by Side Diff: Source/core/rendering/RenderBox.h

Issue 898783003: Move rendering/RenderLayer* to layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderBlockLineLayout.cpp ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // the replaced RenderObject to quickly determine what line it is contained on and to easily 404 // the replaced RenderObject to quickly determine what line it is contained on and to easily
405 // iterate over structures on the line. 405 // iterate over structures on the line.
406 InlineBox* inlineBoxWrapper() const { return m_rareData ? m_rareData->m_inli neBoxWrapper : 0; } 406 InlineBox* inlineBoxWrapper() const { return m_rareData ? m_rareData->m_inli neBoxWrapper : 0; }
407 void setInlineBoxWrapper(InlineBox*); 407 void setInlineBoxWrapper(InlineBox*);
408 void deleteLineBoxWrapper(); 408 void deleteLineBoxWrapper();
409 409
410 void setSpannerPlaceholder(RenderMultiColumnSpannerPlaceholder&); 410 void setSpannerPlaceholder(RenderMultiColumnSpannerPlaceholder&);
411 void clearSpannerPlaceholder(); 411 void clearSpannerPlaceholder();
412 virtual RenderMultiColumnSpannerPlaceholder* spannerPlaceholder() const fina l { return m_rareData ? m_rareData->m_spannerPlaceholder : 0; } 412 virtual RenderMultiColumnSpannerPlaceholder* spannerPlaceholder() const fina l { return m_rareData ? m_rareData->m_spannerPlaceholder : 0; }
413 413
414 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t override; 414 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t override;
415 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride; 415 virtual void mapRectToPaintInvalidationBacking(const LayoutLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride;
416 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants); 416 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants);
417 417
418 virtual LayoutUnit containingBlockLogicalWidthForContent() const override; 418 virtual LayoutUnit containingBlockLogicalWidthForContent() const override;
419 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const; 419 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const;
420 420
421 LayoutUnit containingBlockAvailableLineWidth() const; 421 LayoutUnit containingBlockAvailableLineWidth() const;
422 LayoutUnit perpendicularContainingBlockLogicalHeight() const; 422 LayoutUnit perpendicularContainingBlockLogicalHeight() const;
423 423
424 virtual void updateLogicalWidth(); 424 virtual void updateLogicalWidth();
425 void updateLogicalHeight(); 425 void updateLogicalHeight();
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 virtual void paintMask(const PaintInfo&, const LayoutPoint&); 512 virtual void paintMask(const PaintInfo&, const LayoutPoint&);
513 virtual void paintClippingMask(const PaintInfo&, const LayoutPoint&); 513 virtual void paintClippingMask(const PaintInfo&, const LayoutPoint&);
514 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override; 514 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override;
515 515
516 void logicalExtentAfterUpdatingLogicalWidth(const LayoutUnit& logicalTop, Lo gicalExtentComputedValues&); 516 void logicalExtentAfterUpdatingLogicalWidth(const LayoutUnit& logicalTop, Lo gicalExtentComputedValues&);
517 517
518 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override; 518 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override;
519 519
520 void removeFloatingOrPositionedChildFromBlockLists(); 520 void removeFloatingOrPositionedChildFromBlockLists();
521 521
522 RenderLayer* enclosingFloatPaintingLayer() const; 522 Layer* enclosingFloatPaintingLayer() const;
523 523
524 virtual int firstLineBoxBaseline() const { return -1; } 524 virtual int firstLineBoxBaseline() const { return -1; }
525 virtual int inlineBlockBaseline(LineDirectionMode) const { return -1; } // R eturns -1 if we should skip this box when computing the baseline of an inline-bl ock. 525 virtual int inlineBlockBaseline(LineDirectionMode) const { return -1; } // R eturns -1 if we should skip this box when computing the baseline of an inline-bl ock.
526 526
527 bool shrinkToAvoidFloats() const; 527 bool shrinkToAvoidFloats() const;
528 virtual bool avoidsFloats() const; 528 virtual bool avoidsFloats() const;
529 529
530 virtual void markForPaginationRelayoutIfNeeded(SubtreeLayoutScope&); 530 virtual void markForPaginationRelayoutIfNeeded(SubtreeLayoutScope&);
531 531
532 bool isWritingModeRoot() const { return !parent() || parent()->style()->writ ingMode() != style()->writingMode(); } 532 bool isWritingModeRoot() const { return !parent() || parent()->style()->writ ingMode() != style()->writingMode(); }
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned maxDepthToTest) const; 663 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned maxDepthToTest) const;
664 virtual bool computeBackgroundIsKnownToBeObscured() override; 664 virtual bool computeBackgroundIsKnownToBeObscured() override;
665 665
666 void computePositionedLogicalWidth(LogicalExtentComputedValues&) const; 666 void computePositionedLogicalWidth(LogicalExtentComputedValues&) const;
667 667
668 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; 668 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const;
669 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons t; 669 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons t;
670 670
671 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlockOrInlineTable(); } 671 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlockOrInlineTable(); }
672 672
673 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const override; 673 virtual void mapLocalToContainer(const LayoutLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const override;
674 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override; 674 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override;
675 675
676 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild); 676 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild);
677 677
678 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const override; 678 virtual void addLayerHitTestRects(LayerHitTestRects&, const Layer* currentCo mpositedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) const override;
679 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override; 679 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override;
680 680
681 virtual PaintInvalidationReason paintInvalidationReason(const RenderLayerMod elObject& paintInvalidationContainer, 681 virtual PaintInvalidationReason paintInvalidationReason(const LayoutLayerMod elObject& paintInvalidationContainer,
682 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer, 682 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer,
683 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) const override; 683 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) const override;
684 virtual void incrementallyInvalidatePaint(const RenderLayerModelObject& pain tInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds , const LayoutPoint& positionFromPaintInvalidationContainer) override; 684 virtual void incrementallyInvalidatePaint(const LayoutLayerModelObject& pain tInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds , const LayoutPoint& positionFromPaintInvalidationContainer) override;
685 685
686 virtual void clearPaintInvalidationState(const PaintInvalidationState&) over ride; 686 virtual void clearPaintInvalidationState(const PaintInvalidationState&) over ride;
687 #if ENABLE(ASSERT) 687 #if ENABLE(ASSERT)
688 virtual bool paintInvalidationStateIsDirty() const override; 688 virtual bool paintInvalidationStateIsDirty() const override;
689 #endif 689 #endif
690 690
691 virtual PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidat ionState&, const RenderLayerModelObject& newPaintInvalidationContainer) override ; 691 virtual PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidat ionState&, const LayoutLayerModelObject& newPaintInvalidationContainer) override ;
692 virtual void invalidateDisplayItemClients(DisplayItemList*) const override; 692 virtual void invalidateDisplayItemClients(DisplayItemList*) const override;
693 693
694 private: 694 private:
695 void invalidatePaintRectClippedByOldAndNewBounds(const RenderLayerModelObjec t& paintInvalidationContainer, const LayoutRect&, const LayoutRect& oldBounds, c onst LayoutRect& newBounds); 695 void invalidatePaintRectClippedByOldAndNewBounds(const LayoutLayerModelObjec t& paintInvalidationContainer, const LayoutRect&, const LayoutRect& oldBounds, c onst LayoutRect& newBounds);
696 696
697 void updateShapeOutsideInfoAfterStyleChange(const RenderStyle&, const Render Style* oldStyle); 697 void updateShapeOutsideInfoAfterStyleChange(const RenderStyle&, const Render Style* oldStyle);
698 void updateGridPositionAfterStyleChange(const RenderStyle*); 698 void updateGridPositionAfterStyleChange(const RenderStyle*);
699 699
700 bool autoWidthShouldFitContent() const; 700 bool autoWidthShouldFitContent() const;
701 LayoutUnit shrinkToFitLogicalWidth(LayoutUnit availableLogicalWidth, LayoutU nit bordersPlusPadding) const; 701 LayoutUnit shrinkToFitLogicalWidth(LayoutUnit availableLogicalWidth, LayoutU nit bordersPlusPadding) const;
702 702
703 // Returns true if we queued up a paint invalidation. 703 // Returns true if we queued up a paint invalidation.
704 bool paintInvalidationLayerRectsForImage(WrappedImagePtr, const FillLayer&, bool drawingBackground); 704 bool paintInvalidationLayerRectsForImage(WrappedImagePtr, const FillLayer&, bool drawingBackground);
705 705
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 if (UNLIKELY(inlineBoxWrapper() != 0)) 842 if (UNLIKELY(inlineBoxWrapper() != 0))
843 deleteLineBoxWrapper(); 843 deleteLineBoxWrapper();
844 } 844 }
845 845
846 ensureRareData().m_inlineBoxWrapper = boxWrapper; 846 ensureRareData().m_inlineBoxWrapper = boxWrapper;
847 } 847 }
848 848
849 } // namespace blink 849 } // namespace blink
850 850
851 #endif // RenderBox_h 851 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBlockLineLayout.cpp ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698