| 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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 // We need to ensure that we mark up all layoutObjects up to the Lay
outView | 830 // We need to ensure that we mark up all layoutObjects up to the Lay
outView |
| 832 // for paint invalidation. This simplifies our code as we just alway
s | 831 // for paint invalidation. This simplifies our code as we just alway
s |
| 833 // do a full tree walk. | 832 // do a full tree walk. |
| 834 if (LayoutObject* container = root->container()) | 833 if (LayoutObject* container = root->container()) |
| 835 container->setMayNeedPaintInvalidation(); | 834 container->setMayNeedPaintInvalidation(); |
| 836 } | 835 } |
| 837 } else { | 836 } else { |
| 838 layoutFromRootObject(*layoutView()); | 837 layoutFromRootObject(*layoutView()); |
| 839 } | 838 } |
| 840 | 839 |
| 841 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->updateAllIma
geResourcePriorities(); | 840 m_frame->document()->fetcher()->updateAllImageResourcePriorities(); |
| 842 | 841 |
| 843 lifecycle().advanceTo(DocumentLifecycle::AfterPerformLayout); | 842 lifecycle().advanceTo(DocumentLifecycle::AfterPerformLayout); |
| 844 | 843 |
| 845 TRACE_EVENT_END1(PERFORM_LAYOUT_TRACE_CATEGORIES, "FrameView::performLayout"
, | 844 TRACE_EVENT_END1(PERFORM_LAYOUT_TRACE_CATEGORIES, "FrameView::performLayout"
, |
| 846 "counters", analyzerCounters()); | 845 "counters", analyzerCounters()); |
| 847 } | 846 } |
| 848 | 847 |
| 849 void FrameView::scheduleOrPerformPostLayoutTasks() | 848 void FrameView::scheduleOrPerformPostLayoutTasks() |
| 850 { | 849 { |
| 851 if (m_postLayoutTasksTimer.isActive()) | 850 if (m_postLayoutTasksTimer.isActive()) |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1519 | 1518 |
| 1520 if (AXObjectCache* cache = m_frame->document()->existingAXObjectCache()) | 1519 if (AXObjectCache* cache = m_frame->document()->existingAXObjectCache()) |
| 1521 cache->handleScrollPositionChanged(this); | 1520 cache->handleScrollPositionChanged(this); |
| 1522 | 1521 |
| 1523 layoutView()->clearHitTestCache(); | 1522 layoutView()->clearHitTestCache(); |
| 1524 frame().loader().saveScrollState(); | 1523 frame().loader().saveScrollState(); |
| 1525 } | 1524 } |
| 1526 | 1525 |
| 1527 void FrameView::didScrollTimerFired(Timer<FrameView>*) | 1526 void FrameView::didScrollTimerFired(Timer<FrameView>*) |
| 1528 { | 1527 { |
| 1529 if (m_frame->document() && m_frame->document()->layoutView()) { | 1528 if (m_frame->document() && m_frame->document()->layoutView()) |
| 1530 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->updateAl
lImageResourcePriorities(); | 1529 m_frame->document()->fetcher()->updateAllImageResourcePriorities(); |
| 1531 } | |
| 1532 } | 1530 } |
| 1533 | 1531 |
| 1534 void FrameView::updateLayersAndCompositingAfterScrollIfNeeded() | 1532 void FrameView::updateLayersAndCompositingAfterScrollIfNeeded() |
| 1535 { | 1533 { |
| 1536 // Nothing to do after scrolling if there are no fixed position elements. | 1534 // Nothing to do after scrolling if there are no fixed position elements. |
| 1537 if (!hasViewportConstrainedObjects()) | 1535 if (!hasViewportConstrainedObjects()) |
| 1538 return; | 1536 return; |
| 1539 | 1537 |
| 1540 RefPtrWillBeRawPtr<FrameView> protect(this); | 1538 RefPtrWillBeRawPtr<FrameView> protect(this); |
| 1541 | 1539 |
| (...skipping 2379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3921 | 3919 |
| 3922 if (!graphicsLayer) | 3920 if (!graphicsLayer) |
| 3923 return; | 3921 return; |
| 3924 | 3922 |
| 3925 PaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentLayoutObjec
t(), paintInvalidationContainer, viewRect); | 3923 PaintLayer::mapRectToPaintInvalidationBacking(localFrame->contentLayoutObjec
t(), paintInvalidationContainer, viewRect); |
| 3926 | 3924 |
| 3927 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web
Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing
IntRect(viewRect))); | 3925 graphicsLayerTimingRequests.add(graphicsLayer, Vector<std::pair<int64_t, Web
Rect>>()).storedValue->value.append(std::make_pair(m_frame->frameID(), enclosing
IntRect(viewRect))); |
| 3928 } | 3926 } |
| 3929 | 3927 |
| 3930 } // namespace blink | 3928 } // namespace blink |
| OLD | NEW |