Changeset 155962 in webkit
- Timestamp:
- Sep 17, 2013, 9:00:04 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r155961 r155962 1 2013-09-17 Antti Koivisto <antti@apple.com> 2 3 Add RenderObject bit for isBR(). 4 https://bugs.webkit.org/show_bug.cgi?id=121494 5 6 Reviewed by Andreas Kling. 7 8 It is no longer piggybacking on isText() flag and is now hot in inline layout. 9 10 * rendering/RenderBR.cpp: 11 (WebCore::RenderBR::RenderBR): 12 * rendering/RenderBR.h: 13 * rendering/RenderObject.h: 14 (WebCore::RenderObject::isBR): 15 (WebCore::RenderObject::setIsBR): 16 (WebCore::RenderObject::RenderObjectBitfields::RenderObjectBitfields): 17 1 18 2013-09-17 Andreas Kling <akling@apple.com> 2 19 -
trunk/Source/WebCore/rendering/RenderBR.cpp
r155957 r155962 37 37 , m_cachedLineHeight(invalidLineHeight) 38 38 { 39 setIsBR(); 39 40 } 40 41 -
trunk/Source/WebCore/rendering/RenderBR.h
r155957 r155962 51 51 52 52 private: 53 virtual bool isBR() const OVERRIDE { return true; }54 55 53 virtual VisiblePosition positionForPoint(const LayoutPoint&) OVERRIDE; 56 54 virtual int caretMinOffset() const OVERRIDE; -
trunk/Source/WebCore/rendering/RenderObject.h
r155957 r155962 344 344 bool isPseudoElement() const { return node() && node()->isPseudoElement(); } 345 345 346 virtual bool isBR() const { return false; }347 346 virtual bool isBoxModelObject() const { return false; } 348 347 virtual bool isCounter() const { return false; } … … 569 568 570 569 bool isText() const { return !m_bitfields.isBox() && m_bitfields.isTextOrRenderView(); } 570 bool isBR() const { return m_bitfields.isBR(); } 571 571 bool isBox() const { return m_bitfields.isBox(); } 572 572 bool isRenderView() const { return m_bitfields.isBox() && m_bitfields.isTextOrRenderView(); } … … 701 701 702 702 void setIsText() { ASSERT(!isBox()); m_bitfields.setIsTextOrRenderView(true); } 703 void setIsBR() { m_bitfields.setIsBR(true); } 703 704 void setIsBox() { m_bitfields.setIsBox(true); } 704 705 void setIsRenderView() { ASSERT(isBox()); m_bitfields.setIsTextOrRenderView(true); } … … 1100 1101 , m_isInline(true) 1101 1102 , m_isReplaced(false) 1103 , m_isBR(false) 1102 1104 , m_horizontalWritingMode(true) 1103 1105 , m_isDragging(false) … … 1117 1119 } 1118 1120 1119 // 3 1 bits have been used here. There is one bitavailable.1121 // 32 bits have been used here. There are no bits available. 1120 1122 ADD_BOOLEAN_BITFIELD(needsLayout, NeedsLayout); 1121 1123 ADD_BOOLEAN_BITFIELD(needsPositionedMovementLayout, NeedsPositionedMovementLayout); … … 1131 1133 ADD_BOOLEAN_BITFIELD(isInline, IsInline); 1132 1134 ADD_BOOLEAN_BITFIELD(isReplaced, IsReplaced); 1135 ADD_BOOLEAN_BITFIELD(isBR, IsBR); 1133 1136 ADD_BOOLEAN_BITFIELD(horizontalWritingMode, HorizontalWritingMode); 1134 1137 ADD_BOOLEAN_BITFIELD(isDragging, IsDragging);
Note:
See TracChangeset
for help on using the changeset viewer.