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

Side by Side Diff: sky/engine/core/rendering/RenderParagraph.h

Issue 1077473002: Stop rendering text inside flex boxes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: make p default to display: paragraph Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERPARAGRAPH_H_ 5 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERPARAGRAPH_H_
6 #define SKY_ENGINE_CORE_RENDERING_RENDERPARAGRAPH_H_ 6 #define SKY_ENGINE_CORE_RENDERING_RENDERPARAGRAPH_H_
7 7
8 #include "sky/engine/core/dom/ContainerNode.h" 8 #include "sky/engine/core/dom/ContainerNode.h"
9 #include "sky/engine/core/rendering/RenderBlock.h" 9 #include "sky/engine/core/rendering/RenderBlock.h"
10 #include "sky/engine/core/rendering/line/TrailingObjects.h" 10 #include "sky/engine/core/rendering/line/TrailingObjects.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 struct BidiRun; 14 struct BidiRun;
15 class ContainerNode; 15 class ContainerNode;
16 // class InlineBidiResolver; 16 // class InlineBidiResolver;
17 class InlineIterator; 17 class InlineIterator;
18 18
19 class RenderParagraph final : public RenderBlock { 19 class RenderParagraph final : public RenderBlock {
20 public: 20 public:
21 explicit RenderParagraph(ContainerNode*); 21 explicit RenderParagraph(ContainerNode*);
22 virtual ~RenderParagraph(); 22 virtual ~RenderParagraph();
23 23
24 static RenderParagraph* createAnonymous(Document&);
25
26 bool isRenderParagraph() const final { return true; } 24 bool isRenderParagraph() const final { return true; }
27 25
28 void layout() final; 26 void layout() final;
29 27
30 LayoutUnit logicalRightOffsetForLine(bool shouldIndentText) const 28 LayoutUnit logicalRightOffsetForLine(bool shouldIndentText) const
31 { 29 {
32 LayoutUnit right = logicalRightOffsetForContent(); 30 LayoutUnit right = logicalRightOffsetForContent();
33 if (shouldIndentText && !style()->isLeftToRightDirection()) 31 if (shouldIndentText && !style()->isLeftToRightDirection())
34 right -= textIndentOffset(); 32 right -= textIndentOffset();
35 return right; 33 return right;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 bool matchedEndLine(LineLayoutState&, const InlineBidiResolver&, const Inlin eIterator& endLineStart, const BidiStatus& endLineStatus); 107 bool matchedEndLine(LineLayoutState&, const InlineBidiResolver&, const Inlin eIterator& endLineStart, const BidiStatus& endLineStatus);
110 void deleteEllipsisLineBoxes(); 108 void deleteEllipsisLineBoxes();
111 void checkLinesForTextOverflow(); 109 void checkLinesForTextOverflow();
112 }; 110 };
113 111
114 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderParagraph, isRenderParagraph()); 112 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderParagraph, isRenderParagraph());
115 113
116 } // namespace blink 114 } // namespace blink
117 115
118 #endif // SKY_ENGINE_CORE_RENDERING_RENDERPARAGRAPH_H_ 116 #endif // SKY_ENGINE_CORE_RENDERING_RENDERPARAGRAPH_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderObject.cpp ('k') | sky/engine/core/rendering/RenderParagraph.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698