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 22 matching lines...) Expand all Loading... |
33 #include "SVGNames.h" | 33 #include "SVGNames.h" |
34 #include "core/dom/ContainerNode.h" | 34 #include "core/dom/ContainerNode.h" |
35 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
36 #include "core/dom/Element.h" | 36 #include "core/dom/Element.h" |
37 #include "core/html/HTMLHtmlElement.h" | 37 #include "core/html/HTMLHtmlElement.h" |
38 #include "core/html/HTMLIFrameElement.h" | 38 #include "core/html/HTMLIFrameElement.h" |
39 #include "core/html/HTMLInputElement.h" | 39 #include "core/html/HTMLInputElement.h" |
40 #include "core/html/HTMLTableElement.h" | 40 #include "core/html/HTMLTableElement.h" |
41 #include "core/html/HTMLTextAreaElement.h" | 41 #include "core/html/HTMLTextAreaElement.h" |
42 #include "core/page/FrameView.h" | 42 #include "core/page/FrameView.h" |
43 #include "core/page/Page.h" | |
44 #include "core/page/Settings.h" | 43 #include "core/page/Settings.h" |
45 #include "core/platform/Length.h" | 44 #include "core/platform/Length.h" |
46 #include "core/rendering/Pagination.h" | 45 #include "core/rendering/Pagination.h" |
47 #include "core/rendering/RenderTheme.h" | 46 #include "core/rendering/RenderTheme.h" |
48 #include "core/rendering/style/GridPosition.h" | 47 #include "core/rendering/style/GridPosition.h" |
49 #include "core/rendering/style/RenderStyle.h" | 48 #include "core/rendering/style/RenderStyle.h" |
50 #include "core/rendering/style/RenderStyleConstants.h" | 49 #include "core/rendering/style/RenderStyleConstants.h" |
51 #include "wtf/Assertions.h" | 50 #include "wtf/Assertions.h" |
52 | 51 |
53 namespace WebCore { | 52 namespace WebCore { |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 // object wedged in between them. Auto z-index also becomes 0 for objects th
at specify transforms/masks/reflections. | 270 // object wedged in between them. Auto z-index also becomes 0 for objects th
at specify transforms/masks/reflections. |
272 if (style->hasAutoZIndex() && ((e && e->document().documentElement() == e) | 271 if (style->hasAutoZIndex() && ((e && e->document().documentElement() == e) |
273 || style->opacity() < 1.0f | 272 || style->opacity() < 1.0f |
274 || style->hasTransformRelatedProperty() | 273 || style->hasTransformRelatedProperty() |
275 || style->hasMask() | 274 || style->hasMask() |
276 || style->clipPath() | 275 || style->clipPath() |
277 || style->boxReflect() | 276 || style->boxReflect() |
278 || style->hasFilter() | 277 || style->hasFilter() |
279 || style->hasBlendMode() | 278 || style->hasBlendMode() |
280 || style->position() == StickyPosition | 279 || style->position() == StickyPosition |
281 || (style->position() == FixedPosition && e && e->document().page() && e
->document().page()->settings().fixedPositionCreatesStackingContext()) | 280 || (style->position() == FixedPosition && e && e->document().settings()
&& e->document().settings()->fixedPositionCreatesStackingContext()) |
282 || isInTopLayer(e, style) | 281 || isInTopLayer(e, style) |
283 )) | 282 )) |
284 style->setZIndex(0); | 283 style->setZIndex(0); |
285 | 284 |
286 // Textarea considers overflow visible as auto. | 285 // Textarea considers overflow visible as auto. |
287 if (e && isHTMLTextAreaElement(e)) { | 286 if (e && isHTMLTextAreaElement(e)) { |
288 style->setOverflowX(style->overflowX() == OVISIBLE ? OAUTO : style->over
flowX()); | 287 style->setOverflowX(style->overflowX() == OVISIBLE ? OAUTO : style->over
flowX()); |
289 style->setOverflowY(style->overflowY() == OVISIBLE ? OAUTO : style->over
flowY()); | 288 style->setOverflowY(style->overflowY() == OVISIBLE ? OAUTO : style->over
flowY()); |
290 } | 289 } |
291 | 290 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 if (prop.isNamedGridArea() && !map.contains(prop.namedGridLine())) \ | 416 if (prop.isNamedGridArea() && !map.contains(prop.namedGridLine())) \ |
418 style->setGrid##Prop(GridPosition()); | 417 style->setGrid##Prop(GridPosition()); |
419 | 418 |
420 CLEAR_UNKNOWN_NAMED_AREA(columnStartPosition, ColumnStart); | 419 CLEAR_UNKNOWN_NAMED_AREA(columnStartPosition, ColumnStart); |
421 CLEAR_UNKNOWN_NAMED_AREA(columnEndPosition, ColumnEnd); | 420 CLEAR_UNKNOWN_NAMED_AREA(columnEndPosition, ColumnEnd); |
422 CLEAR_UNKNOWN_NAMED_AREA(rowStartPosition, RowStart); | 421 CLEAR_UNKNOWN_NAMED_AREA(rowStartPosition, RowStart); |
423 CLEAR_UNKNOWN_NAMED_AREA(rowEndPosition, RowEnd); | 422 CLEAR_UNKNOWN_NAMED_AREA(rowEndPosition, RowEnd); |
424 } | 423 } |
425 | 424 |
426 } | 425 } |
OLD | NEW |