OLD | NEW |
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 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 bool hasHorizontalLayoutOverflow = m_block->hasHorizontalLayoutOverflow(
); | 133 bool hasHorizontalLayoutOverflow = m_block->hasHorizontalLayoutOverflow(
); |
134 bool hasVerticalLayoutOverflow = m_block->hasVerticalLayoutOverflow(); | 134 bool hasVerticalLayoutOverflow = m_block->hasVerticalLayoutOverflow(); |
135 | 135 |
136 bool horizontalLayoutOverflowChanged = hasHorizontalLayoutOverflow != m_
hadHorizontalLayoutOverflow; | 136 bool horizontalLayoutOverflowChanged = hasHorizontalLayoutOverflow != m_
hadHorizontalLayoutOverflow; |
137 bool verticalLayoutOverflowChanged = hasVerticalLayoutOverflow != m_hadV
erticalLayoutOverflow; | 137 bool verticalLayoutOverflowChanged = hasVerticalLayoutOverflow != m_hadV
erticalLayoutOverflow; |
138 | 138 |
139 if (!horizontalLayoutOverflowChanged && !verticalLayoutOverflowChanged) | 139 if (!horizontalLayoutOverflowChanged && !verticalLayoutOverflowChanged) |
140 return; | 140 return; |
141 | 141 |
142 RefPtr<OverflowEvent> event = OverflowEvent::create(horizontalLayoutOver
flowChanged, hasHorizontalLayoutOverflow, verticalLayoutOverflowChanged, hasVert
icalLayoutOverflow); | 142 RefPtrWillBeRawPtr<OverflowEvent> event = OverflowEvent::create(horizont
alLayoutOverflowChanged, hasHorizontalLayoutOverflow, verticalLayoutOverflowChan
ged, hasVerticalLayoutOverflow); |
143 event->setTarget(m_block->node()); | 143 event->setTarget(m_block->node()); |
144 m_block->document().enqueueAnimationFrameEvent(event.release()); | 144 m_block->document().enqueueAnimationFrameEvent(event.release()); |
145 } | 145 } |
146 | 146 |
147 private: | 147 private: |
148 const RenderBlock* m_block; | 148 const RenderBlock* m_block; |
149 bool m_shouldDispatchEvent; | 149 bool m_shouldDispatchEvent; |
150 bool m_hadHorizontalLayoutOverflow; | 150 bool m_hadHorizontalLayoutOverflow; |
151 bool m_hadVerticalLayoutOverflow; | 151 bool m_hadVerticalLayoutOverflow; |
152 }; | 152 }; |
(...skipping 4751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4904 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const | 4904 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render
Object* obj) const |
4905 { | 4905 { |
4906 showRenderObject(); | 4906 showRenderObject(); |
4907 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 4907 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
4908 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 4908 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
4909 } | 4909 } |
4910 | 4910 |
4911 #endif | 4911 #endif |
4912 | 4912 |
4913 } // namespace WebCore | 4913 } // namespace WebCore |
OLD | NEW |