Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Side by Side Diff: Source/core/layout/LayoutObject.cpp

Issue 1304063016: Refactor the API for setting dynamic resource load priorities (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutImage.cpp ('k') | Source/core/loader/FrameFetchContext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 19 matching lines...) Expand all
30 #include "core/HTMLNames.h" 30 #include "core/HTMLNames.h"
31 #include "core/css/resolver/StyleResolver.h" 31 #include "core/css/resolver/StyleResolver.h"
32 #include "core/dom/AXObjectCache.h" 32 #include "core/dom/AXObjectCache.h"
33 #include "core/dom/ElementTraversal.h" 33 #include "core/dom/ElementTraversal.h"
34 #include "core/dom/StyleEngine.h" 34 #include "core/dom/StyleEngine.h"
35 #include "core/dom/shadow/ShadowRoot.h" 35 #include "core/dom/shadow/ShadowRoot.h"
36 #include "core/editing/EditingBoundary.h" 36 #include "core/editing/EditingBoundary.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/TextAffinity.h" 39 #include "core/editing/TextAffinity.h"
40 #include "core/fetch/ResourceLoadPriorityOptimizer.h"
41 #include "core/fetch/ResourceLoader.h" 40 #include "core/fetch/ResourceLoader.h"
42 #include "core/frame/DeprecatedScheduleStyleRecalcDuringLayout.h" 41 #include "core/frame/DeprecatedScheduleStyleRecalcDuringLayout.h"
43 #include "core/frame/EventHandlerRegistry.h" 42 #include "core/frame/EventHandlerRegistry.h"
44 #include "core/frame/FrameView.h" 43 #include "core/frame/FrameView.h"
45 #include "core/frame/LocalFrame.h" 44 #include "core/frame/LocalFrame.h"
46 #include "core/frame/Settings.h" 45 #include "core/frame/Settings.h"
47 #include "core/frame/UseCounter.h" 46 #include "core/frame/UseCounter.h"
48 #include "core/html/HTMLAnchorElement.h" 47 #include "core/html/HTMLAnchorElement.h"
49 #include "core/html/HTMLElement.h" 48 #include "core/html/HTMLElement.h"
50 #include "core/html/HTMLHtmlElement.h" 49 #include "core/html/HTMLHtmlElement.h"
(...skipping 2421 matching lines...) Expand 10 before | Expand all | Expand 10 after
2472 } 2471 }
2473 2472
2474 if (StyleImage* borderImage = m_style->borderImage().image()) 2473 if (StyleImage* borderImage = m_style->borderImage().image())
2475 borderImage->removeClient(this); 2474 borderImage->removeClient(this);
2476 2475
2477 if (StyleImage* maskBoxImage = m_style->maskBoxImage().image()) 2476 if (StyleImage* maskBoxImage = m_style->maskBoxImage().image())
2478 maskBoxImage->removeClient(this); 2477 maskBoxImage->removeClient(this);
2479 2478
2480 removeShapeImageClient(m_style->shapeOutside()); 2479 removeShapeImageClient(m_style->shapeOutside());
2481 } 2480 }
2482 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->removeLayout Object(this);
2483 2481
2484 if (frameView()) 2482 if (frameView())
2485 setIsSlowRepaintObject(false); 2483 setIsSlowRepaintObject(false);
2486 } 2484 }
2487 2485
2488 void LayoutObject::insertedIntoTree() 2486 void LayoutObject::insertedIntoTree()
2489 { 2487 {
2490 // FIXME: We should ASSERT(isRooted()) here but generated content makes some out-of-order insertion. 2488 // FIXME: We should ASSERT(isRooted()) here but generated content makes some out-of-order insertion.
2491 2489
2492 // Keep our layer hierarchy updated. Optimize for the common case where we d on't have any children 2490 // Keep our layer hierarchy updated. Optimize for the common case where we d on't have any children
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
3405 const blink::LayoutObject* root = object1; 3403 const blink::LayoutObject* root = object1;
3406 while (root->parent()) 3404 while (root->parent())
3407 root = root->parent(); 3405 root = root->parent();
3408 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3406 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3409 } else { 3407 } else {
3410 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3408 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3411 } 3409 }
3412 } 3410 }
3413 3411
3414 #endif 3412 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutImage.cpp ('k') | Source/core/loader/FrameFetchContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698