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

Side by Side Diff: Source/core/platform/chromium/FramelessScrollView.cpp

Issue 59333002: Make select drop down popup RTL aware (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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) 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 h->invalidateContentsAndRootView(rect); 78 h->invalidateContentsAndRootView(rect);
79 } 79 }
80 80
81 HostWindow* FramelessScrollView::hostWindow() const 81 HostWindow* FramelessScrollView::hostWindow() const
82 { 82 {
83 return const_cast<FramelessScrollViewClient*>(m_client); 83 return const_cast<FramelessScrollViewClient*>(m_client);
84 } 84 }
85 85
86 IntRect FramelessScrollView::windowClipRect(bool clipToContents) const 86 IntRect FramelessScrollView::windowClipRect(bool clipToContents) const
87 { 87 {
88 return contentsToWindow(visibleContentRect(clipToContents ? ExcludeScrollbar s : IncludeScrollbars)); 88 IntRect clipRect = visibleContentRect(clipToContents ? ExcludeScrollbars : I ncludeScrollbars);
89 if (shouldPlaceVerticalScrollbarOnLeft() && verticalScrollbar())
90 clipRect.move(verticalScrollbar()->width(), 0);
91 return contentsToWindow(clipRect);
89 } 92 }
90 93
91 void FramelessScrollView::paintContents(GraphicsContext*, const IntRect&) 94 void FramelessScrollView::paintContents(GraphicsContext*, const IntRect&)
92 { 95 {
93 } 96 }
94 97
95 void FramelessScrollView::contentsResized() 98 void FramelessScrollView::contentsResized()
96 { 99 {
97 } 100 }
98 101
99 void FramelessScrollView::scrollbarExistenceDidChange() 102 void FramelessScrollView::scrollbarExistenceDidChange()
100 { 103 {
101 } 104 }
102 105
103 } // namespace WebCore 106 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698