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 Simon Hausmann (hausmann@kde.org) | 4 * (C) 2000 Simon Hausmann (hausmann@kde.org) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 addHTMLLengthToStyle(style, CSSPropertyMarginLeft, value); | 75 addHTMLLengthToStyle(style, CSSPropertyMarginLeft, value); |
76 } else if (name == marginheightAttr || name == topmarginAttr) { | 76 } else if (name == marginheightAttr || name == topmarginAttr) { |
77 addHTMLLengthToStyle(style, CSSPropertyMarginBottom, value); | 77 addHTMLLengthToStyle(style, CSSPropertyMarginBottom, value); |
78 addHTMLLengthToStyle(style, CSSPropertyMarginTop, value); | 78 addHTMLLengthToStyle(style, CSSPropertyMarginTop, value); |
79 } else if (name == bgcolorAttr) { | 79 } else if (name == bgcolorAttr) { |
80 addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value); | 80 addHTMLColorToStyle(style, CSSPropertyBackgroundColor, value); |
81 } else if (name == textAttr) { | 81 } else if (name == textAttr) { |
82 addHTMLColorToStyle(style, CSSPropertyColor, value); | 82 addHTMLColorToStyle(style, CSSPropertyColor, value); |
83 } else if (name == bgpropertiesAttr) { | 83 } else if (name == bgpropertiesAttr) { |
84 if (equalIgnoringCase(value, "fixed")) { | 84 if (equalIgnoringCase(value, "fixed")) { |
85 UseCounter::count(document(), UseCounter::BgPropertiesFixed); | 85 UseCounter::countDeprecation(document(), UseCounter::BgPropertiesFix
ed); |
86 addPropertyToPresentationAttributeStyle(style, CSSPropertyBackground
Attachment, CSSValueFixed); | 86 addPropertyToPresentationAttributeStyle(style, CSSPropertyBackground
Attachment, CSSValueFixed); |
87 } | 87 } |
88 } else | 88 } else |
89 HTMLElement::collectStyleForPresentationAttribute(name, value, style); | 89 HTMLElement::collectStyleForPresentationAttribute(name, value, style); |
90 } | 90 } |
91 | 91 |
92 void HTMLBodyElement::parseAttribute(const QualifiedName& name, const AtomicStri
ng& value) | 92 void HTMLBodyElement::parseAttribute(const QualifiedName& name, const AtomicStri
ng& value) |
93 { | 93 { |
94 if (name == vlinkAttr || name == alinkAttr || name == linkAttr) { | 94 if (name == vlinkAttr || name == alinkAttr || name == linkAttr) { |
95 if (value.isNull()) { | 95 if (value.isNull()) { |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 int HTMLBodyElement::scrollWidth() | 334 int HTMLBodyElement::scrollWidth() |
335 { | 335 { |
336 // Update the document's layout. | 336 // Update the document's layout. |
337 Document& document = this->document(); | 337 Document& document = this->document(); |
338 document.updateLayoutIgnorePendingStylesheets(); | 338 document.updateLayoutIgnorePendingStylesheets(); |
339 FrameView* view = document.view(); | 339 FrameView* view = document.view(); |
340 return view ? adjustForZoom(view->contentsWidth(), &document) : 0; | 340 return view ? adjustForZoom(view->contentsWidth(), &document) : 0; |
341 } | 341 } |
342 | 342 |
343 } // namespace blink | 343 } // namespace blink |
OLD | NEW |