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 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights
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 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011 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 5282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5293 | 5293 |
5294 void Document::loadEventDelayTimerFired(Timer<Document>*) | 5294 void Document::loadEventDelayTimerFired(Timer<Document>*) |
5295 { | 5295 { |
5296 if (frame()) | 5296 if (frame()) |
5297 frame()->loader()->checkCompleted(); | 5297 frame()->loader()->checkCompleted(); |
5298 } | 5298 } |
5299 | 5299 |
5300 #if ENABLE(REQUEST_ANIMATION_FRAME) | 5300 #if ENABLE(REQUEST_ANIMATION_FRAME) |
5301 int Document::webkitRequestAnimationFrame(PassRefPtr<RequestAnimationFrameCallba
ck> callback, Element* animationElement) | 5301 int Document::webkitRequestAnimationFrame(PassRefPtr<RequestAnimationFrameCallba
ck> callback, Element* animationElement) |
5302 { | 5302 { |
5303 if (!m_scriptedAnimationController) | 5303 if (!m_scriptedAnimationController) { |
| 5304 #if USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR) |
5304 m_scriptedAnimationController = ScriptedAnimationController::create(this
, page()->displayID()); | 5305 m_scriptedAnimationController = ScriptedAnimationController::create(this
, page()->displayID()); |
| 5306 #else |
| 5307 m_scriptedAnimationController = ScriptedAnimationController::create(this
, 0); |
| 5308 #endif |
| 5309 } |
5305 | 5310 |
5306 return m_scriptedAnimationController->registerCallback(callback, animationEl
ement); | 5311 return m_scriptedAnimationController->registerCallback(callback, animationEl
ement); |
5307 } | 5312 } |
5308 | 5313 |
5309 void Document::webkitCancelAnimationFrame(int id) | 5314 void Document::webkitCancelAnimationFrame(int id) |
5310 { | 5315 { |
5311 if (!m_scriptedAnimationController) | 5316 if (!m_scriptedAnimationController) |
5312 return; | 5317 return; |
5313 m_scriptedAnimationController->cancelCallback(id); | 5318 m_scriptedAnimationController->cancelCallback(id); |
5314 } | 5319 } |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5404 | 5409 |
5405 NodeListsNodeData* data = rareData()->nodeLists(); | 5410 NodeListsNodeData* data = rareData()->nodeLists(); |
5406 | 5411 |
5407 String localTypeNames = typeNames.isNull() ? String("http://webkit.org/micro
data/undefinedItemType") : typeNames; | 5412 String localTypeNames = typeNames.isNull() ? String("http://webkit.org/micro
data/undefinedItemType") : typeNames; |
5408 ASSERT_UNUSED(list, list == data->m_microDataItemListCache.get(localTypeName
s)); | 5413 ASSERT_UNUSED(list, list == data->m_microDataItemListCache.get(localTypeName
s)); |
5409 data->m_microDataItemListCache.remove(localTypeNames); | 5414 data->m_microDataItemListCache.remove(localTypeNames); |
5410 } | 5415 } |
5411 #endif | 5416 #endif |
5412 | 5417 |
5413 } // namespace WebCore | 5418 } // namespace WebCore |
OLD | NEW |