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

Side by Side Diff: Source/core/dom/Element.h

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 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 // This is needed for <applet> and <object> elements, which can't lay themse lves out 399 // This is needed for <applet> and <object> elements, which can't lay themse lves out
400 // until they know all of their nested <param>s. [Radar 3603191, 4040848]. 400 // until they know all of their nested <param>s. [Radar 3603191, 4040848].
401 // Also used for script elements and some SVG elements for similar purposes, 401 // Also used for script elements and some SVG elements for similar purposes,
402 // but making parsing a special case in this respect should be avoided if po ssible. 402 // but making parsing a special case in this respect should be avoided if po ssible.
403 virtual void finishParsingChildren(); 403 virtual void finishParsingChildren();
404 404
405 void beginParsingChildren() { setIsFinishedParsingChildren(false); } 405 void beginParsingChildren() { setIsFinishedParsingChildren(false); }
406 406
407 PseudoElement* pseudoElement(PseudoId) const; 407 PseudoElement* pseudoElement(PseudoId) const;
408 RenderObject* pseudoElementRenderer(PseudoId) const; 408 RenderObject* pseudoElementRenderer(PseudoId) const;
409 void clearFirstLetterPseudoElement();
410 virtual RenderObject* firstLetterTextRenderer() const;
411 unsigned firstLetterLength(const String& text) const;
409 412
410 virtual bool matchesReadOnlyPseudoClass() const { return false; } 413 virtual bool matchesReadOnlyPseudoClass() const { return false; }
411 virtual bool matchesReadWritePseudoClass() const { return false; } 414 virtual bool matchesReadWritePseudoClass() const { return false; }
412 bool matches(const String& selectors, ExceptionState&); 415 bool matches(const String& selectors, ExceptionState&);
413 virtual bool shouldAppearIndeterminate() const { return false; } 416 virtual bool shouldAppearIndeterminate() const { return false; }
414 417
415 DOMTokenList& classList(); 418 DOMTokenList& classList();
416 419
417 DOMStringMap& dataset(); 420 DOMStringMap& dataset();
418 421
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 855 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
853 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 856 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
854 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 857 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
855 { \ 858 { \
856 return adoptRefWillBeNoop(new T(tagName, document)); \ 859 return adoptRefWillBeNoop(new T(tagName, document)); \
857 } 860 }
858 861
859 } // namespace 862 } // namespace
860 863
861 #endif // Element_h 864 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698