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

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

Issue 2304563003: Add DISABLE_CFI_PERF attribute on the methods with CFI checks disabled. (Closed)
Patch Set: InlineBox Created 4 years, 3 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
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual void deleteLine(); 76 virtual void deleteLine();
77 virtual void extractLine(); 77 virtual void extractLine();
78 virtual void attachLine(); 78 virtual void attachLine();
79 79
80 virtual bool isLineBreak() const { return false; } 80 virtual bool isLineBreak() const { return false; }
81 81
82 // These methods are called when the caller wants to move the position of In lineBox without full layout of it. 82 // These methods are called when the caller wants to move the position of In lineBox without full layout of it.
83 // The implementation should update the position of the whole subtree (e.g. position of descendants and overflow etc. 83 // The implementation should update the position of the whole subtree (e.g. position of descendants and overflow etc.
84 // should also be moved accordingly). 84 // should also be moved accordingly).
85 virtual void move(const LayoutSize& delta); 85 virtual void move(const LayoutSize& delta);
86 void moveInLogicalDirection(const LayoutSize& deltaInLogicalDirection) { mov e(isHorizontal() ? deltaInLogicalDirection : deltaInLogicalDirection.transposedS ize()); } 86 DISABLE_CFI_PERF void moveInLogicalDirection(const LayoutSize& deltaInLogica lDirection) { move(isHorizontal() ? deltaInLogicalDirection : deltaInLogicalDire ction.transposedSize()); }
87 void moveInInlineDirection(LayoutUnit delta) { moveInLogicalDirection(Layout Size(delta, LayoutUnit())); } 87 void moveInInlineDirection(LayoutUnit delta) { moveInLogicalDirection(Layout Size(delta, LayoutUnit())); }
88 void moveInBlockDirection(LayoutUnit delta) { moveInLogicalDirection(LayoutS ize(LayoutUnit(), delta)); } 88 void moveInBlockDirection(LayoutUnit delta) { moveInLogicalDirection(LayoutS ize(LayoutUnit(), delta)); }
89 89
90 virtual void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom) const; 90 virtual void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom) const;
91 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit li neBottom); 91 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit li neBottom);
92 92
93 // InlineBoxes are allocated out of the rendering partition. 93 // InlineBoxes are allocated out of the rendering partition.
94 void* operator new(size_t); 94 void* operator new(size_t);
95 void operator delete(void*); 95 void operator delete(void*);
96 96
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 455
456 } // namespace blink 456 } // namespace blink
457 457
458 #ifndef NDEBUG 458 #ifndef NDEBUG
459 // Outside the WebCore namespace for ease of invocation from gdb. 459 // Outside the WebCore namespace for ease of invocation from gdb.
460 void showTree(const blink::InlineBox*); 460 void showTree(const blink::InlineBox*);
461 void showLineTree(const blink::InlineBox*); 461 void showLineTree(const blink::InlineBox*);
462 #endif 462 #endif
463 463
464 #endif // InlineBox_h 464 #endif // InlineBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698