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

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

Issue 1756763002: 2016-03-02T18:53:01 LayoutPosition Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-04-25T19:02:18 Created 4 years, 7 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) 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/api/LineLayoutBoxModel.h" 24 #include "core/layout/api/LineLayoutBoxModel.h"
25 #include "core/layout/api/LineLayoutItem.h" 25 #include "core/layout/api/LineLayoutItem.h"
26 #include "core/layout/api/SelectionState.h" 26 #include "core/layout/api/SelectionState.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 #include <iosfwd> // NOLINT
29 30
30 namespace blink { 31 namespace blink {
31 32
32 class HitTestRequest; 33 class HitTestRequest;
33 class HitTestResult; 34 class HitTestResult;
34 class LayoutObject; 35 class LayoutObject;
35 class RootInlineBox; 36 class RootInlineBox;
36 37
37 enum MarkLineBoxes { MarkLineBoxesDirty, DontMarkLineBoxes }; 38 enum MarkLineBoxes { MarkLineBoxesDirty, DontMarkLineBoxes };
38 39
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 m_hasBadParent = true; 443 m_hasBadParent = true;
443 } 444 }
444 #endif 445 #endif
445 446
446 #define DEFINE_INLINE_BOX_TYPE_CASTS(typeName) \ 447 #define DEFINE_INLINE_BOX_TYPE_CASTS(typeName) \
447 DEFINE_TYPE_CASTS(typeName, InlineBox, box, box->is##typeName(), box.is##typ eName()) 448 DEFINE_TYPE_CASTS(typeName, InlineBox, box, box->is##typeName(), box.is##typ eName())
448 449
449 // Allow equality comparisons of InlineBox's by reference or pointer, interchang eably. 450 // Allow equality comparisons of InlineBox's by reference or pointer, interchang eably.
450 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(InlineBox) 451 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(InlineBox)
451 452
453 CORE_EXPORT std::ostream& operator<<(std::ostream&, const InlineBox&);
454 CORE_EXPORT std::ostream& operator<<(std::ostream&, InlineBox*);
455
452 } // namespace blink 456 } // namespace blink
453 457
454 #ifndef NDEBUG 458 #ifndef NDEBUG
455 // Outside the WebCore namespace for ease of invocation from gdb. 459 // Outside the WebCore namespace for ease of invocation from gdb.
456 void showTree(const blink::InlineBox*); 460 void showTree(const blink::InlineBox*);
457 void showLineTree(const blink::InlineBox*); 461 void showLineTree(const blink::InlineBox*);
458 #endif 462 #endif
459 463
460 #endif // InlineBox_h 464 #endif // InlineBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/api/LineLayoutItem.h ('k') | third_party/WebKit/Source/core/layout/line/InlineBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698