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

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

Issue 2241663002: Take CSS Clip and contain: paint into account when computing visual rects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: none Created 4 years, 4 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
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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 }; 789 };
790 PaginationBreakability getPaginationBreakability() const; 790 PaginationBreakability getPaginationBreakability() const;
791 791
792 LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidt hToEndOfLine = nullptr) override; 792 LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidt hToEndOfLine = nullptr) override;
793 793
794 virtual LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScro llbarClipBehavior = IgnoreOverlayScrollbarSize) const; 794 virtual LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScro llbarClipBehavior = IgnoreOverlayScrollbarSize) const;
795 LayoutRect clipRect(const LayoutPoint& location) const; 795 LayoutRect clipRect(const LayoutPoint& location) const;
796 virtual bool hasControlClip() const { return false; } 796 virtual bool hasControlClip() const { return false; }
797 virtual LayoutRect controlClipRect(const LayoutPoint&) const { return Layout Rect(); } 797 virtual LayoutRect controlClipRect(const LayoutPoint&) const { return Layout Rect(); }
798 798
799 // Returns the combination of overflow clip, contain: paint clip and CSS cli p for this object, in local space.
800 LayoutRect clippingRect() const;
801
799 virtual void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoin t&) const; 802 virtual void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoin t&) const;
800 virtual void paintMask(const PaintInfo&, const LayoutPoint&) const; 803 virtual void paintMask(const PaintInfo&, const LayoutPoint&) const;
801 void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override; 804 void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override;
802 ResourcePriority computeResourcePriority() const final; 805 ResourcePriority computeResourcePriority() const final;
803 806
804 void logicalExtentAfterUpdatingLogicalWidth(const LayoutUnit& logicalTop, Lo gicalExtentComputedValues&); 807 void logicalExtentAfterUpdatingLogicalWidth(const LayoutUnit& logicalTop, Lo gicalExtentComputedValues&);
805 808
806 PositionWithAffinity positionForPoint(const LayoutPoint&) override; 809 PositionWithAffinity positionForPoint(const LayoutPoint&) override;
807 810
808 void removeFloatingOrPositionedChildFromBlockLists(); 811 void removeFloatingOrPositionedChildFromBlockLists();
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 || breakValue == BreakLeft 1220 || breakValue == BreakLeft
1218 || breakValue == BreakPage 1221 || breakValue == BreakPage
1219 || breakValue == BreakRecto 1222 || breakValue == BreakRecto
1220 || breakValue == BreakRight 1223 || breakValue == BreakRight
1221 || breakValue == BreakVerso; 1224 || breakValue == BreakVerso;
1222 } 1225 }
1223 1226
1224 } // namespace blink 1227 } // namespace blink
1225 1228
1226 #endif // LayoutBox_h 1229 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698