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, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 4449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4460 double currentTime = WTF::currentTime(); | 4460 double currentTime = WTF::currentTime(); |
4461 | 4461 |
4462 if (currentTime > m_lastStyleResolverAccessTime + holdOffTimeBeforeReschedul
ingTimerInSeconds) { | 4462 if (currentTime > m_lastStyleResolverAccessTime + holdOffTimeBeforeReschedul
ingTimerInSeconds) { |
4463 m_styleResolverThrowawayTimer.startOneShot(timeBeforeThrowingAwayStyleRe
solverAfterLastUseInSeconds); | 4463 m_styleResolverThrowawayTimer.startOneShot(timeBeforeThrowingAwayStyleRe
solverAfterLastUseInSeconds); |
4464 m_lastStyleResolverAccessTime = currentTime; | 4464 m_lastStyleResolverAccessTime = currentTime; |
4465 } | 4465 } |
4466 } | 4466 } |
4467 | 4467 |
4468 void Document::styleResolverThrowawayTimerFired(Timer<Document>*) | 4468 void Document::styleResolverThrowawayTimerFired(Timer<Document>*) |
4469 { | 4469 { |
| 4470 ASSERT(!m_inStyleRecalc); |
4470 clearStyleResolver(); | 4471 clearStyleResolver(); |
4471 } | 4472 } |
4472 | 4473 |
4473 PassRefPtr<XPathExpression> Document::createExpression(const String& expression, | 4474 PassRefPtr<XPathExpression> Document::createExpression(const String& expression, |
4474 XPathNSResolver* resolver
, | 4475 XPathNSResolver* resolver
, |
4475 ExceptionCode& ec) | 4476 ExceptionCode& ec) |
4476 { | 4477 { |
4477 if (!m_xpathEvaluator) | 4478 if (!m_xpathEvaluator) |
4478 m_xpathEvaluator = XPathEvaluator::create(); | 4479 m_xpathEvaluator = XPathEvaluator::create(); |
4479 return m_xpathEvaluator->createExpression(expression, resolver, ec); | 4480 return m_xpathEvaluator->createExpression(expression, resolver, ec); |
(...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5991 m_templateContentsOwnerDocument = HTMLDocument::create(0, blankURL()
); | 5992 m_templateContentsOwnerDocument = HTMLDocument::create(0, blankURL()
); |
5992 else | 5993 else |
5993 m_templateContentsOwnerDocument = Document::create(0, blankURL()); | 5994 m_templateContentsOwnerDocument = Document::create(0, blankURL()); |
5994 } | 5995 } |
5995 | 5996 |
5996 return m_templateContentsOwnerDocument.get(); | 5997 return m_templateContentsOwnerDocument.get(); |
5997 } | 5998 } |
5998 #endif | 5999 #endif |
5999 | 6000 |
6000 } // namespace WebCore | 6001 } // namespace WebCore |
OLD | NEW |