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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalFrame.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 /* 1 /*
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Simon Hausmann <hausmann@kde.org> 5 * 2000 Simon Hausmann <hausmann@kde.org>
6 * 2000 Stefan Schimanski <1Stein@gmx.de> 6 * 2000 Stefan Schimanski <1Stein@gmx.de>
7 * 2001 George Staikos <staikos@kde.org> 7 * 2001 George Staikos <staikos@kde.org>
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com>
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 PassOwnPtr<DragImage> LocalFrame::nodeImage(Node& node) 626 PassOwnPtr<DragImage> LocalFrame::nodeImage(Node& node)
627 { 627 {
628 m_view->updateAllLifecyclePhases(); 628 m_view->updateAllLifecyclePhases();
629 LayoutObject* layoutObject = node.layoutObject(); 629 LayoutObject* layoutObject = node.layoutObject();
630 if (!layoutObject) 630 if (!layoutObject)
631 return nullptr; 631 return nullptr;
632 632
633 // Paint starting at the nearest self painting layer, clipped to the object itself. 633 // Paint starting at the nearest self painting layer, clipped to the object itself.
634 // TODO(pdr): This will also paint the content behind the object if the obje ct contains 634 // TODO(pdr): This will also paint the content behind the object if the obje ct contains
635 // transparency but the layer is opaque. We could directly call layoutObject ->paint(...) 635 // transparency but the layer is opaque. We could directly call layoutObject ->paint(...)
636 // (see ObjectPainter::paintAsPseudoStackingContext) but this would skip sel f-painting children. 636 // (see ObjectPainter::paintAllPhasesAtomically) but this would skip self-pa inting children.
637 PaintLayer* layer = layoutObject->enclosingLayer()->enclosingSelfPaintingLay er(); 637 PaintLayer* layer = layoutObject->enclosingLayer()->enclosingSelfPaintingLay er();
638 IntRect absoluteBoundingBox = layoutObject->absoluteBoundingBoxRectIncluding Descendants(); 638 IntRect absoluteBoundingBox = layoutObject->absoluteBoundingBoxRectIncluding Descendants();
639 FloatRect boundingBox = layer->layoutObject()->absoluteToLocalQuad(FloatQuad (absoluteBoundingBox), UseTransforms).boundingBox(); 639 FloatRect boundingBox = layer->layoutObject()->absoluteToLocalQuad(FloatQuad (absoluteBoundingBox), UseTransforms).boundingBox();
640 DragImageBuilder dragImageBuilder(this, boundingBox, &node); 640 DragImageBuilder dragImageBuilder(this, boundingBox, &node);
641 { 641 {
642 PaintLayerPaintingInfo paintingInfo(layer, LayoutRect(boundingBox), Glob alPaintFlattenCompositingLayers, LayoutSize(), 0); 642 PaintLayerPaintingInfo paintingInfo(layer, LayoutRect(boundingBox), Glob alPaintFlattenCompositingLayers, LayoutSize(), 0);
643 PaintLayerFlags flags = PaintLayerHaveTransparency | PaintLayerAppliedTr ansform | PaintLayerUncachedClipRects; 643 PaintLayerFlags flags = PaintLayerHaveTransparency | PaintLayerAppliedTr ansform | PaintLayerUncachedClipRects;
644 PaintLayerPainter(*layer).paintLayer(dragImageBuilder.context(), paintin gInfo, flags); 644 PaintLayerPainter(*layer).paintLayer(dragImageBuilder.context(), paintin gInfo, flags);
645 } 645 }
646 return dragImageBuilder.createImage(); 646 return dragImageBuilder.createImage();
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 { 869 {
870 m_frame->disableNavigation(); 870 m_frame->disableNavigation();
871 } 871 }
872 872
873 FrameNavigationDisabler::~FrameNavigationDisabler() 873 FrameNavigationDisabler::~FrameNavigationDisabler()
874 { 874 {
875 m_frame->enableNavigation(); 875 m_frame->enableNavigation();
876 } 876 }
877 877
878 } // namespace blink 878 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698