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

Side by Side Diff: Source/core/rendering/RenderInline.cpp

Issue 571603003: Convert first letter into a pseudo element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 return "RenderInline (relative positioned)"; 774 return "RenderInline (relative positioned)";
775 // FIXME: Cleanup isPseudoElement duplication with other renderName methods. 775 // FIXME: Cleanup isPseudoElement duplication with other renderName methods.
776 // crbug.com/415653 776 // crbug.com/415653
777 if (isPseudoElement()) { 777 if (isPseudoElement()) {
778 if (style()->styleType() == BEFORE) 778 if (style()->styleType() == BEFORE)
779 return "RenderInline (pseudo:before)"; 779 return "RenderInline (pseudo:before)";
780 if (style()->styleType() == AFTER) 780 if (style()->styleType() == AFTER)
781 return "RenderInline (pseudo:after)"; 781 return "RenderInline (pseudo:after)";
782 if (style()->styleType() == BACKDROP) 782 if (style()->styleType() == BACKDROP)
783 return "RenderInline (pseudo:backdrop)"; 783 return "RenderInline (pseudo:backdrop)";
784 if (style()->styleType() == FIRST_LETTER)
785 return "RenderInline (pseudo:first-letter)";
786
Julien - ping for review 2014/10/06 17:47:33 Nit: Unneeded empty space.
dsinclair 2014/10/07 19:36:21 Done.
784 ASSERT_NOT_REACHED(); 787 ASSERT_NOT_REACHED();
785 } 788 }
786 if (isAnonymous()) 789 if (isAnonymous())
787 return "RenderInline (generated)"; 790 return "RenderInline (generated)";
788 return "RenderInline"; 791 return "RenderInline";
789 } 792 }
790 793
791 bool RenderInline::nodeAtPoint(const HitTestRequest& request, HitTestResult& res ult, 794 bool RenderInline::nodeAtPoint(const HitTestRequest& request, HitTestResult& res ult,
792 const HitTestLocation& locationInContainer, cons t LayoutPoint& accumulatedOffset, HitTestAction hitTestAction) 795 const HitTestLocation& locationInContainer, cons t LayoutPoint& accumulatedOffset, HitTestAction hitTestAction)
793 { 796 {
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 container = this; 1424 container = this;
1422 1425
1423 FloatPoint absPos = container->localToAbsolute(); 1426 FloatPoint absPos = container->localToAbsolute();
1424 region.bounds.setX(absPos.x() + region.bounds.x()); 1427 region.bounds.setX(absPos.x() + region.bounds.x());
1425 region.bounds.setY(absPos.y() + region.bounds.y()); 1428 region.bounds.setY(absPos.y() + region.bounds.y());
1426 1429
1427 regions.append(region); 1430 regions.append(region);
1428 } 1431 }
1429 1432
1430 } // namespace blink 1433 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698