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

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

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years 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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2010 Google Inc. All rights reserved. 7 * Copyright (C) 2010 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 LayoutBoxModelObject::~LayoutBoxModelObject() 123 LayoutBoxModelObject::~LayoutBoxModelObject()
124 { 124 {
125 // Our layer should have been destroyed and cleared by now 125 // Our layer should have been destroyed and cleared by now
126 ASSERT(!hasLayer()); 126 ASSERT(!hasLayer());
127 ASSERT(!m_layer); 127 ASSERT(!m_layer);
128 } 128 }
129 129
130 void LayoutBoxModelObject::willBeDestroyed() 130 void LayoutBoxModelObject::willBeDestroyed()
131 { 131 {
132 ImageQualityController::remove(this); 132 ImageQualityController::remove(*this);
133 133
134 // A continuation of this LayoutObject should be destroyed at subclasses. 134 // A continuation of this LayoutObject should be destroyed at subclasses.
135 ASSERT(!continuation()); 135 ASSERT(!continuation());
136 136
137 if (isPositioned()) { 137 if (isPositioned()) {
138 // Don't use this->view() because the document's layoutView has been set to 0 during destruction. 138 // Don't use this->view() because the document's layoutView has been set to 0 during destruction.
139 if (LocalFrame* frame = this->frame()) { 139 if (LocalFrame* frame = this->frame()) {
140 if (FrameView* frameView = frame->view()) { 140 if (FrameView* frameView = frame->view()) {
141 if (style()->hasViewportConstrainedPosition()) 141 if (style()->hasViewportConstrainedPosition())
142 frameView->removeViewportConstrainedObject(this); 142 frameView->removeViewportConstrainedObject(this);
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 if (rootElementStyle->hasBackground()) 1071 if (rootElementStyle->hasBackground())
1072 return false; 1072 return false;
1073 1073
1074 if (node() != document().firstBodyElement()) 1074 if (node() != document().firstBodyElement())
1075 return false; 1075 return false;
1076 1076
1077 return true; 1077 return true;
1078 } 1078 }
1079 1079
1080 } // namespace blink 1080 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutPartTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698