| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "core/frame/UseCounter.h" | 29 #include "core/frame/UseCounter.h" |
| 30 #include "core/layout/LayoutScrollbar.h" | 30 #include "core/layout/LayoutScrollbar.h" |
| 31 #include "core/layout/LayoutScrollbarTheme.h" | 31 #include "core/layout/LayoutScrollbarTheme.h" |
| 32 #include "core/layout/LayoutView.h" | 32 #include "core/layout/LayoutView.h" |
| 33 #include "platform/LengthFunctions.h" | 33 #include "platform/LengthFunctions.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 LayoutScrollbarPart::LayoutScrollbarPart(LayoutScrollbar* scrollbar, ScrollbarPa
rt part) | 37 LayoutScrollbarPart::LayoutScrollbarPart(LayoutScrollbar* scrollbar, ScrollbarPa
rt part) |
| 38 : LayoutBlock(0) | 38 : LayoutBlock(nullptr) |
| 39 , m_scrollbar(scrollbar) | 39 , m_scrollbar(scrollbar) |
| 40 , m_part(part) | 40 , m_part(part) |
| 41 { | 41 { |
| 42 } | 42 } |
| 43 | 43 |
| 44 LayoutScrollbarPart::~LayoutScrollbarPart() | 44 LayoutScrollbarPart::~LayoutScrollbarPart() |
| 45 { | 45 { |
| 46 } | 46 } |
| 47 | 47 |
| 48 static void recordScrollbarPartStats(Document& document, ScrollbarPart part) | 48 static void recordScrollbarPartStats(Document& document, ScrollbarPart part) |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 return; | 193 return; |
| 194 } | 194 } |
| 195 } | 195 } |
| 196 | 196 |
| 197 LayoutBlock::imageChanged(image, rect); | 197 LayoutBlock::imageChanged(image, rect); |
| 198 } | 198 } |
| 199 } | 199 } |
| 200 | 200 |
| 201 LayoutObject* LayoutScrollbarPart::layoutObjectOwningScrollbar() const | 201 LayoutObject* LayoutScrollbarPart::layoutObjectOwningScrollbar() const |
| 202 { | 202 { |
| 203 if (!m_scrollbar) | 203 return (!m_scrollbar) ? nullptr : m_scrollbar->owningLayoutObject(); |
| 204 return 0; | |
| 205 return m_scrollbar->owningLayoutObject(); | |
| 206 } | 204 } |
| 207 | 205 |
| 208 } | 206 } |
| OLD | NEW |