OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutScrollbarPart || LayoutBlock::isOfType(type); } | 74 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectLayoutScrollbarPart || LayoutBlock::isOfType(type); } |
75 LayoutObject* layoutObjectOwningScrollbar() const; | 75 LayoutObject* layoutObjectOwningScrollbar() const; |
76 | 76 |
77 // Must call setStyleWithWritingModeOfParent() instead. | 77 // Must call setStyleWithWritingModeOfParent() instead. |
78 void setStyle(PassRefPtr<ComputedStyle>) = delete; | 78 void setStyle(PassRefPtr<ComputedStyle>) = delete; |
79 | 79 |
80 protected: | 80 protected: |
81 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; | 81 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; |
82 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | 82 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
83 void imageChanged(WrappedImagePtr, const IntRect* = nullptr) override; | 83 void imageChanged(bool isNotifyingFinish, WrappedImagePtr, const IntRect* =
nullptr) override; |
84 | 84 |
85 private: | 85 private: |
86 LayoutScrollbarPart(LayoutScrollbar*, ScrollbarPart); | 86 LayoutScrollbarPart(LayoutScrollbar*, ScrollbarPart); |
87 | 87 |
88 void computePreferredLogicalWidths() override; | 88 void computePreferredLogicalWidths() override; |
89 | 89 |
90 // Have all padding getters return 0. The important point here is to avoid r
esolving percents | 90 // Have all padding getters return 0. The important point here is to avoid r
esolving percents |
91 // against the containing block, since scroll bar corners don't always have
one (so it would | 91 // against the containing block, since scroll bar corners don't always have
one (so it would |
92 // crash). Scroll bar corners are not actually laid out, and they don't have
child content, so | 92 // crash). Scroll bar corners are not actually laid out, and they don't have
child content, so |
93 // what we return here doesn't really matter. | 93 // what we return here doesn't really matter. |
(...skipping 16 matching lines...) Expand all Loading... |
110 | 110 |
111 RawPtrWillBeUntracedMember<LayoutScrollbar> m_scrollbar; | 111 RawPtrWillBeUntracedMember<LayoutScrollbar> m_scrollbar; |
112 ScrollbarPart m_part; | 112 ScrollbarPart m_part; |
113 }; | 113 }; |
114 | 114 |
115 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutScrollbarPart, isLayoutScrollbarPart()); | 115 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutScrollbarPart, isLayoutScrollbarPart()); |
116 | 116 |
117 } // namespace blink | 117 } // namespace blink |
118 | 118 |
119 #endif // LayoutScrollbarPart_h | 119 #endif // LayoutScrollbarPart_h |
OLD | NEW |