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

Side by Side Diff: Source/core/dom/FirstLetterPseudoElement.cpp

Issue 948343003: Move rendering/RenderGrid to layout/LayoutGrid (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/css/LayoutStyleCSSValueMapping.cpp ('k') | Source/core/dom/Text.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 firstLetterTextRenderer = firstLetterTextRenderer->nextSibling(); 132 firstLetterTextRenderer = firstLetterTextRenderer->nextSibling();
133 } else if (firstLetterTextRenderer->isFloatingOrOutOfFlowPositioned()) { 133 } else if (firstLetterTextRenderer->isFloatingOrOutOfFlowPositioned()) {
134 if (firstLetterTextRenderer->style()->styleType() == FIRST_LETTER) { 134 if (firstLetterTextRenderer->style()->styleType() == FIRST_LETTER) {
135 firstLetterTextRenderer = firstLetterTextRenderer->slowFirstChil d(); 135 firstLetterTextRenderer = firstLetterTextRenderer->slowFirstChil d();
136 break; 136 break;
137 } 137 }
138 firstLetterTextRenderer = firstLetterTextRenderer->nextSibling(); 138 firstLetterTextRenderer = firstLetterTextRenderer->nextSibling();
139 } else if (firstLetterTextRenderer->isReplaced() || firstLetterTextRende rer->isRenderButton() 139 } else if (firstLetterTextRenderer->isReplaced() || firstLetterTextRende rer->isRenderButton()
140 || firstLetterTextRenderer->isMenuList()) { 140 || firstLetterTextRenderer->isMenuList()) {
141 return nullptr; 141 return nullptr;
142 } else if (firstLetterTextRenderer->isFlexibleBoxIncludingDeprecated() | | firstLetterTextRenderer->isRenderGrid()) { 142 } else if (firstLetterTextRenderer->isFlexibleBoxIncludingDeprecated() | | firstLetterTextRenderer->isLayoutGrid()) {
143 firstLetterTextRenderer = firstLetterTextRenderer->nextSibling(); 143 firstLetterTextRenderer = firstLetterTextRenderer->nextSibling();
144 } else if (firstLetterTextRenderer->style()->hasPseudoStyle(FIRST_LETTER ) 144 } else if (firstLetterTextRenderer->style()->hasPseudoStyle(FIRST_LETTER )
145 && firstLetterTextRenderer->canHaveGeneratedChildren()) { 145 && firstLetterTextRenderer->canHaveGeneratedChildren()) {
146 // There is a renderer further down the tree which has FIRST_LETTER set. When that node 146 // There is a renderer further down the tree which has FIRST_LETTER set. When that node
147 // is attached we will handle setting up the first letter then. 147 // is attached we will handle setting up the first letter then.
148 return nullptr; 148 return nullptr;
149 } else { 149 } else {
150 firstLetterTextRenderer = firstLetterTextRenderer->slowFirstChild(); 150 firstLetterTextRenderer = firstLetterTextRenderer->slowFirstChild();
151 } 151 }
152 } 152 }
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 304
305 // We only manage the style for the generated content items. 305 // We only manage the style for the generated content items.
306 if (!child->isText() && !child->isQuote() && !child->isImage()) 306 if (!child->isText() && !child->isQuote() && !child->isImage())
307 continue; 307 continue;
308 308
309 child->setPseudoStyle(renderer->style()); 309 child->setPseudoStyle(renderer->style());
310 } 310 }
311 } 311 }
312 312
313 } // namespace blink 313 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/LayoutStyleCSSValueMapping.cpp ('k') | Source/core/dom/Text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698