| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 #include "core/editing/commands/TypingCommand.h" | 55 #include "core/editing/commands/TypingCommand.h" |
| 56 #include "core/editing/commands/UndoStack.h" | 56 #include "core/editing/commands/UndoStack.h" |
| 57 #include "core/editing/iterators/SearchBuffer.h" | 57 #include "core/editing/iterators/SearchBuffer.h" |
| 58 #include "core/editing/markers/DocumentMarkerController.h" | 58 #include "core/editing/markers/DocumentMarkerController.h" |
| 59 #include "core/editing/serializers/Serialization.h" | 59 #include "core/editing/serializers/Serialization.h" |
| 60 #include "core/editing/spellcheck/SpellChecker.h" | 60 #include "core/editing/spellcheck/SpellChecker.h" |
| 61 #include "core/events/ClipboardEvent.h" | 61 #include "core/events/ClipboardEvent.h" |
| 62 #include "core/events/KeyboardEvent.h" | 62 #include "core/events/KeyboardEvent.h" |
| 63 #include "core/events/ScopedEventQueue.h" | 63 #include "core/events/ScopedEventQueue.h" |
| 64 #include "core/events/TextEvent.h" | 64 #include "core/events/TextEvent.h" |
| 65 #include "core/fetch/ImageResource.h" | 65 #include "core/fetch/ImageResourceContent.h" |
| 66 #include "core/fetch/ResourceFetcher.h" | 66 #include "core/fetch/ResourceFetcher.h" |
| 67 #include "core/frame/FrameView.h" | 67 #include "core/frame/FrameView.h" |
| 68 #include "core/frame/LocalFrame.h" | 68 #include "core/frame/LocalFrame.h" |
| 69 #include "core/frame/Settings.h" | 69 #include "core/frame/Settings.h" |
| 70 #include "core/frame/UseCounter.h" | 70 #include "core/frame/UseCounter.h" |
| 71 #include "core/html/HTMLBodyElement.h" | 71 #include "core/html/HTMLBodyElement.h" |
| 72 #include "core/html/HTMLCanvasElement.h" | 72 #include "core/html/HTMLCanvasElement.h" |
| 73 #include "core/html/HTMLHtmlElement.h" | 73 #include "core/html/HTMLHtmlElement.h" |
| 74 #include "core/html/HTMLImageElement.h" | 74 #include "core/html/HTMLImageElement.h" |
| 75 #include "core/html/HTMLInputElement.h" | 75 #include "core/html/HTMLInputElement.h" |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 if (layoutObject->isCanvas()) { | 483 if (layoutObject->isCanvas()) { |
| 484 return toHTMLCanvasElement(node).copiedImage( | 484 return toHTMLCanvasElement(node).copiedImage( |
| 485 FrontBuffer, PreferNoAcceleration, SnapshotReasonCopyToClipboard); | 485 FrontBuffer, PreferNoAcceleration, SnapshotReasonCopyToClipboard); |
| 486 } | 486 } |
| 487 | 487 |
| 488 if (layoutObject->isImage()) { | 488 if (layoutObject->isImage()) { |
| 489 LayoutImage* layoutImage = toLayoutImage(layoutObject); | 489 LayoutImage* layoutImage = toLayoutImage(layoutObject); |
| 490 if (!layoutImage) | 490 if (!layoutImage) |
| 491 return nullptr; | 491 return nullptr; |
| 492 | 492 |
| 493 ImageResource* cachedImage = layoutImage->cachedImage(); | 493 ImageResourceContent* cachedImage = layoutImage->cachedImage(); |
| 494 if (!cachedImage || cachedImage->errorOccurred()) | 494 if (!cachedImage || cachedImage->errorOccurred()) |
| 495 return nullptr; | 495 return nullptr; |
| 496 return cachedImage->getImage(); | 496 return cachedImage->getImage(); |
| 497 } | 497 } |
| 498 | 498 |
| 499 return nullptr; | 499 return nullptr; |
| 500 } | 500 } |
| 501 | 501 |
| 502 static void writeImageNodeToPasteboard(Pasteboard* pasteboard, | 502 static void writeImageNodeToPasteboard(Pasteboard* pasteboard, |
| 503 Node* node, | 503 Node* node, |
| (...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1661 } | 1661 } |
| 1662 | 1662 |
| 1663 DEFINE_TRACE(Editor) { | 1663 DEFINE_TRACE(Editor) { |
| 1664 visitor->trace(m_frame); | 1664 visitor->trace(m_frame); |
| 1665 visitor->trace(m_lastEditCommand); | 1665 visitor->trace(m_lastEditCommand); |
| 1666 visitor->trace(m_undoStack); | 1666 visitor->trace(m_undoStack); |
| 1667 visitor->trace(m_mark); | 1667 visitor->trace(m_mark); |
| 1668 } | 1668 } |
| 1669 | 1669 |
| 1670 } // namespace blink | 1670 } // namespace blink |
| OLD | NEW |