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

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

Issue 1878253003: Allow explicit conversion operators and implement WTF::OwnPtr::operator bool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 // These represent your location relative to your container as a physical of fset. 842 // These represent your location relative to your container as a physical of fset.
843 // In layout related methods you almost always want the logical location (e. g. x() and y()). 843 // In layout related methods you almost always want the logical location (e. g. x() and y()).
844 LayoutPoint topLeftLocation() const; 844 LayoutPoint topLeftLocation() const;
845 LayoutSize topLeftLocationOffset() const { return toLayoutSize(topLeftLocati on()); } 845 LayoutSize topLeftLocationOffset() const { return toLayoutSize(topLeftLocati on()); }
846 846
847 LayoutRect logicalVisualOverflowRectForPropagation(const ComputedStyle&) con st; 847 LayoutRect logicalVisualOverflowRectForPropagation(const ComputedStyle&) con st;
848 LayoutRect visualOverflowRectForPropagation(const ComputedStyle&) const; 848 LayoutRect visualOverflowRectForPropagation(const ComputedStyle&) const;
849 LayoutRect logicalLayoutOverflowRectForPropagation(const ComputedStyle&) con st; 849 LayoutRect logicalLayoutOverflowRectForPropagation(const ComputedStyle&) con st;
850 LayoutRect layoutOverflowRectForPropagation(const ComputedStyle&) const; 850 LayoutRect layoutOverflowRectForPropagation(const ComputedStyle&) const;
851 851
852 bool hasOverflowModel() const { return m_overflow; } 852 bool hasOverflowModel() const { return m_overflow.get(); }
853 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta ins(m_overflow->visualOverflowRect()); } 853 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta ins(m_overflow->visualOverflowRect()); }
854 854
855 virtual bool needsPreferredWidthsRecalculation() const; 855 virtual bool needsPreferredWidthsRecalculation() const;
856 856
857 IntSize scrolledContentOffset() const; 857 IntSize scrolledContentOffset() const;
858 858
859 // Maps a rect in scrolling contents space to box space and apply overflow c lip if needed. 859 // Maps a rect in scrolling contents space to box space and apply overflow c lip if needed.
860 // Returns true if no clipping applied or the rect actually intersects the c lipping region. 860 // Returns true if no clipping applied or the rect actually intersects the c lipping region.
861 // If edgeInclusive is true, then this method may return true even 861 // If edgeInclusive is true, then this method may return true even
862 // if the resulting rect has zero area. 862 // if the resulting rect has zero area.
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 || breakValue == BreakLeft 1160 || breakValue == BreakLeft
1161 || breakValue == BreakPage 1161 || breakValue == BreakPage
1162 || breakValue == BreakRecto 1162 || breakValue == BreakRecto
1163 || breakValue == BreakRight 1163 || breakValue == BreakRight
1164 || breakValue == BreakVerso; 1164 || breakValue == BreakVerso;
1165 } 1165 }
1166 1166
1167 } // namespace blink 1167 } // namespace blink
1168 1168
1169 #endif // LayoutBox_h 1169 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698