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

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

Issue 1378743002: Refactor the API for setting dynamic resource load priorities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better names / cleanup Created 5 years, 2 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
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 2487 matching lines...) Expand 10 before | Expand all | Expand 10 after
2538 maskBoxImage->removeClient(this); 2537 maskBoxImage->removeClient(this);
2539 2538
2540 if (m_style->contentData() && m_style->contentData()->isImage()) 2539 if (m_style->contentData() && m_style->contentData()->isImage())
2541 toImageContentData(m_style->contentData())->image()->removeClient(th is); 2540 toImageContentData(m_style->contentData())->image()->removeClient(th is);
2542 2541
2543 if (m_style->boxReflect() && m_style->boxReflect()->mask().image()) 2542 if (m_style->boxReflect() && m_style->boxReflect()->mask().image())
2544 m_style->boxReflect()->mask().image()->removeClient(this); 2543 m_style->boxReflect()->mask().image()->removeClient(this);
2545 2544
2546 removeShapeImageClient(m_style->shapeOutside()); 2545 removeShapeImageClient(m_style->shapeOutside());
2547 } 2546 }
2548 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->removeLayout Object(this);
2549 2547
2550 if (frameView()) 2548 if (frameView())
2551 setIsSlowRepaintObject(false); 2549 setIsSlowRepaintObject(false);
2552 } 2550 }
2553 2551
2554 void LayoutObject::insertedIntoTree() 2552 void LayoutObject::insertedIntoTree()
2555 { 2553 {
2556 // FIXME: We should ASSERT(isRooted()) here but generated content makes some out-of-order insertion. 2554 // FIXME: We should ASSERT(isRooted()) here but generated content makes some out-of-order insertion.
2557 2555
2558 // Keep our layer hierarchy updated. Optimize for the common case where we d on't have any children 2556 // Keep our layer hierarchy updated. Optimize for the common case where we d on't have any children
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
3477 const blink::LayoutObject* root = object1; 3475 const blink::LayoutObject* root = object1;
3478 while (root->parent()) 3476 while (root->parent())
3479 root = root->parent(); 3477 root = root->parent();
3480 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3478 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3481 } else { 3479 } else {
3482 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3480 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3483 } 3481 }
3484 } 3482 }
3485 3483
3486 #endif 3484 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutImage.cpp ('k') | third_party/WebKit/Source/core/loader/FrameFetchContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698