| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 if (BisonCSSParser::parseColor(color, value, !document().inQuirksMod
e())) { | 105 if (BisonCSSParser::parseColor(color, value, !document().inQuirksMod
e())) { |
| 106 if (name == linkAttr) | 106 if (name == linkAttr) |
| 107 document().textLinkColors().setLinkColor(color); | 107 document().textLinkColors().setLinkColor(color); |
| 108 else if (name == vlinkAttr) | 108 else if (name == vlinkAttr) |
| 109 document().textLinkColors().setVisitedLinkColor(color); | 109 document().textLinkColors().setVisitedLinkColor(color); |
| 110 else | 110 else |
| 111 document().textLinkColors().setActiveLinkColor(color); | 111 document().textLinkColors().setActiveLinkColor(color); |
| 112 } | 112 } |
| 113 } | 113 } |
| 114 | 114 |
| 115 setNeedsStyleRecalc(SubtreeStyleChange); | 115 setNeedsStyleRecalc(StyleRecalcDueToLinkColorChange, SubtreeStyleChange)
; |
| 116 } else if (name == onloadAttr) | 116 } else if (name == onloadAttr) |
| 117 document().setWindowAttributeEventListener(EventTypeNames::load, createA
ttributeEventListener(document().frame(), name, value, eventParameterName())); | 117 document().setWindowAttributeEventListener(EventTypeNames::load, createA
ttributeEventListener(document().frame(), name, value, eventParameterName())); |
| 118 else if (name == onbeforeunloadAttr) | 118 else if (name == onbeforeunloadAttr) |
| 119 document().setWindowAttributeEventListener(EventTypeNames::beforeunload,
createAttributeEventListener(document().frame(), name, value, eventParameterNam
e())); | 119 document().setWindowAttributeEventListener(EventTypeNames::beforeunload,
createAttributeEventListener(document().frame(), name, value, eventParameterNam
e())); |
| 120 else if (name == onunloadAttr) | 120 else if (name == onunloadAttr) |
| 121 document().setWindowAttributeEventListener(EventTypeNames::unload, creat
eAttributeEventListener(document().frame(), name, value, eventParameterName())); | 121 document().setWindowAttributeEventListener(EventTypeNames::unload, creat
eAttributeEventListener(document().frame(), name, value, eventParameterName())); |
| 122 else if (name == onpagehideAttr) | 122 else if (name == onpagehideAttr) |
| 123 document().setWindowAttributeEventListener(EventTypeNames::pagehide, cre
ateAttributeEventListener(document().frame(), name, value, eventParameterName())
); | 123 document().setWindowAttributeEventListener(EventTypeNames::pagehide, cre
ateAttributeEventListener(document().frame(), name, value, eventParameterName())
); |
| 124 else if (name == onpageshowAttr) | 124 else if (name == onpageshowAttr) |
| 125 document().setWindowAttributeEventListener(EventTypeNames::pageshow, cre
ateAttributeEventListener(document().frame(), name, value, eventParameterName())
); | 125 document().setWindowAttributeEventListener(EventTypeNames::pageshow, cre
ateAttributeEventListener(document().frame(), name, value, eventParameterName())
); |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 int HTMLBodyElement::scrollWidth() | 327 int HTMLBodyElement::scrollWidth() |
| 328 { | 328 { |
| 329 // Update the document's layout. | 329 // Update the document's layout. |
| 330 Document& document = this->document(); | 330 Document& document = this->document(); |
| 331 document.updateLayoutIgnorePendingStylesheets(); | 331 document.updateLayoutIgnorePendingStylesheets(); |
| 332 FrameView* view = document.view(); | 332 FrameView* view = document.view(); |
| 333 return view ? adjustForZoom(view->contentsWidth(), &document) : 0; | 333 return view ? adjustForZoom(view->contentsWidth(), &document) : 0; |
| 334 } | 334 } |
| 335 | 335 |
| 336 } // namespace blink | 336 } // namespace blink |
| OLD | NEW |