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 2276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2287 } | 2287 } |
2288 | 2288 |
2289 return this; | 2289 return this; |
2290 } | 2290 } |
2291 | 2291 |
2292 RespectImageOrientationEnum RenderObject::shouldRespectImageOrientation() const | 2292 RespectImageOrientationEnum RenderObject::shouldRespectImageOrientation() const |
2293 { | 2293 { |
2294 // Respect the image's orientation if it's being used as a full-page image o
r it's | 2294 // Respect the image's orientation if it's being used as a full-page image o
r it's |
2295 // an <img> and the setting to respect it everywhere is set. | 2295 // an <img> and the setting to respect it everywhere is set. |
2296 return | 2296 return |
2297 #if USE(CG) || PLATFORM(CHROMIUM) || USE(CAIRO) || PLATFORM(BLACKBERRY) | 2297 #if USE(CG) || PLATFORM(CHROMIUM) || PLATFORM(BLACKBERRY) |
2298 // This can only be enabled for ports which honor the orientation flag i
n their drawing code. | 2298 // This can only be enabled for ports which honor the orientation flag i
n their drawing code. |
2299 document()->isImageDocument() || | 2299 document()->isImageDocument() || |
2300 #endif | 2300 #endif |
2301 (document()->settings() && document()->settings()->shouldRespectImageOri
entation() && node() && node()->hasTagName(HTMLNames::imgTag)) ? RespectImageOri
entation : DoNotRespectImageOrientation; | 2301 (document()->settings() && document()->settings()->shouldRespectImageOri
entation() && node() && node()->hasTagName(HTMLNames::imgTag)) ? RespectImageOri
entation : DoNotRespectImageOrientation; |
2302 } | 2302 } |
2303 | 2303 |
2304 bool RenderObject::hasOutlineAnnotation() const | 2304 bool RenderObject::hasOutlineAnnotation() const |
2305 { | 2305 { |
2306 return node() && node()->isLink() && document()->printing(); | 2306 return node() && node()->isLink() && document()->printing(); |
2307 } | 2307 } |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3194 { | 3194 { |
3195 if (object1) { | 3195 if (object1) { |
3196 const WebCore::RenderObject* root = object1; | 3196 const WebCore::RenderObject* root = object1; |
3197 while (root->parent()) | 3197 while (root->parent()) |
3198 root = root->parent(); | 3198 root = root->parent(); |
3199 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 3199 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
3200 } | 3200 } |
3201 } | 3201 } |
3202 | 3202 |
3203 #endif | 3203 #endif |
OLD | NEW |