| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| (...skipping 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1936 if (e && e->hasTagName(tableTag) && (style->textAlign() == WEBKIT_LEFT |
| style->textAlign() == WEBKIT_CENTER || style->textAlign() == WEBKIT_RIGHT)) | 1936 if (e && e->hasTagName(tableTag) && (style->textAlign() == WEBKIT_LEFT |
| style->textAlign() == WEBKIT_CENTER || style->textAlign() == WEBKIT_RIGHT)) |
| 1937 style->setTextAlign(TAAUTO); | 1937 style->setTextAlign(TAAUTO); |
| 1938 | 1938 |
| 1939 // Frames and framesets never honor position:relative or position:absolu
te. This is necessary to | 1939 // Frames and framesets never honor position:relative or position:absolu
te. This is necessary to |
| 1940 // fix a crash where a site tries to position these objects. They also
never honor display. | 1940 // fix a crash where a site tries to position these objects. They also
never honor display. |
| 1941 if (e && (e->hasTagName(frameTag) || e->hasTagName(framesetTag))) { | 1941 if (e && (e->hasTagName(frameTag) || e->hasTagName(framesetTag))) { |
| 1942 style->setPosition(StaticPosition); | 1942 style->setPosition(StaticPosition); |
| 1943 style->setDisplay(BLOCK); | 1943 style->setDisplay(BLOCK); |
| 1944 } | 1944 } |
| 1945 | 1945 |
| 1946 // Ruby text does not support float or position. This might change with
evolution of the specification. |
| 1947 if (e && e->hasTagName(rtTag)) { |
| 1948 style->setPosition(StaticPosition); |
| 1949 style->setFloating(NoFloat); |
| 1950 } |
| 1951 |
| 1946 // Table headers with a text-align of auto will change the text-align to
center. | 1952 // Table headers with a text-align of auto will change the text-align to
center. |
| 1947 if (e && e->hasTagName(thTag) && style->textAlign() == TAAUTO) | 1953 if (e && e->hasTagName(thTag) && style->textAlign() == TAAUTO) |
| 1948 style->setTextAlign(CENTER); | 1954 style->setTextAlign(CENTER); |
| 1949 | 1955 |
| 1950 if (e && e->hasTagName(legendTag)) | 1956 if (e && e->hasTagName(legendTag)) |
| 1951 style->setDisplay(BLOCK); | 1957 style->setDisplay(BLOCK); |
| 1952 | 1958 |
| 1953 // Absolute/fixed positioned elements, floating elements and the documen
t element need block-like outside display. | 1959 // Absolute/fixed positioned elements, floating elements and the documen
t element need block-like outside display. |
| 1954 if (style->position() == AbsolutePosition || style->position() == FixedP
osition || style->isFloating() || (e && e->document()->documentElement() == e)) | 1960 if (style->position() == AbsolutePosition || style->position() == FixedP
osition || style->isFloating() || (e && e->document()->documentElement() == e)) |
| 1955 style->setDisplay(equivalentBlockDisplay(style->display(), style->is
Floating(), m_checker.strictParsing())); | 1961 style->setDisplay(equivalentBlockDisplay(style->display(), style->is
Floating(), m_checker.strictParsing())); |
| (...skipping 3783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5739 } | 5745 } |
| 5740 default: | 5746 default: |
| 5741 ASSERT_NOT_REACHED(); | 5747 ASSERT_NOT_REACHED(); |
| 5742 } | 5748 } |
| 5743 } | 5749 } |
| 5744 | 5750 |
| 5745 m_pendingImageProperties.clear(); | 5751 m_pendingImageProperties.clear(); |
| 5746 } | 5752 } |
| 5747 | 5753 |
| 5748 } // namespace WebCore | 5754 } // namespace WebCore |
| OLD | NEW |