Chromium Code Reviews| Index: Source/core/dom/Document.h |
| diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h |
| index 2c064035ac5c807604ac82cc352518b34eb0ac6d..fb0d9111b1ac2a22bfac100d8a2c3894c87fd9b5 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(thisType, predicate) \ |
|
tkent
2013/12/09 04:08:17
You don't need to add the second argument. Implem
gyuyoung-inactive
2013/12/09 04:42:28
Oops, I misunderstand your comment. Sorry about it
|
| + DEFINE_TYPE_CASTS(thisType, Document, document, document->predicate, document.predicate) |
| + |
| // 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; } |