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

Side by Side Diff: Source/core/layout/line/InlineBox.h

Issue 944923004: rendering/RenderBoxModelObject -> layout/LayoutBoxModelObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/layout/LayoutTreeAsText.cpp ('k') | Source/core/layout/line/InlineBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r ights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r ights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details. 12 * Library General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU Library General Public License 14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to 15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA. 17 * Boston, MA 02110-1301, USA.
18 * 18 *
19 */ 19 */
20 20
21 #ifndef InlineBox_h 21 #ifndef InlineBox_h
22 #define InlineBox_h 22 #define InlineBox_h
23 23
24 #include "core/layout/LayoutBoxModelObject.h"
24 #include "core/layout/LayoutObject.h" 25 #include "core/layout/LayoutObject.h"
25 #include "core/layout/line/FloatToLayoutUnit.h" 26 #include "core/layout/line/FloatToLayoutUnit.h"
26 #include "core/rendering/RenderBoxModelObject.h"
27 #include "platform/graphics/paint/DisplayItemClient.h" 27 #include "platform/graphics/paint/DisplayItemClient.h"
28 #include "platform/text/TextDirection.h" 28 #include "platform/text/TextDirection.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 class HitTestRequest; 32 class HitTestRequest;
33 class HitTestResult; 33 class HitTestResult;
34 class RootInlineBox; 34 class RootInlineBox;
35 35
36 enum MarkLineBoxes { MarkLineBoxesDirty, DontMarkLineBoxes }; 36 enum MarkLineBoxes { MarkLineBoxesDirty, DontMarkLineBoxes };
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 void setHasBadParent(); 274 void setHasBadParent();
275 #endif 275 #endif
276 276
277 int expansion() const { return m_bitfields.expansion(); } 277 int expansion() const { return m_bitfields.expansion(); }
278 278
279 bool visibleToHitTestRequest(const HitTestRequest& request) const { return r enderer().visibleToHitTestRequest(request); } 279 bool visibleToHitTestRequest(const HitTestRequest& request) const { return r enderer().visibleToHitTestRequest(request); }
280 280
281 EVerticalAlign verticalAlign() const { return renderer().style(m_bitfields.f irstLine())->verticalAlign(); } 281 EVerticalAlign verticalAlign() const { return renderer().style(m_bitfields.f irstLine())->verticalAlign(); }
282 282
283 // Use with caution! The type is not checked! 283 // Use with caution! The type is not checked!
284 RenderBoxModelObject* boxModelObject() const 284 LayoutBoxModelObject* boxModelObject() const
285 { 285 {
286 if (!renderer().isText()) 286 if (!renderer().isText())
287 return toRenderBoxModelObject(&renderer()); 287 return toLayoutBoxModelObject(&renderer());
288 return 0; 288 return 0;
289 } 289 }
290 290
291 FloatPointWillBeLayoutPoint locationIncludingFlipping(); 291 FloatPointWillBeLayoutPoint locationIncludingFlipping();
292 void flipForWritingMode(FloatRect&); 292 void flipForWritingMode(FloatRect&);
293 FloatPoint flipForWritingMode(const FloatPoint&); 293 FloatPoint flipForWritingMode(const FloatPoint&);
294 void flipForWritingMode(LayoutRect&); 294 void flipForWritingMode(LayoutRect&);
295 LayoutPoint flipForWritingMode(const LayoutPoint&); 295 LayoutPoint flipForWritingMode(const LayoutPoint&);
296 296
297 bool knownToHaveNoOverflow() const { return m_bitfields.knownToHaveNoOverflo w(); } 297 bool knownToHaveNoOverflow() const { return m_bitfields.knownToHaveNoOverflo w(); }
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 439
440 } // namespace blink 440 } // namespace blink
441 441
442 #ifndef NDEBUG 442 #ifndef NDEBUG
443 // Outside the WebCore namespace for ease of invocation from gdb. 443 // Outside the WebCore namespace for ease of invocation from gdb.
444 void showTree(const blink::InlineBox*); 444 void showTree(const blink::InlineBox*);
445 void showLineTree(const blink::InlineBox*); 445 void showLineTree(const blink::InlineBox*);
446 #endif 446 #endif
447 447
448 #endif // InlineBox_h 448 #endif // InlineBox_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutTreeAsText.cpp ('k') | Source/core/layout/line/InlineBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698