Index: Source/core/dom/Document.h |
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h |
index b1cc65c6999f96acd7cbb4abd21dca8c0e7219d0..c17966ad8c45f5a844aca383e97f9527b3ecb2d7 100644 |
--- a/Source/core/dom/Document.h |
+++ b/Source/core/dom/Document.h |
@@ -1346,6 +1346,9 @@ inline const Document* toDocument(const ExecutionContext* executionContext) |
DEFINE_NODE_TYPE_CASTS(Document, isDocumentNode()); |
+#define DEFINE_DOCUMENT_CASTS_WITH_FUNCTION(thisType) \ |
tkent
2013/12/09 00:17:27
This is inconsistent with others.
* We usually na
gyuyoung-inactive
2013/12/09 03:58:09
Fixed.
|
+ DEFINE_TYPE_CASTS(thisType, Document, document, document->is##thisType(), document.is##thisType()) |
+ |
// All these varations are needed to avoid ambiguous overloads with the Node and TreeScope versions. |
inline bool operator==(const Document& a, const Document& b) { return &a == &b; } |
inline bool operator==(const Document& a, const Document* b) { return &a == b; } |