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

Side by Side Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 197283025: Use new is*Element() helper functions more in rendering code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/TextAutosizer.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 static RenderVideo* findFullscreenVideoRenderer(Document& document) 315 static RenderVideo* findFullscreenVideoRenderer(Document& document)
316 { 316 {
317 Element* fullscreenElement = FullscreenElementStack::fullscreenElementFrom(d ocument); 317 Element* fullscreenElement = FullscreenElementStack::fullscreenElementFrom(d ocument);
318 while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) { 318 while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) {
319 Document* contentDocument = toHTMLFrameOwnerElement(fullscreenElement)-> contentDocument(); 319 Document* contentDocument = toHTMLFrameOwnerElement(fullscreenElement)-> contentDocument();
320 if (!contentDocument) 320 if (!contentDocument)
321 return 0; 321 return 0;
322 fullscreenElement = FullscreenElementStack::fullscreenElementFrom(*conte ntDocument); 322 fullscreenElement = FullscreenElementStack::fullscreenElementFrom(*conte ntDocument);
323 } 323 }
324 if (!fullscreenElement || !fullscreenElement->hasTagName(videoTag)) 324 if (!isHTMLVideoElement(fullscreenElement))
325 return 0; 325 return 0;
326 RenderObject* renderer = fullscreenElement->renderer(); 326 RenderObject* renderer = fullscreenElement->renderer();
327 if (!renderer) 327 if (!renderer)
328 return 0; 328 return 0;
329 return toRenderVideo(renderer); 329 return toRenderVideo(renderer);
330 } 330 }
331 331
332 void RenderLayerCompositor::finishCompositingUpdateForFrameTree(LocalFrame* fram e) 332 void RenderLayerCompositor::finishCompositingUpdateForFrameTree(LocalFrame* fram e)
333 { 333 {
334 for (LocalFrame* child = frame->tree().firstChild(); child; child = child->t ree().nextSibling()) 334 for (LocalFrame* child = frame->tree().firstChild(); child; child = child->t ree().nextSibling())
(...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after
2243 } else if (graphicsLayer == m_scrollLayer.get()) { 2243 } else if (graphicsLayer == m_scrollLayer.get()) {
2244 name = "LocalFrame Scrolling Layer"; 2244 name = "LocalFrame Scrolling Layer";
2245 } else { 2245 } else {
2246 ASSERT_NOT_REACHED(); 2246 ASSERT_NOT_REACHED();
2247 } 2247 }
2248 2248
2249 return name; 2249 return name;
2250 } 2250 }
2251 2251
2252 } // namespace WebCore 2252 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/TextAutosizer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698