| 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, 2013 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights 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 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 // See comments in RenderObject::setStyle(). | 858 // See comments in RenderObject::setStyle(). |
| 859 if (element->hasTagName(iframeTag) || element->hasTagName(frameTag) || eleme
nt->hasTagName(embedTag) || element->hasTagName(objectTag) || element->hasTagNam
e(appletTag) || element->hasTagName(canvasTag)) | 859 if (element->hasTagName(iframeTag) || element->hasTagName(frameTag) || eleme
nt->hasTagName(embedTag) || element->hasTagName(objectTag) || element->hasTagNam
e(appletTag) || element->hasTagName(canvasTag)) |
| 860 return false; | 860 return false; |
| 861 | 861 |
| 862 if (elementHasDirectionAuto(element)) | 862 if (elementHasDirectionAuto(element)) |
| 863 return false; | 863 return false; |
| 864 | 864 |
| 865 if (element->isLink() && state.elementLinkState() != style->insideLink()) | 865 if (element->isLink() && state.elementLinkState() != style->insideLink()) |
| 866 return false; | 866 return false; |
| 867 | 867 |
| 868 if (element->isUnresolvedCustomElement() != state.element()->isUnresolvedCus
tomElement()) |
| 869 return false; |
| 870 |
| 868 // Deny sharing styles between WebVTT and non-WebVTT nodes. | 871 // Deny sharing styles between WebVTT and non-WebVTT nodes. |
| 869 if (element->isWebVTTElement() != state.element()->isWebVTTElement()) | 872 if (element->isWebVTTElement() != state.element()->isWebVTTElement()) |
| 870 return false; | 873 return false; |
| 871 | 874 |
| 872 if (element->isWebVTTElement() && state.element()->isWebVTTElement() && toWe
bVTTElement(element)->isPastNode() != toWebVTTElement(state.element())->isPastNo
de()) | 875 if (element->isWebVTTElement() && state.element()->isWebVTTElement() && toWe
bVTTElement(element)->isPastNode() != toWebVTTElement(state.element())->isPastNo
de()) |
| 873 return false; | 876 return false; |
| 874 | 877 |
| 875 if (element == element->document()->webkitCurrentFullScreenElement() || stat
e.element() == state.document()->webkitCurrentFullScreenElement()) | 878 if (element == element->document()->webkitCurrentFullScreenElement() || stat
e.element() == state.document()->webkitCurrentFullScreenElement()) |
| 876 return false; | 879 return false; |
| 877 return true; | 880 return true; |
| (...skipping 3483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4361 info.addMember(m_state, "state"); | 4364 info.addMember(m_state, "state"); |
| 4362 | 4365 |
| 4363 // FIXME: move this to a place where it would be called only once? | 4366 // FIXME: move this to a place where it would be called only once? |
| 4364 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle"); | 4367 info.addMember(CSSDefaultStyleSheets::defaultStyle, "defaultStyle"); |
| 4365 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl
e"); | 4368 info.addMember(CSSDefaultStyleSheets::defaultQuirksStyle, "defaultQuirksStyl
e"); |
| 4366 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle,"defaultPrintStyle")
; | 4369 info.addMember(CSSDefaultStyleSheets::defaultPrintStyle,"defaultPrintStyle")
; |
| 4367 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo
urceStyle"); | 4370 info.addMember(CSSDefaultStyleSheets::defaultViewSourceStyle, "defaultViewSo
urceStyle"); |
| 4368 } | 4371 } |
| 4369 | 4372 |
| 4370 } // namespace WebCore | 4373 } // namespace WebCore |
| OLD | NEW |