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

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

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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 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) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 if (needsLayout()) 237 if (needsLayout())
238 showRenderTreeForThis(); 238 showRenderTreeForThis();
239 ASSERT_WITH_SECURITY_IMPLICATION(!needsLayout()); 239 ASSERT_WITH_SECURITY_IMPLICATION(!needsLayout());
240 } 240 }
241 241
242 void assertSubtreeIsLaidOut() const 242 void assertSubtreeIsLaidOut() const
243 { 243 {
244 for (const RenderObject* renderer = this; renderer; renderer = renderer- >nextInPreOrder()) 244 for (const RenderObject* renderer = this; renderer; renderer = renderer- >nextInPreOrder())
245 renderer->assertRendererLaidOut(); 245 renderer->assertRendererLaidOut();
246 } 246 }
247
248 void setIsCurrentFullscreen(bool flag) { m_isCurrentFullscreen = flag; }
247 #endif 249 #endif
248 250
249 // Obtains the nearest enclosing block (including this block) that contribut es a first-line style to our inline 251 // Obtains the nearest enclosing block (including this block) that contribut es a first-line style to our inline
250 // children. 252 // children.
251 virtual RenderBlock* firstLineBlock() const; 253 virtual RenderBlock* firstLineBlock() const;
252 254
253 // Called when an object that was floating or positioned becomes a normal fl ow object 255 // Called when an object that was floating or positioned becomes a normal fl ow object
254 // again. We have to make sure the render tree updates as needed to accommo date the new 256 // again. We have to make sure the render tree updates as needed to accommo date the new
255 // normal flow object. 257 // normal flow object.
256 void handleDynamicFloatPositionChange(); 258 void handleDynamicFloatPositionChange();
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 1061
1060 RenderObject* m_parent; 1062 RenderObject* m_parent;
1061 RenderObject* m_previous; 1063 RenderObject* m_previous;
1062 RenderObject* m_next; 1064 RenderObject* m_next;
1063 1065
1064 static RenderObjectAncestorLineboxDirtySet* s_ancestorLineboxDirtySet; 1066 static RenderObjectAncestorLineboxDirtySet* s_ancestorLineboxDirtySet;
1065 1067
1066 #ifndef NDEBUG 1068 #ifndef NDEBUG
1067 unsigned m_hasAXObject : 1; 1069 unsigned m_hasAXObject : 1;
1068 unsigned m_setNeedsLayoutForbidden : 1; 1070 unsigned m_setNeedsLayoutForbidden : 1;
1071 unsigned m_isCurrentFullscreen : 1;
1069 #endif 1072 #endif
1070 1073
1071 #define ADD_BOOLEAN_BITFIELD(name, Name) \ 1074 #define ADD_BOOLEAN_BITFIELD(name, Name) \
1072 private:\ 1075 private:\
1073 unsigned m_##name : 1;\ 1076 unsigned m_##name : 1;\
1074 public:\ 1077 public:\
1075 bool name() const { return m_##name; }\ 1078 bool name() const { return m_##name; }\
1076 void set##Name(bool name) { m_##name = name; }\ 1079 void set##Name(bool name) { m_##name = name; }\
1077 1080
1078 class RenderObjectBitfields { 1081 class RenderObjectBitfields {
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 void showTree(const WebCore::RenderObject*); 1381 void showTree(const WebCore::RenderObject*);
1379 void showLineTree(const WebCore::RenderObject*); 1382 void showLineTree(const WebCore::RenderObject*);
1380 void showRenderTree(const WebCore::RenderObject* object1); 1383 void showRenderTree(const WebCore::RenderObject* object1);
1381 // We don't make object2 an optional parameter so that showRenderTree 1384 // We don't make object2 an optional parameter so that showRenderTree
1382 // can be called from gdb easily. 1385 // can be called from gdb easily.
1383 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1386 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1384 1387
1385 #endif 1388 #endif
1386 1389
1387 #endif // RenderObject_h 1390 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698