Index: Source/core/frame/SmartClip.h |
diff --git a/Source/core/frame/SmartClip.h b/Source/core/frame/SmartClip.h |
index b0e922051106616b6b49329dc9a1f4836211f39d..21955a2b3eac80532e34a64b3be78e4a4e23aa9e 100644 |
--- a/Source/core/frame/SmartClip.h |
+++ b/Source/core/frame/SmartClip.h |
@@ -39,11 +39,12 @@ namespace WebCore { |
class SmartClipData { |
public: |
SmartClipData() |
+ : m_isEmpty(true) |
{ |
} |
SmartClipData(Node* node, IntRect rect, String string) |
- : m_node(node) |
+ : m_isEmpty(!node) |
, m_rect(rect) |
, m_string(string) |
{ |
@@ -52,7 +53,7 @@ public: |
String toString(); |
private: |
- RefPtr<Node> m_node; |
+ bool m_isEmpty; |
IntRect m_rect; |
String m_string; |
}; |
@@ -74,7 +75,7 @@ private: |
Node* minNodeContainsNodes(Node* minNode, Node* newNode); |
Node* findBestOverlappingNode(Node*, const IntRect& cropRect); |
bool shouldSkipBackgroundImage(Node*); |
- void collectOverlappingChildNodes(Node* parentNode, const IntRect& cropRect, Vector<Node*>& overlappingNodeInfoTable); |
+ void collectOverlappingChildNodes(Node* parentNode, const IntRect& cropRect, WillBeHeapVector<RawPtrWillBeMember<Node> >& overlappingNodeInfoTable); |
IntRect convertRectToWindow(const IntRect& nodeRect); |
String extractTextFromNode(Node*); |