| OLD | NEW |
| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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/PaintingCallback.h" | 79 #include "sky/engine/core/painting/PaintingCallback.h" |
| 80 #include "sky/engine/core/painting/PaintingTasks.h" | 80 #include "sky/engine/core/painting/PaintingTasks.h" |
| 81 #include "sky/engine/core/painting/PictureRecorder.h" |
| 81 #include "sky/engine/core/rendering/RenderCustomLayout.h" | 82 #include "sky/engine/core/rendering/RenderCustomLayout.h" |
| 82 #include "sky/engine/core/rendering/RenderLayer.h" | 83 #include "sky/engine/core/rendering/RenderLayer.h" |
| 83 #include "sky/engine/core/rendering/RenderView.h" | 84 #include "sky/engine/core/rendering/RenderView.h" |
| 84 #include "sky/engine/platform/EventDispatchForbiddenScope.h" | 85 #include "sky/engine/platform/EventDispatchForbiddenScope.h" |
| 85 #include "sky/engine/tonic/dart_state.h" | 86 #include "sky/engine/tonic/dart_state.h" |
| 86 #include "sky/engine/wtf/BitVector.h" | 87 #include "sky/engine/wtf/BitVector.h" |
| 87 #include "sky/engine/wtf/HashFunctions.h" | 88 #include "sky/engine/wtf/HashFunctions.h" |
| 88 #include "sky/engine/wtf/text/CString.h" | 89 #include "sky/engine/wtf/text/CString.h" |
| 89 #include "sky/engine/wtf/text/StringBuilder.h" | 90 #include "sky/engine/wtf/text/StringBuilder.h" |
| 90 #include "sky/engine/wtf/text/TextPosition.h" | 91 #include "sky/engine/wtf/text/TextPosition.h" |
| (...skipping 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1678 if (idValue.isEmpty()) | 1679 if (idValue.isEmpty()) |
| 1679 return false; | 1680 return false; |
| 1680 if (treeScope().scopedStyleResolver().hasSelectorForId(idValue)) | 1681 if (treeScope().scopedStyleResolver().hasSelectorForId(idValue)) |
| 1681 return true; | 1682 return true; |
| 1682 // Host rules could also have effects. | 1683 // Host rules could also have effects. |
| 1683 if (ShadowRoot* shadowRoot = this->shadowRoot()) | 1684 if (ShadowRoot* shadowRoot = this->shadowRoot()) |
| 1684 return shadowRoot->scopedStyleResolver().hasSelectorForId(idValue); | 1685 return shadowRoot->scopedStyleResolver().hasSelectorForId(idValue); |
| 1685 return false; | 1686 return false; |
| 1686 } | 1687 } |
| 1687 | 1688 |
| 1689 void Element::paint(PictureRecorder* recorder) |
| 1690 { |
| 1691 if (!renderer() || !renderer()->isBox()) |
| 1692 return; |
| 1693 RenderBox* box = toRenderBox(renderer()); |
| 1694 GraphicsContext context(recorder->skCanvas()); |
| 1695 |
| 1696 // Very simplified painting to allow painting an arbitrary (layer-less) subt
ree. |
| 1697 Vector<RenderBox*> layers; |
| 1698 PaintInfo paintInfo(&context, box->absoluteBoundingBoxRect(), box); |
| 1699 box->paint(paintInfo, LayoutPoint(), layers); |
| 1700 // Note we're ignoring any layers encountered. |
| 1701 } |
| 1702 |
| 1688 } // namespace blink | 1703 } // namespace blink |
| OLD | NEW |