| OLD | NEW |
| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 #include "core/page/ChromeClient.h" | 62 #include "core/page/ChromeClient.h" |
| 63 #include "core/page/FocusController.h" | 63 #include "core/page/FocusController.h" |
| 64 #include "core/page/Page.h" | 64 #include "core/page/Page.h" |
| 65 #include "core/page/scrolling/ScrollingCoordinator.h" | 65 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 66 #include "core/paint/ObjectPainter.h" | 66 #include "core/paint/ObjectPainter.h" |
| 67 #include "core/paint/PaintInfo.h" | 67 #include "core/paint/PaintInfo.h" |
| 68 #include "core/paint/PaintLayer.h" | 68 #include "core/paint/PaintLayer.h" |
| 69 #include "core/paint/TransformRecorder.h" | 69 #include "core/paint/TransformRecorder.h" |
| 70 #include "core/svg/SVGDocumentExtensions.h" | 70 #include "core/svg/SVGDocumentExtensions.h" |
| 71 #include "platform/DragImage.h" | 71 #include "platform/DragImage.h" |
| 72 #include "platform/JSONValues.h" |
| 72 #include "platform/PluginScriptForbiddenScope.h" | 73 #include "platform/PluginScriptForbiddenScope.h" |
| 73 #include "platform/RuntimeEnabledFeatures.h" | 74 #include "platform/RuntimeEnabledFeatures.h" |
| 74 #include "platform/ScriptForbiddenScope.h" | 75 #include "platform/ScriptForbiddenScope.h" |
| 75 #include "platform/graphics/GraphicsContext.h" | 76 #include "platform/graphics/GraphicsContext.h" |
| 76 #include "platform/graphics/StaticBitmapImage.h" | 77 #include "platform/graphics/StaticBitmapImage.h" |
| 77 #include "platform/graphics/paint/ClipRecorder.h" | 78 #include "platform/graphics/paint/ClipRecorder.h" |
| 78 #include "platform/graphics/paint/PaintController.h" | 79 #include "platform/graphics/paint/PaintController.h" |
| 79 #include "platform/graphics/paint/SkPictureBuilder.h" | 80 #include "platform/graphics/paint/SkPictureBuilder.h" |
| 80 #include "platform/graphics/paint/TransformDisplayItem.h" | 81 #include "platform/graphics/paint/TransformDisplayItem.h" |
| 81 #include "platform/plugins/PluginData.h" | 82 #include "platform/plugins/PluginData.h" |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 void LocalFrame::removeSpellingMarkersUnderWords(const Vector<String>& words) | 729 void LocalFrame::removeSpellingMarkersUnderWords(const Vector<String>& words) |
| 729 { | 730 { |
| 730 spellChecker().removeSpellingMarkersUnderWords(words); | 731 spellChecker().removeSpellingMarkersUnderWords(words); |
| 731 } | 732 } |
| 732 | 733 |
| 733 String LocalFrame::layerTreeAsText(unsigned flags) const | 734 String LocalFrame::layerTreeAsText(unsigned flags) const |
| 734 { | 735 { |
| 735 if (contentLayoutItem().isNull()) | 736 if (contentLayoutItem().isNull()) |
| 736 return String(); | 737 return String(); |
| 737 | 738 |
| 738 return contentLayoutItem().compositor()->layerTreeAsText(static_cast<LayerTr
eeFlags>(flags)); | 739 RefPtr<JSONObject> layerTree = contentLayoutItem().compositor()->layerTreeAs
JSON(static_cast<LayerTreeFlags>(flags)); |
| 740 |
| 741 if (flags & LayerTreeIncludesPaintInvalidations) { |
| 742 RefPtr<JSONArray> objectPaintInvalidations = m_view->trackedObjectPaintI
nvalidationsAsJSON(); |
| 743 if (objectPaintInvalidations) { |
| 744 if (!layerTree) |
| 745 layerTree = JSONObject::create(); |
| 746 layerTree->setArray("objectPaintInvalidations", objectPaintInvalidat
ions); |
| 747 } |
| 748 } |
| 749 |
| 750 return layerTree ? layerTree->toPrettyJSONString() : String(); |
| 739 } | 751 } |
| 740 | 752 |
| 741 bool LocalFrame::shouldThrottleRendering() const | 753 bool LocalFrame::shouldThrottleRendering() const |
| 742 { | 754 { |
| 743 return view() && view()->shouldThrottleRendering(); | 755 return view() && view()->shouldThrottleRendering(); |
| 744 } | 756 } |
| 745 | 757 |
| 746 inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host, FrameO
wner* owner, ServiceRegistry* serviceRegistry) | 758 inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host, FrameO
wner* owner, ServiceRegistry* serviceRegistry) |
| 747 : Frame(client, host, owner) | 759 : Frame(client, host, owner) |
| 748 , m_loader(this) | 760 , m_loader(this) |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 m_frame->client()->frameBlameContext()->Enter(); | 826 m_frame->client()->frameBlameContext()->Enter(); |
| 815 } | 827 } |
| 816 | 828 |
| 817 ScopedFrameBlamer::~ScopedFrameBlamer() | 829 ScopedFrameBlamer::~ScopedFrameBlamer() |
| 818 { | 830 { |
| 819 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) | 831 if (m_frame && m_frame->client() && m_frame->client()->frameBlameContext()) |
| 820 m_frame->client()->frameBlameContext()->Leave(); | 832 m_frame->client()->frameBlameContext()->Leave(); |
| 821 } | 833 } |
| 822 | 834 |
| 823 } // namespace blink | 835 } // namespace blink |
| OLD | NEW |