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

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

Issue 945803004: Merge back LayoutLayerModelObject into RenderBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better rebasing. 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/RenderBlockFlow.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 LayoutObject to quickly determine what line it is contained on and to easily 404 // the replaced LayoutObject 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(LayoutMultiColumnSpannerPlaceholder&); 410 void setSpannerPlaceholder(LayoutMultiColumnSpannerPlaceholder&);
411 void clearSpannerPlaceholder(); 411 void clearSpannerPlaceholder();
412 virtual LayoutMultiColumnSpannerPlaceholder* spannerPlaceholder() const fina l { return m_rareData ? m_rareData->m_spannerPlaceholder : 0; } 412 virtual LayoutMultiColumnSpannerPlaceholder* spannerPlaceholder() const fina l { return m_rareData ? m_rareData->m_spannerPlaceholder : 0; }
413 413
414 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t override; 414 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = 0) const override;
415 virtual void mapRectToPaintInvalidationBacking(const LayoutLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride; 415 virtual void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const ove rride;
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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned maxDepthToTest) const; 666 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned maxDepthToTest) const;
667 virtual bool computeBackgroundIsKnownToBeObscured() override; 667 virtual bool computeBackgroundIsKnownToBeObscured() override;
668 668
669 void computePositionedLogicalWidth(LogicalExtentComputedValues&) const; 669 void computePositionedLogicalWidth(LogicalExtentComputedValues&) const;
670 670
671 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; 671 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const;
672 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons t; 672 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons t;
673 673
674 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlockOrInlineTable(); } 674 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlockOrInlineTable(); }
675 675
676 virtual void mapLocalToContainer(const LayoutLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const override; 676 virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati onContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wa sFixed = 0, const PaintInvalidationState* = 0) const override;
677 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override; 677 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override;
678 678
679 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); 679 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild);
680 680
681 virtual void addLayerHitTestRects(LayerHitTestRects&, const Layer* currentCo mpositedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) const override; 681 virtual void addLayerHitTestRects(LayerHitTestRects&, const Layer* currentCo mpositedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) const override;
682 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override; 682 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override;
683 683
684 virtual PaintInvalidationReason paintInvalidationReason(const LayoutLayerMod elObject& paintInvalidationContainer, 684 virtual PaintInvalidationReason paintInvalidationReason(const LayoutBoxModel Object& paintInvalidationContainer,
685 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer, 685 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer,
686 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) const override; 686 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) const override;
687 virtual void incrementallyInvalidatePaint(const LayoutLayerModelObject& pain tInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds , const LayoutPoint& positionFromPaintInvalidationContainer) override; 687 virtual void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintI nvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const LayoutPoint& positionFromPaintInvalidationContainer) override;
688 688
689 virtual void clearPaintInvalidationState(const PaintInvalidationState&) over ride; 689 virtual void clearPaintInvalidationState(const PaintInvalidationState&) over ride;
690 #if ENABLE(ASSERT) 690 #if ENABLE(ASSERT)
691 virtual bool paintInvalidationStateIsDirty() const override; 691 virtual bool paintInvalidationStateIsDirty() const override;
692 #endif 692 #endif
693 693
694 virtual PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidat ionState&, const LayoutLayerModelObject& newPaintInvalidationContainer) override ; 694 virtual PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidat ionState&, const LayoutBoxModelObject& newPaintInvalidationContainer) override;
695 virtual void invalidateDisplayItemClients(DisplayItemList*) const override; 695 virtual void invalidateDisplayItemClients(DisplayItemList*) const override;
696 696
697 virtual bool hasNonCompositedScrollbars() const override final; 697 virtual bool hasNonCompositedScrollbars() const override final;
698 698
699 private: 699 private:
700 void invalidatePaintRectClippedByOldAndNewBounds(const LayoutLayerModelObjec t& paintInvalidationContainer, const LayoutRect&, const LayoutRect& oldBounds, c onst LayoutRect& newBounds); 700 void invalidatePaintRectClippedByOldAndNewBounds(const LayoutBoxModelObject& paintInvalidationContainer, const LayoutRect&, const LayoutRect& oldBounds, con st LayoutRect& newBounds);
701 701
702 void updateShapeOutsideInfoAfterStyleChange(const LayoutStyle&, const Layout Style* oldStyle); 702 void updateShapeOutsideInfoAfterStyleChange(const LayoutStyle&, const Layout Style* oldStyle);
703 void updateGridPositionAfterStyleChange(const LayoutStyle*); 703 void updateGridPositionAfterStyleChange(const LayoutStyle*);
704 704
705 bool autoWidthShouldFitContent() const; 705 bool autoWidthShouldFitContent() const;
706 LayoutUnit shrinkToFitLogicalWidth(LayoutUnit availableLogicalWidth, LayoutU nit bordersPlusPadding) const; 706 LayoutUnit shrinkToFitLogicalWidth(LayoutUnit availableLogicalWidth, LayoutU nit bordersPlusPadding) const;
707 707
708 // Returns true if we queued up a paint invalidation. 708 // Returns true if we queued up a paint invalidation.
709 bool paintInvalidationLayerRectsForImage(WrappedImagePtr, const FillLayer&, bool drawingBackground); 709 bool paintInvalidationLayerRectsForImage(WrappedImagePtr, const FillLayer&, bool drawingBackground);
710 710
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 if (UNLIKELY(inlineBoxWrapper() != 0)) 845 if (UNLIKELY(inlineBoxWrapper() != 0))
846 deleteLineBoxWrapper(); 846 deleteLineBoxWrapper();
847 } 847 }
848 848
849 ensureRareData().m_inlineBoxWrapper = boxWrapper; 849 ensureRareData().m_inlineBoxWrapper = boxWrapper;
850 } 850 }
851 851
852 } // namespace blink 852 } // namespace blink
853 853
854 #endif // RenderBox_h 854 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBlockFlow.cpp ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698