| 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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 2257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2268 } | 2268 } |
| 2269 | 2269 |
| 2270 return this; | 2270 return this; |
| 2271 } | 2271 } |
| 2272 | 2272 |
| 2273 RespectImageOrientationEnum RenderObject::shouldRespectImageOrientation() const | 2273 RespectImageOrientationEnum RenderObject::shouldRespectImageOrientation() const |
| 2274 { | 2274 { |
| 2275 // Respect the image's orientation if it's being used as a full-page image o
r it's | 2275 // Respect the image's orientation if it's being used as a full-page image o
r it's |
| 2276 // an <img> and the setting to respect it everywhere is set. | 2276 // an <img> and the setting to respect it everywhere is set. |
| 2277 return | 2277 return |
| 2278 #if USE(CG) || PLATFORM(CHROMIUM) || PLATFORM(BLACKBERRY) | 2278 #if USE(CG) || PLATFORM(CHROMIUM) |
| 2279 // This can only be enabled for ports which honor the orientation flag i
n their drawing code. | 2279 // This can only be enabled for ports which honor the orientation flag i
n their drawing code. |
| 2280 document()->isImageDocument() || | 2280 document()->isImageDocument() || |
| 2281 #endif | 2281 #endif |
| 2282 (document()->settings() && document()->settings()->shouldRespectImageOri
entation() && node() && node()->hasTagName(HTMLNames::imgTag)) ? RespectImageOri
entation : DoNotRespectImageOrientation; | 2282 (document()->settings() && document()->settings()->shouldRespectImageOri
entation() && node() && node()->hasTagName(HTMLNames::imgTag)) ? RespectImageOri
entation : DoNotRespectImageOrientation; |
| 2283 } | 2283 } |
| 2284 | 2284 |
| 2285 bool RenderObject::hasOutlineAnnotation() const | 2285 bool RenderObject::hasOutlineAnnotation() const |
| 2286 { | 2286 { |
| 2287 return node() && node()->isLink() && document()->printing(); | 2287 return node() && node()->isLink() && document()->printing(); |
| 2288 } | 2288 } |
| (...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3175 { | 3175 { |
| 3176 if (object1) { | 3176 if (object1) { |
| 3177 const WebCore::RenderObject* root = object1; | 3177 const WebCore::RenderObject* root = object1; |
| 3178 while (root->parent()) | 3178 while (root->parent()) |
| 3179 root = root->parent(); | 3179 root = root->parent(); |
| 3180 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3180 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 3181 } | 3181 } |
| 3182 } | 3182 } |
| 3183 | 3183 |
| 3184 #endif | 3184 #endif |
| OLD | NEW |