Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.cpp

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 { 50 {
51 return adoptRefWillBeNoop(new Scrollbar(scrollableArea, orientation, size, n ullptr, theme)); 51 return adoptRefWillBeNoop(new Scrollbar(scrollableArea, orientation, size, n ullptr, theme));
52 } 52 }
53 53
54 Scrollbar::Scrollbar(ScrollableArea* scrollableArea, ScrollbarOrientation orient ation, ScrollbarControlSize controlSize, HostWindow* hostWindow, ScrollbarTheme* theme) 54 Scrollbar::Scrollbar(ScrollableArea* scrollableArea, ScrollbarOrientation orient ation, ScrollbarControlSize controlSize, HostWindow* hostWindow, ScrollbarTheme* theme)
55 : m_scrollableArea(scrollableArea) 55 : m_scrollableArea(scrollableArea)
56 , m_orientation(orientation) 56 , m_orientation(orientation)
57 , m_controlSize(controlSize) 57 , m_controlSize(controlSize)
58 , m_theme(theme ? *theme : ScrollbarTheme::theme()) 58 , m_theme(theme ? *theme : ScrollbarTheme::theme())
59 , m_hostWindow(hostWindow) 59 , m_hostWindow(hostWindow)
60 , m_screenId(0)
60 , m_visibleSize(0) 61 , m_visibleSize(0)
61 , m_totalSize(0) 62 , m_totalSize(0)
62 , m_currentPos(0) 63 , m_currentPos(0)
63 , m_dragOrigin(0) 64 , m_dragOrigin(0)
64 , m_hoveredPart(NoPart) 65 , m_hoveredPart(NoPart)
65 , m_pressedPart(NoPart) 66 , m_pressedPart(NoPart)
66 , m_pressedPos(0) 67 , m_pressedPos(0)
67 , m_scrollPos(0) 68 , m_scrollPos(0)
68 , m_draggingDocument(false) 69 , m_draggingDocument(false)
69 , m_documentDragPos(0) 70 , m_documentDragPos(0)
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 invalidParts = AllParts; 580 invalidParts = AllParts;
580 if (invalidParts & ~ThumbPart) 581 if (invalidParts & ~ThumbPart)
581 m_trackNeedsRepaint = true; 582 m_trackNeedsRepaint = true;
582 if (invalidParts & ThumbPart) 583 if (invalidParts & ThumbPart)
583 m_thumbNeedsRepaint = true; 584 m_thumbNeedsRepaint = true;
584 if (m_scrollableArea) 585 if (m_scrollableArea)
585 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation()); 586 m_scrollableArea->setScrollbarNeedsPaintInvalidation(orientation());
586 } 587 }
587 588
588 } // namespace blink 589 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698