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 1912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1923 if (!isActive()) | 1923 if (!isActive()) |
1924 return; | 1924 return; |
1925 | 1925 |
1926 if (frameView->needsLayout()) | 1926 if (frameView->needsLayout()) |
1927 frameView->layout(); | 1927 frameView->layout(); |
1928 | 1928 |
1929 if (lifecycle().state() < DocumentLifecycle::LayoutClean) | 1929 if (lifecycle().state() < DocumentLifecycle::LayoutClean) |
1930 lifecycle().advanceTo(DocumentLifecycle::LayoutClean); | 1930 lifecycle().advanceTo(DocumentLifecycle::LayoutClean); |
1931 } | 1931 } |
1932 | 1932 |
| 1933 |
| 1934 void Document::updateRenderTreeOnFocusChanged() |
| 1935 { |
| 1936 setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::createW
ithExtraData(StyleChangeReason::PseudoClass, StyleChangeExtraData::Focus)); |
| 1937 updateRenderTreeIfNeeded(); |
| 1938 } |
| 1939 |
1933 void Document::setNeedsFocusedElementCheck() | 1940 void Document::setNeedsFocusedElementCheck() |
1934 { | 1941 { |
1935 setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::createWit
hExtraData(StyleChangeReason::PseudoClass, StyleChangeExtraData::Focus)); | 1942 setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::createWit
hExtraData(StyleChangeReason::PseudoClass, StyleChangeExtraData::Focus)); |
1936 } | 1943 } |
1937 | 1944 |
1938 void Document::clearFocusedElementSoon() | 1945 void Document::clearFocusedElementSoon() |
1939 { | 1946 { |
1940 if (!m_clearFocusedElementTimer.isActive()) | 1947 if (!m_clearFocusedElementTimer.isActive()) |
1941 m_clearFocusedElementTimer.startOneShot(0, FROM_HERE); | 1948 m_clearFocusedElementTimer.startOneShot(0, FROM_HERE); |
1942 } | 1949 } |
(...skipping 3878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5821 #ifndef NDEBUG | 5828 #ifndef NDEBUG |
5822 using namespace blink; | 5829 using namespace blink; |
5823 void showLiveDocumentInstances() | 5830 void showLiveDocumentInstances() |
5824 { | 5831 { |
5825 WeakDocumentSet& set = liveDocumentSet(); | 5832 WeakDocumentSet& set = liveDocumentSet(); |
5826 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5833 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5827 for (Document* document : set) | 5834 for (Document* document : set) |
5828 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5835 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
5829 } | 5836 } |
5830 #endif | 5837 #endif |
OLD | NEW |