| 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 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1736 // View layout should not be re-entrant. | 1736 // View layout should not be re-entrant. |
| 1737 ASSERT_NOT_REACHED(); | 1737 ASSERT_NOT_REACHED(); |
| 1738 return; | 1738 return; |
| 1739 } | 1739 } |
| 1740 | 1740 |
| 1741 if (Element* oe = ownerElement()) | 1741 if (Element* oe = ownerElement()) |
| 1742 oe->document()->updateLayout(); | 1742 oe->document()->updateLayout(); |
| 1743 | 1743 |
| 1744 updateStyleIfNeeded(); | 1744 updateStyleIfNeeded(); |
| 1745 | 1745 |
| 1746 StackStats::LayoutCheckPoint layoutCheckPoint; | |
| 1747 | |
| 1748 // Only do a layout if changes have occurred that make it necessary. | 1746 // Only do a layout if changes have occurred that make it necessary. |
| 1749 if (frameView && renderer() && (frameView->layoutPending() || renderer()->ne
edsLayout())) | 1747 if (frameView && renderer() && (frameView->layoutPending() || renderer()->ne
edsLayout())) |
| 1750 frameView->layout(); | 1748 frameView->layout(); |
| 1751 | 1749 |
| 1752 setNeedsFocusedElementCheck(); | 1750 setNeedsFocusedElementCheck(); |
| 1753 } | 1751 } |
| 1754 | 1752 |
| 1755 void Document::setNeedsFocusedElementCheck() | 1753 void Document::setNeedsFocusedElementCheck() |
| 1756 { | 1754 { |
| 1757 // FIXME: Using a Task doesn't look a good idea. | 1755 // FIXME: Using a Task doesn't look a good idea. |
| (...skipping 3498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5256 { | 5254 { |
| 5257 return DocumentLifecycleNotifier::create(this); | 5255 return DocumentLifecycleNotifier::create(this); |
| 5258 } | 5256 } |
| 5259 | 5257 |
| 5260 DocumentLifecycleNotifier* Document::lifecycleNotifier() | 5258 DocumentLifecycleNotifier* Document::lifecycleNotifier() |
| 5261 { | 5259 { |
| 5262 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec
ycleNotifier()); | 5260 return static_cast<DocumentLifecycleNotifier*>(ScriptExecutionContext::lifec
ycleNotifier()); |
| 5263 } | 5261 } |
| 5264 | 5262 |
| 5265 } // namespace WebCore | 5263 } // namespace WebCore |
| OLD | NEW |