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

Side by Side Diff: Source/core/paint/ViewPainter.cpp

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/paint/ViewPainter.h" 6 #include "core/paint/ViewPainter.h"
7 7
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/paint/BlockPainter.h" 9 #include "core/paint/BlockPainter.h"
10 #include "core/paint/GraphicsContextAnnotator.h" 10 #include "core/paint/GraphicsContextAnnotator.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const RenderStyle& style = rootBox->styleRef(); 45 const RenderStyle& style = rootBox->styleRef();
46 if (style.visibility() != VISIBLE 46 if (style.visibility() != VISIBLE
47 || style.opacity() != 1 47 || style.opacity() != 1
48 || style.hasFilter() 48 || style.hasFilter()
49 || style.hasTransform()) 49 || style.hasTransform())
50 return false; 50 return false;
51 51
52 if (rootBox->compositingState() == PaintsIntoOwnBacking) 52 if (rootBox->compositingState() == PaintsIntoOwnBacking)
53 return false; 53 return false;
54 54
55 const RenderObject* rootRenderer = rootBox->rendererForRootBackground(); 55 const LayoutObject* rootRenderer = rootBox->rendererForRootBackground();
56 if (rootRenderer->style()->backgroundClip() == TextFillBox) 56 if (rootRenderer->style()->backgroundClip() == TextFillBox)
57 return false; 57 return false;
58 58
59 return true; 59 return true;
60 } 60 }
61 61
62 void ViewPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo) 62 void ViewPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo)
63 { 63 {
64 if (m_renderView.document().ownerElement() || !m_renderView.view()) 64 if (m_renderView.document().ownerElement() || !m_renderView.view())
65 return; 65 return;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 { 104 {
105 ASSERT(rootBox); 105 ASSERT(rootBox);
106 // CSS Boxes always fill the viewport background (see paintRootBoxFillLayers ) 106 // CSS Boxes always fill the viewport background (see paintRootBoxFillLayers )
107 if (!rootBox->isSVG()) 107 if (!rootBox->isSVG())
108 return true; 108 return true;
109 109
110 return rootBox->frameRect().contains(m_renderView.frameRect()); 110 return rootBox->frameRect().contains(m_renderView.frameRect());
111 } 111 }
112 112
113 } // namespace blink 113 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/paint/ViewDisplayListTest.cpp ('k') | Source/core/plugins/PluginOcclusionSupport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698