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

Unified Diff: third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h

Issue 2702243003: Disallow cross-thread Persistent<> read access. (Closed)
Patch Set: rebased upto r451733 Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h
diff --git a/third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h b/third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h
index 5cb907972b0a7f83f55039c8ac81d1e5ed1d52fb..1547841b94ed21f3b9391dc72f7bbad7ad52ee1c 100644
--- a/third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h
+++ b/third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h
@@ -69,7 +69,11 @@ class PLATFORM_EXPORT WebScrollbarImpl final : public WebScrollbar {
private:
explicit WebScrollbarImpl(Scrollbar*);
- Persistent<Scrollbar> m_scrollbar;
+ // Accessed by main and compositor threads, e.g., the compositor thread
+ // checks |orientation()|.
+ //
+ // TODO: minimize or avoid cross-thread use, if possible.
+ CrossThreadPersistent<Scrollbar> m_scrollbar;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698