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

Side by Side Diff: third_party/WebKit/Source/core/paint/SVGForeignObjectPainter.cpp

Issue 1798263002: Rename isTreatedAsOrStackingContext to isStacked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Markdown, isStacked, paintAllPhasesAtomically Created 4 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 // 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 "core/paint/SVGForeignObjectPainter.h" 5 #include "core/paint/SVGForeignObjectPainter.h"
6 6
7 #include "core/layout/svg/LayoutSVGForeignObject.h" 7 #include "core/layout/svg/LayoutSVGForeignObject.h"
8 #include "core/layout/svg/SVGLayoutSupport.h" 8 #include "core/layout/svg/SVGLayoutSupport.h"
9 #include "core/paint/BlockPainter.h" 9 #include "core/paint/BlockPainter.h"
10 #include "core/paint/FloatClipRecorder.h" 10 #include "core/paint/FloatClipRecorder.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 if (SVGLayoutSupport::isOverflowHidden(&m_layoutSVGForeignObject)) 48 if (SVGLayoutSupport::isOverflowHidden(&m_layoutSVGForeignObject))
49 clipRecorder.emplace(paintInfoBeforeFiltering.context, m_layoutSVGForeig nObject, paintInfoBeforeFiltering.phase, m_layoutSVGForeignObject.viewportRect() ); 49 clipRecorder.emplace(paintInfoBeforeFiltering.context, m_layoutSVGForeig nObject, paintInfoBeforeFiltering.phase, m_layoutSVGForeignObject.viewportRect() );
50 50
51 SVGPaintContext paintContext(m_layoutSVGForeignObject, paintInfoBeforeFilter ing); 51 SVGPaintContext paintContext(m_layoutSVGForeignObject, paintInfoBeforeFilter ing);
52 bool continueRendering = true; 52 bool continueRendering = true;
53 if (paintContext.paintInfo().phase == PaintPhaseForeground) 53 if (paintContext.paintInfo().phase == PaintPhaseForeground)
54 continueRendering = paintContext.applyClipMaskAndFilterIfNecessary(); 54 continueRendering = paintContext.applyClipMaskAndFilterIfNecessary();
55 55
56 if (continueRendering) { 56 if (continueRendering) {
57 // Paint all phases of FO elements atomically as though the FO element e stablished its own stacking context. 57 // Paint all phases of FO elements atomically as though the FO element e stablished its own stacking context.
58 // The delegate forwards calls to paint() in LayoutObject::paintAsPseudo StackingContext() to 58 // The delegate forwards calls to paint() in LayoutObject::paintAllPhase sAtomically() to
59 // BlockPainter::paint(), instead of m_layoutSVGForeignObject.paint() (w hich would call this method again). 59 // BlockPainter::paint(), instead of m_layoutSVGForeignObject.paint() (w hich would call this method again).
60 BlockPainterDelegate delegate(m_layoutSVGForeignObject); 60 BlockPainterDelegate delegate(m_layoutSVGForeignObject);
61 ObjectPainter(delegate).paintAsPseudoStackingContext(paintContext.paintI nfo(), LayoutPoint()); 61 ObjectPainter(delegate).paintAllPhasesAtomically(paintContext.paintInfo( ), LayoutPoint());
62 } 62 }
63 } 63 }
64 64
65 } // namespace blink 65 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698