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

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

Issue 828433004: Fix renderName on RenderBlock and RenderParagraph. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 #include "sky/engine/config.h" 5 #include "sky/engine/config.h"
6 #include "sky/engine/core/rendering/RenderParagraph.h" 6 #include "sky/engine/core/rendering/RenderParagraph.h"
7 7
8 #include "sky/engine/core/rendering/BidiRunForLine.h" 8 #include "sky/engine/core/rendering/BidiRunForLine.h"
9 #include "sky/engine/core/rendering/InlineIterator.h" 9 #include "sky/engine/core/rendering/InlineIterator.h"
10 #include "sky/engine/core/rendering/RenderLayer.h" 10 #include "sky/engine/core/rendering/RenderLayer.h"
(...skipping 21 matching lines...) Expand all
32 32
33 RenderParagraph::RenderParagraph(ContainerNode* node) 33 RenderParagraph::RenderParagraph(ContainerNode* node)
34 : RenderBlockFlow(node) 34 : RenderBlockFlow(node)
35 { 35 {
36 } 36 }
37 37
38 RenderParagraph::~RenderParagraph() 38 RenderParagraph::~RenderParagraph()
39 { 39 {
40 } 40 }
41 41
42 const char* RenderParagraph::renderName() const
43 {
44 if (isAnonymous())
45 return "RenderParagraph (anonymous)";
46 return "RenderParagraph";
47 }
48
42 RenderParagraph* RenderParagraph::createAnonymous(Document& document) 49 RenderParagraph* RenderParagraph::createAnonymous(Document& document)
43 { 50 {
44 RenderParagraph* renderer = new RenderParagraph(0); 51 RenderParagraph* renderer = new RenderParagraph(0);
45 renderer->setDocumentForAnonymous(&document); 52 renderer->setDocumentForAnonymous(&document);
46 return renderer; 53 return renderer;
47 } 54 }
48 55
49 RootInlineBox* RenderParagraph::lineAtIndex(int i) const 56 RootInlineBox* RenderParagraph::lineAtIndex(int i) const
50 { 57 {
51 ASSERT(i >= 0); 58 ASSERT(i >= 0);
(...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after
1601 curr->adjustLogicalPosition(logicalLeft, 0); 1608 curr->adjustLogicalPosition(logicalLeft, 0);
1602 else 1609 else
1603 curr->adjustLogicalPosition(logicalLeft - (availableLogicalW idth - totalLogicalWidth), 0); 1610 curr->adjustLogicalPosition(logicalLeft - (availableLogicalW idth - totalLogicalWidth), 0);
1604 } 1611 }
1605 } 1612 }
1606 firstLine = false; 1613 firstLine = false;
1607 } 1614 }
1608 } 1615 }
1609 1616
1610 } // namespace blink 1617 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderParagraph.h ('k') | sky/tests/clipping/background-opaque-clipped-gradients-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698