| 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 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "core/layout/LayoutScrollbar.h" | 26 #include "core/layout/LayoutScrollbar.h" |
| 27 | 27 |
| 28 #include "core/css/PseudoStyleRequest.h" | 28 #include "core/css/PseudoStyleRequest.h" |
| 29 #include "core/frame/FrameView.h" | 29 #include "core/frame/FrameView.h" |
| 30 #include "core/frame/LocalFrame.h" | 30 #include "core/frame/LocalFrame.h" |
| 31 #include "core/layout/LayoutPart.h" | 31 #include "core/layout/LayoutPart.h" |
| 32 #include "core/layout/LayoutScrollbarPart.h" | 32 #include "core/layout/LayoutScrollbarPart.h" |
| 33 #include "core/layout/LayoutScrollbarTheme.h" | 33 #include "core/layout/LayoutScrollbarTheme.h" |
| 34 #include "core/layout/LayoutView.h" |
| 34 #include "core/layout/api/LayoutAPIShim.h" | 35 #include "core/layout/api/LayoutAPIShim.h" |
| 36 #include "core/layout/api/LayoutPartItem.h" |
| 35 #include "core/paint/ObjectPaintInvalidator.h" | 37 #include "core/paint/ObjectPaintInvalidator.h" |
| 36 #include "platform/graphics/GraphicsContext.h" | 38 #include "platform/graphics/GraphicsContext.h" |
| 37 | 39 |
| 38 namespace blink { | 40 namespace blink { |
| 39 | 41 |
| 40 Scrollbar* LayoutScrollbar::createCustomScrollbar(ScrollableArea* scrollableArea
, ScrollbarOrientation orientation, Node* ownerNode, LocalFrame* owningFrame) | 42 Scrollbar* LayoutScrollbar::createCustomScrollbar(ScrollableArea* scrollableArea
, ScrollbarOrientation orientation, Node* ownerNode, LocalFrame* owningFrame) |
| 41 { | 43 { |
| 42 return new LayoutScrollbar(scrollableArea, orientation, ownerNode, owningFra
me); | 44 return new LayoutScrollbar(scrollableArea, orientation, ownerNode, owningFra
me); |
| 43 } | 45 } |
| 44 | 46 |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 return (orientation() == HorizontalScrollbar ? partLayoutObject->size().widt
h() : partLayoutObject->size().height()).toInt(); | 362 return (orientation() == HorizontalScrollbar ? partLayoutObject->size().widt
h() : partLayoutObject->size().height()).toInt(); |
| 361 } | 363 } |
| 362 | 364 |
| 363 void LayoutScrollbar::invalidateDisplayItemClientsOfScrollbarParts() | 365 void LayoutScrollbar::invalidateDisplayItemClientsOfScrollbarParts() |
| 364 { | 366 { |
| 365 for (auto& part : m_parts) | 367 for (auto& part : m_parts) |
| 366 ObjectPaintInvalidator(*part.value).invalidateDisplayItemClientsIncludin
gNonCompositingDescendants(PaintInvalidationScroll); | 368 ObjectPaintInvalidator(*part.value).invalidateDisplayItemClientsIncludin
gNonCompositingDescendants(PaintInvalidationScroll); |
| 367 } | 369 } |
| 368 | 370 |
| 369 } // namespace blink | 371 } // namespace blink |
| OLD | NEW |