| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 CSSStyleSheet* elementSheet(); | 439 CSSStyleSheet* elementSheet(); |
| 440 CSSStyleSheet* mappedElementSheet(); | 440 CSSStyleSheet* mappedElementSheet(); |
| 441 virtual Tokenizer* createTokenizer(); | 441 virtual Tokenizer* createTokenizer(); |
| 442 Tokenizer* tokenizer() { return m_tokenizer; } | 442 Tokenizer* tokenizer() { return m_tokenizer; } |
| 443 | 443 |
| 444 bool printing() const { return m_printing; } | 444 bool printing() const { return m_printing; } |
| 445 void setPrinting(bool p) { m_printing = p; } | 445 void setPrinting(bool p) { m_printing = p; } |
| 446 | 446 |
| 447 enum ParseMode { Compat, AlmostStrict, Strict }; | 447 enum ParseMode { Compat, AlmostStrict, Strict }; |
| 448 | 448 |
| 449 // Used by Chromium to know if it can just SIGKILL a renderer when navigatin
g | |
| 450 bool hasUnloadEventListener(); | |
| 451 | |
| 452 private: | 449 private: |
| 453 virtual void determineParseMode() {} | 450 virtual void determineParseMode() {} |
| 454 | 451 |
| 455 public: | 452 public: |
| 456 void setParseMode(ParseMode m) { m_parseMode = m; } | 453 void setParseMode(ParseMode m) { m_parseMode = m; } |
| 457 ParseMode parseMode() const { return m_parseMode; } | 454 ParseMode parseMode() const { return m_parseMode; } |
| 458 | 455 |
| 459 bool inCompatMode() const { return m_parseMode == Compat; } | 456 bool inCompatMode() const { return m_parseMode == Compat; } |
| 460 bool inAlmostStrictMode() const { return m_parseMode == AlmostStrict; } | 457 bool inAlmostStrictMode() const { return m_parseMode == AlmostStrict; } |
| 461 bool inStrictMode() const { return m_parseMode == Strict; } | 458 bool inStrictMode() const { return m_parseMode == Strict; } |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 } | 1099 } |
| 1103 | 1100 |
| 1104 inline bool Node::isDocumentNode() const | 1101 inline bool Node::isDocumentNode() const |
| 1105 { | 1102 { |
| 1106 return this == m_document.get(); | 1103 return this == m_document.get(); |
| 1107 } | 1104 } |
| 1108 | 1105 |
| 1109 } // namespace WebCore | 1106 } // namespace WebCore |
| 1110 | 1107 |
| 1111 #endif // Document_h | 1108 #endif // Document_h |
| OLD | NEW |