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

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

Issue 143323014: *** DO NOT LAND *** Attempt to understand Regions complexity Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 12 matching lines...) Expand all
23 #ifndef RenderBox_h 23 #ifndef RenderBox_h
24 #define RenderBox_h 24 #define RenderBox_h
25 25
26 #include "core/rendering/RenderBoxModelObject.h" 26 #include "core/rendering/RenderBoxModelObject.h"
27 #include "core/rendering/RenderOverflow.h" 27 #include "core/rendering/RenderOverflow.h"
28 #include "core/rendering/shapes/ShapeOutsideInfo.h" 28 #include "core/rendering/shapes/ShapeOutsideInfo.h"
29 #include "platform/scroll/ScrollTypes.h" 29 #include "platform/scroll/ScrollTypes.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 class RenderBoxRegionInfo;
34 class RenderRegion;
35 struct PaintInfo; 33 struct PaintInfo;
36 34
37 enum SizeType { MainOrPreferredSize, MinSize, MaxSize }; 35 enum SizeType { MainOrPreferredSize, MinSize, MaxSize };
38 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde rPadding }; 36 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde rPadding };
39 enum OverlayScrollbarSizeRelevancy { IgnoreOverlayScrollbarSize, IncludeOverlayS crollbarSize }; 37 enum OverlayScrollbarSizeRelevancy { IgnoreOverlayScrollbarSize, IncludeOverlayS crollbarSize };
40 38
41 enum ShouldComputePreferred { ComputeActual, ComputePreferred }; 39 enum ShouldComputePreferred { ComputeActual, ComputePreferred };
42 40
43 enum ContentsClipBehavior { ForceContentsClip, SkipContentsClipIfPossible }; 41 enum ContentsClipBehavior { ForceContentsClip, SkipContentsClipIfPossible };
44 42
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void setWidth(LayoutUnit width) { m_frameRect.setWidth(width); } 86 void setWidth(LayoutUnit width) { m_frameRect.setWidth(width); }
89 void setHeight(LayoutUnit height) { m_frameRect.setHeight(height); } 87 void setHeight(LayoutUnit height) { m_frameRect.setHeight(height); }
90 88
91 LayoutUnit logicalLeft() const { return style()->isHorizontalWritingMode() ? x() : y(); } 89 LayoutUnit logicalLeft() const { return style()->isHorizontalWritingMode() ? x() : y(); }
92 LayoutUnit logicalRight() const { return logicalLeft() + logicalWidth(); } 90 LayoutUnit logicalRight() const { return logicalLeft() + logicalWidth(); }
93 LayoutUnit logicalTop() const { return style()->isHorizontalWritingMode() ? y() : x(); } 91 LayoutUnit logicalTop() const { return style()->isHorizontalWritingMode() ? y() : x(); }
94 LayoutUnit logicalBottom() const { return logicalTop() + logicalHeight(); } 92 LayoutUnit logicalBottom() const { return logicalTop() + logicalHeight(); }
95 LayoutUnit logicalWidth() const { return style()->isHorizontalWritingMode() ? width() : height(); } 93 LayoutUnit logicalWidth() const { return style()->isHorizontalWritingMode() ? width() : height(); }
96 LayoutUnit logicalHeight() const { return style()->isHorizontalWritingMode() ? height() : width(); } 94 LayoutUnit logicalHeight() const { return style()->isHorizontalWritingMode() ? height() : width(); }
97 95
98 LayoutUnit constrainLogicalWidthInRegionByMinMax(LayoutUnit, LayoutUnit, Ren derBlock*, RenderRegion* = 0) const; 96 LayoutUnit constrainLogicalWidthByMinMax(LayoutUnit, LayoutUnit, RenderBlock *) const;
99 LayoutUnit constrainLogicalHeightByMinMax(LayoutUnit logicalHeight, LayoutUn it intrinsicContentHeight) const; 97 LayoutUnit constrainLogicalHeightByMinMax(LayoutUnit logicalHeight, LayoutUn it intrinsicContentHeight) const;
100 LayoutUnit constrainContentBoxLogicalHeightByMinMax(LayoutUnit logicalHeight , LayoutUnit intrinsicContentHeight) const; 98 LayoutUnit constrainContentBoxLogicalHeightByMinMax(LayoutUnit logicalHeight , LayoutUnit intrinsicContentHeight) const;
101 99
102 int pixelSnappedLogicalHeight() const { return style()->isHorizontalWritingM ode() ? pixelSnappedHeight() : pixelSnappedWidth(); } 100 int pixelSnappedLogicalHeight() const { return style()->isHorizontalWritingM ode() ? pixelSnappedHeight() : pixelSnappedWidth(); }
103 int pixelSnappedLogicalWidth() const { return style()->isHorizontalWritingMo de() ? pixelSnappedWidth() : pixelSnappedHeight(); } 101 int pixelSnappedLogicalWidth() const { return style()->isHorizontalWritingMo de() ? pixelSnappedWidth() : pixelSnappedHeight(); }
104 102
105 void setLogicalLeft(LayoutUnit left) 103 void setLogicalLeft(LayoutUnit left)
106 { 104 {
107 if (style()->isHorizontalWritingMode()) 105 if (style()->isHorizontalWritingMode())
108 setX(left); 106 setX(left);
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 ComputedMarginValues m_margins; 371 ComputedMarginValues m_margins;
374 }; 372 };
375 // Resolve auto margins in the inline direction of the containing block so t hat objects can be pushed to the start, middle or end 373 // Resolve auto margins in the inline direction of the containing block so t hat objects can be pushed to the start, middle or end
376 // of the containing block. 374 // of the containing block.
377 void computeInlineDirectionMargins(RenderBlock* containingBlock, LayoutUnit containerWidth, LayoutUnit childWidth, LayoutUnit& marginStart, LayoutUnit& marg inEnd) const; 375 void computeInlineDirectionMargins(RenderBlock* containingBlock, LayoutUnit containerWidth, LayoutUnit childWidth, LayoutUnit& marginStart, LayoutUnit& marg inEnd) const;
378 376
379 // Used to resolve margins in the containing block's block-flow direction. 377 // Used to resolve margins in the containing block's block-flow direction.
380 void computeBlockDirectionMargins(const RenderBlock* containingBlock, Layout Unit& marginBefore, LayoutUnit& marginAfter) const; 378 void computeBlockDirectionMargins(const RenderBlock* containingBlock, Layout Unit& marginBefore, LayoutUnit& marginAfter) const;
381 void computeAndSetBlockDirectionMargins(const RenderBlock* containingBlock); 379 void computeAndSetBlockDirectionMargins(const RenderBlock* containingBlock);
382 380
383 enum RenderBoxRegionInfoFlags { CacheRenderBoxRegionInfo, DoNotCacheRenderBo xRegionInfo };
384 LayoutRect borderBoxRectInRegion(RenderRegion*, RenderBoxRegionInfoFlags = C acheRenderBoxRegionInfo) const;
385 void clearRenderBoxRegionInfo();
386 virtual LayoutUnit offsetFromLogicalTopOfFirstPage() const; 381 virtual LayoutUnit offsetFromLogicalTopOfFirstPage() const;
387 382
388 void positionLineBox(InlineBox*); 383 void positionLineBox(InlineBox*);
389 384
390 virtual InlineBox* createInlineBox(); 385 virtual InlineBox* createInlineBox();
391 void dirtyLineBoxes(bool fullLayout); 386 void dirtyLineBoxes(bool fullLayout);
392 387
393 // For inline replaced elements, this function returns the inline box that o wns us. Enables 388 // For inline replaced elements, this function returns the inline box that o wns us. Enables
394 // the replaced RenderObject to quickly determine what line it is contained on and to easily 389 // the replaced RenderObject to quickly determine what line it is contained on and to easily
395 // iterate over structures on the line. 390 // iterate over structures on the line.
396 InlineBox* inlineBoxWrapper() const { return m_inlineBoxWrapper; } 391 InlineBox* inlineBoxWrapper() const { return m_inlineBoxWrapper; }
397 void setInlineBoxWrapper(InlineBox*); 392 void setInlineBoxWrapper(InlineBox*);
398 void deleteLineBoxWrapper(); 393 void deleteLineBoxWrapper();
399 394
400 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const OVERRIDE; 395 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const OVERRIDE;
401 virtual void computeRectForRepaint(const RenderLayerModelObject* repaintCont ainer, LayoutRect&, bool fixed = false) const OVERRIDE; 396 virtual void computeRectForRepaint(const RenderLayerModelObject* repaintCont ainer, LayoutRect&, bool fixed = false) const OVERRIDE;
402 void repaintDuringLayoutIfMoved(const LayoutRect&); 397 void repaintDuringLayoutIfMoved(const LayoutRect&);
403 virtual void repaintOverhangingFloats(bool paintAllDescendants); 398 virtual void repaintOverhangingFloats(bool paintAllDescendants);
404 399
405 virtual LayoutUnit containingBlockLogicalWidthForContent() const OVERRIDE; 400 virtual LayoutUnit containingBlockLogicalWidthForContent() const OVERRIDE;
406 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const; 401 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const;
407 402
408 LayoutUnit containingBlockLogicalWidthForContentInRegion(RenderRegion*) cons t; 403 LayoutUnit containingBlockAvailableLineWidth() const;
409 LayoutUnit containingBlockAvailableLineWidthInRegion(RenderRegion*) const;
410 LayoutUnit perpendicularContainingBlockLogicalHeight() const; 404 LayoutUnit perpendicularContainingBlockLogicalHeight() const;
411 405
412 virtual void updateLogicalWidth(); 406 virtual void updateLogicalWidth();
413 virtual void updateLogicalHeight(); 407 virtual void updateLogicalHeight();
414 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const; 408 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const;
415 409 void computeLogicalWidth(LogicalExtentComputedValues&) const;
416 RenderBoxRegionInfo* renderBoxRegionInfo(RenderRegion*, RenderBoxRegionInfoF lags = CacheRenderBoxRegionInfo) const;
417 void computeLogicalWidthInRegion(LogicalExtentComputedValues&, RenderRegion* = 0) const;
418 410
419 bool stretchesToViewport() const 411 bool stretchesToViewport() const
420 { 412 {
421 return document().inQuirksMode() && style()->logicalHeight().isAuto() && !isFloatingOrOutOfFlowPositioned() && (isRoot() || isBody()) && !document().sho uldDisplaySeamlesslyWithParent() && !isInline(); 413 return document().inQuirksMode() && style()->logicalHeight().isAuto() && !isFloatingOrOutOfFlowPositioned() && (isRoot() || isBody()) && !document().sho uldDisplaySeamlesslyWithParent() && !isInline();
422 } 414 }
423 415
424 virtual LayoutSize intrinsicSize() const { return LayoutSize(); } 416 virtual LayoutSize intrinsicSize() const { return LayoutSize(); }
425 LayoutUnit intrinsicLogicalWidth() const { return style()->isHorizontalWriti ngMode() ? intrinsicSize().width() : intrinsicSize().height(); } 417 LayoutUnit intrinsicLogicalWidth() const { return style()->isHorizontalWriti ngMode() ? intrinsicSize().width() : intrinsicSize().height(); }
426 LayoutUnit intrinsicLogicalHeight() const { return style()->isHorizontalWrit ingMode() ? intrinsicSize().height() : intrinsicSize().width(); } 418 LayoutUnit intrinsicLogicalHeight() const { return style()->isHorizontalWrit ingMode() ? intrinsicSize().height() : intrinsicSize().width(); }
427 419
428 // Whether or not the element shrinks to its intrinsic width (rather than fi lling the width 420 // Whether or not the element shrinks to its intrinsic width (rather than fi lling the width
429 // of a containing block). HTML4 buttons, <select>s, <input>s, legends, and floating/compact elements do this. 421 // of a containing block). HTML4 buttons, <select>s, <input>s, legends, and floating/compact elements do this.
430 bool sizesLogicalWidthToFitContent(SizeType) const; 422 bool sizesLogicalWidthToFitContent(SizeType) const;
431 423
432 LayoutUnit shrinkLogicalWidthToAvoidFloats(LayoutUnit childMarginStart, Layo utUnit childMarginEnd, const RenderBlockFlow* cb, RenderRegion*) const; 424 LayoutUnit shrinkLogicalWidthToAvoidFloats(LayoutUnit childMarginStart, Layo utUnit childMarginEnd, const RenderBlockFlow* cb) const;
433 425
434 LayoutUnit computeLogicalWidthInRegionUsing(SizeType, Length logicalWidth, L ayoutUnit availableLogicalWidth, const RenderBlock* containingBlock, RenderRegio n*) const; 426 LayoutUnit computeLogicalWidthUsing(SizeType, Length logicalWidth, LayoutUni t availableLogicalWidth, const RenderBlock* containingBlock) const;
435 LayoutUnit computeLogicalHeightUsing(const Length& height, LayoutUnit intrin sicContentHeight) const; 427 LayoutUnit computeLogicalHeightUsing(const Length& height, LayoutUnit intrin sicContentHeight) const;
436 LayoutUnit computeContentLogicalHeight(const Length& height, LayoutUnit intr insicContentHeight) const; 428 LayoutUnit computeContentLogicalHeight(const Length& height, LayoutUnit intr insicContentHeight) const;
437 LayoutUnit computeContentAndScrollbarLogicalHeightUsing(const Length& height , LayoutUnit intrinsicContentHeight) const; 429 LayoutUnit computeContentAndScrollbarLogicalHeightUsing(const Length& height , LayoutUnit intrinsicContentHeight) const;
438 LayoutUnit computeReplacedLogicalWidthUsing(Length width) const; 430 LayoutUnit computeReplacedLogicalWidthUsing(Length width) const;
439 LayoutUnit computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logic alWidth, ShouldComputePreferred = ComputeActual) const; 431 LayoutUnit computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logic alWidth, ShouldComputePreferred = ComputeActual) const;
440 LayoutUnit computeReplacedLogicalHeightUsing(Length height) const; 432 LayoutUnit computeReplacedLogicalHeightUsing(Length height) const;
441 LayoutUnit computeReplacedLogicalHeightRespectingMinMaxHeight(LayoutUnit log icalHeight) const; 433 LayoutUnit computeReplacedLogicalHeightRespectingMinMaxHeight(LayoutUnit log icalHeight) const;
442 434
443 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com puteActual) const; 435 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com puteActual) const;
444 virtual LayoutUnit computeReplacedLogicalHeight() const; 436 virtual LayoutUnit computeReplacedLogicalHeight() const;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 475
484 // Elements such as the <input> field override this to specify that they are scrollable 476 // Elements such as the <input> field override this to specify that they are scrollable
485 // outside the context of the CSS overflow style 477 // outside the context of the CSS overflow style
486 virtual bool isIntristicallyScrollable(ScrollbarOrientation orientation) con st { return false; } 478 virtual bool isIntristicallyScrollable(ScrollbarOrientation orientation) con st { return false; }
487 479
488 bool hasUnsplittableScrollingOverflow() const; 480 bool hasUnsplittableScrollingOverflow() const;
489 bool isUnsplittableForPagination() const; 481 bool isUnsplittableForPagination() const;
490 482
491 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e xtraWidthToEndOfLine = 0) OVERRIDE; 483 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e xtraWidthToEndOfLine = 0) OVERRIDE;
492 484
493 virtual LayoutRect overflowClipRect(const LayoutPoint& location, RenderRegio n*, OverlayScrollbarSizeRelevancy = IgnoreOverlayScrollbarSize); 485 virtual LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScro llbarSizeRelevancy = IgnoreOverlayScrollbarSize);
494 LayoutRect clipRect(const LayoutPoint& location, RenderRegion*); 486 LayoutRect clipRect(const LayoutPoint& location);
495 virtual bool hasControlClip() const { return false; } 487 virtual bool hasControlClip() const { return false; }
496 virtual LayoutRect controlClipRect(const LayoutPoint&) const { return Layout Rect(); } 488 virtual LayoutRect controlClipRect(const LayoutPoint&) const { return Layout Rect(); }
497 bool pushContentsClip(PaintInfo&, const LayoutPoint& accumulatedOffset, Cont entsClipBehavior); 489 bool pushContentsClip(PaintInfo&, const LayoutPoint& accumulatedOffset, Cont entsClipBehavior);
498 void popContentsClip(PaintInfo&, PaintPhase originalPhase, const LayoutPoint & accumulatedOffset); 490 void popContentsClip(PaintInfo&, PaintPhase originalPhase, const LayoutPoint & accumulatedOffset);
499 491
500 virtual void paintObject(PaintInfo&, const LayoutPoint&) { ASSERT_NOT_REACHE D(); } 492 virtual void paintObject(PaintInfo&, const LayoutPoint&) { ASSERT_NOT_REACHE D(); }
501 virtual void paintBoxDecorations(PaintInfo&, const LayoutPoint&); 493 virtual void paintBoxDecorations(PaintInfo&, const LayoutPoint&);
502 virtual void paintMask(PaintInfo&, const LayoutPoint&); 494 virtual void paintMask(PaintInfo&, const LayoutPoint&);
503 virtual void paintClippingMask(PaintInfo&, const LayoutPoint&); 495 virtual void paintClippingMask(PaintInfo&, const LayoutPoint&);
504 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE; 496 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 620
629 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer*, const LayoutRect&, BackgroundBleedAvoidance, CompositeOperator, RenderObject* backgrou ndObject); 621 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer*, const LayoutRect&, BackgroundBleedAvoidance, CompositeOperator, RenderObject* backgrou ndObject);
630 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer*, const LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, CompositeOperator = CompositeSourceOver, RenderObject* backgroundObject = 0); 622 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer*, const LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, CompositeOperator = CompositeSourceOver, RenderObject* backgroundObject = 0);
631 623
632 void paintMaskImages(const PaintInfo&, const LayoutRect&); 624 void paintMaskImages(const PaintInfo&, const LayoutRect&);
633 void paintBoxDecorationsWithRect(PaintInfo&, const LayoutPoint&, const Layou tRect&); 625 void paintBoxDecorationsWithRect(PaintInfo&, const LayoutPoint&, const Layou tRect&);
634 626
635 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(GraphicsContext*) const; 627 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(GraphicsContext*) const;
636 bool backgroundHasOpaqueTopLayer() const; 628 bool backgroundHasOpaqueTopLayer() const;
637 629
638 void computePositionedLogicalWidth(LogicalExtentComputedValues&, RenderRegio n* = 0) const; 630 void computePositionedLogicalWidth(LogicalExtentComputedValues&) const;
639 631
640 LayoutUnit computeIntrinsicLogicalWidthUsing(Length logicalWidthLength, Layo utUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; 632 LayoutUnit computeIntrinsicLogicalWidthUsing(Length logicalWidthLength, Layo utUnit availableLogicalWidth, LayoutUnit borderAndPadding) const;
641 LayoutUnit computeIntrinsicLogicalContentHeightUsing(Length logicalHeightLen gth, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) const; 633 LayoutUnit computeIntrinsicLogicalContentHeightUsing(Length logicalHeightLen gth, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) const;
642 634
643 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlockOrInlineTable(); } 635 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlockOrInlineTable(); }
644 636
645 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE; 637 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE;
646 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst OVERRIDE; 638 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst OVERRIDE;
647 639
648 void paintRootBoxFillLayers(const PaintInfo&); 640 void paintRootBoxFillLayers(const PaintInfo&);
649 641
650 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild); 642 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild);
651 643
652 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const OVERRIDE; 644 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const OVERRIDE;
653 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const OVERRIDE; 645 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const OVERRIDE;
654 646
655 private: 647 private:
656 void updateShapeOutsideInfoAfterStyleChange(const RenderStyle&, const Render Style* oldStyle); 648 void updateShapeOutsideInfoAfterStyleChange(const RenderStyle&, const Render Style* oldStyle);
657 void updateGridPositionAfterStyleChange(const RenderStyle*); 649 void updateGridPositionAfterStyleChange(const RenderStyle*);
658 650
659 bool autoWidthShouldFitContent() const; 651 bool autoWidthShouldFitContent() const;
660 void shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logi calLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues&) const; 652 void shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logi calLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues&) const;
661 653
662 // Returns true if we did a full repaint 654 // Returns true if we did a full repaint
663 bool repaintLayerRectsForImage(WrappedImagePtr image, const FillLayer* layer s, bool drawingBackground); 655 bool repaintLayerRectsForImage(WrappedImagePtr image, const FillLayer* layer s, bool drawingBackground);
664 656
665 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* contain ingBlock) const; 657 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* contain ingBlock) const;
666 658
667 LayoutUnit containingBlockLogicalWidthForPositioned(const RenderBoxModelObje ct* containingBlock, RenderRegion* = 0, bool checkForPerpendicularWritingMode = true) const; 659 LayoutUnit containingBlockLogicalWidthForPositioned(const RenderBoxModelObje ct* containingBlock, bool checkForPerpendicularWritingMode = true) const;
668 LayoutUnit containingBlockLogicalHeightForPositioned(const RenderBoxModelObj ect* containingBlock, bool checkForPerpendicularWritingMode = true) const; 660 LayoutUnit containingBlockLogicalHeightForPositioned(const RenderBoxModelObj ect* containingBlock, bool checkForPerpendicularWritingMode = true) const;
669 661
670 LayoutUnit viewLogicalHeightForPercentages() const; 662 LayoutUnit viewLogicalHeightForPercentages() const;
671 663
672 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const; 664 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const;
673 void computePositionedLogicalWidthUsing(Length logicalWidth, const RenderBox ModelObject* containerBlock, TextDirection containerDirection, 665 void computePositionedLogicalWidthUsing(Length logicalWidth, const RenderBox ModelObject* containerBlock, TextDirection containerDirection,
674 LayoutUnit containerLogicalWidth, La youtUnit bordersPlusPadding, 666 LayoutUnit containerLogicalWidth, La youtUnit bordersPlusPadding,
675 Length logicalLeft, Length logicalRi ght, Length marginLogicalLeft, Length marginLogicalRight, 667 Length logicalLeft, Length logicalRi ght, Length marginLogicalLeft, Length marginLogicalRight,
676 LogicalExtentComputedValues&) const; 668 LogicalExtentComputedValues&) const;
677 void computePositionedLogicalHeightUsing(Length logicalHeightLength, const R enderBoxModelObject* containerBlock, 669 void computePositionedLogicalHeightUsing(Length logicalHeightLength, const R enderBoxModelObject* containerBlock,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 if (UNLIKELY(m_inlineBoxWrapper != 0)) 749 if (UNLIKELY(m_inlineBoxWrapper != 0))
758 deleteLineBoxWrapper(); 750 deleteLineBoxWrapper();
759 } 751 }
760 752
761 m_inlineBoxWrapper = boxWrapper; 753 m_inlineBoxWrapper = boxWrapper;
762 } 754 }
763 755
764 } // namespace WebCore 756 } // namespace WebCore
765 757
766 #endif // RenderBox_h 758 #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