Simplify isOverlayScrollbar() logic
Created attachment 267493 [details] Patch
https://trac.webkit.org/r194184
Comment on attachment 267493 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=267493&action=review > Source/WebCore/platform/ScrollableArea.cpp:523 > + return IntSize( > + verticalScrollbar() ? verticalScrollbar()->occupiedWidth() : 0, > + horizontalScrollbar() ? horizontalScrollbar()->occupiedHeight() : 0); Here’s how I would write this: return { verticalScrollbar() ? verticalScrollbar()->occupiedWidth() : 0, horizontalScrollbar() ? horizontalScrollbar()->occupiedHeight() : 0 }; I like reducing the number of times we have to utter the type name IntSize, and I also like the formatting better with the braces.