OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 21 matching lines...) Expand all Loading... |
32 #define SmartClip_h | 32 #define SmartClip_h |
33 | 33 |
34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
35 #include "core/dom/Node.h" | 35 #include "core/dom/Node.h" |
36 #include "core/frame/LocalFrame.h" | 36 #include "core/frame/LocalFrame.h" |
37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class CORE_EXPORT SmartClipData { | 41 class CORE_EXPORT SmartClipData { |
| 42 STACK_ALLOCATED(); |
42 public: | 43 public: |
43 SmartClipData() | 44 SmartClipData() |
44 : m_isEmpty(true) | 45 : m_isEmpty(true) |
45 { | 46 { |
46 } | 47 } |
47 | 48 |
48 SmartClipData(Node* node, IntRect rect, String string) | 49 SmartClipData(Node* node, IntRect rect, String string) |
49 : m_isEmpty(!node) | 50 : m_isEmpty(!node) |
50 , m_rectInViewport(rect) | 51 , m_rectInViewport(rect) |
51 , m_string(string) | 52 , m_string(string) |
(...skipping 29 matching lines...) Expand all Loading... |
81 bool shouldSkipBackgroundImage(Node*); | 82 bool shouldSkipBackgroundImage(Node*); |
82 void collectOverlappingChildNodes(Node* parentNode, const IntRect& cropRectI
nViewport, WillBeHeapVector<RawPtrWillBeMember<Node>>& overlappingNodeInfoTable)
; | 83 void collectOverlappingChildNodes(Node* parentNode, const IntRect& cropRectI
nViewport, WillBeHeapVector<RawPtrWillBeMember<Node>>& overlappingNodeInfoTable)
; |
83 String extractTextFromNode(Node*); | 84 String extractTextFromNode(Node*); |
84 | 85 |
85 RefPtrWillBeMember<LocalFrame> m_frame; | 86 RefPtrWillBeMember<LocalFrame> m_frame; |
86 }; | 87 }; |
87 | 88 |
88 } // namespace blink | 89 } // namespace blink |
89 | 90 |
90 #endif // SmartClip_h | 91 #endif // SmartClip_h |
OLD | NEW |