Index: Source/core/dom/Document.h |
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h |
index 2c064035ac5c807604ac82cc352518b34eb0ac6d..dcc2dca191bbb21a9f367ece64181748dcc29685 100644 |
--- a/Source/core/dom/Document.h |
+++ b/Source/core/dom/Document.h |
@@ -1347,6 +1347,9 @@ inline const Document* toDocument(const ExecutionContext* executionContext) |
DEFINE_NODE_TYPE_CASTS(Document, isDocumentNode()); |
+#define DEFINE_DOCUMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ |
tkent
2013/12/09 05:12:29
As I already wrote, this function should not have
|
+ 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; } |