LEFT | RIGHT |
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, 2015 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007, 2015 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 void dirtyLineBoxes(bool fullLayout); | 364 void dirtyLineBoxes(bool fullLayout); |
365 | 365 |
366 // For inline replaced elements, this function returns the inline box that o
wns us. Enables | 366 // For inline replaced elements, this function returns the inline box that o
wns us. Enables |
367 // the replaced RenderObject to quickly determine what line it is contained
on and to easily | 367 // the replaced RenderObject to quickly determine what line it is contained
on and to easily |
368 // iterate over structures on the line. | 368 // iterate over structures on the line. |
369 InlineElementBox* inlineBoxWrapper() const { return m_inlineBoxWrapper; } | 369 InlineElementBox* inlineBoxWrapper() const { return m_inlineBoxWrapper; } |
370 void setInlineBoxWrapper(InlineElementBox*); | 370 void setInlineBoxWrapper(InlineElementBox*); |
371 void deleteLineBoxWrapper(); | 371 void deleteLineBoxWrapper(); |
372 | 372 |
373 LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObject* repai
ntContainer) const override; | 373 LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObject* repai
ntContainer) const override; |
374 LayoutRect computeVisibleRectInContainer(const LayoutRect&, const RenderLaye
rModelObject* container, VisibleRectContext) const | 374 std::optional<LayoutRect> computeVisibleRectInContainer(const LayoutRect&, c
onst RenderLayerModelObject* container, VisibleRectContext) const |
375 override; | 375 override; |
376 void repaintDuringLayoutIfMoved(const LayoutRect&); | 376 void repaintDuringLayoutIfMoved(const LayoutRect&); |
377 virtual void repaintOverhangingFloats(bool paintAllDescendants); | 377 virtual void repaintOverhangingFloats(bool paintAllDescendants); |
378 | 378 |
379 LayoutUnit containingBlockLogicalWidthForContent() const override; | 379 LayoutUnit containingBlockLogicalWidthForContent() const override; |
380 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType
) const; | 380 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType
) const; |
381 | 381 |
382 LayoutUnit containingBlockLogicalWidthForContentInFragment(RenderFragmentCon
tainer*) const; | 382 LayoutUnit containingBlockLogicalWidthForContentInFragment(RenderFragmentCon
tainer*) const; |
383 LayoutUnit containingBlockAvailableLineWidthInFragment(RenderFragmentContain
er*) const; | 383 LayoutUnit containingBlockAvailableLineWidthInFragment(RenderFragmentContain
er*) const; |
384 LayoutUnit perpendicularContainingBlockLogicalHeight() const; | 384 LayoutUnit perpendicularContainingBlockLogicalHeight() const; |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 | 562 |
563 bool hasRenderOverflow() const { return m_overflow; }···· | 563 bool hasRenderOverflow() const { return m_overflow; }···· |
564 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta
ins(m_overflow->visualOverflowRect()); } | 564 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta
ins(m_overflow->visualOverflowRect()); } |
565 | 565 |
566 virtual bool needsPreferredWidthsRecalculation() const; | 566 virtual bool needsPreferredWidthsRecalculation() const; |
567 virtual void computeIntrinsicRatioInformation(FloatSize& /* intrinsicSize */
, double& /* intrinsicRatio */) const { } | 567 virtual void computeIntrinsicRatioInformation(FloatSize& /* intrinsicSize */
, double& /* intrinsicRatio */) const { } |
568 | 568 |
569 ScrollPosition scrollPosition() const; | 569 ScrollPosition scrollPosition() const; |
570 LayoutSize cachedSizeForOverflowClip() const; | 570 LayoutSize cachedSizeForOverflowClip() const; |
571 | 571 |
572 void applyCachedClipAndScrollPosition(LayoutRect&, const RenderLayerModelObj
ect* container, ShouldApplyClipsAndScrolls shouldApplyClipsAndScrolls) const; | 572 bool applyCachedClipAndScrollPosition(LayoutRect&, const RenderLayerModelObj
ect* container, bool applyCompositedClips, bool applyCompositedContainerScrolls,
bool useEdgeInclusiveIntersection) const; |
573 | 573 |
574 virtual bool hasRelativeDimensions() const; | 574 virtual bool hasRelativeDimensions() const; |
575 virtual bool hasRelativeLogicalHeight() const; | 575 virtual bool hasRelativeLogicalHeight() const; |
576 virtual bool hasRelativeLogicalWidth() const; | 576 virtual bool hasRelativeLogicalWidth() const; |
577 | 577 |
578 bool hasHorizontalLayoutOverflow() const | 578 bool hasHorizontalLayoutOverflow() const |
579 { | 579 { |
580 if (!m_overflow) | 580 if (!m_overflow) |
581 return false; | 581 return false; |
582 | 582 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 if (UNLIKELY(m_inlineBoxWrapper != nullptr)) | 798 if (UNLIKELY(m_inlineBoxWrapper != nullptr)) |
799 deleteLineBoxWrapper(); | 799 deleteLineBoxWrapper(); |
800 } | 800 } |
801 | 801 |
802 m_inlineBoxWrapper = boxWrapper; | 802 m_inlineBoxWrapper = boxWrapper; |
803 } | 803 } |
804 | 804 |
805 } // namespace WebCore | 805 } // namespace WebCore |
806 | 806 |
807 SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderBox, isBox()) | 807 SPECIALIZE_TYPE_TRAITS_RENDER_OBJECT(RenderBox, isBox()) |
LEFT | RIGHT |