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

Side by Side Diff: Source/core/rendering/RenderMediaControlElements.cpp

Issue 163513002: Have RenderBlockFlow sub-classes' methods call their super-class method properly. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. 3 * Copyright (C) 2012 Google Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 25 matching lines...) Expand all
36 namespace WebCore { 36 namespace WebCore {
37 37
38 RenderTextTrackContainerElement::RenderTextTrackContainerElement(Element* elemen t) 38 RenderTextTrackContainerElement::RenderTextTrackContainerElement(Element* elemen t)
39 : RenderBlockFlow(element) 39 : RenderBlockFlow(element)
40 { 40 {
41 } 41 }
42 42
43 void RenderTextTrackContainerElement::layout() 43 void RenderTextTrackContainerElement::layout()
44 { 44 {
45 LayoutRectRecorder recorder(*this); 45 LayoutRectRecorder recorder(*this);
46 RenderBlock::layout(); 46 RenderBlockFlow::layout();
47 if (style()->display() == NONE) 47 if (style()->display() == NONE)
48 return; 48 return;
49 49
50 ASSERT(mediaControlElementType(node()) == MediaTextTrackDisplayContainer); 50 ASSERT(mediaControlElementType(node()) == MediaTextTrackDisplayContainer);
51 51
52 DeprecatedScheduleStyleRecalcDuringLayout marker(node()->document().lifecycl e()); 52 DeprecatedScheduleStyleRecalcDuringLayout marker(node()->document().lifecycl e());
53 53
54 LayoutStateDisabler layoutStateDisabler(view()); 54 LayoutStateDisabler layoutStateDisabler(view());
55 static_cast<MediaControlTextTrackContainerElement*>(node())->updateSizes(); 55 static_cast<MediaControlTextTrackContainerElement*>(node())->updateSizes();
56 } 56 }
57 57
58 } // namespace WebCore 58 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderMarquee.cpp ('k') | Source/core/rendering/RenderMultiColumnBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698