| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 setNeedsPaintInvalidation(partType); | 295 setNeedsPaintInvalidation(partType); |
| 296 } else if (partLayoutObject && !needLayoutObject) { | 296 } else if (partLayoutObject && !needLayoutObject) { |
| 297 m_parts.remove(partType); | 297 m_parts.remove(partType); |
| 298 partLayoutObject->destroy(); | 298 partLayoutObject->destroy(); |
| 299 partLayoutObject = nullptr; | 299 partLayoutObject = nullptr; |
| 300 if (!destroy) | 300 if (!destroy) |
| 301 setNeedsPaintInvalidation(partType); | 301 setNeedsPaintInvalidation(partType); |
| 302 } | 302 } |
| 303 | 303 |
| 304 if (partLayoutObject) | 304 if (partLayoutObject) |
| 305 partLayoutObject->setStyleWithWritingModeOfParent(partStyle.release()); | 305 partLayoutObject->setStyleWithWritingModeOfParent(std::move(partStyle)); |
| 306 } | 306 } |
| 307 | 307 |
| 308 IntRect LayoutScrollbar::buttonRect(ScrollbarPart partType) const { | 308 IntRect LayoutScrollbar::buttonRect(ScrollbarPart partType) const { |
| 309 LayoutScrollbarPart* partLayoutObject = m_parts.get(partType); | 309 LayoutScrollbarPart* partLayoutObject = m_parts.get(partType); |
| 310 if (!partLayoutObject) | 310 if (!partLayoutObject) |
| 311 return IntRect(); | 311 return IntRect(); |
| 312 | 312 |
| 313 partLayoutObject->layout(); | 313 partLayoutObject->layout(); |
| 314 | 314 |
| 315 bool isHorizontal = orientation() == HorizontalScrollbar; | 315 bool isHorizontal = orientation() == HorizontalScrollbar; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 } | 406 } |
| 407 | 407 |
| 408 void LayoutScrollbar::invalidateDisplayItemClientsOfScrollbarParts() { | 408 void LayoutScrollbar::invalidateDisplayItemClientsOfScrollbarParts() { |
| 409 for (auto& part : m_parts) | 409 for (auto& part : m_parts) |
| 410 ObjectPaintInvalidator(*part.value) | 410 ObjectPaintInvalidator(*part.value) |
| 411 .invalidateDisplayItemClientsIncludingNonCompositingDescendants( | 411 .invalidateDisplayItemClientsIncludingNonCompositingDescendants( |
| 412 PaintInvalidationScroll); | 412 PaintInvalidationScroll); |
| 413 } | 413 } |
| 414 | 414 |
| 415 } // namespace blink | 415 } // namespace blink |
| OLD | NEW |