OLD | NEW |
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) 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) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 2857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2868 | 2868 |
2869 bool RenderObject::canUpdateSelectionOnRootLineBoxes() | 2869 bool RenderObject::canUpdateSelectionOnRootLineBoxes() |
2870 { | 2870 { |
2871 if (needsLayout()) | 2871 if (needsLayout()) |
2872 return false; | 2872 return false; |
2873 | 2873 |
2874 RenderBlock* containingBlock = this->containingBlock(); | 2874 RenderBlock* containingBlock = this->containingBlock(); |
2875 return containingBlock ? !containingBlock->needsLayout() : true; | 2875 return containingBlock ? !containingBlock->needsLayout() : true; |
2876 } | 2876 } |
2877 | 2877 |
| 2878 // We only create "generated" child renderers like one for first-letter if: |
| 2879 // - the firstLetterBlock can have children in the DOM and |
| 2880 // - the block doesn't have any special assumption on its text children. |
| 2881 // This correctly prevents form controls from having such renderers. |
| 2882 bool RenderObject::canHaveGeneratedChildren() const |
| 2883 { |
| 2884 return canHaveChildren(); |
| 2885 } |
| 2886 |
2878 #if ENABLE(SVG) | 2887 #if ENABLE(SVG) |
2879 | 2888 |
2880 RenderSVGResourceContainer* RenderObject::toRenderSVGResourceContainer() | 2889 RenderSVGResourceContainer* RenderObject::toRenderSVGResourceContainer() |
2881 { | 2890 { |
2882 ASSERT_NOT_REACHED(); | 2891 ASSERT_NOT_REACHED(); |
2883 return 0; | 2892 return 0; |
2884 } | 2893 } |
2885 | 2894 |
2886 void RenderObject::setNeedsBoundariesUpdate() | 2895 void RenderObject::setNeedsBoundariesUpdate() |
2887 { | 2896 { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2954 { | 2963 { |
2955 if (object1) { | 2964 if (object1) { |
2956 const WebCore::RenderObject* root = object1; | 2965 const WebCore::RenderObject* root = object1; |
2957 while (root->parent()) | 2966 while (root->parent()) |
2958 root = root->parent(); | 2967 root = root->parent(); |
2959 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 2968 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
2960 } | 2969 } |
2961 } | 2970 } |
2962 | 2971 |
2963 #endif | 2972 #endif |
OLD | NEW |