| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.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 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "core/compositing/DisplayListCompositingBuilder.h" | 32 #include "core/compositing/DisplayListCompositingBuilder.h" |
| 33 #include "core/css/FontFaceSet.h" | 33 #include "core/css/FontFaceSet.h" |
| 34 #include "core/css/resolver/StyleResolver.h" | 34 #include "core/css/resolver/StyleResolver.h" |
| 35 #include "core/dom/AXObjectCache.h" | 35 #include "core/dom/AXObjectCache.h" |
| 36 #include "core/dom/Fullscreen.h" | 36 #include "core/dom/Fullscreen.h" |
| 37 #include "core/editing/EditingUtilities.h" | 37 #include "core/editing/EditingUtilities.h" |
| 38 #include "core/editing/FrameSelection.h" | 38 #include "core/editing/FrameSelection.h" |
| 39 #include "core/editing/RenderedPosition.h" | 39 #include "core/editing/RenderedPosition.h" |
| 40 #include "core/editing/markers/DocumentMarkerController.h" | 40 #include "core/editing/markers/DocumentMarkerController.h" |
| 41 #include "core/fetch/ResourceFetcher.h" | 41 #include "core/fetch/ResourceFetcher.h" |
| 42 #include "core/fetch/ResourceLoadPriorityOptimizer.h" | |
| 43 #include "core/frame/FrameHost.h" | 42 #include "core/frame/FrameHost.h" |
| 44 #include "core/frame/LocalFrame.h" | 43 #include "core/frame/LocalFrame.h" |
| 45 #include "core/frame/Settings.h" | 44 #include "core/frame/Settings.h" |
| 46 #include "core/html/HTMLFrameElement.h" | 45 #include "core/html/HTMLFrameElement.h" |
| 47 #include "core/html/HTMLPlugInElement.h" | 46 #include "core/html/HTMLPlugInElement.h" |
| 48 #include "core/html/HTMLTextFormControlElement.h" | 47 #include "core/html/HTMLTextFormControlElement.h" |
| 49 #include "core/html/parser/TextResourceDecoder.h" | 48 #include "core/html/parser/TextResourceDecoder.h" |
| 50 #include "core/input/EventHandler.h" | 49 #include "core/input/EventHandler.h" |
| 51 #include "core/inspector/InspectorInstrumentation.h" | 50 #include "core/inspector/InspectorInstrumentation.h" |
| 52 #include "core/inspector/InspectorTraceEvents.h" | 51 #include "core/inspector/InspectorTraceEvents.h" |
| (...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 // We need to ensure that we mark up all layoutObjects up to the Lay
outView | 831 // We need to ensure that we mark up all layoutObjects up to the Lay
outView |
| 833 // for paint invalidation. This simplifies our code as we just alway
s | 832 // for paint invalidation. This simplifies our code as we just alway
s |
| 834 // do a full tree walk. | 833 // do a full tree walk. |
| 835 if (LayoutObject* container = root->container()) | 834 if (LayoutObject* container = root->container()) |
| 836 container->setMayNeedPaintInvalidation(); | 835 container->setMayNeedPaintInvalidation(); |
| 837 } | 836 } |
| 838 } else { | 837 } else { |
| 839 layoutFromRootObject(*layoutView()); | 838 layoutFromRootObject(*layoutView()); |
| 840 } | 839 } |
| 841 | 840 |
| 842 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->updateAllIma
geResourcePriorities(); | 841 m_frame->document()->fetcher()->updateAllImageResourcePriorities(); |
| 843 | 842 |
| 844 lifecycle().advanceTo(DocumentLifecycle::AfterPerformLayout); | 843 lifecycle().advanceTo(DocumentLifecycle::AfterPerformLayout); |
| 845 | 844 |
| 846 TRACE_EVENT_END1(PERFORM_LAYOUT_TRACE_CATEGORIES, "FrameView::performLayout"
, | 845 TRACE_EVENT_END1(PERFORM_LAYOUT_TRACE_CATEGORIES, "FrameView::performLayout"
, |
| 847 "counters", analyzerCounters()); | 846 "counters", analyzerCounters()); |
| 848 } | 847 } |
| 849 | 848 |
| 850 void FrameView::scheduleOrPerformPostLayoutTasks() | 849 void FrameView::scheduleOrPerformPostLayoutTasks() |
| 851 { | 850 { |
| 852 if (m_postLayoutTasksTimer.isActive()) | 851 if (m_postLayoutTasksTimer.isActive()) |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1520 | 1519 |
| 1521 if (AXObjectCache* cache = m_frame->document()->existingAXObjectCache()) | 1520 if (AXObjectCache* cache = m_frame->document()->existingAXObjectCache()) |
| 1522 cache->handleScrollPositionChanged(this); | 1521 cache->handleScrollPositionChanged(this); |
| 1523 | 1522 |
| 1524 layoutView()->clearHitTestCache(); | 1523 layoutView()->clearHitTestCache(); |
| 1525 frame().loader().saveScrollState(); | 1524 frame().loader().saveScrollState(); |
| 1526 } | 1525 } |
| 1527 | 1526 |
| 1528 void FrameView::didScrollTimerFired(Timer<FrameView>*) | 1527 void FrameView::didScrollTimerFired(Timer<FrameView>*) |
| 1529 { | 1528 { |
| 1530 if (m_frame->document() && m_frame->document()->layoutView()) { | 1529 if (m_frame->document() && m_frame->document()->layoutView()) |
| 1531 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->updateAl
lImageResourcePriorities(); | 1530 m_frame->document()->fetcher()->updateAllImageResourcePriorities(); |
| 1532 } | |
| 1533 } | 1531 } |
| 1534 | 1532 |
| 1535 void FrameView::updateLayersAndCompositingAfterScrollIfNeeded() | 1533 void FrameView::updateLayersAndCompositingAfterScrollIfNeeded() |
| 1536 { | 1534 { |
| 1537 // Nothing to do after scrolling if there are no fixed position elements. | 1535 // Nothing to do after scrolling if there are no fixed position elements. |
| 1538 if (!hasViewportConstrainedObjects()) | 1536 if (!hasViewportConstrainedObjects()) |
| 1539 return; | 1537 return; |
| 1540 | 1538 |
| 1541 RefPtrWillBeRawPtr<FrameView> protect(this); | 1539 RefPtrWillBeRawPtr<FrameView> protect(this); |
| 1542 | 1540 |
| (...skipping 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3919 | 3917 |
| 3920 if (!graphicsLayer) | 3918 if (!graphicsLayer) |
| 3921 return; | 3919 return; |
| 3922 | 3920 |
| 3923 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentL
ayoutObject(), paintInvalidationContainer, viewRect); | 3921 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentL
ayoutObject(), paintInvalidationContainer, viewRect); |
| 3924 | 3922 |
| 3925 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web
Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing
IntRect(viewRect))); | 3923 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web
Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing
IntRect(viewRect))); |
| 3926 } | 3924 } |
| 3927 | 3925 |
| 3928 } // namespace blink | 3926 } // namespace blink |
| OLD | NEW |