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

Side by Side Diff: Source/core/rendering/RenderObject.h

Issue 571603003: Convert first letter into a pseudo element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 631
632 Node* nonPseudoNode() const 632 Node* nonPseudoNode() const
633 { 633 {
634 return isPseudoElement() ? 0 : node(); 634 return isPseudoElement() ? 0 : node();
635 } 635 }
636 636
637 // FIXME: Why does RenderWidget need this? 637 // FIXME: Why does RenderWidget need this?
638 void clearNode() { m_node = nullptr; } 638 void clearNode() { m_node = nullptr; }
639 639
640 // Returns the styled node that caused the generation of this renderer. 640 // Returns the styled node that caused the generation of this renderer.
641 // This is the same as node() except for renderers of :before and :after 641 // This is the same as node() except for renderers of :before, :after and :f irst-letter
Julien - ping for review 2014/10/09 18:24:48 Nit: How about putting the :first-letter on the fo
dsinclair 2014/10/09 21:14:22 Done.
642 // pseudo elements for which their parent node is returned. 642 // pseudo elements for which their parent node is returned.
643 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh adowHostNode() : node(); } 643 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh adowHostNode() : node(); }
644 644
645 Document& document() const { return m_node->document(); } 645 Document& document() const { return m_node->document(); }
646 LocalFrame* frame() const { return document().frame(); } 646 LocalFrame* frame() const { return document().frame(); }
647 647
648 // Returns the object containing this one. Can be different from parent for positioned elements. 648 // Returns the object containing this one. Can be different from parent for positioned elements.
649 // If paintInvalidationContainer and paintInvalidationContainerSkipped are n ot null, on return *paintInvalidationContainerSkipped 649 // If paintInvalidationContainer and paintInvalidationContainerSkipped are n ot null, on return *paintInvalidationContainerSkipped
650 // is true if the renderer returned is an ancestor of paintInvalidationConta iner. 650 // is true if the renderer returned is an ancestor of paintInvalidationConta iner.
651 RenderObject* container(const RenderLayerModelObject* paintInvalidationConta iner = 0, bool* paintInvalidationContainerSkipped = 0) const; 651 RenderObject* container(const RenderLayerModelObject* paintInvalidationConta iner = 0, bool* paintInvalidationContainerSkipped = 0) const;
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 void showTree(const blink::RenderObject*); 1554 void showTree(const blink::RenderObject*);
1555 void showLineTree(const blink::RenderObject*); 1555 void showLineTree(const blink::RenderObject*);
1556 void showRenderTree(const blink::RenderObject* object1); 1556 void showRenderTree(const blink::RenderObject* object1);
1557 // We don't make object2 an optional parameter so that showRenderTree 1557 // We don't make object2 an optional parameter so that showRenderTree
1558 // can be called from gdb easily. 1558 // can be called from gdb easily.
1559 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1559 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1560 1560
1561 #endif 1561 #endif
1562 1562
1563 #endif // RenderObject_h 1563 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698