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

Side by Side Diff: Source/platform/scroll/FramelessScrollView.cpp

Issue 341543002: Reland 176261: Fix for select PopupMenuList appearance in rtl mode with overlay-scrollbar enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/web/PopupListBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved. 2 * Copyright (c) 2008, 2009, Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 73 }
74 74
75 HostWindow* FramelessScrollView::hostWindow() const 75 HostWindow* FramelessScrollView::hostWindow() const
76 { 76 {
77 return const_cast<FramelessScrollViewClient*>(m_client); 77 return const_cast<FramelessScrollViewClient*>(m_client);
78 } 78 }
79 79
80 IntRect FramelessScrollView::windowClipRect(IncludeScrollbarsInRect scrollbarInc lusion) const 80 IntRect FramelessScrollView::windowClipRect(IncludeScrollbarsInRect scrollbarInc lusion) const
81 { 81 {
82 IntRect clipRect = visibleContentRect(scrollbarInclusion); 82 IntRect clipRect = visibleContentRect(scrollbarInclusion);
83 if (shouldPlaceVerticalScrollbarOnLeft() && verticalScrollbar()) 83 if (shouldPlaceVerticalScrollbarOnLeft() && verticalScrollbar() && !vertical Scrollbar()->isOverlayScrollbar())
84 clipRect.move(verticalScrollbar()->width(), 0); 84 clipRect.move(verticalScrollbar()->width(), 0);
85 return contentsToWindow(clipRect); 85 return contentsToWindow(clipRect);
86 } 86 }
87 87
88 void FramelessScrollView::paintContents(GraphicsContext*, const IntRect&) 88 void FramelessScrollView::paintContents(GraphicsContext*, const IntRect&)
89 { 89 {
90 } 90 }
91 91
92 void FramelessScrollView::contentsResized() 92 void FramelessScrollView::contentsResized()
93 { 93 {
94 } 94 }
95 95
96 void FramelessScrollView::scrollbarExistenceDidChange() 96 void FramelessScrollView::scrollbarExistenceDidChange()
97 { 97 {
98 } 98 }
99 99
100 } // namespace WebCore 100 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/web/PopupListBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698