OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
5 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 5 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
6 * Copyright (C) 2008 Rob Buis <buis@kde.org> | 6 * Copyright (C) 2008 Rob Buis <buis@kde.org> |
7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
8 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. | 8 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. |
9 * Copyright (C) 2012 Google Inc. | 9 * Copyright (C) 2012 Google Inc. |
10 * | 10 * |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 // If our bounds changed, notify the parents. | 427 // If our bounds changed, notify the parents. |
428 if (updateCachedBoundariesInParents) | 428 if (updateCachedBoundariesInParents) |
429 RenderSVGBlock::setNeedsBoundariesUpdate(); | 429 RenderSVGBlock::setNeedsBoundariesUpdate(); |
430 | 430 |
431 repainter.repaintAfterLayout(); | 431 repainter.repaintAfterLayout(); |
432 setNeedsLayout(false); | 432 setNeedsLayout(false); |
433 } | 433 } |
434 | 434 |
435 RootInlineBox* RenderSVGText::createRootInlineBox() | 435 RootInlineBox* RenderSVGText::createRootInlineBox() |
436 { | 436 { |
437 RootInlineBox* box = new (renderArena()) SVGRootInlineBox(this); | 437 RootInlineBox* box = new SVGRootInlineBox(this); |
438 box->setHasVirtualLogicalHeight(); | 438 box->setHasVirtualLogicalHeight(); |
439 return box; | 439 return box; |
440 } | 440 } |
441 | 441 |
442 bool RenderSVGText::nodeAtFloatPoint(const HitTestRequest& request, HitTestResul
t& result, const FloatPoint& pointInParent, HitTestAction hitTestAction) | 442 bool RenderSVGText::nodeAtFloatPoint(const HitTestRequest& request, HitTestResul
t& result, const FloatPoint& pointInParent, HitTestAction hitTestAction) |
443 { | 443 { |
444 PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_TEXT_HITTESTING, r
equest, style()->pointerEvents()); | 444 PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_TEXT_HITTESTING, r
equest, style()->pointerEvents()); |
445 bool isVisible = (style()->visibility() == VISIBLE); | 445 bool isVisible = (style()->visibility() == VISIBLE); |
446 if (isVisible || !hitRules.requireVisible) { | 446 if (isVisible || !hitRules.requireVisible) { |
447 if ((hitRules.canHitStroke && (style()->svgStyle()->hasStroke() || !hitR
ules.requireStroke)) | 447 if ((hitRules.canHitStroke && (style()->svgStyle()->hasStroke() || !hitR
ules.requireStroke)) |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 return 0; | 554 return 0; |
555 } | 555 } |
556 | 556 |
557 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl
e | 557 // Fix for <rdar://problem/8048875>. We should not render :first-letter CSS Styl
e |
558 // in a SVG text element context. | 558 // in a SVG text element context. |
559 void RenderSVGText::updateFirstLetter() | 559 void RenderSVGText::updateFirstLetter() |
560 { | 560 { |
561 } | 561 } |
562 | 562 |
563 } | 563 } |
OLD | NEW |