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

Side by Side Diff: Source/WebCore/rendering/RenderObject.cpp

Issue 10378082: Merge 116339 - Fix containerForRepaint() assumption about non-null enclosingLayer() (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | no next file » | 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 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 RenderBoxModelObject* RenderObject::containerForRepaint() const 1248 RenderBoxModelObject* RenderObject::containerForRepaint() const
1249 { 1249 {
1250 RenderView* v = view(); 1250 RenderView* v = view();
1251 if (!v) 1251 if (!v)
1252 return 0; 1252 return 0;
1253 1253
1254 RenderBoxModelObject* repaintContainer = 0; 1254 RenderBoxModelObject* repaintContainer = 0;
1255 1255
1256 #if USE(ACCELERATED_COMPOSITING) 1256 #if USE(ACCELERATED_COMPOSITING)
1257 if (v->usesCompositing()) { 1257 if (v->usesCompositing()) {
1258 RenderLayer* compLayer = enclosingLayer()->enclosingCompositingLayerForR epaint(); 1258 if (RenderLayer* parentLayer = enclosingLayer()) {
1259 if (compLayer) 1259 RenderLayer* compLayer = parentLayer->enclosingCompositingLayerForRe paint();
1260 repaintContainer = compLayer->renderer(); 1260 if (compLayer)
1261 repaintContainer = compLayer->renderer();
1262 }
1261 } 1263 }
1262 #endif 1264 #endif
1263 1265
1264 #if ENABLE(CSS_FILTERS) 1266 #if ENABLE(CSS_FILTERS)
1265 if (RenderLayer* parentLayer = enclosingLayer()) { 1267 if (RenderLayer* parentLayer = enclosingLayer()) {
1266 RenderLayer* enclosingFilterLayer = parentLayer->enclosingFilterLayer(); 1268 RenderLayer* enclosingFilterLayer = parentLayer->enclosingFilterLayer();
1267 if (enclosingFilterLayer) 1269 if (enclosingFilterLayer)
1268 return enclosingFilterLayer->renderer(); 1270 return enclosingFilterLayer->renderer();
1269 } 1271 }
1270 #endif 1272 #endif
(...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after
2941 { 2943 {
2942 if (object1) { 2944 if (object1) {
2943 const WebCore::RenderObject* root = object1; 2945 const WebCore::RenderObject* root = object1;
2944 while (root->parent()) 2946 while (root->parent())
2945 root = root->parent(); 2947 root = root->parent();
2946 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 2948 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
2947 } 2949 }
2948 } 2950 }
2949 2951
2950 #endif 2952 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698