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

Side by Side Diff: Source/core/layout/LayoutObject.h

Issue 1156993013: New media playback UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: manual rebaseline. Created 5 years, 5 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
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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 395
396 inline bool isBeforeContent() const; 396 inline bool isBeforeContent() const;
397 inline bool isAfterContent() const; 397 inline bool isAfterContent() const;
398 inline bool isBeforeOrAfterContent() const; 398 inline bool isBeforeOrAfterContent() const;
399 static inline bool isAfterContent(const LayoutObject* obj) { return obj && o bj->isAfterContent(); } 399 static inline bool isAfterContent(const LayoutObject* obj) { return obj && o bj->isAfterContent(); }
400 400
401 bool hasCounterNodeMap() const { return m_bitfields.hasCounterNodeMap(); } 401 bool hasCounterNodeMap() const { return m_bitfields.hasCounterNodeMap(); }
402 void setHasCounterNodeMap(bool hasCounterNodeMap) { m_bitfields.setHasCounte rNodeMap(hasCounterNodeMap); } 402 void setHasCounterNodeMap(bool hasCounterNodeMap) { m_bitfields.setHasCounte rNodeMap(hasCounterNodeMap); }
403 bool everHadLayout() const { return m_bitfields.everHadLayout(); } 403 bool everHadLayout() const { return m_bitfields.everHadLayout(); }
404 404
405 void setSendResizeEvent(bool enable) { m_bitfields.setSendResizeEvent(enable ); }
406
405 bool childrenInline() const { return m_bitfields.childrenInline(); } 407 bool childrenInline() const { return m_bitfields.childrenInline(); }
406 void setChildrenInline(bool b) { m_bitfields.setChildrenInline(b); } 408 void setChildrenInline(bool b) { m_bitfields.setChildrenInline(b); }
407 409
408 bool alwaysCreateLineBoxesForLayoutInline() const 410 bool alwaysCreateLineBoxesForLayoutInline() const
409 { 411 {
410 ASSERT(isLayoutInline()); 412 ASSERT(isLayoutInline());
411 return m_bitfields.alwaysCreateLineBoxesForLayoutInline(); 413 return m_bitfields.alwaysCreateLineBoxesForLayoutInline();
412 } 414 }
413 void setAlwaysCreateLineBoxesForLayoutInline(bool alwaysCreateLineBoxes) 415 void setAlwaysCreateLineBoxesForLayoutInline(bool alwaysCreateLineBoxes)
414 { 416 {
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 1375
1374 // from LayoutBlock 1376 // from LayoutBlock
1375 ADD_BOOLEAN_BITFIELD(childrenInline, ChildrenInline); 1377 ADD_BOOLEAN_BITFIELD(childrenInline, ChildrenInline);
1376 1378
1377 // from LayoutInline 1379 // from LayoutInline
1378 ADD_BOOLEAN_BITFIELD(alwaysCreateLineBoxesForLayoutInline, AlwaysCreateL ineBoxesForLayoutInline); 1380 ADD_BOOLEAN_BITFIELD(alwaysCreateLineBoxesForLayoutInline, AlwaysCreateL ineBoxesForLayoutInline);
1379 1381
1380 // For slimming-paint. 1382 // For slimming-paint.
1381 ADD_BOOLEAN_BITFIELD(lastBoxDecorationBackgroundObscured, LastBoxDecorat ionBackgroundObscured); 1383 ADD_BOOLEAN_BITFIELD(lastBoxDecorationBackgroundObscured, LastBoxDecorat ionBackgroundObscured);
1382 1384
1385 // For MediaControls resize.
1386 ADD_BOOLEAN_BITFIELD(sendResizeEvent, SendResizeEvent);
1387
1383 private: 1388 private:
1384 unsigned m_positionedState : 2; // PositionedState 1389 unsigned m_positionedState : 2; // PositionedState
1385 unsigned m_selectionState : 3; // SelectionState 1390 unsigned m_selectionState : 3; // SelectionState
1386 unsigned m_boxDecorationBackgroundState : 2; // BoxDecorationBackgroundS tate 1391 unsigned m_boxDecorationBackgroundState : 2; // BoxDecorationBackgroundS tate
1387 unsigned m_fullPaintInvalidationReason : 5; // PaintInvalidationReason 1392 unsigned m_fullPaintInvalidationReason : 5; // PaintInvalidationReason
1388 1393
1389 public: 1394 public:
1390 bool isOutOfFlowPositioned() const { return m_positionedState == IsOutOf FlowPositioned; } 1395 bool isOutOfFlowPositioned() const { return m_positionedState == IsOutOf FlowPositioned; }
1391 bool isRelPositioned() const { return m_positionedState == IsRelativelyP ositioned; } 1396 bool isRelPositioned() const { return m_positionedState == IsRelativelyP ositioned; }
1392 bool isPositioned() const { return m_positionedState != IsStaticallyPosi tioned; } 1397 bool isPositioned() const { return m_positionedState != IsStaticallyPosi tioned; }
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 void showTree(const blink::LayoutObject*); 1665 void showTree(const blink::LayoutObject*);
1661 void showLineTree(const blink::LayoutObject*); 1666 void showLineTree(const blink::LayoutObject*);
1662 void showLayoutTree(const blink::LayoutObject* object1); 1667 void showLayoutTree(const blink::LayoutObject* object1);
1663 // We don't make object2 an optional parameter so that showLayoutTree 1668 // We don't make object2 an optional parameter so that showLayoutTree
1664 // can be called from gdb easily. 1669 // can be called from gdb easily.
1665 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1670 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1666 1671
1667 #endif 1672 #endif
1668 1673
1669 #endif // LayoutObject_h 1674 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698