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

Side by Side Diff: sky/engine/core/dom/Element.cpp

Issue 1190123003: Decouple Canvas from DisplayList and map Picture and PictureRecorder more directly to their Skia co… (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebased version of previous patch Created 5 years, 6 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #include "sky/engine/core/frame/LocalFrame.h" 69 #include "sky/engine/core/frame/LocalFrame.h"
70 #include "sky/engine/core/frame/Settings.h" 70 #include "sky/engine/core/frame/Settings.h"
71 #include "sky/engine/core/html/HTMLElement.h" 71 #include "sky/engine/core/html/HTMLElement.h"
72 #include "sky/engine/core/html/HTMLTemplateElement.h" 72 #include "sky/engine/core/html/HTMLTemplateElement.h"
73 #include "sky/engine/core/html/parser/HTMLDocumentParser.h" 73 #include "sky/engine/core/html/parser/HTMLDocumentParser.h"
74 #include "sky/engine/core/html/parser/HTMLParserIdioms.h" 74 #include "sky/engine/core/html/parser/HTMLParserIdioms.h"
75 #include "sky/engine/core/layout/LayoutCallback.h" 75 #include "sky/engine/core/layout/LayoutCallback.h"
76 #include "sky/engine/core/page/ChromeClient.h" 76 #include "sky/engine/core/page/ChromeClient.h"
77 #include "sky/engine/core/page/FocusController.h" 77 #include "sky/engine/core/page/FocusController.h"
78 #include "sky/engine/core/page/Page.h" 78 #include "sky/engine/core/page/Page.h"
79 #include "sky/engine/core/painting/Canvas.h"
79 #include "sky/engine/core/painting/PaintingCallback.h" 80 #include "sky/engine/core/painting/PaintingCallback.h"
80 #include "sky/engine/core/painting/PaintingTasks.h" 81 #include "sky/engine/core/painting/PaintingTasks.h"
81 #include "sky/engine/core/painting/PictureRecorder.h" 82 #include "sky/engine/core/painting/PictureRecorder.h"
82 #include "sky/engine/core/rendering/RenderCustomLayout.h" 83 #include "sky/engine/core/rendering/RenderCustomLayout.h"
83 #include "sky/engine/core/rendering/RenderLayer.h" 84 #include "sky/engine/core/rendering/RenderLayer.h"
84 #include "sky/engine/core/rendering/RenderView.h" 85 #include "sky/engine/core/rendering/RenderView.h"
85 #include "sky/engine/platform/EventDispatchForbiddenScope.h" 86 #include "sky/engine/platform/EventDispatchForbiddenScope.h"
86 #include "sky/engine/tonic/dart_state.h" 87 #include "sky/engine/tonic/dart_state.h"
87 #include "sky/engine/wtf/BitVector.h" 88 #include "sky/engine/wtf/BitVector.h"
88 #include "sky/engine/wtf/HashFunctions.h" 89 #include "sky/engine/wtf/HashFunctions.h"
(...skipping 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after
1694 GraphicsContext context(canvas->skCanvas()); 1695 GraphicsContext context(canvas->skCanvas());
1695 1696
1696 // Very simplified painting to allow painting an arbitrary (layer-less) subt ree. 1697 // Very simplified painting to allow painting an arbitrary (layer-less) subt ree.
1697 Vector<RenderBox*> layers; 1698 Vector<RenderBox*> layers;
1698 PaintInfo paintInfo(&context, box->absoluteBoundingBoxRect(), box); 1699 PaintInfo paintInfo(&context, box->absoluteBoundingBoxRect(), box);
1699 box->paint(paintInfo, LayoutPoint(), layers); 1700 box->paint(paintInfo, LayoutPoint(), layers);
1700 // Note we're ignoring any layers encountered. 1701 // Note we're ignoring any layers encountered.
1701 } 1702 }
1702 1703
1703 } // namespace blink 1704 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698