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

Unified Diff: Source/core/html/shadow/MediaControls.cpp

Issue 1104243003: Oilpan: put ClientRect(List) on the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove transition types uses also Created 5 years, 8 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: Source/core/html/shadow/MediaControls.cpp
diff --git a/Source/core/html/shadow/MediaControls.cpp b/Source/core/html/shadow/MediaControls.cpp
index b0560f11dddbc156a7e77c71ccca1c75b39140a6..486168595d42c6d667301a7cbc196bcee9f41b1f 100644
--- a/Source/core/html/shadow/MediaControls.cpp
+++ b/Source/core/html/shadow/MediaControls.cpp
@@ -356,7 +356,7 @@ void MediaControls::refreshClosedCaptionsButtonVisibility()
static Element* elementFromCenter(Element& element)
{
- RefPtrWillBeRawPtr<ClientRect> clientRect = element.getBoundingClientRect();
+ ClientRect* clientRect = element.getBoundingClientRect();
int centerX = static_cast<int>((clientRect->left() + clientRect->right()) / 2);
int centerY = static_cast<int>((clientRect->top() + clientRect->bottom()) / 2);

Powered by Google App Engine
This is Rietveld 408576698