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

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

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * Copyright (C) 2014 Samsung Electronics. All rights reserved. 7 * Copyright (C) 2014 Samsung Electronics. 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 bool hasHorizontalLayoutOverflow = m_block->hasHorizontalLayoutOverflow( ); 134 bool hasHorizontalLayoutOverflow = m_block->hasHorizontalLayoutOverflow( );
135 bool hasVerticalLayoutOverflow = m_block->hasVerticalLayoutOverflow(); 135 bool hasVerticalLayoutOverflow = m_block->hasVerticalLayoutOverflow();
136 136
137 bool horizontalLayoutOverflowChanged = hasHorizontalLayoutOverflow != m_ hadHorizontalLayoutOverflow; 137 bool horizontalLayoutOverflowChanged = hasHorizontalLayoutOverflow != m_ hadHorizontalLayoutOverflow;
138 bool verticalLayoutOverflowChanged = hasVerticalLayoutOverflow != m_hadV erticalLayoutOverflow; 138 bool verticalLayoutOverflowChanged = hasVerticalLayoutOverflow != m_hadV erticalLayoutOverflow;
139 139
140 if (!horizontalLayoutOverflowChanged && !verticalLayoutOverflowChanged) 140 if (!horizontalLayoutOverflowChanged && !verticalLayoutOverflowChanged)
141 return; 141 return;
142 142
143 RefPtr<OverflowEvent> event = OverflowEvent::create(horizontalLayoutOver flowChanged, hasHorizontalLayoutOverflow, verticalLayoutOverflowChanged, hasVert icalLayoutOverflow); 143 RefPtrWillBeRawPtr<OverflowEvent> event = OverflowEvent::create(horizont alLayoutOverflowChanged, hasHorizontalLayoutOverflow, verticalLayoutOverflowChan ged, hasVerticalLayoutOverflow);
144 event->setTarget(m_block->node()); 144 event->setTarget(m_block->node());
145 m_block->document().enqueueAnimationFrameEvent(event.release()); 145 m_block->document().enqueueAnimationFrameEvent(event.release());
146 } 146 }
147 147
148 private: 148 private:
149 const RenderBlock* m_block; 149 const RenderBlock* m_block;
150 bool m_shouldDispatchEvent; 150 bool m_shouldDispatchEvent;
151 bool m_hadHorizontalLayoutOverflow; 151 bool m_hadHorizontalLayoutOverflow;
152 bool m_hadVerticalLayoutOverflow; 152 bool m_hadVerticalLayoutOverflow;
153 }; 153 };
(...skipping 4878 matching lines...) Expand 10 before | Expand all | Expand 10 after
5032 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const 5032 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const
5033 { 5033 {
5034 showRenderObject(); 5034 showRenderObject();
5035 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box()) 5035 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box())
5036 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1); 5036 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1);
5037 } 5037 }
5038 5038
5039 #endif 5039 #endif
5040 5040
5041 } // namespace WebCore 5041 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698