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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

Issue 1540443003: Fix LayoutObject::mapToVisibleRectInContainerSpace() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 LayoutRect logicalLayoutOverflowRectForPropagation(const ComputedStyle&) con st; 791 LayoutRect logicalLayoutOverflowRectForPropagation(const ComputedStyle&) con st;
792 LayoutRect layoutOverflowRectForPropagation(const ComputedStyle&) const; 792 LayoutRect layoutOverflowRectForPropagation(const ComputedStyle&) const;
793 793
794 bool hasOverflowModel() const { return m_overflow; } 794 bool hasOverflowModel() const { return m_overflow; }
795 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta ins(m_overflow->visualOverflowRect()); } 795 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta ins(m_overflow->visualOverflowRect()); }
796 796
797 virtual bool needsPreferredWidthsRecalculation() const; 797 virtual bool needsPreferredWidthsRecalculation() const;
798 virtual void computeIntrinsicRatioInformation(FloatSize& /* intrinsicSize */ , double& /* intrinsicRatio */) const { } 798 virtual void computeIntrinsicRatioInformation(FloatSize& /* intrinsicSize */ , double& /* intrinsicRatio */) const { }
799 799
800 IntSize scrolledContentOffset() const; 800 IntSize scrolledContentOffset() const;
801 void applyCachedScrollOffsetForPaintInvalidation(LayoutRect& paintRect) cons t; 801 void applyCachedClipAndScrollOffsetForPaintInvalidationIfNeeded(const Layout BoxModelObject* paintInvalidationContainer, LayoutRect& paintRect) const;
chrishtr 2015/12/18 01:58:07 Document that clips are not applied for the paintI
Xianzhu 2015/12/18 18:28:24 Done.
802 void applyCachedClipAndScrollOffsetForPaintInvalidation(LayoutRect& paintRec t) const;
803 802
804 virtual bool hasRelativeLogicalWidth() const; 803 virtual bool hasRelativeLogicalWidth() const;
805 virtual bool hasRelativeLogicalHeight() const; 804 virtual bool hasRelativeLogicalHeight() const;
806 805
807 bool hasHorizontalLayoutOverflow() const 806 bool hasHorizontalLayoutOverflow() const
808 { 807 {
809 if (!m_overflow) 808 if (!m_overflow)
810 return false; 809 return false;
811 810
812 LayoutRect layoutOverflowRect = m_overflow->layoutOverflowRect(); 811 LayoutRect layoutOverflowRect = m_overflow->layoutOverflowRect();
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 if (UNLIKELY(inlineBoxWrapper() != nullptr)) 1064 if (UNLIKELY(inlineBoxWrapper() != nullptr))
1066 deleteLineBoxWrapper(); 1065 deleteLineBoxWrapper();
1067 } 1066 }
1068 1067
1069 ensureRareData().m_inlineBoxWrapper = boxWrapper; 1068 ensureRareData().m_inlineBoxWrapper = boxWrapper;
1070 } 1069 }
1071 1070
1072 } // namespace blink 1071 } // namespace blink
1073 1072
1074 #endif // LayoutBox_h 1073 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698