Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2014 Robert Hogan <robert@roberthogan.net> |
| 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | |
| 4 * | 3 * |
| 5 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 9 * | 8 * |
| 10 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 12 * Library General Public License for more details. |
| 14 * | 13 * |
| 15 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
| 19 */ | 18 */ |
| 20 | 19 |
| 21 #ifndef SVGDescElement_h | 20 #ifndef RenderTextControlPlaceholder_h |
| 22 #define SVGDescElement_h | 21 #define RenderTextControlPlaceholder_h |
| 23 | 22 |
| 24 #include "core/svg/SVGElement.h" | 23 #include "core/rendering/RenderBlockFlow.h" |
| 25 | 24 |
| 26 namespace WebCore { | 25 namespace WebCore { |
| 27 | 26 |
| 28 class SVGDescElement FINAL : public SVGElement { | 27 |
| 28 class RenderTextControlPlaceholder FINAL : public RenderBlockFlow { | |
| 29 public: | 29 public: |
| 30 static PassRefPtr<SVGDescElement> create(Document&); | 30 explicit RenderTextControlPlaceholder(Element*); |
| 31 virtual ~RenderTextControlPlaceholder(); | |
| 32 virtual bool isSelfCollapsingBlock() const OVERRIDE FINAL { return false; } | |
|
ojan
2014/01/14 00:34:18
I think this deserve a comment explaining why we o
rhogan
2014/01/14 19:23:01
Yes: the placeholder is not laid out until the end
| |
| 33 }; | |
| 31 | 34 |
| 32 String description() const; | 35 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTextControlPlaceholder, isTableCaption()); |
|
ojan
2014/01/14 00:34:18
isTableCaption?
| |
| 33 | |
| 34 private: | |
| 35 explicit SVGDescElement(Document&); | |
| 36 | |
| 37 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } | |
| 38 }; | |
| 39 | 36 |
| 40 } // namespace WebCore | 37 } // namespace WebCore |
| 41 | 38 |
| 42 #endif | 39 #endif // RenderTextControlPlaceholder_h |
| OLD | NEW |