OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2009 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 21 matching lines...) Expand all Loading... | |
32 #include "core/layout/LayoutPart.h" | 32 #include "core/layout/LayoutPart.h" |
33 #include "core/layout/LayoutScrollbarPart.h" | 33 #include "core/layout/LayoutScrollbarPart.h" |
34 #include "core/layout/LayoutScrollbarTheme.h" | 34 #include "core/layout/LayoutScrollbarTheme.h" |
35 #include "core/layout/LayoutView.h" | 35 #include "core/layout/LayoutView.h" |
36 #include "platform/graphics/GraphicsContext.h" | 36 #include "platform/graphics/GraphicsContext.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 PassRefPtrWillBeRawPtr<Scrollbar> LayoutScrollbar::createCustomScrollbar(Scrolla bleArea* scrollableArea, ScrollbarOrientation orientation, Node* ownerNode, Loca lFrame* owningFrame) | 40 PassRefPtrWillBeRawPtr<Scrollbar> LayoutScrollbar::createCustomScrollbar(Scrolla bleArea* scrollableArea, ScrollbarOrientation orientation, Node* ownerNode, Loca lFrame* owningFrame) |
41 { | 41 { |
42 fprintf(stderr, "custom scrollbar\n"); | |
ajuma
2015/10/09 22:03:55
Leftover from debugging? :)
chrishtr
2015/10/09 22:28:19
Oops, fixed.
| |
42 return adoptRefWillBeNoop(new LayoutScrollbar(scrollableArea, orientation, o wnerNode, owningFrame)); | 43 return adoptRefWillBeNoop(new LayoutScrollbar(scrollableArea, orientation, o wnerNode, owningFrame)); |
43 } | 44 } |
44 | 45 |
45 LayoutScrollbar::LayoutScrollbar(ScrollableArea* scrollableArea, ScrollbarOrient ation orientation, Node* ownerNode, LocalFrame* owningFrame) | 46 LayoutScrollbar::LayoutScrollbar(ScrollableArea* scrollableArea, ScrollbarOrient ation orientation, Node* ownerNode, LocalFrame* owningFrame) |
46 : Scrollbar(scrollableArea, orientation, RegularScrollbar, LayoutScrollbarTh eme::layoutScrollbarTheme()) | 47 : Scrollbar(scrollableArea, orientation, RegularScrollbar, LayoutScrollbarTh eme::layoutScrollbarTheme()) |
47 , m_owner(ownerNode) | 48 , m_owner(ownerNode) |
48 , m_owningFrame(owningFrame) | 49 , m_owningFrame(owningFrame) |
49 { | 50 { |
50 ASSERT(ownerNode || owningFrame); | 51 ASSERT(ownerNode || owningFrame); |
51 | 52 |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
367 Scrollbar::invalidateRect(rect); | 368 Scrollbar::invalidateRect(rect); |
368 | 369 |
369 // FIXME: invalidate only the changed part. | 370 // FIXME: invalidate only the changed part. |
370 if (LayoutBox* owningLayoutObject = this->owningLayoutObject()) { | 371 if (LayoutBox* owningLayoutObject = this->owningLayoutObject()) { |
371 for (auto& part : m_parts) | 372 for (auto& part : m_parts) |
372 owningLayoutObject->invalidateDisplayItemClientForNonCompositingDesc endantsOf(*part.value); | 373 owningLayoutObject->invalidateDisplayItemClientForNonCompositingDesc endantsOf(*part.value); |
373 } | 374 } |
374 } | 375 } |
375 | 376 |
376 } | 377 } |
OLD | NEW |