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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutSlider.cpp

Issue 2709393004: Media Controls: Fix time updates when dragging from track not scrubber (Closed)
Patch Set: Created 3 years, 9 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) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Publicw 5 * modify it under the terms of the GNU Library General Publicw
6 * version 2 of the License, or (at your option) any later version. 6 * version 2 of the License, or (at your option) any later version.
7 * 7 *
8 * This library is distributed in the hope that it will be useful, 8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void LayoutSlider::layout() { 67 void LayoutSlider::layout() {
68 // FIXME: Find a way to cascade appearance. 68 // FIXME: Find a way to cascade appearance.
69 // http://webkit.org/b/62535 69 // http://webkit.org/b/62535
70 LayoutBox* thumbBox = sliderThumbElement()->layoutBox(); 70 LayoutBox* thumbBox = sliderThumbElement()->layoutBox();
71 if (thumbBox && thumbBox->isSliderThumb()) 71 if (thumbBox && thumbBox->isSliderThumb())
72 toLayoutSliderThumb(thumbBox)->updateAppearance(styleRef()); 72 toLayoutSliderThumb(thumbBox)->updateAppearance(styleRef());
73 73
74 LayoutFlexibleBox::layout(); 74 LayoutFlexibleBox::layout();
75 } 75 }
76 76
77 bool LayoutSlider::inDragMode() const {
78 return sliderThumbElement()->isActive();
79 }
80
81 } // namespace blink 77 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutSlider.h ('k') | third_party/WebKit/Source/core/layout/api/LayoutSliderItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698