| 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) 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 Loading... |
| 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 2431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2482 maskBoxImage->removeClient(this); | 2481 maskBoxImage->removeClient(this); |
| 2483 | 2482 |
| 2484 if (m_style->contentData() && m_style->contentData()->isImage()) | 2483 if (m_style->contentData() && m_style->contentData()->isImage()) |
| 2485 toImageContentData(m_style->contentData())->image()->removeClient(th
is); | 2484 toImageContentData(m_style->contentData())->image()->removeClient(th
is); |
| 2486 | 2485 |
| 2487 if (m_style->boxReflect() && m_style->boxReflect()->mask().image()) | 2486 if (m_style->boxReflect() && m_style->boxReflect()->mask().image()) |
| 2488 m_style->boxReflect()->mask().image()->removeClient(this); | 2487 m_style->boxReflect()->mask().image()->removeClient(this); |
| 2489 | 2488 |
| 2490 removeShapeImageClient(m_style->shapeOutside()); | 2489 removeShapeImageClient(m_style->shapeOutside()); |
| 2491 } | 2490 } |
| 2492 ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->removeLayout
Object(this); | |
| 2493 | 2491 |
| 2494 if (frameView()) | 2492 if (frameView()) |
| 2495 setIsSlowRepaintObject(false); | 2493 setIsSlowRepaintObject(false); |
| 2496 } | 2494 } |
| 2497 | 2495 |
| 2498 void LayoutObject::insertedIntoTree() | 2496 void LayoutObject::insertedIntoTree() |
| 2499 { | 2497 { |
| 2500 // FIXME: We should ASSERT(isRooted()) here but generated content makes some
out-of-order insertion. | 2498 // FIXME: We should ASSERT(isRooted()) here but generated content makes some
out-of-order insertion. |
| 2501 | 2499 |
| 2502 // Keep our layer hierarchy updated. Optimize for the common case where we d
on't have any children | 2500 // Keep our layer hierarchy updated. Optimize for the common case where we d
on't have any children |
| (...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3419 const blink::LayoutObject* root = object1; | 3417 const blink::LayoutObject* root = object1; |
| 3420 while (root->parent()) | 3418 while (root->parent()) |
| 3421 root = root->parent(); | 3419 root = root->parent(); |
| 3422 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3420 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3423 } else { | 3421 } else { |
| 3424 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3422 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
| 3425 } | 3423 } |
| 3426 } | 3424 } |
| 3427 | 3425 |
| 3428 #endif | 3426 #endif |
| OLD | NEW |