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

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

Issue 22454003: Support subtitles for native fullscreen video (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add dangling pointer check Created 7 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
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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 #ifndef NDEBUG 238 #ifndef NDEBUG
239 renderObjectCounter.increment(); 239 renderObjectCounter.increment();
240 #endif 240 #endif
241 } 241 }
242 242
243 RenderObject::~RenderObject() 243 RenderObject::~RenderObject()
244 { 244 {
245 #ifndef NDEBUG 245 #ifndef NDEBUG
246 ASSERT(!m_hasAXObject); 246 ASSERT(!m_hasAXObject);
247 renderObjectCounter.decrement(); 247 renderObjectCounter.decrement();
248 ASSERT(!m_isCurrentFullscreen);
esprehn 2013/09/20 22:01:09 Instead of this bitfield you should add ASSERT(re
248 #endif 249 #endif
249 } 250 }
250 251
251 String RenderObject::debugName() const 252 String RenderObject::debugName() const
252 { 253 {
253 StringBuilder name; 254 StringBuilder name;
254 name.append(renderName()); 255 name.append(renderName());
255 256
256 if (Node* node = this->node()) { 257 if (Node* node = this->node()) {
257 name.append(' '); 258 name.append(' ');
(...skipping 3073 matching lines...) Expand 10 before | Expand all | Expand 10 after
3331 { 3332 {
3332 if (object1) { 3333 if (object1) {
3333 const WebCore::RenderObject* root = object1; 3334 const WebCore::RenderObject* root = object1;
3334 while (root->parent()) 3335 while (root->parent())
3335 root = root->parent(); 3336 root = root->parent();
3336 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3337 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3337 } 3338 }
3338 } 3339 }
3339 3340
3340 #endif 3341 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698