OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 logicalLeft += inset / 2; | 80 logicalLeft += inset / 2; |
81 logicalWidth -= inset; | 81 logicalWidth -= inset; |
82 } | 82 } |
83 | 83 |
84 bool RenderRubyText::avoidsFloats() const | 84 bool RenderRubyText::avoidsFloats() const |
85 { | 85 { |
86 return true; | 86 return true; |
87 } | 87 } |
88 | 88 |
| 89 void RenderRubyText::updateBeforeAfterContent(PseudoId pseudoId) |
| 90 { |
| 91 // RenderRubyText manages its own :before and :after content |
| 92 // and is not handled by its anonymous wrappers RenderRubyRun |
| 93 // and RenderRuby. This contrasts with other ruby children, which |
| 94 // are enclosed in RenderRubyBase and hence they are able to |
| 95 // update their :before, :after content (since RenderRubyBase |
| 96 // is not a anonymous wrapper). |
| 97 return children()->updateBeforeAfterContent(this, pseudoId); |
| 98 } |
| 99 |
89 } // namespace WebCore | 100 } // namespace WebCore |
OLD | NEW |